/* ============================================================================== */
/* ============================================================================== */
/* plugins/mainPartFinder.blade.php ======================================= */

#mainPartFinder {
    /* background-image: url("/images/partfinder/background_2.png"); */
    background-size: cover;
    background-position: top;
}

#webSitemap {
    margin-top: 0 !important;
}

#partFinderHeader h1 {
    font-family: OpenSansExtraBold;
    color: #fff;
    font-weight: bold;
}

#partFinderHeader p {
    font-family: OpenSansSemiBold;
    color: rgba(255, 255, 255, .8);
    text-align: justify;
    text-align-last: center;
    font-size: 1.35em;
    padding: 0 15px;
}

#partFinderHeader span {
    color: white;
}

#mainPartFinder #divWheels .divWheel i:hover {
    cursor: pointer;
    opacity: .7;
}

#mainPartFinder .btnBack:hover {
    background-color: #ed1c24;
}

#mainPartFinder #divWheels .divWheel {
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    font-size: 1.5vw;
    padding: 10px;
}

#mainPartFinder #divWheels .divWheel img {
    height: 45px;
    width: auto;
}

#mainPartFinder #divWheels .divWheel:active {
    opacity: .7;
}

#mainPartFinder #divWheels .divWheel:hover {
    color: white;
    background: #ed1c24;
}

#mainPartFinder #divResult,
#mainPartFinder #divResultPartSelect {
    height: auto;
    color: white;
}

.divSelections select {
    width: 100%;
    padding: 10px 5px;
    border: solid black 2px;
    margin-bottom: 15px;
    font-family: OpenSansMedium;
}

#divResult .resultList:nth-child(odd) {
    background: #d5d5d5;
}

#mainPartFinder #resultType {
    font-size: 2em;
}

#mainPartFinder #resultVehicleSelect {
    font-size: 1.4em;
    color: black;
    background: white;
    border: solid black 2px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */


#partFinderECommerce {
    max-height: 250px;
    vertical-align: middle;
}

#partFinderECommerce .partFinderPhone {
    max-width: 275px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
}

/* @media (max-width: 1644.98px) {
    #mainPartFinder #divWheels .divWheel{
        font-size: 4vw;
    }
}
@media (max-width: 1199.98px) {
    #mainPartFinder #divWheels .divWheel{
        font-size: 5vw;
    }
}
@media (max-width: 991.98px) {
    #mainPartFinder #divWheels .divWheel {
        font-size: 4vw;
    }
    #smShowDescContent{
        height: 70px;
    }
} */
@media (max-width: 767.98px) {
    #smShowDescContent {
        height: 103px;
    }
 
    #mainPartFinder #divWheels .divWheel {
        font-size: 3.5vw;
    }

    
}

@media (max-width: 575.98px) {
    #mainPartFinder #divWheels .divWheel {
        font-size: 5vw;
        padding: 15px;
        margin-bottom: 10px;
    }

    #smShowDescContent {
        height: 60px;
    }

    #divSelectionsHeader {
        padding-top: 5px;
        padding-bottom: 0;
        font-size: 4.5vw;
    }

    .resultList {
        padding: 5px;
        font-size: 3vw;
    }

    #mainPartFinder #resultVehicle,
    #mainPartFinder #resultVehicleSelect {
        margin-bottom: 15px;
        font-size: .6em;
    }

    #divResultHeader {
        padding-top: 5px;
        padding-bottom: 0;
    }

    /* #resultSparkPlug{
        margin-top: 5px;
    } */
    .divSelections select {
        padding: 5px 5px;
        margin-bottom: 5px;
    }

    #partFinderHeader h1 {
        font-size: 1.4em;
    }

    #partFinderHeader p {
        font-size: .8em;
    }

    #partFinderECommerce {
        max-height: 100%;
        vertical-align: middle;
    }

    #partFinderECommerce .partFinderPhone {
        max-width: 375px;
        height: auto;
        text-align: center;
    }

    #partFinderECommerce .imgECommerce {
        max-width: 235px;
    }

}

/* ============================================= */
/* SELECT2 CUSTOM STYLING
/* ============================================= */
.divSelections .select2-container--default .select2-selection--single {
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important;
    background-color: #f9fafb !important;
    height: auto !important;
    padding: 10px 12px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 0.75rem !important;
}

.divSelections .select2-container--default .select2-selection--single:hover {
    background-color: #ffffff !important;
}

.divSelections .select2-container--default .select2-selection--single:focus-within,
.divSelections .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    background-color: #ffffff !important;
}

.divSelections .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.divSelections .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
    font-weight: 500 !important;
}

.divSelections .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 1px !important;
    right: 1px !important;
    width: 20px !important;
    height: calc(100% - 2px) !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.divSelections .select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    border-width: 5px 4px 0 4px !important;
}

.divSelections .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca3af transparent transparent transparent !important;
}

.divSelections .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #9ca3af transparent !important;
}

/* Dropdown results */
.divSelections .select2-container--default .select2-dropdown {
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    margin-top: 4px !important;
}

.divSelections .select2-container--default .select2-results__option {
    padding: 10px 16px !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    font-weight: 500 !important;
    transition: background 0.15s ease !important;
}

.divSelections .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ef4444 !important;
    color: white !important;
}

.divSelections .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

/* Search field inside dropdown */
.divSelections .select2-container--default .select2-search--dropdown {
    padding: 10px !important;
}

.divSelections .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    outline: none !important;
}

.divSelections .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Responsive: mobile */
@media (max-width: 767.98px) {
    .divSelections .select2-container--default .select2-selection--single {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    .divSelections .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 0.75rem !important;
    }
    .divSelections .select2-container--default .select2-results__option {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* ============================================= */
/* PART FINDER BACKGROUND
/* ============================================= */
.pf-wheels-bg {
    background-image: url('/images/BG-Desktop.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
@media (min-width: 768px) {
    .pf-wheels-bg {
        background-image: url('/images/BG-Desktop.webp') !important;
    }
}

/* ======================================= plugins/mainPartFinder.blade.php */
/* ============================================================================== */
/* ============================================================================== */

/* Dropdown autocomplete pencarian kode part (jQuery UI) */
#pfCodeSearchWrapper .ui-autocomplete {
    position: absolute;
    z-index: 1050;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

#pfCodeSearchWrapper .ui-autocomplete .ui-menu-item-wrapper {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border: 0;
    margin: 0;
    cursor: pointer;
}

#pfCodeSearchWrapper .ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background: #fef2f2;
    color: #dc2626;
}

#pfCodeSearchWrapper .ui-autocomplete .pf-no-data,
#pfCodeSearchWrapper .ui-autocomplete .pf-no-data .ui-menu-item-wrapper {
    opacity: 1;
    font-style: italic;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    cursor: default;
    background: transparent;
}
