/*
 * Epic 8b-r12 — dynamic course checkout (templates/course-checkout.php)
 * + course-page enroll button and centered welcome video.
 * Styled after the FunnelKit reference checkout: cream page, white cards,
 * orange place-order, right rail with image / bullets / testimonials /
 * guarantee. All rules scoped.
 */

/* ── Course single page: centered video + enroll CTA ─────────────────────── */
/* r13b: the embed figure was right-hugging its container (asymmetric
   margins from theme rules) and flex collapsed the iframe to 0 width.
   Full-width block figure + text-align centering with an inline-block
   wrapper keeps the iframe's intrinsic size and truly centers it. */
.single-sfwd-courses figure.wp-block-embed {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
}

.single-sfwd-courses figure.wp-block-embed .wp-block-embed__wrapper {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* r14: WP's responsive-embed hack sizes this box via percentage padding
       computed from the FULL container width while the iframe is capped at
       800px — on wide screens that left a ~300px dead band under the video. */
    padding: 0 !important;
    height: auto !important;
}

.single-sfwd-courses figure.wp-block-embed .wp-block-embed__wrapper::before {
    content: none !important;
    display: none !important;
    padding: 0 !important;
}

.single-sfwd-courses figure.wp-block-embed iframe {
    display: block;
    position: static !important;
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}

/* Enroll block: theme colors (dark purple / gold) + Gilroy/Poppins stack */
.aha-enroll-wrap {
    text-align: center;
    margin: 26px auto 30px;
}

.aha-enroll-btn,
.aha-enroll-member-btn {
    display: inline-block;
    font-family: 'gilroy-semibolduploaded_file', 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 13px 44px;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.aha-enroll-btn {
    background: #3F0E40;
    color: #fff !important;
    border: 2px solid #3F0E40;
}

.aha-enroll-btn:hover {
    background: #5D4060;
    border-color: #5D4060;
    color: #fff;
}

.aha-enroll-note {
    font-family: 'gilroy-mediumuploaded_file', 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #1D1C1D;
    margin: 14px 0 12px;
}

.aha-enroll-member-btn {
    background: #fff;
    color: #3F0E40 !important;
    border: 2px solid #3F0E40;
    font-size: 14px;
    padding: 10px 34px;
}

.aha-enroll-member-btn:hover {
    background: #F6E7C8;
    color: #3F0E40;
}

/* ── Checkout page layout ────────────────────────────────────────────────── */

.aha-course-checkout {
    background: #FBF3EA;
    padding: 44px 16px 70px;
}

.aha-cc-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.aha-cc-main { flex: 1 1 58%; min-width: 0; }
.aha-cc-side { flex: 1 1 38%; min-width: 0; }

.aha-cc-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
    padding: 26px 28px;
}

.aha-cc-heading {
    font-size: 22px;
    color: #1D1C1D;
    margin: 0 0 14px;
}

/* Products table */
.aha-cc-products {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 26px;
}

.aha-cc-products th {
    font-size: 13px;
    color: #666;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding: 6px 4px;
    font-weight: 600;
}

.aha-cc-products td {
    background: #F7F7F7;
    padding: 12px 10px;
    vertical-align: middle;
}

/* r14b: the purchase is the hero — larger product row, calmer payment UI */
.aha-cc-product-cell { display: flex; align-items: center; gap: 16px; font-size: 19px; font-weight: 600; color: #1D1C1D; }
.aha-cc-product-cell img { width: 110px; height: auto; border-radius: 6px; }
.aha-cc-price-col { text-align: right; white-space: nowrap; font-size: 19px; }
.aha-cc-price-col del { color: #999; margin-right: 8px; font-size: 15px; }
.aha-cc-member-note { display: block; font-size: 12px; color: #1A7F37; font-weight: 600; }

/* WooCommerce checkout inside the card */
.aha-course-checkout .woocommerce-form-coupon-toggle { display: none; }
.aha-course-checkout #order_review_heading { font-size: 20px; }
.aha-course-checkout .woocommerce { font-size: 15px; }

.aha-course-checkout #place_order,
.aha-course-checkout .woocommerce #payment button#place_order {
    background: #FF6B00 !important;
    color: #fff !important;
    width: 100%;
    padding: 16px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 6px;
    border: 0;
}

.aha-course-checkout #place_order:hover { background: #E55F00 !important; }

/* Trust row */
.aha-cc-trust {
    display: flex;
    gap: 26px;
    margin-top: 22px;
    font-size: 13px;
    color: #444;
}

.aha-cc-trust strong { color: #1A7F37; }
.aha-cc-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1A7F37;
    margin-right: 6px;
}

/* ── Right rail ──────────────────────────────────────────────────────────── */

.aha-cc-hero {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 18px;
}

.aha-cc-bullets h4 {
    font-size: 18px;
    color: #3F0E40;
    margin: 0 0 10px;
}

.aha-cc-bullets ul {
    margin: 0 0 18px;
    padding-left: 0;
    list-style: none;
}

.aha-cc-bullets li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #1D1C1D;
}

.aha-cc-bullets li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #1A7F37;
    font-weight: 700;
}

