/**
 * Course bundle page (UX review G2 and G3, approved 2026-10-12).
 * Enqueued on single course-bundle pages only (onlysecurity-bundle-page.php).
 */

/* Wishlist off on bundles; Share stays. */
.single-course-bundle .tutor-course-details-actions .tutor-course-wishlist-btn { display: none !important; }

/* One floating layer (G3): no Rewards pill on bundle pages. */
.single-course-bundle #mycred-loyalty-widget-root { display: none !important; }

/* The purchase box is always in the sidebar now. At 1200px and up Tutor's
 * grid shows it beside the content. Below that the columns stack, so the
 * sidebar's children join the row and the box goes first, before the image;
 * tags and the trainers card follow the content as before. */
@media (max-width: 1199.98px) {
    .single-course-bundle .tutor-course-details-page > .tutor-row {
        display: flex;
        flex-direction: column;
    }
    .single-course-bundle .tutor-course-details-page > .tutor-row > aside,
    .single-course-bundle .tutor-course-details-page > .tutor-row > aside > .tutor-single-course-sidebar {
        display: contents;
    }
    .single-course-bundle .tutor-single-course-sidebar > * {
        order: 1;
        margin-inline: calc(var(--tutor-gutter-x, 1.5rem) * 0.5);
    }
    .single-course-bundle .tutor-single-course-sidebar > .tutor-sidebar-card:not(.tutor-bundle-author-list) {
        order: -1;
        margin-bottom: 24px;
    }
    .single-course-bundle .tutor-course-details-page > .tutor-row > main { order: 0; }
}

/* G2 QA fix (2026-10-12): Customizer Additional CSS sets .tutor-col-xl-8 to
 * width 95% at 1200px and up, which pushes the bundle sidebar under the
 * content. Restore Tutor's two-column split on bundle pages only; other pages
 * keep the Customizer rule. */
@media (min-width: 1200px) {
    .single-course-bundle .tutor-course-details-page > .tutor-row > .tutor-col-xl-8 { width: 66.666667% !important; flex: 0 0 66.666667%; max-width: 66.666667%; }
    .single-course-bundle .tutor-course-details-page > .tutor-row > aside.tutor-col-xl-4 { width: 33.333333%; flex: 0 0 33.333333%; max-width: 33.333333%; }
}
