/* =========================================================
   Buy More Save More — Azadi Sale skin
   Palette sampled from the Azadi Sale countdown block so the
   offer box reads as the same component family.
   ========================================================= */
.wbmsm-box{
    /* Sampled directly from the Azadi Sale card */
    --wbmsm-section-bg:  #FFF8F0;   /* card background */
    --wbmsm-section-line:#F0D9C0;   /* card border */
    --wbmsm-orange:      #ED8936;   /* countdown tile fill */
    --wbmsm-orange-deep: #C0691F;   /* darker orange for prices */
    --wbmsm-orange-pill: #E07A24;   /* small pills, kept legible */

    /* Cards inside the box */
    --wbmsm-card:        #FFFFFF;   /* selected */
    --wbmsm-card-idle:   #FBEEE1;   /* unselected, recessed */
    --wbmsm-card-line:   #F0D9C0;

    /* Text */
    --wbmsm-ink:         #3B2E24;
    --wbmsm-ink-muted:   #8A7A6E;
    --wbmsm-strike:      #A19F9D;   /* their DAYS / HRS label grey */
    --wbmsm-badge:       #5C4634;

    --wbmsm-radius: 12px;
}

/* ---------- Shell: mirrors the Azadi card ---------- */
.wbmsm-box{
    margin: 0 0 22px;
    /* Width comes from the admin settings; --wbmsm-w-mobile takes over
       below the configured breakpoint (see wp_add_inline_style). */
    width: var(--wbmsm-w, 100%);
    max-width: 100%;
    padding: 18px 16px 20px;
    background: var(--wbmsm-section-bg);
    border: 1px solid var(--wbmsm-section-line);
    border-radius: var(--wbmsm-radius);
    font-family: inherit;
    box-sizing: border-box;
}

/* ---------- Heading ---------- */
.wbmsm-heading{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.wbmsm-heading span{
    height: 1px;
    flex: 1;
    background: var(--wbmsm-section-line);
}
.wbmsm-heading strong{
    background: var(--wbmsm-orange);
    color: #fff;
    padding: 7px 14px 8px;
    border-radius: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* ---------- Options ---------- */
.wbmsm-options{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wbmsm-option{
    position: relative;
    min-height: 84px;
    border: 1.5px solid var(--wbmsm-card-line);
    border-radius: var(--wbmsm-radius);
    background: var(--wbmsm-card-idle);
    display: flex;
    align-items: center;
    padding: 16px 14px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.wbmsm-option:hover{
    border-color: var(--wbmsm-orange);
    background: var(--wbmsm-card);
}
.wbmsm-option.is-selected{
    border-color: var(--wbmsm-orange);
    border-width: 2px;
    background: var(--wbmsm-card);
    box-shadow: 0 0 0 3px rgba(237,137,54,.14);
}
.wbmsm-option:focus-within{
    outline: 2px solid var(--wbmsm-orange-deep);
    outline-offset: 2px;
}
.wbmsm-option input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ---------- Radio ---------- */
.wbmsm-radio{
    width: 18px;
    height: 18px;
    border: 2px solid var(--wbmsm-orange);
    border-radius: 50%;
    margin: 0 12px 0 1px;
    flex: 0 0 18px;
    position: relative;
    background: #fff;
    box-sizing: border-box;
}
.wbmsm-option.is-selected .wbmsm-radio:after{
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wbmsm-orange);
    left: 2px;
    top: 2px;
}

/* ---------- Copy ---------- */
.wbmsm-copy{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.wbmsm-copy strong{
    color: var(--wbmsm-ink);
    font-size: 17px;
    font-weight: 700;
}
.wbmsm-copy em{
    background: var(--wbmsm-orange-pill);
    color: #fff;
    border-radius: 6px;
    padding: 3px 9px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}
.wbmsm-copy small{
    width: 100%;
    display: block;
    color: var(--wbmsm-ink-muted);
    font-size: 12px;
    margin-top: 2px;
}

/* ---------- Prices ---------- */
.wbmsm-prices{
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    padding-left: 10px;
}
.wbmsm-prices strong{
    color: var(--wbmsm-orange-deep);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
.wbmsm-prices del{
    color: var(--wbmsm-strike);
    font-size: 12px;
    margin-top: 3px;
}

/* ---------- Badge ---------- */
.wbmsm-badge{
    position: absolute;
    right: 12px;
    top: -10px;
    background: var(--wbmsm-badge);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .2px;
}
.wbmsm-badge:after{ content: none; }

.wbmsm-selected-qty{ display: none !important; }

/* =========================================================
   Variant: for a dark banner. Tick the dark option in
   WooCommerce -> Buy More Save More.
   ========================================================= */
.wbmsm-box.wbmsm-on-dark{
    --wbmsm-section-bg:  #3A2A1F;
    --wbmsm-section-line:rgba(255,255,255,.20);
    --wbmsm-card:        rgba(255,255,255,.12);
    --wbmsm-card-idle:   rgba(255,255,255,.06);
    --wbmsm-card-line:   rgba(255,255,255,.24);
    --wbmsm-ink:         #FFFFFF;
    --wbmsm-ink-muted:   #E0C9B4;
    --wbmsm-strike:      #B3A398;
    --wbmsm-badge:       #ED8936;
}
.wbmsm-box.wbmsm-on-dark .wbmsm-prices strong{ color: #FFC58A; }
.wbmsm-box.wbmsm-on-dark .wbmsm-radio{
    border-color: var(--wbmsm-orange);
    background: transparent;
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce){
    .wbmsm-option{ transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 480px){
    .wbmsm-box{ padding: 14px 12px 16px; }
    .wbmsm-option{ padding: 14px 11px; min-height: 78px; }
    .wbmsm-radio{ margin-right: 9px; }
    .wbmsm-copy strong{ font-size: 15px; }
    .wbmsm-prices strong{ font-size: 16px; }
    .wbmsm-copy em{ font-size: 11px; padding: 3px 7px; }
    .wbmsm-heading{ font-size: 12px; gap: 8px; }
    .wbmsm-heading strong{ padding: 6px 11px 7px; }
}

/* Variable products: dim the figures until a swatch is chosen, because until
   then they are the cheapest variation's price rather than the customer's. */
.wbmsm-box.wbmsm-awaiting .wbmsm-options{opacity:.62;}
.wbmsm-box.wbmsm-awaiting .wbmsm-options::after{
    content:"Choose an option above to see your price";
    display:block;font-size:12px;opacity:.85;padding-top:8px;text-align:center;
}
