.woocommerce-page main h1,
.woocommerce-page main h2,
.woocommerce-page main h3,
.page-id-12 main h1,
.page-id-12 main h2,
.page-id-12 main h3,
.page-id-12 main .woocommerce-loop-product__title {
    font-family: Inter, Montserrat, Arial, sans-serif;
    letter-spacing: -.02em;
}

.retesim-destination-search {
    width: min(1180px, calc(100% - 40px));
    margin: 10px auto 30px;
    padding: 22px;
    border: 1px solid var(--rs-commerce-line, #dbe4f0);
    border-radius: 18px;
    background: var(--rs-commerce-soft, #f5f7ff);
    box-sizing: border-box;
}

.retesim-destination-grid-filtered > ul.products,
.retesim-destination-grid-filtered > .woocommerce-pagination {
    display: none !important;
}

.retesim-plan-guidance {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-left: 4px solid var(--rs-commerce-primary, #4b50e6);
    border-radius: 0 12px 12px 0;
    background: var(--rs-commerce-soft, #f5f7ff);
    color: var(--rs-commerce-ink, #0f172a);
    font-size: 15px;
    line-height: 1.55;
}

.retesim-missing-destination-image img {
    display: none !important;
}

.retesim-destination-image-fallback {
    display: grid;
    width: min(168px, 72%);
    aspect-ratio: 1;
    margin: 18px auto 10px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #edf4ff, #eeefff);
    color: #4b50e6;
    font: 800 clamp(42px, 5vw, 68px)/1 Inter, Montserrat, Arial, sans-serif;
}

.wc-block-checkout__terms a {
    color: var(--rs-commerce-primary, #3b4cf0);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.retesim-destination-search__label {
    display: block;
    margin-bottom: 9px;
    color: var(--rs-commerce-ink, #0f172a);
    font-size: 18px;
    font-weight: 800;
}

.retesim-destination-search__input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background: #fff;
    color: var(--rs-commerce-ink, #0f172a);
    font: inherit;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

.retesim-destination-search__input:focus {
    border-color: var(--rs-commerce-primary, #3b4cf0);
    box-shadow: 0 0 0 4px rgba(59, 76, 240, .12);
}

.retesim-destination-search__hint {
    margin: 9px 0 0;
    color: var(--rs-commerce-muted, #64748b);
    font-size: 14px;
}

.retesim-destination-search__results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px;
}

.retesim-destination-search__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--rs-commerce-line, #dbe4f0);
    border-radius: 12px;
    background: #fff;
    color: var(--rs-commerce-ink, #0f172a);
    font-weight: 750;
    text-decoration: none;
}

.retesim-destination-search__result span:last-child {
    color: var(--rs-commerce-primary, #3b4cf0);
    font-size: 13px;
    white-space: nowrap;
}

.retesim-destination-search__result:hover,
.retesim-destination-search__result:focus-visible {
    border-color: #aab6ff;
    box-shadow: 0 8px 20px rgba(37, 53, 117, .08);
}

.retesim-destination-search__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 13px 14px;
    border-radius: 12px;
    background: #fff;
    color: var(--rs-commerce-muted, #64748b);
}

body.single-product.product-type-grouped .retesim-plan-list-ready tr {
    animation: retesim-plan-ready .18s ease-out;
}

@keyframes retesim-plan-ready {
    from { opacity: .7; }
    to { opacity: 1; }
}

@media (max-width: 781px) {
    .retesim-destination-search {
        width: calc(100% - 28px);
        padding: 18px;
    }

    .retesim-destination-search__results {
        grid-template-columns: 1fr;
    }

    .retesim-plan-guidance {
        margin-bottom: 14px;
        font-size: 14px;
    }
}

/* ===== UX V1 pilot (1.4.0) -- Fixed/Unlimited sections + badges ===== */
/* Presentation only. Scoped by JS to config.pilotMode (Greece, Turkey, */
/* Spain, Serbia); these rules never apply outside the pilot table.     */

.retesim-plan-section-heading {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
    padding: 14px 6px 8px;
    border-top: 1px solid var(--rs-commerce-line, #dbe4f0);
    border-bottom: 1px solid var(--rs-commerce-line, #dbe4f0);
    background: var(--rs-commerce-soft, #f5f7ff);
    color: var(--rs-commerce-ink, #0f172a);
    font-family: Inter, Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.retesim-plan-section-row--fixed .retesim-plan-section-heading {
    border-top: none;
}

.retesim-fup-notice {
    display: block;
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
    padding: 6px 6px 12px;
    border-bottom: 1px solid var(--rs-commerce-line, #dbe4f0);
    background: var(--rs-commerce-soft, #f5f7ff);
    color: var(--rs-commerce-muted, #64748b);
    font-family: Inter, Montserrat, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    text-transform: none;
    font-weight: 400;
}

.retesim-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-family: Inter, Montserrat, Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.7;
    vertical-align: middle;
    white-space: nowrap;
}

.retesim-badge--recommended {
    background: var(--rs-commerce-primary, #4b50e6);
    color: #fff;
}

.retesim-badge--great-value {
    background: var(--rs-commerce-soft, #f5f7ff);
    color: var(--rs-commerce-primary, #3b4cf0);
    border: 1px solid var(--rs-commerce-primary, #3b4cf0);
}

@media (max-width: 480px) {
    .retesim-plan-pilot .woocommerce-grouped-product-list-item__label {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        align-self: start;
}

    .retesim-badge {
        margin-left: 0;
    }

    .retesim-plan-section-heading {
        font-size: 12px;
    }

    .retesim-fup-notice {
        font-size: 11.5px;
    }
}


/* --- Pilot plan selection (V1) --------------------------------------
   Presentation-only. Scoped to .retesim-plan-selectable, which the JS
   only ever adds on the 4 pilot destinations (config.pilotMode).
   Rollback: delete this block; it has no effect once pilotMode is off.
   --------------------------------------------------------------------- */
.retesim-plan-selectable .woocommerce-grouped-product-list-item__quantity .quantity {
    display: none !important;
}

.retesim-select-plan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 9px 16px;
    border: 1px solid var(--rs-commerce-primary, #3b4cf0);
    border-radius: 10px;
    background: #fff;
    color: var(--rs-commerce-primary, #3b4cf0);
    font-family: Inter, Montserrat, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.retesim-select-plan-button:hover {
    background: var(--rs-commerce-soft, #f5f7ff);
}

.retesim-select-plan-button[aria-pressed="true"] {
    background: var(--rs-commerce-primary, #3b4cf0);
    border-color: var(--rs-commerce-primary, #3b4cf0);
    color: #fff;
}

.retesim-plan-row--selected {
    background: var(--rs-commerce-soft, #f5f7ff);
}

@media (max-width: 480px) {
    .retesim-select-plan-button {
        width: 100%;
    }
}

/* Hide the product image zoom/magnifier control on all destination flags. */
.woocommerce-product-gallery__trigger {
    display: none !important;
}
