/* ThinkBuild Foundry "Lab" — dark surface for Cart, Checkout and My Account (v1.7)
   Matches the Contact form: navy panel, slightly lighter navy fields, white labels.
   Switch back to the light version in Customize → ThinkBuild Homepage → "Cart & checkout style". */

body.tb-dark-surface #primary {
	background: var(--tb-panel-solid) !important; color: var(--tb-text);
	border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
	padding: 48px !important; margin: 48px auto 72px !important; max-width: 1120px;
}
@media (max-width: 768px) { body.tb-dark-surface #primary { padding: 24px !important; margin-top: 24px !important; border-radius: 12px; } }

/* Headings & page label */
body.tb-dark-surface #primary h1, body.tb-dark-surface #primary h2, body.tb-dark-surface #primary h3,
body.tb-dark-surface #primary .entry-title,
body.tb-dark-surface #primary .wc-block-components-title,
body.tb-dark-surface #primary .wc-block-components-checkout-step__title { color: #FFFFFF !important; }
body.tb-dark-surface #primary .entry-title { font-size: clamp(34px, 4vw, 48px); margin-bottom: 28px; }
body.tb-dark-surface #primary .entry-title::before {
	display: block; font-family: var(--tb-font-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em;
	color: var(--tb-blue); margin-bottom: 14px; content: "// thinkbuild foundry";
}
body.tb-dark-surface.woocommerce-cart #primary .entry-title::before { content: "// your cart"; }
body.tb-dark-surface.woocommerce-checkout #primary .entry-title::before { content: "// secure checkout"; }
body.tb-dark-surface.woocommerce-account #primary .entry-title::before { content: "// my account"; }

/* Text, links, labels */
body.tb-dark-surface #primary p, body.tb-dark-surface #primary li, body.tb-dark-surface #primary td,
body.tb-dark-surface #primary .woocommerce-privacy-policy-text, body.tb-dark-surface #primary .form-row .description,
body.tb-dark-surface #primary .wc-block-components-checkout-step__description { color: var(--tb-text) !important; }
body.tb-dark-surface #primary a { color: var(--tb-blue); }
body.tb-dark-surface #primary a:hover { color: var(--tb-orange-text); }
body.tb-dark-surface #primary label,
body.tb-dark-surface #primary .form-row label,
body.tb-dark-surface #primary .woocommerce-form__label-for-checkbox,
body.tb-dark-surface #primary .wc-block-components-checkbox__label { color: #FFFFFF !important; }
body.tb-dark-surface #primary .required { color: #FF8A8A !important; }
body.tb-dark-surface #primary .woocommerce-form__label-for-checkbox,
body.tb-dark-surface #primary .woocommerce-SavedPaymentMethods-saveNew label,
body.tb-dark-surface #primary .woocommerce-terms-and-conditions-wrapper label {
	font-weight: 500 !important; font-size: 15px !important; line-height: 1.5 !important;
	display: inline-flex; align-items: flex-start; gap: 10px;
}
body.tb-dark-surface #primary input[type="checkbox"], body.tb-dark-surface #primary input[type="radio"] { accent-color: var(--tb-orange); }

