/* ===========================================================
   AUTOCULTIVE – FITMENT SEARCH (ISOLATED VERSION)
   Applies ONLY inside .ac-fitment-card
=========================================================== */

/* Hide default labels */
.ac-fitment-card .ac-field label {
    display: none !important;
}

/* INNER BOX */
.ac-fitment-card .ac-fitment-row {
    width: 100% !important;
    padding: 26px 32px !important;
    background: #ffffff !important; 
    border-radius: 22px !important;
    border: 3px solid #EF233C !important;

    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 26px !important;

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,0.06),
        0 4px 12px rgba(0,0,0,0.08) !important;
}

/* TITLE */
.ac-fitment-card .ac-fitment-title-inside {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #EF233C;
    margin-bottom: 6px;
    margin-top: -4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* SUBTITLE */
.ac-fitment-card .ac-fitment-subtitle-inside {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    margin-top: -2px;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* DIVIDER */
.ac-fitment-card .ac-fitment-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: rgba(0,0,0,0.12);
    margin: 8px 0 20px 0;
}

/* ===========================================================
   SELECT2 FIELDS — BLACK THEME (ISOLATED)
=========================================================== */

.ac-fitment-card .select2-container--default .select2-selection--single {
    height: 54px !important;
    padding: 6px 16px !important;
    border-radius: 14px !important;

    background: #fff !important;
    border: 2px solid #000 !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000 !important;

    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
}

.ac-fitment-card .select2-selection__rendered {
    color: #000 !important;
    font-weight: 600 !important;
    line-height: 42px !important;
}

.ac-fitment-card .select2-selection__placeholder {
    color: #000 !important;
}

.ac-fitment-card .select2-selection__arrow b {
    border-color: #000 transparent transparent transparent !important;
}

/* ===========================================================
   BUTTON — PERFECT CENTERING (ISOLATED)
=========================================================== */

.ac-fitment-card .ac-fitment-search-btn {
    height: 54px !important;   /* ← MATCH SELECT FIELD HEIGHT */
    width: 100%;
    background: #EF233C !important;
    border: 3px solid #ffffff !important;
    border-radius: 14px !important;

    display: flex !important;
    align-items: center !important;   /* perfect vertical center */
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    cursor: pointer;
    transition: 0.25s ease;
    position: relative !important;
}

.ac-fitment-card .ac-fitment-search-btn::after {
    content: "Find Auto Parts";
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  /* perfect center */
    pointer-events: none;
    white-space: nowrap !important;
}

/* ===========================================================
   RESPONSIVE (ISOLATED)
=========================================================== */
@media (max-width: 420px) {
    .ac-fitment-card .ac-fitment-title-inside {
        font-size: 22px !important;
        letter-spacing: 0.1px !important;
        white-space: nowrap;
    }

    .ac-fitment-card .ac-fitment-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Remove outer wrapper constraints */
.ac-fitment-card {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}


/* FIX PRODUCT PAGE TABLE — FORCE NORMAL ROW LAYOUT */
.ac-fitment-premium-box .ac-fitment-row {
    display: table-row !important;
}

.ac-fitment-premium-box .ac-col {
    display: table-cell !important;
    padding: 6px 10px !important;
    vertical-align: middle !important;
}





/* ===========================================================
   FINAL FIX — MAKE SELECT2 EXACTLY SAME HEIGHT AS BUTTON
=========================================================== */

.ac-fitment-card .select2-container--default .select2-selection--single {
    height: 54px !important;
    min-height: 54px !important;
    line-height: 54px !important;

    padding: 0 16px !important;   /* remove tall padding */
    display: flex !important;
    align-items: center !important;

    box-sizing: border-box !important;
}

.ac-fitment-card .select2-selection__rendered {
    line-height: 54px !important;
    padding-left: 2px !important;
    padding-right: 30px !important; /* space for arrow */
}

.ac-fitment-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 54px !important;
    top: 0 !important;
}


/* FINAL BUTTON HEIGHT FIX (TOP PRIORITY) */
#ac_pf_search_btn,
.ac-fitment-card .ac-fitment-search-btn {
    height: 54px !important;
    min-height: 54px !important;
    line-height: 54px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
}