.aha-cc-member-cta {
    display: block;
    text-align: center;
    background: #3F0E40;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 13px 16px;
    border-radius: 7px;
    margin: 4px 0 20px;
    text-decoration: none;
}

.aha-cc-member-cta:hover { background: #5D4060; color: #fff; }

/* Testimonial speech bubbles: light gold bubble, dark purple text */
.aha-cc-testimonials { margin-bottom: 22px; }

.aha-cc-testimonial { margin-bottom: 18px; }

.aha-cc-bubble {
    position: relative;
    background: #F6E7C8;
    color: #3F0E40;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.55;
}

.aha-cc-bubble:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 28px;
    border-width: 10px 12px 0 0;
    border-style: solid;
    border-color: #F6E7C8 transparent transparent transparent;
}

.aha-cc-testimonial-name {
    margin: 12px 0 0 30px;
    font-size: 13px;
    font-weight: 700;
    color: #3F0E40;
}

/* Guarantee block */
.aha-cc-guarantee { text-align: center; }
.aha-cc-guarantee img { max-width: 170px; height: auto; margin-bottom: 10px; }
.aha-cc-guarantee h4 { font-size: 22px; color: #1D1C1D; margin: 0 0 8px; letter-spacing: 0.02em; }
.aha-cc-guarantee p { font-size: 14px; line-height: 1.6; color: #444; margin: 0; }

@media (max-width: 900px) {
    .aha-cc-container { flex-direction: column; }
    .aha-cc-main, .aha-cc-side { flex: 1 1 100%; width: 100%; }
    .aha-cc-trust { flex-direction: column; gap: 10px; }
}


/* ── r13: normalize payment-method logos — uniform 24px height (afterpay
   scale). Affirm/Apple Pay SVGs otherwise render at intrinsic size. ──────── */
.aha-course-checkout .wc_payment_method label img,
.aha-course-checkout .wc_payment_method .fkwcs_stripe_icons img,
.aha-course-checkout .wc_payment_method .fkwcs_stripe_apple_pay_icons img,
.aha-course-checkout .wc_payment_method .credit-debit img,
.aha-course-checkout .wc_payment_method img.stripe-icon {
    height: 24px !important;
    width: auto !important;
    max-width: 90px;
    vertical-align: middle;
}

.aha-course-checkout .wc_payment_method .fkwcs_stripe_icons img {
    height: 20px !important; /* card brand strip slightly smaller, uniform */
}

/* r13e: membership upsell repeated above Your Products (primary placement) */
.aha-cc-member-cta--top {
    margin: 0 0 20px;
    font-size: 16px;
    padding: 15px 16px;
}


/* ── r14b: payment options visually subordinate to the product ───────────── */
.aha-course-checkout .wc_payment_method label {
    font-size: 14px !important;
}

.aha-course-checkout .wc_payment_method .payment_box,
.aha-course-checkout .wc_payment_method .payment_box p,
.aha-course-checkout .wc_payment_method .payment_box label {
    font-size: 13px !important;
}

.aha-course-checkout .wc_payment_method img,
.aha-course-checkout .wc_payment_method .credit-debit img,
.aha-course-checkout .wc_payment_method .fkwcs_stripe_apple_pay_icons img,
.aha-course-checkout .wc_payment_method img.stripe-icon {
    height: 20px !important;
}

.aha-course-checkout .wc_payment_method .fkwcs_stripe_icons img {
    height: 17px !important;
}