/* Fields — same as the Contact form */
body.tb-dark-surface #primary input[type="text"], body.tb-dark-surface #primary input[type="email"],
body.tb-dark-surface #primary input[type="tel"], body.tb-dark-surface #primary input[type="password"],
body.tb-dark-surface #primary input[type="number"], body.tb-dark-surface #primary input[type="search"],
body.tb-dark-surface #primary textarea, body.tb-dark-surface #primary select,
body.tb-dark-surface #primary .select2-container--default .select2-selection--single,
body.tb-dark-surface #primary .wc-block-components-text-input input,
body.tb-dark-surface #primary .wc-block-components-combobox .wc-block-components-combobox-control input,
body.tb-dark-surface #primary .wc-blocks-components-select__select {
	background: #8A97A7 !important; color: #0A1424 !important;
	border: 1px solid #93A4BA !important; border-radius: 8px !important; box-shadow: none !important;
}
body.tb-dark-surface #primary input::placeholder, body.tb-dark-surface #primary textarea::placeholder { color: #2E3B50 !important; }
body.tb-dark-surface #primary input:focus, body.tb-dark-surface #primary select:focus, body.tb-dark-surface #primary textarea:focus {
	border-color: var(--tb-blue) !important; box-shadow: 0 0 0 3px rgba(124,196,245,.35) !important;
}
body.tb-dark-surface #primary .select2-container--default .select2-selection--single .select2-selection__rendered { color: #0A1424 !important; }
body.tb-dark-surface #primary .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #2E3B50 !important; }
body.tb-dark-surface #primary .select2-selection__arrow b { border-top-color: #0A1424 !important; }
body.tb-dark-surface .select2-dropdown { background: #0B2340 !important; color: #FFFFFF !important; border-color: rgba(255,255,255,.18) !important; }
body.tb-dark-surface .select2-results__option { color: #DCE4EE; }
body.tb-dark-surface .select2-container--default .select2-results__option--highlighted[aria-selected],
body.tb-dark-surface .select2-container--default .select2-results__option--highlighted[data-selected] { background: rgba(124,196,245,.18) !important; color: #FFFFFF !important; }
body.tb-dark-surface .select2-search--dropdown .select2-search__field { background: #8A97A7 !important; color: #0A1424 !important; border-color: #93A4BA !important; }
body.tb-dark-surface #primary .wc-block-components-text-input label,
body.tb-dark-surface #primary .wc-block-components-combobox label { color: #1E2A3D !important; }

/* Notices & coupon bar */
body.tb-dark-surface #primary .woocommerce-info,
body.tb-dark-surface #primary .woocommerce-message,
body.tb-dark-surface #primary .woocommerce-error,
body.tb-dark-surface #primary .wc-block-components-notice-banner {
	background: rgba(255,255,255,.03) !important; color: var(--tb-soft) !important;
	border: 1px solid rgba(255,255,255,.12) !important; border-left: 4px solid var(--tb-blue) !important;
}
body.tb-dark-surface #primary .woocommerce-message { border-left-color: var(--tb-green) !important; }
body.tb-dark-surface #primary .woocommerce-error { border-left-color: #FF6B6B !important; }

/* Cards inside the panel (order review, cart totals, summaries) */
body.tb-dark-surface #order_review_heading {
	background: rgba(255,255,255,.03) !important; margin: 0 !important;
	border: 1px solid rgba(255,255,255,.12) !important; border-bottom: 0 !important;
	border-radius: 12px 12px 0 0 !important; padding: 26px 28px 6px !important; font-size: 22px !important;
}
body.tb-dark-surface #order_review {
	background: rgba(255,255,255,.03) !important; margin-top: 0 !important;
	border: 1px solid rgba(255,255,255,.12) !important; border-top: 0 !important;
	border-radius: 0 0 12px 12px !important; padding: 8px 28px 28px !important; box-shadow: none !important;
}
body.tb-dark-surface #order_review table.shop_table { border: 0 !important; background: transparent !important; margin: 0 0 20px !important; }
body.tb-dark-surface #order_review table.shop_table th,
body.tb-dark-surface #order_review table.shop_table td {
	background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.10) !important;
	padding: 14px 0 !important; color: var(--tb-text) !important;
}
body.tb-dark-surface #order_review table.shop_table thead th { font-family: var(--tb-font-mono); font-size: 12px; text-transform: lowercase; letter-spacing: .04em; color: var(--tb-muted) !important; }
body.tb-dark-surface #order_review table.shop_table .product-name { color: #FFFFFF !important; font-weight: 500; }
body.tb-dark-surface #order_review table.shop_table td.product-total,
body.tb-dark-surface #order_review table.shop_table tfoot td { text-align: right; }
body.tb-dark-surface #order_review table.shop_table tfoot .order-total th,
body.tb-dark-surface #order_review table.shop_table tfoot .order-total td { border-bottom: 0 !important; color: #FFFFFF !important; padding-top: 16px !important; }
body.tb-dark-surface #order_review table.shop_table tfoot .order-total th { font-family: var(--tb-font-head); font-size: 18px; text-transform: none; }
body.tb-dark-surface #order_review table.shop_table tfoot .order-total .amount { font-size: 22px; font-weight: 600; }
body.tb-dark-surface #primary .woocommerce-Price-amount,
body.tb-dark-surface #primary .wc-block-components-product-price,
body.tb-dark-surface #primary .wc-block-components-totals-item__value { color: #FFFFFF !important; }

