/* EdQueries: course pages - hide misleading Enrolled status for logged-out visitors */
body.single-eb_course:not(.logged-in) .course-meta__course-status, body.single-eb_course:not(.logged-in) .course-price .enrolled { display: none !important; }
/* EdQueries: show Course access (Lifetime) only on the five free Learning Snapshot courses (IDs 41947, 44729, 44730, 46687, 49893). Add new snapshot IDs here. */
body.single-eb_course:not(.postid-41947):not(.postid-44729):not(.postid-44730):not(.postid-46687):not(.postid-49893) .course-meta__course-access { display: none !important; }

/* EdQueries: free Learning Snapshot product page (ID 46370) - use full laptop width */
@media (min-width: 922px) { body.postid-46370 .ast-container { max-width: 1200px; } }
/* EdQueries: free Learning Snapshot product page - friendlier wording than "Already Enrolled" */
body.postid-46370 .user-already-enrolled-message { font-size: 0; padding: 0; background: none; }
body.postid-46370 .user-already-enrolled-message::after { content: "\2713  In My Courses"; font-size: 12px; display: inline-block; padding: 0.2em 0.7em; border-radius: 10px; background: #e8f5ec; color: #1b6e3c; }

/* EdQueries: free Learning Snapshot product page - free-course buttons: single "Start Free" button, no basket or quantity */
body.postid-46370 form.cart .quantity, body.postid-46370 form.cart .single_add_to_cart_button { display: none !important; }
body.postid-46370 #wi_buy_now_46370 { font-size: 0; }
body.postid-46370 #wi_buy_now_46370::after { content: "Start Free"; font-size: 16px; font-weight: 600; }

/* EdQueries: simplify the free sign-up checkout. Applies only when the basket has nothing to pay; paid baskets are unchanged. */
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) .woocommerce-message,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) .woocommerce-cart-form,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) .edwiser-bridge,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) .checkout_coupon,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) #purchase-for-someone-else,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) .woocommerce-additional-fields > h3,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) #order_comments_field.notes,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) #order_review_heading,
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) #order_review .shop_table { display: none !important; }
/* EdQueries: page width - checkout pages use the full laptop width; the free form stays a readable single column */
@media (min-width: 922px) {
  body.page-id-39205 .ast-container, body.woocommerce-checkout .ast-container { max-width: 1200px; }
  body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) form.woocommerce-checkout { max-width: 720px; margin-left: auto; margin-right: auto; }
}
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) form.woocommerce-checkout #customer_details, body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) form.woocommerce-checkout #order_review { float: none !important; width: 100% !important; max-width: 100% !important; }
body.woocommerce-checkout .entry-content:has(form.woocommerce-checkout):not(:has(.wc_payment_method)) form.woocommerce-checkout #order_review { border: 0 !important; padding: 0 !important; }
/* EdQueries: never show "Already Enrolled" to logged-out visitors on product pages */
body:not(.logged-in) .user-already-enrolled-message { display: none !important; }

/* EdQueries paid flow - wider pricing/plan pages, tidier plan page, cleaner paid checkout */
@media (min-width: 922px) {
  body.page-id-49304 .ast-container, body.single-product .ast-container { max-width: 1200px; }
}
body.single-product form.cart .quantity { display: none !important; }
body.woocommerce-checkout .woocommerce-message:has(a.wc-forward) { display: none !important; }
body.woocommerce-checkout .woocommerce-additional-fields > h3:not(#purchase-for-someone-else), body.woocommerce-checkout #order_comments_field { display: none !important; }

/* plan page: button first, long course list in a scroll box */
body.single-product .summary.entry-summary { display: flex; flex-direction: column; }
body.single-product .summary.entry-summary > * { order: 5; }
body.single-product .summary.entry-summary > .woocommerce-breadcrumb { order: 1; }
body.single-product .summary.entry-summary > .single-product-category { order: 2; }
body.single-product .summary.entry-summary > .product_title { order: 3; }
body.single-product .summary.entry-summary > .price, body.single-product .summary.entry-summary > .woocommerce-product-details__short-description { order: 4; }
body.single-product .summary.entry-summary > form.cart { order: 4; margin: 1em 0; }
body.single-product .bridge-woo-associated-courses { max-height: 260px; overflow-y: auto; border: 1px solid #e3e3e3; border-radius: 8px; padding: 0.5em 1em; }

/* Shop page tidy */
@media (min-width: 922px) {
  body.woocommerce-shop .ast-container { max-width: 1200px; }
  body.woocommerce-shop .eb-shop__courses.grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px; }
}
body.woocommerce-shop .eb-shop__course-desc { max-height: 4.6em; overflow: hidden; font-size: 0.9em; line-height: 1.5; }
body.woocommerce-shop .eb-shop__course-desc ul, body.woocommerce-shop .eb-shop__course-desc img.emoji { display: none; }
body.woocommerce-shop .eb-shop__course-title { font-size: 1.05em; line-height: 1.35; }
body.woocommerce-shop .btn__add-to-cart { display: none !important; }
body.woocommerce-shop .eb-shop__course-actions { gap: 8px; }
body.woocommerce-shop .eb-shop__course-actions .btn__buy, body.woocommerce-shop .eb-shop__course-actions .btn__view { flex: 1; text-align: center; }
body:not(.logged-in).woocommerce-shop .eb-shop__enrolled-badge { display: none !important; }


/* EdQueries: Courses page (/eb-courses/) width and category strip. Roll back by removing this block. */
body.page-id-39207 .ast-container { max-width: 1320px; margin-left: auto; margin-right: auto; }
body.page-id-39207 .site-main > article.post-39207 { max-width: 100%; }
body.page-id-39207 .entry-content { max-width: 100%; }
body.page-id-39207 #eb_category_filter, body.page-id-39207 label[for="eb_category_filter"] { display: none !important; }
body.page-id-39207 .eq-cat-strip { margin: 0 0 24px; }
body.page-id-39207 .eq-cat-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.page-id-39207 .eq-cat-strip a { display: inline-block; padding: 8px 14px; border: 1px solid #c9d3e0; border-radius: 999px; text-decoration: none; font-size: 15px; color: #1f2d3d; background: #fff; }
body.page-id-39207 .eq-cat-strip a:hover, body.page-id-39207 .eq-cat-strip a:focus { background: #1f2d3d; color: #fff; }
@media (max-width: 600px) { body.page-id-39207 .eq-cat-strip a { font-size: 14px; padding: 7px 11px; } }