/* ThinkBuild Foundry "Lab" — WooCommerce
   Shop & course pages are dark. Cart, checkout and My Account sit on a light,
   high-contrast panel so forms and payment fields stay easy to read. */

/* =========================================================
   Product grid / course cards (dark)
   ========================================================= */
.woocommerce ul.products, .woocommerce-page ul.products { gap: 20px; }
.woocommerce ul.products li.product,
.wc-block-grid__product {
	background: var(--tb-panel); border: 1px solid var(--tb-line); border-radius: var(--tb-radius);
	overflow: hidden; padding: 0 0 28px !important; text-align: left; transition: border-color .2s;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover { border-color: rgba(124,196,245,.6); }
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
.wc-block-grid__product-image img {
	aspect-ratio: 16/10; object-fit: cover; width: 100%; margin: 0 0 22px !important; border-radius: 0;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 0 30px; }
.woocommerce ul.products li.product > .woocommerce-loop-product__title,
.woocommerce ul.products li.product > .price,
.woocommerce ul.products li.product > .button { margin-left: 30px; margin-right: 30px; }
.woocommerce ul.products li.product .ast-woo-product-category {
	font-family: var(--tb-font-mono); font-size: 12px; letter-spacing: .04em; text-transform: lowercase;
	color: var(--tb-muted) !important; opacity: 1;
}
.woocommerce ul.products li.product .ast-woo-product-category::before { content: "// "; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 24px !important; color: #fff !important; padding: 6px 0 10px;
}
.woocommerce ul.products li.product .ast-woo-shop-product-description,
.woocommerce ul.products li.product .ast-woo-shop-product-description p { color: var(--tb-text); }

/* Prices */
.woocommerce .price, .woocommerce-Price-amount,
.woocommerce div.product p.price, .woocommerce div.product span.price,
.wc-block-components-product-price {
	color: #fff !important; font-family: var(--tb-font-mono); font-weight: 500;
}
.woocommerce ul.products li.product .price { font-size: 16px; margin-bottom: 18px; }
.woocommerce .price del { color: var(--tb-muted) !important; opacity: .8; }
.woocommerce .price ins { text-decoration: none; color: var(--tb-orange-text) !important; }

/* Badges */
.woocommerce span.onsale, .ast-onsale-card, .wc-block-components-product-sale-badge {
	background: var(--tb-orange) !important; color: var(--tb-ink) !important;
	border-radius: 6px !important; font-family: var(--tb-font-mono); font-size: 12px;
	min-height: 0; min-width: 0; line-height: 1; padding: 7px 10px !important;
}
.ast-shop-product-out-of-stock, .ast-shop-product-out-of-stock-label {
	background: rgba(7,24,44,.85) !important; color: #fff !important; font-family: var(--tb-font-mono);
}

/* Toolbar */
.woocommerce .woocommerce-result-count { color: var(--tb-muted); font-family: var(--tb-font-mono); font-size: 13px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; }
.woocommerce-breadcrumb, .woocommerce-breadcrumb a { color: var(--tb-muted) !important; font-family: var(--tb-font-mono); font-size: 13px; }

/* =========================================================
   Single course page (dark)
   ========================================================= */
.woocommerce div.product .product_title { font-size: clamp(32px, 3.8vw, 48px); color: #fff; }
.woocommerce div.product div.images img { border-radius: var(--tb-radius); border: 1px solid var(--tb-line); }
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-product-details__short-description p { color: var(--tb-text); font-size: 18px; }
.woocommerce div.product form.cart { margin: 28px 0 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.woocommerce div.product form.cart .button { min-height: 52px; padding: 0 32px !important; font-size: 16px; }
.woocommerce .quantity .qty { min-width: 80px; text-align: center; }

.tb-spec {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
	margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--tb-line);
	font-family: var(--tb-font-mono); font-size: 13px;
}
.tb-spec dt { color: var(--tb-muted); }
.tb-spec dd { margin: 4px 0 0; color: #fff; }

.tb-course-trust {
	list-style: none; margin: 8px 0 24px; padding: 18px 20px; border-radius: 10px;
	border: 1px dashed var(--tb-line-strong); display: grid; gap: 8px; font-size: 15px; color: var(--tb-soft);
}
.tb-course-trust li::before { content: "✓"; color: var(--tb-green); font-weight: 700; margin-right: 10px; }

.product_meta, .product_meta a { color: var(--tb-muted) !important; font-family: var(--tb-font-mono); font-size: 13px; }

.woocommerce div.product .woocommerce-tabs ul.tabs { border: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent !important; border: 1px solid var(--tb-line-strong) !important; border-radius: 8px !important; margin: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--tb-soft) !important; font-weight: 600; padding: .6em 1.1em; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff !important; border-color: #fff !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--tb-ink) !important; }
.woocommerce div.product .woocommerce-tabs .panel {
	border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 30px; background: var(--tb-panel); color: var(--tb-text);
}
.woocommerce div.product .woocommerce-tabs .panel h2 { color: #fff; font-size: 24px; }
.related.products > h2, .upsells.products > h2 { color: #fff; }

/* =========================================================
   Notices
   ========================================================= */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	border: 1px solid var(--tb-line) !important; border-left: 4px solid var(--tb-blue) !important;
	border-radius: 10px !important; background: var(--tb-panel-solid) !important; color: var(--tb-soft) !important;
}
.woocommerce-message { border-left-color: var(--tb-green) !important; }
.woocommerce-error { border-left-color: #FF6B6B !important; }
.woocommerce-message::before, .woocommerce-info::before { color: inherit !important; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; }

/* =========================================================
   Light surface: cart, checkout, my account
   ========================================================= */
body.tb-light-surface #primary {
	background: #fff; color: var(--tb-ink-2); border-radius: 16px;
	padding: 48px !important; margin-top: 48px; margin-bottom: 72px;
	box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
body.tb-light-surface #primary h1, body.tb-light-surface #primary h2, body.tb-light-surface #primary h3,
body.tb-light-surface #primary .entry-title,
body.tb-light-surface #primary .wc-block-components-title,
body.tb-light-surface #primary .wc-block-components-checkout-step__title { color: var(--tb-ink) !important; }
body.tb-light-surface #primary a { color: #1F6FB2; }
body.tb-light-surface #primary a:hover { color: #B85E00; }
body.tb-light-surface #primary label,
body.tb-light-surface #primary .wc-block-components-text-input label { color: var(--tb-ink) !important; }
body.tb-light-surface #primary .price,
body.tb-light-surface #primary .woocommerce-Price-amount,
body.tb-light-surface #primary .wc-block-components-product-price,
body.tb-light-surface #primary .wc-block-components-totals-item__value { color: var(--tb-ink) !important; }

body.tb-light-surface #primary input[type="text"], body.tb-light-surface #primary input[type="email"],
body.tb-light-surface #primary input[type="tel"], body.tb-light-surface #primary input[type="password"],
body.tb-light-surface #primary input[type="number"], body.tb-light-surface #primary textarea,
body.tb-light-surface #primary select,
body.tb-light-surface #primary .select2-container--default .select2-selection--single,
body.tb-light-surface #primary .wc-block-components-text-input input,
body.tb-light-surface #primary .wc-blocks-components-select__select {
	background: #fff !important; color: var(--tb-ink) !important;
	border: 1.5px solid var(--tb-rule) !important; border-radius: 8px !important;
}
body.tb-light-surface #primary input:focus, body.tb-light-surface #primary select:focus,
body.tb-light-surface #primary textarea:focus { border-color: #1F6FB2 !important; box-shadow: 0 0 0 3px rgba(31,111,178,.18) !important; }

/* Classic cart */
body.tb-light-surface table.shop_table {
	border: 1px solid var(--tb-rule) !important; border-radius: 12px !important; overflow: hidden; border-collapse: separate !important;
}
body.tb-light-surface table.shop_table th {
	background: var(--tb-paper); color: var(--tb-ink); font-family: var(--tb-font-mono); font-size: 12px; text-transform: lowercase; letter-spacing: .04em;
}
body.tb-light-surface table.shop_table td, body.tb-light-surface table.shop_table th { border-color: var(--tb-rule) !important; padding: 18px !important; color: var(--tb-ink-2); }
body.tb-light-surface table.cart img { border-radius: 8px; width: 72px; }
body.tb-light-surface .cart-collaterals .cart_totals {
	background: var(--tb-paper); border: 1px solid var(--tb-rule); border-radius: 12px; padding: 28px;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 56px; font-size: 17px; }
body.tb-light-surface a.remove { color: #C53030 !important; }

/* Classic checkout */
body.tb-light-surface #order_review {
	background: var(--tb-paper); border: 1px solid var(--tb-rule); border-radius: 12px; padding: 28px;
}
body.tb-light-surface #payment { background: #fff !important; border: 1px solid var(--tb-rule); border-radius: 10px !important; }
body.tb-light-surface #payment div.payment_box { background: var(--tb-paper) !important; color: var(--tb-ink) !important; border-radius: 8px; }
body.tb-light-surface #payment div.payment_box::before { border-bottom-color: var(--tb-paper) !important; }
.woocommerce #payment #place_order { width: 100%; min-height: 56px; font-size: 17px; }
.tb-secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--tb-ink-2); margin-top: 12px; }
.tb-secure-note svg { width: 16px; height: 16px; stroke: #2F7A18; }

/* Block cart & checkout */
body.tb-light-surface .wp-block-woocommerce-checkout-order-summary-block,
body.tb-light-surface .wp-block-woocommerce-cart-order-summary-block {
	background: var(--tb-paper); border: 1px solid var(--tb-rule) !important; border-radius: 12px; padding: 8px 16px;
}
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button { width: 100%; min-height: 56px; font-size: 17px !important; }
body.tb-light-surface .wc-block-components-radio-control-accordion-option,
body.tb-light-surface .wc-block-components-radio-control__option { border-radius: 8px; }

/* My account */
body.tb-light-surface .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: var(--tb-paper); border-radius: 12px; }
body.tb-light-surface .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; border-radius: 8px; color: var(--tb-ink) !important; font-weight: 600; text-decoration: none; }
body.tb-light-surface .woocommerce-MyAccount-navigation li.is-active a,
body.tb-light-surface .woocommerce-MyAccount-navigation li a:hover { background: var(--tb-ink); color: #fff !important; }

@media (max-width: 768px) {
	body.tb-light-surface #primary { padding: 24px !important; margin-top: 24px; border-radius: 12px; }
}

/* =========================================================
   Mini cart (header flyout)
   ========================================================= */
.ast-site-header-cart .widget_shopping_cart,
.astra-cart-drawer {
	background: var(--tb-panel-solid) !important; border: 1px solid var(--tb-line) !important; border-radius: 12px; color: var(--tb-soft);
}
.astra-cart-drawer .astra-cart-drawer-title, .astra-cart-drawer .woocommerce-mini-cart-item a { color: #fff !important; }
.woocommerce-mini-cart__total { border-color: var(--tb-line) !important; color: #fff; }
.woocommerce-mini-cart__buttons .button:not(.checkout) {
	background: transparent !important; color: #fff !important; border: 1px solid var(--tb-line-strong) !important;
}

/* =========================================================
   Courses (shop) page — v1.1
   ========================================================= */
body.tb-course-listing .ast-archive-description,
body.tb-course-listing .woocommerce-products-header { display: none !important; }

.tb-shop-intro { padding: 32px 0 40px; margin-bottom: 32px; border-bottom: 1px solid var(--tb-line); }
.tb-shop-intro__text { max-width: 640px; }
.tb-shop-intro__title { font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 0 0 18px; color: #fff; }
.tb-shop-intro__text, .tb-shop-intro__text p { font-size: 19px; color: var(--tb-text); margin: 0; }
.tb-course-listing .tb-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; }
.tb-course-listing .tb-tags li {
	font-family: var(--tb-font-mono); font-size: 13px; color: var(--tb-soft);
	border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 6px 12px;
}
body.tb-course-listing .woocommerce-result-count,
body.tb-course-listing .woocommerce-ordering { margin-bottom: 24px; }

/* Two wide cards per row */
body.tb-course-listing ul.products {
	display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 24px !important;
}
body.tb-course-listing ul.products::before, body.tb-course-listing ul.products::after { display: none !important; }
body.tb-course-listing ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 768px) {
	body.tb-course-listing ul.products { grid-template-columns: minmax(0,1fr) !important; }
}

/* Card body: left-aligned, description before price, price + button on one row */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
	display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 16px; align-items: center;
	text-align: left; padding: 0 30px;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap > * { grid-column: 1 / -1; margin-left: 0 !important; margin-right: 0 !important; }
.woocommerce ul.products li.product .ast-woo-product-category { order: 1; margin-bottom: 4px; }
.woocommerce ul.products li.product .ast-loop-product__link { order: 2; }
.woocommerce ul.products li.product .ast-woo-shop-product-description { order: 3; margin: 0 0 22px; }
.woocommerce ul.products li.product .ast-woo-shop-product-description p { margin: 0; font-size: 16px; }
.woocommerce ul.products li.product .astra-shop-summary-wrap .price {
	order: 4; grid-column: 1; margin: 0 !important; padding-top: 18px; border-top: 1px solid var(--tb-line); font-size: 20px;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap .button {
	order: 5; grid-column: 2; grid-row: auto; margin: 0 !important; margin-top: 18px !important;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap .price + .button { align-self: end; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { text-align: left; }

/* Hide Astra's small on-image cart icon (the main button does the job) */
.woocommerce ul.products li.product .ast-on-card-button { display: none !important; }

/* Out-of-stock: small tag instead of a full overlay */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { position: relative; }
.woocommerce ul.products li.product .ast-shop-product-out-of-stock {
	position: absolute !important; top: auto !important; left: 16px !important; right: auto !important; bottom: 16px !important;
	transform: none !important; width: auto !important; height: auto !important; margin: 0 !important;
	background: rgba(7,24,44,.9) !important; color: var(--tb-soft) !important;
	border: 1px solid var(--tb-line-strong); border-radius: 6px; padding: 6px 10px !important;
	font-family: var(--tb-font-mono) !important; font-size: 12px !important; font-weight: 500 !important;
	letter-spacing: .04em; text-transform: lowercase !important; line-height: 1.2 !important;
}
.woocommerce ul.products li.product.outofstock .button {
	background: transparent !important; color: #fff !important; border: 1px solid var(--tb-line-strong) !important;
}

/* Help band under the grid */
.tb-shop-help {
	margin: 56px 0 24px; border: 1px solid rgba(242,130,10,.5); border-radius: 18px; padding: 48px;
	background: rgba(242,130,10,.07);
	display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 32px; align-items: center;
}
.tb-shop-help .tb-label { color: var(--tb-orange-text); }
.tb-shop-help h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 10px; color: #fff; }
.tb-shop-help p { margin: 0; color: var(--tb-text); }
.tb-shop-help__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tb-cta__tel { font-family: var(--tb-font-mono); font-size: 14px; color: var(--tb-soft) !important; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 768px) { .tb-shop-help { grid-template-columns: minmax(0,1fr); padding: 28px; } }

/* =========================================================
   Cart / checkout / account page polish — v1.2
   ========================================================= */
body.tb-light-surface #primary { max-width: 1120px; margin-left: auto !important; margin-right: auto !important; }
body.tb-light-surface #primary .entry-title { font-size: clamp(34px, 4vw, 48px); margin-bottom: 28px; }
body.tb-light-surface #primary .entry-title::before {
	display: block; font-family: var(--tb-font-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em;
	color: #1F6FB2; margin-bottom: 14px; content: "// thinkbuild foundry";
}
body.woocommerce-cart #primary .entry-title::before { content: "// your cart"; }
body.woocommerce-checkout #primary .entry-title::before { content: "// secure checkout"; }
body.woocommerce-account #primary .entry-title::before { content: "// my account"; }

/* Notices on the light panel */
body.tb-light-surface #primary .woocommerce-info,
body.tb-light-surface #primary .woocommerce-message,
body.tb-light-surface #primary .woocommerce-error,
body.tb-light-surface #primary .wc-block-components-notice-banner {
	background: var(--tb-paper) !important; color: var(--tb-ink) !important;
	border: 1px solid var(--tb-rule) !important; border-left: 4px solid #1F6FB2 !important;
}
body.tb-light-surface #primary .woocommerce-message { border-left-color: #2F7A18 !important; }
body.tb-light-surface #primary .woocommerce-error { border-left-color: #C53030 !important; }

/* Empty cart */
body.woocommerce-cart .cart-empty.woocommerce-info { display: none !important; }
.tb-empty-cart { padding: 8px 0 24px; }
.tb-empty-cart h2 { font-size: 26px; margin: 0 0 8px; color: var(--tb-ink) !important; }
.tb-empty-cart p { margin: 0; color: var(--tb-ink-2); max-width: 560px; }
body.woocommerce-cart .return-to-shop { margin: 8px 0 0; }

/* =========================================================
   Classic checkout fixes — v1.5.6
   ========================================================= */
/* Put the secure-payment note on its own full-width line under the Place order button */
.woocommerce-checkout #payment .place-order { flex-wrap: wrap !important; }
.woocommerce-checkout #payment .place-order::after { content: ""; display: table; clear: both; }
.woocommerce-checkout #payment .place-order .tb-secure-note {
	flex: 0 0 100% !important; order: 99; width: 100% !important; max-width: none !important;
	float: none !important; clear: both; margin: 14px 0 0 !important; padding: 0 !important;
	display: flex !important; align-items: center; justify-content: center; gap: 8px;
	font-size: 14px; line-height: 1.4; color: var(--tb-ink-2) !important; text-align: center; white-space: normal;
}
.woocommerce-checkout #payment .place-order .tb-secure-note svg { flex: none; width: 16px; height: 16px; stroke: #2F7A18; fill: none; }

/* Readable body text everywhere on the light panel (privacy note, descriptions, etc.) */
body.tb-light-surface #primary .entry-content p,
body.tb-light-surface #primary .entry-content li,
body.tb-light-surface #primary .woocommerce-privacy-policy-text,
body.tb-light-surface #primary .woocommerce-privacy-policy-text p,
body.tb-light-surface #primary .form-row .description,
body.tb-light-surface #primary td, body.tb-light-surface #primary th { color: var(--tb-ink-2) !important; }
body.tb-light-surface #primary .woocommerce-privacy-policy-text { font-size: 14px; line-height: 1.55; }

/* Calmer checkbox labels */
body.tb-light-surface #primary .woocommerce-form__label-for-checkbox,
body.tb-light-surface #primary .woocommerce-SavedPaymentMethods-saveNew label,
body.tb-light-surface #primary .woocommerce-terms-and-conditions-wrapper label {
	font-weight: 500 !important; font-size: 15px !important; line-height: 1.5 !important; color: var(--tb-ink) !important;
	display: inline-flex; align-items: flex-start; gap: 10px;
}
body.tb-light-surface #primary .woocommerce-form__label-for-checkbox input[type="checkbox"],
body.tb-light-surface #primary .woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
	margin: 4px 0 0 !important; flex: none; width: 16px; height: 16px; accent-color: var(--tb-orange);
}

/* =========================================================
   Classic checkout: "Your order" as one clean white card — v1.5.7
   (replaces the gray/white nested boxes)
   ========================================================= */
body.tb-light-surface #order_review_heading {
	background: #fff !important; margin: 0 !important;
	border: 1px solid var(--tb-rule) !important; border-bottom: 0 !important;
	border-radius: 12px 12px 0 0 !important; padding: 26px 28px 6px !important;
	font-size: 22px !important;
}
body.tb-light-surface #order_review {
	background: #fff !important; margin-top: 0 !important;
	border: 1px solid var(--tb-rule) !important; border-top: 0 !important;
	border-radius: 0 0 12px 12px !important; padding: 8px 28px 28px !important;
	box-shadow: none !important;
}

