/* ═══════════════════════════════════════════════
   BGP — Maison 4 · v1.4
   Playfair Display · Montserrat · #F9AACA pink
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;500&display=swap');

/* ── Dark overlay behind popup ── */
.bgp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.bgp-overlay.bgp-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal ── */
.bgp-modal {
    background: #ffffff;
    max-width: 480px;
    width: 92%;
    transform: translateY(28px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    padding: 3rem 2.5rem 2.5rem;
    z-index: 99999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    /* Match site border-radius — site uses square buttons so radius: 0 */
    border-radius: 3px;
}
.bgp-overlay.bgp-open .bgp-modal {
    transform: translateY(0);
}

/* ── Close ── */
.bgp-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}
.bgp-close:hover { color: #1a1a1a; }

/* ── Steps ── */
.bgp-step { display: none; }
.bgp-step.bgp-active { display: block; }

/* ── Brand label ── */
.bgp-brand-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #bbb;
    margin: 0 0 0.6rem;
    font-weight: 400;
    text-align: center;
}

/* ── Heading — Playfair Display ── */
.bgp-modal h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    margin: 0 0 0.6rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    border: none !important;
    padding: 0 !important;
}

/* ── Subtitle ── */
.bgp-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    margin: 0 0 1.75rem;
    line-height: 1.7;
    font-weight: 300;
    text-align: center;
}

/* ── Radio options ── */
.bgp-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 1.75rem;
}

.bgp-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    border-radius: 3px;
}
.bgp-option:hover {
    border-color: #F9AACA;
    background: #fff8fb;
}
.bgp-option.selected {
    border-color: #F9AACA;
    background: #fff8fb;
}

/* Custom radio */
.bgp-radio {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    background: #fff;
}
.bgp-option.selected .bgp-radio {
    border-color: #F9AACA;
}
.bgp-radio-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #F9AACA;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s, transform 0.2s;
}
.bgp-option.selected .bgp-radio-dot {
    opacity: 1;
    transform: scale(1);
}

/* Option text */
.bgp-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bgp-option-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}
.bgp-option-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: #888;
    line-height: 1.6;
}

/* ── Continue button (disabled state) ── */
.bgp-btn-continue {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: #e8e8e8;
    color: #1a1a1a !important;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: not-allowed;
    box-sizing: border-box;
    transition: background 0.25s ease, color 0.25s ease;
    border-radius: 3px;
}
.bgp-btn-continue.bgp-enabled {
    background: #1a1a1a;
    color: #fff !important;
    cursor: pointer;
}
.bgp-btn-continue.bgp-enabled:hover {
    background: #333;
}

/* Learn more */
.bgp-learn-more {
    text-align: center;
    margin: 1rem 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #bbb;
    font-weight: 300;
}
.bgp-learn-more a {
    color: #bbb;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bgp-learn-more a:hover { color: #888; }

/* ── Step 2 icon ── */
.bgp-step2-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    background: #fff8fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fad5e6;
}

/* ── Add to basket / Book button — exact pink #F9AACA, square corners like site ── */
.bgp-btn-basket {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: #F9AACA;
    color: #ffffff !important;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.25s ease;
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
    border-radius: 3px;
}
.bgp-btn-basket:hover {
    background: #f087b3;
    color: #ffffff !important;
}

/* ── Back link ── */
.bgp-back {
    display: block;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #bbb;
    font-weight: 300;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    padding: 8px 0 0;
    transition: color 0.2s;
}
.bgp-back:hover { color: #555; }

/* ══════════════════════════════════════════════
   SINGLE PRODUCT PAGE
   Hide the original Add to Basket button visually
   so our JS intercept takes over the click.
   The button remains in the DOM (so WC JS works)
   but is invisible — our popup handles the action.
   ══════════════════════════════════════════════ */
.bgp-active-product .single_add_to_cart_button {
    background: #F9AACA !important;
    color: #ffffff !important;
    border: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: background 0.25s ease !important;
}
.bgp-active-product .single_add_to_cart_button:hover {
    background: #f087b3 !important;
}

/* ── Confirm label (bold line above options) ── */
.bgp-confirm-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem;
    line-height: 1.5;
    text-align: left;
}

/* ── Guidance box (bottom card) ── */
.bgp-guidance-box {
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-align: left;
}
.bgp-guidance-box-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.bgp-guidance-box-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bgp-guidance-box-link:hover {
    color: #1d4ed8;
}

/* ── Left-align option text (no title needed now) ── */
.bgp-option-desc {
    text-align: left;
    font-size: 13px;
    color: #333;
    font-weight: 400;
    line-height: 1.6;
}

/* ── H2 left-align for step 1 ── */
#bgp-step1 h2 {
    text-align: left !important;
    font-size: 22px !important;
}

/* ── Subtitle left-align for step 1 ── */
#bgp-step1 .bgp-subtitle {
    text-align: left;
    margin-bottom: 1.25rem;
}
