/*
 * Offer page refresh (Nov 2026). Certification sales page (/course-bundle/{slug}) and single course pages
 * (/coach/{owner}/course/{slug}) built on partials/editorial-offer-page. Loaded after editorial-product-page.css.
 * Same layout and content; colours, labels, headings, cards and buttons match the rest of the site.
 */
body:has(.ep-page) { background: #fbf6ef; }
body:has(.ep-page) .am-header_two.am-header_eight { background: #fbf6ef !important; }
body:has(.ep-page) .am-main { background: #fbf6ef; }

.ep-page {
    --ep-ink: #1d1a17;
    --ep-muted: #6b625a;
    --ep-cream: #fbf6ef;
    --ep-line: #eadfd2;
    --ep-paper: #ffffff;
    --ep-band: linear-gradient(135deg, #fdf1cf 0%, #fae1e9 100%);
    --site-accent-gradient: linear-gradient(135deg, #f3c93c 0%, #e79ab3 100%);
    --site-accent-glow: none;
    background: #fbf6ef !important;
}

/* Hero: soft gradient panel like the other page heroes */
.ep-page .ep-hero { background: linear-gradient(135deg, #fdf1cf 0%, #fae1e9 100%); border-radius: 40px; }
.ep-page .ep-hero__copy { background: transparent !important; }

/* Labels as pills */
.ep-page .ep-kicker,
.ep-page .ep-section__kicker,
.ep-page .ep-faq__kicker {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border: 1px solid var(--ep-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ep-muted) !important;
    font-size: 12px;
    font-weight: 500 !important;
    letter-spacing: .08em !important;
}

/* Section titles: upright serif like the rest of the site, no underline bar */
.ep-page .ep-section__title { color: var(--ep-ink); font-style: normal; font-weight: 600; max-width: 22ch; letter-spacing: -0.005em; }
.ep-page .ep-section__title:after { display: none; }
.ep-page .ep-title { color: var(--ep-ink); }

/* Cards */
.ep-page .ep-card,
.ep-page .ep-mod { background: #fff !important; border: 1px solid var(--ep-line) !important; border-radius: 24px !important; box-shadow: none !important; }
.ep-page .ep-card h3, .ep-page .ep-mod h3 { color: var(--ep-ink); }
.ep-page .ep-band { background: var(--ep-band) !important; border-radius: 36px; }
.ep-page .ep-band .ep-card { background: rgba(255, 255, 255, .85) !important; }

/* FAQ */
.ep-page .ep-faq__card { background: linear-gradient(135deg, #fdf1cf 0%, #fae1e9 100%) !important; border-radius: 28px; }

/* Buttons: same gradient pill as other pages, no glow */
.ep-page .ep-cta.am-btn { background: var(--site-accent-gradient) !important; box-shadow: none !important; font-weight: 500 !important; color: var(--ep-ink) !important; }
.ep-page .ep-cta.am-btn:hover { box-shadow: 0 10px 24px rgba(29, 26, 23, .14) !important; filter: none; }

/* Price */
.ep-page .ep-price__now { color: var(--ep-ink); }
.ep-page .ep-price__save { background: var(--ep-ink); color: #fff; border-radius: 999px; }

@media (max-width: 767.98px) {
    .ep-page .ep-hero { border-radius: 30px; }
    .ep-page .ep-band { border-radius: 28px; }
}

/* Reviews block heading ("What others are saying"): same upright serif, no underline bar */
body:has(.ep-page) .cr-overview-rating > h3 { font-family: "Playfair Display", Georgia, serif !important; font-style: normal !important; font-weight: 600 !important; color: #1d1a17 !important; }
body:has(.ep-page) .cr-overview-rating > h3::after, body:has(.ep-page) .cr-overview-rating > h3::before { display: none !important; }

/* "Your details" popup before guest checkout: same look as the site's sign-up popup */
.cv-guest-modal { backdrop-filter: blur(2px); }
.cv-guest-modal .modal-dialog { max-width: 440px; }
.cv-guest-modal .modal-content { border: 0; border-radius: 26px; background: #fbf6ef; box-shadow: 0 24px 60px rgba(29, 26, 23, .22); overflow: hidden; }
.cv-guest-modal .am-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 28px 4px; border: 0; background: transparent; }
.cv-guest-modal .am-modal-header h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 26px; font-weight: 600; color: #1d1a17; }
.cv-guest-modal .am-closepopup { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #6b625a; cursor: pointer; }
.cv-guest-modal .am-closepopup:hover { background: #f5ebdf; color: #1d1a17; }
.cv-guest-modal .am-modal-body { padding: 8px 28px 28px; }
.cv-guest-modal .am-modal-body > p { font-size: 14.5px !important; line-height: 1.6; color: #6b625a !important; }
.cv-guest-modal .am-label { font-size: 14px; font-weight: 600; color: #1d1a17; margin-bottom: 6px; }
.cv-guest-modal .form-control { min-height: 50px; border: 1px solid #eadfd2; border-radius: 16px; background: #fff; padding: 12px 16px; font-size: 15px; color: #1d1a17; box-shadow: none; }
.cv-guest-modal .form-control:focus { border-color: #1d1a17; box-shadow: 0 0 0 4px rgba(243, 201, 60, .22); }
.cv-guest-modal .am-modal-body .d-flex { margin-top: 8px; }
.cv-guest-modal .am-btn { min-height: 50px; padding: 12px 24px; border-radius: 999px !important; font-size: 15px; font-weight: 500; box-shadow: none !important; }
.cv-guest-modal .am-btn-accent { flex: 1; background: #1d1a17 !important; border: 0 !important; color: #fff !important; }
.cv-guest-modal .am-white-btn { background: transparent !important; border: 0 !important; color: #1d1a17 !important; text-decoration: underline; text-underline-offset: 4px; }

/* Reviews carousel ("What others are saying...") used on offer pages too */
.cr-course-reviews__title, .cr-course-reviews__heading h2 { font-family: "Playfair Display", Georgia, serif !important; font-style: normal !important; font-weight: 600 !important; color: #1d1a17 !important; }
.cr-course-reviews__title::after, .cr-course-reviews__heading h2::after { display: none !important; }
.cr-course-reviews__card { border-radius: 24px !important; border: 1px solid #eadfd2 !important; box-shadow: none !important; background: #fff !important; }

/* ── Fixes (Nov 2026, round 2): label width, price, discount badge, timer ── */
.ep-page .ep-kicker { align-self: flex-start; justify-self: start; width: auto !important; max-width: max-content; }
.ep-page .ep-price { align-items: center !important; gap: 8px 14px; flex-wrap: wrap; }
.ep-page .ep-price__was { font-size: 16px; line-height: 1; color: var(--ep-muted); }
.ep-page .ep-price__was sup { font-size: 1em; top: 0; vertical-align: baseline; }
.ep-page .ep-price__now { display: inline-flex; align-items: flex-start; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.ep-page .ep-price__now sup { position: relative; top: .18em; font-size: .5em !important; line-height: 1; vertical-align: top; margin-right: 2px; }
.ep-page .ep-price__save {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; letter-spacing: .02em;
}
.ep-page .am-offer-countdown { border-radius: 999px; padding: 8px 16px; }

/* Card groups and module list: separate cards with real gaps (no gradient showing between them) */
.ep-page .ep-band { background: transparent !important; gap: 16px !important; padding: 0 !important; border-radius: 0 !important; }
.ep-page .ep-band .ep-card { background: #fff !important; }
.ep-page .ep-mods { background: transparent !important; gap: 10px !important; padding: 0 !important; border-radius: 0 !important; }
.ep-page .ep-mods .ep-mod { border-radius: 20px !important; }