/* Order table: no box, just divider lines */
body.tb-light-surface #order_review table.shop_table {
	border: 0 !important; border-radius: 0 !important; background: transparent !important; margin: 0 0 20px !important;
}
body.tb-light-surface #order_review table.shop_table th,
body.tb-light-surface #order_review table.shop_table td {
	background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--tb-rule) !important;
	padding: 14px 0 !important;
}
body.tb-light-surface #order_review table.shop_table thead th { padding-top: 4px !important; }
body.tb-light-surface #order_review table.shop_table td.product-total,
body.tb-light-surface #order_review table.shop_table th.product-total,
body.tb-light-surface #order_review table.shop_table tfoot td { text-align: right; }
body.tb-light-surface #order_review table.shop_table .product-name { color: var(--tb-ink) !important; font-weight: 500; }
body.tb-light-surface #order_review table.shop_table tfoot .order-total th,
body.tb-light-surface #order_review table.shop_table tfoot .order-total td {
	border-bottom: 0 !important; color: var(--tb-ink) !important; padding-top: 16px !important;
}
body.tb-light-surface #order_review table.shop_table tfoot .order-total th { font-family: var(--tb-font-head); font-size: 18px; text-transform: none; letter-spacing: 0; }
body.tb-light-surface #order_review table.shop_table tfoot .order-total .amount { font-size: 22px; font-weight: 600; }

