/* =========================================
   TAIBA - FINAL PACKAGE ROW DESIGN
   Image Right + Text Left
========================================= */

/* Main options: one column */
.s-product-options-thumbnails-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 14px 0 !important;
    overflow: visible !important;
}

/* Each complete package card */
.s-product-options-thumbnails-wrapper > div:has(input[type="radio"]) {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    grid-template-rows: minmax(96px, auto) !important;

    align-items: center !important;
    gap: 14px !important;

    direction: rtl !important;
    text-align: right !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 112px !important;

    padding: 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    background: #F7F9F4 !important;
    border: 2px solid #66866A !important;
    border-radius: 13px !important;

    position: relative !important;
    transition: background .2s ease, border-color .2s ease !important;
}

/* Hide radio without disabling it */
.s-product-options-thumbnails-wrapper
> div:has(input[type="radio"]) > input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

/* Image area */
.s-product-options-thumbnails-wrapper
> div:has(input[type="radio"]) > label {
    grid-column: 1 !important;
    grid-row: 1 !important;

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

    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;

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

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    cursor: pointer !important;
}

/* Actual image */
.s-product-options-thumbnails-wrapper
> div:has(input[type="radio"]) > label img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 9px !important;
}

/* Package name: next to image */
.s-product-options-thumbnails-wrapper
> div:has(input[type="radio"]) > :not(input):not(label) {
    grid-column: 2 !important;
    grid-row: 1 !important;

    display: block !important;
    width: 100% !important;
    min-width: 0 !important;

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

    color: #354B3C !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;

    text-align: right !important;
    direction: rtl !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* Text inside package name */
.s-product-options-thumbnails-wrapper
> div:has(input[type="radio"]) > :not(input):not(label) * {
    font-weight: 800 !important;
    line-height: 1.8 !important;
    color: #354B3C !important;
}

/* Selected package */
.s-product-options-thumbnails-wrapper
> div:has(input[type="radio"]:checked) {
    background: #EAF2E7 !important;
    border: 3px solid #355D3E !important;
    box-shadow: 0 3px 12px rgba(53, 93, 62, .13) !important;
}

/* Hover */
.s-product-options-thumbnails-wrapper
> div:has(input[type="radio"]):hover {
    border-color: #526D58 !important;
}

/* MOBILE */
@media (max-width: 767px) {

    .s-product-options-thumbnails-wrapper {
        gap: 10px !important;
    }

    .s-product-options-thumbnails-wrapper
    > div:has(input[type="radio"]) {
        grid-template-columns: 76px minmax(0, 1fr) !important;
        grid-template-rows: minmax(76px, auto) !important;

        min-height: 96px !important;
        gap: 11px !important;
        padding: 9px !important;
        border-radius: 11px !important;
    }

    .s-product-options-thumbnails-wrapper
    > div:has(input[type="radio"]) > label {
        width: 76px !important;
        height: 76px !important;
        min-width: 76px !important;
    }

    .s-product-options-thumbnails-wrapper
    > div:has(input[type="radio"]) > :not(input):not(label) {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
}

/* DESKTOP */
@media (min-width: 768px) {

    .s-product-options-thumbnails-wrapper
    > div:has(input[type="radio"]) > :not(input):not(label) {
        font-size: 19px !important;
    }
}

/* =========================================
   TAIBA - PRODUCT BENEFIT NOTICE
   Premium Green & Gold Design
========================================= */

.product-benefit-note {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 100%;

    margin: 12px 0 0;
    padding: 12px 10px;

    background: #425B4B;
    color: #FFFFFF;

    border: 1px solid #C9AD75;
    border-right: 4px solid #D8BD83;
    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;

    text-align: center;
    direction: rtl;
    white-space: nowrap !important;

    box-shadow: 0 3px 10px rgba(38, 61, 45, 0.12);
}

/* Hide mobile notice by default */
#product-benefit-note-mobile {
    display: none !important;
}

/* =========================================
   DESKTOP
========================================= */

@media (min-width: 768px) {

    #product-benefit-note-desktop {
        display: flex !important;
    }

    #product-benefit-note-mobile {
        display: none !important;
    }

    .product-benefit-note {
        font-size: 14px;
        padding: 13px 12px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    #product-benefit-note-desktop {
        display: none !important;
    }

    #product-benefit-note-mobile {
        display: flex !important;

        width: 100%;
        min-height: 0;

        margin: 9px 0 13px;
        padding: 11px 4px;

        font-size: clamp(9px, 2.5vw, 11px);
        font-weight: 800;

        line-height: 1.6;
        letter-spacing: -0.35px;

        white-space: nowrap !important;
        text-align: center;

        border-radius: 9px;
    }
}