/* Extra seats / Couples Discount: keep the purchase path on-screen. */

.course-pricing-switch {
    margin: 16px 0 8px;
}

.course-pricing-tabs {
    display: flex;
    width: 100%;
    padding: 4px;
    border-radius: 999px;
    background: #eef3f0;
    gap: 4px;
}

.course-pricing-tab {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #3d5249;
    cursor: pointer;
    line-height: 1.2;
}

.course-pricing-tab.is-active {
    background: #fff;
    color: #143c2d;
    box-shadow: 0 2px 8px rgba(20, 60, 45, 0.12);
}

.course-pricing-share {
    display: flex;
    justify-content: flex-end;
    margin: 4px 4px 8px;
}

.course-pricing-share .js-copy-seats-link {
    font-size: 12px;
    font-weight: 600;
    color: #2b966b;
    text-decoration: underline;
}

#course-pricing-panel-seats,
#course-pricing-panel-myself {
    scroll-margin-top: 96px;
}

.js-copy-seats-link {
    white-space: nowrap;
}

#course-pricing-panel-seats[hidden],
#course-pricing-panel-myself[hidden] {
    display: none !important;
}

.course-seat-purchase-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(43, 150, 107, 0.35);
    border-radius: 12px;
    background: #f3faf6;
    box-shadow: 0 8px 18px rgba(43, 150, 107, 0.08);
    scroll-margin-top: 96px;
}

.course-seat-purchase-card .js-course-seat-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0 !important;
}

.course-seat-purchase-card .course-seat-purchase-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #143c2d;
}

.course-seat-purchase-card .js-course-seat-count {
    max-width: 110px;
}

@media (min-width: 992px) {
    .course-content-sidebar.has-extra-seats > .rounded-lg.shadow-sm:first-of-type {
        position: sticky;
        top: 88px;
        z-index: 4;
        background: #fff;
        max-height: calc(100vh - 104px);
        overflow: auto;
    }
}

@media (max-width: 991.98px) {
    .course-content-sidebar.has-extra-seats .course-img {
        display: none;
    }

    /* One card under the title: tabs, then the active price. Buttons stay with
       Number of seats / Total instead of a second bar glued to the screen. */
    .course-content-section.has-extra-seats .course-mobile-cta {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 12px !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-top: 0 !important;
        z-index: auto !important;
    }

    .course-content-section.has-extra-seats .course-landing-body {
        padding-bottom: 24px !important;
    }

    .course-content-section.has-extra-seats .course-content-sidebar .rounded-lg.shadow-sm {
        margin-bottom: 16px !important;
    }

    .course-content-sidebar.has-extra-seats .course-pricing-switch {
        margin-top: 16px;
    }

    .course-seat-purchase-card {
        margin-top: 0;
    }
}