/* Payment area: flat on the white card; only the card-fields box gets a light tint */
body.tb-light-surface #order_review #payment {
	background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important;
}
body.tb-light-surface #order_review #payment ul.payment_methods {
	padding: 0 0 16px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--tb-rule) !important;
}
body.tb-light-surface #order_review #payment ul.payment_methods li { padding: 0 !important; background: transparent !important; }
body.tb-light-surface #order_review #payment ul.payment_methods li > label {
	display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--tb-ink) !important; margin: 0 0 12px;
}
body.tb-light-surface #order_review #payment ul.payment_methods li > label img { margin: 0 0 0 auto; max-height: 22px; }
body.tb-light-surface #order_review #payment div.payment_box {
	background: var(--tb-paper) !important; border: 1px solid var(--tb-rule) !important; border-radius: 10px !important;
	margin: 0 !important; padding: 18px !important;
}
body.tb-light-surface #order_review #payment div.payment_box::before { display: none !important; }
body.tb-light-surface #order_review #payment div.payment_box fieldset,
body.tb-light-surface #order_review #payment div.payment_box .wc-payment-form { border: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
body.tb-light-surface #order_review #payment .place-order { padding: 18px 0 0 !important; margin: 0 !important; background: transparent !important; }
body.tb-light-surface #order_review .woocommerce-terms-and-conditions-wrapper { margin: 14px 0 16px; }