/* Payment */
body.tb-dark-surface #order_review #payment { background: transparent !important; border: 0 !important; padding: 0 !important; }
body.tb-dark-surface #order_review #payment ul.payment_methods {
	padding: 0 0 16px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.10) !important;
}
body.tb-dark-surface #order_review #payment ul.payment_methods li { padding: 0 !important; background: transparent !important; }
body.tb-dark-surface #order_review #payment ul.payment_methods li > label {
	display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #FFFFFF !important; margin: 0 0 12px;
}
body.tb-dark-surface #order_review #payment div.payment_box {
	background: #0E2A4A !important; color: var(--tb-text) !important;
	border: 1px solid rgba(255,255,255,.18) !important; border-radius: 10px !important; margin: 0 !important; padding: 18px !important;
}
body.tb-dark-surface #order_review #payment div.payment_box::before { display: none !important; }
body.tb-dark-surface #order_review #payment div.payment_box fieldset,
body.tb-dark-surface #order_review #payment div.payment_box .wc-payment-form { border: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
body.tb-dark-surface #order_review #payment .place-order { padding: 18px 0 0 !important; margin: 0 !important; background: transparent !important; }
body.tb-dark-surface.woocommerce-checkout #payment .place-order .tb-secure-note { color: var(--tb-muted) !important; }
body.tb-dark-surface.woocommerce-checkout #payment .place-order .tb-secure-note svg { stroke: var(--tb-green); }

/* Classic cart */
body.tb-dark-surface table.shop_table {
	background: transparent !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 12px !important;
	overflow: hidden; border-collapse: separate !important;
}
body.tb-dark-surface table.shop_table th {
	background: rgba(255,255,255,.03) !important; color: var(--tb-muted) !important;
	font-family: var(--tb-font-mono); font-size: 12px; text-transform: lowercase; letter-spacing: .04em;
}
body.tb-dark-surface table.shop_table td, body.tb-dark-surface table.shop_table th { border-color: rgba(255,255,255,.10) !important; padding: 18px !important; }
body.tb-dark-surface table.shop_table .product-name a { color: #FFFFFF !important; }
body.tb-dark-surface a.remove { color: #FF8A8A !important; }
body.tb-dark-surface .cart-collaterals .cart_totals {
	background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 12px; padding: 28px;
}

/* Block cart & checkout summaries */
body.tb-dark-surface .wp-block-woocommerce-checkout-order-summary-block,
body.tb-dark-surface .wp-block-woocommerce-cart-order-summary-block {
	background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 12px; padding: 8px 16px;
}
body.tb-dark-surface #primary .wc-block-components-radio-control-accordion-option,
body.tb-dark-surface #primary .wc-block-components-radio-control__option { border-color: rgba(255,255,255,.18) !important; }
body.tb-dark-surface #primary .wc-block-components-totals-wrapper,
body.tb-dark-surface #primary .wc-block-components-order-summary-item { border-color: rgba(255,255,255,.10) !important; }

/* Empty cart */
body.tb-dark-surface.woocommerce-cart .cart-empty.woocommerce-info { display: none !important; }
body.tb-dark-surface .tb-empty-cart h2 { color: #FFFFFF !important; }
body.tb-dark-surface .tb-empty-cart p { color: var(--tb-text) !important; }

/* My Account navigation */
body.tb-dark-surface .woocommerce-MyAccount-navigation ul {
	list-style: none; margin: 0; padding: 8px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
}
body.tb-dark-surface .woocommerce-MyAccount-navigation li a {
	display: block; padding: 12px 16px; border-radius: 8px; color: var(--tb-soft) !important; font-weight: 600; text-decoration: none;
}
body.tb-dark-surface .woocommerce-MyAccount-navigation li.is-active a,
body.tb-dark-surface .woocommerce-MyAccount-navigation li a:hover { background: rgba(124,196,245,.14); color: #FFFFFF !important; }

/* Cart totals card & table header (found while previewing on staging) */
body.tb-dark-surface .cart-collaterals .cart_totals > h2 { background: transparent !important; border: 0 !important; color: #FFFFFF !important; padding: 0 0 14px !important; margin: 0 !important; font-size: 22px !important; }
body.tb-dark-surface .cart-collaterals .cart_totals table.shop_table { border: 0 !important; }
body.tb-dark-surface .cart-collaterals .cart_totals table th,
body.tb-dark-surface .cart-collaterals .cart_totals table td { background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.10) !important; padding: 14px 0 !important; }
body.tb-dark-surface .cart-collaterals .cart_totals table td { text-align: right; }
body.tb-dark-surface .cart-collaterals .cart_totals .order-total th,
body.tb-dark-surface .cart-collaterals .cart_totals .order-total td { border-bottom: 0 !important; }
body.tb-dark-surface .cart-collaterals .cart_totals .order-total .amount { font-size: 22px; font-weight: 600; }
body.tb-dark-surface table.shop_table thead, body.tb-dark-surface table.shop_table thead tr,
body.tb-dark-surface table.shop_table tbody tr, body.tb-dark-surface table.shop_table tbody td { background-color: transparent !important; }
body.tb-dark-surface table.shop_table thead th { background-color: rgba(255,255,255,.03) !important; }