/* =========================================================
   Softer light surface (v1.6): blue-gray panel instead of bright white
   Cart / checkout / My Account keep a light background so payment-plugin
   card fields stay readable, just much calmer.
   ========================================================= */
body.tb-light-surface #primary { background: #E3EBF4 !important; box-shadow: none !important; border: 1px solid #C9D6E5; }
body.tb-light-surface #primary input[type="text"], body.tb-light-surface #primary input[type="email"],
body.tb-light-surface #primary input[type="tel"], body.tb-light-surface #primary input[type="password"],
body.tb-light-surface #primary input[type="number"], body.tb-light-surface #primary textarea,
body.tb-light-surface #primary select,
body.tb-light-surface #primary .select2-container--default .select2-selection--single,
body.tb-light-surface #primary .wc-block-components-text-input input,
body.tb-light-surface #primary .wc-blocks-components-select__select {
	background: #F7F9FC !important; border-color: #C9D6E5 !important;
}
body.tb-light-surface #order_review_heading,
body.tb-light-surface #order_review { background: #F7F9FC !important; border-color: #C9D6E5 !important; }
body.tb-light-surface #order_review #payment div.payment_box { background: #E9EFF6 !important; border-color: #C9D6E5 !important; }
body.tb-light-surface .cart-collaterals .cart_totals,
body.tb-light-surface .woocommerce-MyAccount-navigation ul,
body.tb-light-surface table.shop_table th,
body.tb-light-surface #primary .woocommerce-info,
body.tb-light-surface #primary .woocommerce-message,
body.tb-light-surface #primary .woocommerce-error,
body.tb-light-surface .wp-block-woocommerce-checkout-order-summary-block,
body.tb-light-surface .wp-block-woocommerce-cart-order-summary-block { background: #F7F9FC !important; border-color: #C9D6E5 !important; }
body.tb-light-surface table.shop_table { background: #F7F9FC !important; border-color: #C9D6E5 !important; }

/* Secure note: keep the lock right next to the sentence (v1.7) */
body.woocommerce-checkout #payment .place-order .tb-secure-note { display: block !important; text-align: center !important; }
body.woocommerce-checkout #payment .place-order .tb-secure-note svg { display: inline-block !important; vertical-align: -3px; margin-right: 6px; }

/* v2.1.2 — Related / upsell courses on the course page: real card widths
   (the 4-column default squeezed cards to ~230px), price + button stack on narrow cards */
.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 380px)) !important; gap: 28px !important;
}
.single-product .related.products ul.products::before, .single-product .related.products ul.products::after,
.single-product .upsells.products ul.products::before, .single-product .upsells.products ul.products::after { display: none !important; }
.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 544px) {
	.single-product .related.products ul.products,
	.single-product .upsells.products ul.products { grid-template-columns: minmax(0,1fr) !important; }
}
.woocommerce ul.products li.product { container-type: inline-size; }
@container (max-width: 330px) {
	.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 0 22px; }
	.woocommerce ul.products li.product .astra-shop-summary-wrap .price { grid-column: 1 / -1; }
	.woocommerce ul.products li.product .astra-shop-summary-wrap .button { grid-column: 1 / -1; margin-top: 14px !important; width: 100%; text-align: center; }
}
