/*
 * WhappenStar Night Shift: cart, checkout, account and WooCommerce notices.
 * Loaded on WooCommerce pages only, after WooCommerce's own styles.
 * Contrast on #222: white 15.9:1, #DBDBDB 11.5:1. On #444: #DBDBDB 7.0:1, white 9.7:1.
 */

/* Field and card outlines: 3:1 or better against both #222 and the #444 panels (WCAG 1.4.11). */
:root { --ws-field-line: #959595; }

/* ---------- Page frame ---------- */
.ws-woo-page { padding-bottom: var(--ws-space-section); }
.ws-woo-page .woocommerce { color: var(--ws-white); font-size: 17px; }
.ws-woo-page .woocommerce a:not(.button):not(.remove) { color: var(--ws-white); }
.ws-woo-page .woocommerce h2, .ws-woo-page .woocommerce h3 {
	font-family: var(--ws-font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 20px; color: var(--ws-white);
}
.ws-woo-page .woocommerce h2 { font-size: clamp(26px, 2.6vw, 34px); }
.ws-woo-page .woocommerce h3 { font-size: clamp(22px, 2vw, 26px); }

/* ---------- Notices ---------- */
body.ws-theme .woocommerce-message, body.ws-theme .woocommerce-info, body.ws-theme .woocommerce-error, body.ws-theme .woocommerce-noreviews,
body.ws-theme .wc-block-components-notice-banner {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 24px; padding: 18px 22px 18px 26px;
	list-style: none; border: 0; border-left: 6px solid var(--ws-white); border-radius: var(--ws-radius-s);
	background: var(--ws-char); color: var(--ws-white); font-size: 16px; line-height: 1.5;
}
body.ws-theme .woocommerce-message::before, body.ws-theme .woocommerce-info::before, body.ws-theme .woocommerce-error::before { display: none; content: none; }
body.ws-theme .woocommerce-message::after, body.ws-theme .woocommerce-info::after, body.ws-theme .woocommerce-error::after { display: none; }
body.ws-theme .woocommerce-info { border-left-color: var(--ws-mist); }
body.ws-theme .woocommerce-error { border-left-color: #FF8A8F; background: #3A1416; color: #FFE3E4; flex-direction: column; align-items: flex-start; gap: 6px; }
body.ws-theme .woocommerce-error li { margin: 0; padding: 0; }
body.ws-theme .woocommerce-message a:not(.button), body.ws-theme .woocommerce-info a:not(.button), body.ws-theme .woocommerce-error a { color: inherit; font-weight: 800; text-decoration: underline; }
body.ws-theme .woocommerce-message .button, body.ws-theme .woocommerce-info .button { order: 2; margin-left: auto; float: none; }

/* ---------- Buttons ---------- */
body.ws-theme .woocommerce a.button, body.ws-theme .woocommerce button.button, body.ws-theme .woocommerce input.button,
body.ws-theme .woocommerce #respond input#submit, body.ws-theme .woocommerce-message .button, body.ws-theme .woocommerce-info .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
	border: 2px solid var(--ws-grey); border-radius: 999px; background: transparent; color: var(--ws-white);
	font-family: var(--ws-font-body); font-weight: 800; font-size: 16px; line-height: 1.1; text-decoration: none; text-shadow: none; box-shadow: none; cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
body.ws-theme .woocommerce a.button:hover, body.ws-theme .woocommerce button.button:hover, body.ws-theme .woocommerce input.button:hover,
body.ws-theme .woocommerce-message .button:hover, body.ws-theme .woocommerce-info .button:hover { border-color: var(--ws-white); background: transparent; color: var(--ws-white); }
/* Primary actions: checkout, place order, log in, save */
body.ws-theme .woocommerce a.button.alt, body.ws-theme .woocommerce button.button.alt, body.ws-theme .woocommerce input.button.alt,
body.ws-theme .woocommerce a.checkout-button, body.ws-theme .woocommerce #place_order,
body.ws-theme .woocommerce button.button.woocommerce-form-login__submit, body.ws-theme .woocommerce button.button[name="save_account_details"],
body.ws-theme .woocommerce button.button[name="save_address"], body.ws-theme .woocommerce .woocommerce-ResetPassword button.button,
body.ws-theme .woocommerce button.button.woocommerce-form-register__submit {
	min-height: 56px; padding: 0 32px; border-color: var(--ws-red); background: var(--ws-red); color: var(--ws-white); font-size: 19px;
}
body.ws-theme .woocommerce a.button.alt:hover, body.ws-theme .woocommerce button.button.alt:hover, body.ws-theme .woocommerce a.checkout-button:hover,
body.ws-theme .woocommerce #place_order:hover, body.ws-theme .woocommerce button.button.woocommerce-form-login__submit:hover,
body.ws-theme .woocommerce button.button[name="save_account_details"]:hover, body.ws-theme .woocommerce button.button[name="save_address"]:hover,
body.ws-theme .woocommerce .woocommerce-ResetPassword button.button:hover, body.ws-theme .woocommerce button.button.woocommerce-form-register__submit:hover { border-color: #C8141B; background: #C8141B; color: var(--ws-white); }
body.ws-theme .woocommerce .button:disabled, body.ws-theme .woocommerce .button:disabled[disabled], body.ws-theme .woocommerce .button.disabled {
	padding: 0 24px; border-color: var(--ws-char); background: transparent; color: var(--ws-field-line); opacity: 1; cursor: not-allowed;
}
body.ws-theme .woocommerce .button:focus-visible, body.ws-theme .woocommerce a:focus-visible, body.ws-theme .woocommerce input:focus-visible,
body.ws-theme .woocommerce select:focus-visible, body.ws-theme .woocommerce textarea:focus-visible { outline: var(--ws-focus); outline-offset: 3px; }

/* ---------- Form fields (checkout, account, login, shipping calculator, coupon) ---------- */
body.ws-theme .woocommerce form .form-row { margin: 0 0 18px; padding: 0; }
body.ws-theme .woocommerce form .form-row label, body.ws-theme .woocommerce-page form .form-row label {
	display: block; margin: 0 0 8px; color: var(--ws-white); font-weight: 800; font-size: 15px; line-height: 1.4;
}
body.ws-theme .woocommerce form .form-row .required { color: var(--ws-mist); text-decoration: none; }
body.ws-theme .woocommerce form .form-row .optional { color: var(--ws-mist); font-weight: 400; }
body.ws-theme .woocommerce form .form-row input.input-text, body.ws-theme .woocommerce form .form-row textarea, body.ws-theme .woocommerce form .form-row select,
body.ws-theme .woocommerce .input-text, body.ws-theme .woocommerce select, body.ws-theme .woocommerce form input[type="email"],
body.ws-theme .woocommerce form input[type="password"], body.ws-theme .woocommerce form input[type="tel"], body.ws-theme .woocommerce form input[type="text"] {
	width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--ws-field-line); border-radius: var(--ws-radius-s);
	background: var(--ws-ink); color: var(--ws-white); font: inherit; font-size: 17px; line-height: 1.3; box-shadow: none;
}
body.ws-theme .woocommerce form .form-row textarea { min-height: 120px; resize: vertical; }
body.ws-theme .woocommerce .input-text::placeholder, body.ws-theme .woocommerce textarea::placeholder { color: #A9A9A9; opacity: 1; }
body.ws-theme .woocommerce form .form-row input.input-text:focus, body.ws-theme .woocommerce form .form-row textarea:focus,
body.ws-theme .woocommerce form .form-row select:focus, body.ws-theme .woocommerce .input-text:focus { border-color: var(--ws-white); }
body.ws-theme .woocommerce form .form-row.woocommerce-invalid input.input-text, body.ws-theme .woocommerce form .form-row.woocommerce-invalid select,
body.ws-theme .woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: #FF8A8F; }
body.ws-theme .woocommerce form .form-row.woocommerce-validated input.input-text, body.ws-theme .woocommerce form .form-row.woocommerce-validated select { border-color: var(--ws-grey); }
body.ws-theme .woocommerce form .form-row .checkout-inline-error-message, body.ws-theme .woocommerce form .form-row [id$="-description"] { margin-top: 6px; color: #FFB3B6; font-size: 15px; font-weight: 700; }
body.ws-theme .woocommerce select option { background: var(--ws-ink); color: var(--ws-white); }
body.ws-theme .woocommerce input[type="checkbox"], body.ws-theme .woocommerce input[type="radio"] { width: 20px; height: 20px; margin: 0 10px 0 0; accent-color: var(--ws-white); vertical-align: -4px; }
body.ws-theme .woocommerce form .form-row .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; cursor: pointer; }
body.ws-theme .woocommerce form .form-row .woocommerce-form__label-for-checkbox input { margin-top: 0; }
body.ws-theme .woocommerce form .form-row-first, body.ws-theme .woocommerce form .form-row-last { width: calc(50% - 10px); }
body.ws-theme .woocommerce form .password-input { display: flex; width: 100%; }
body.ws-theme .woocommerce form .show-password-input { top: 50%; right: 14px; transform: translateY(-50%); filter: invert(1); }
/* Select2 (country/state) */
body.ws-theme .select2-container .select2-selection--single { height: auto; min-height: 52px; border: 2px solid var(--ws-field-line); border-radius: var(--ws-radius-s); background: var(--ws-ink); }
body.ws-theme .select2-container .select2-selection--single .select2-selection__rendered { padding: 12px 40px 12px 16px; color: var(--ws-white); line-height: 1.4; font-size: 17px; }
body.ws-theme .select2-container .select2-selection--single .select2-selection__placeholder { color: #A9A9A9; }
body.ws-theme .select2-container .select2-selection--single .select2-selection__arrow { top: 50%; right: 12px; height: 24px; transform: translateY(-50%); }
body.ws-theme .select2-container .select2-selection--single .select2-selection__arrow b { border-top-color: var(--ws-white); }
body.ws-theme .select2-container--open .select2-selection--single, body.ws-theme .select2-container--focus .select2-selection--single { border-color: var(--ws-white); }
body.ws-theme .select2-dropdown { border: 2px solid var(--ws-white); border-radius: var(--ws-radius-s); background: var(--ws-ink); color: var(--ws-white); overflow: hidden; }
body.ws-theme .select2-search--dropdown .select2-search__field { min-height: 44px; border: 2px solid var(--ws-grey); border-radius: 8px; background: var(--ws-char); color: var(--ws-white); }
body.ws-theme .select2-results__option { padding: 10px 16px; }
body.ws-theme .select2-container--default .select2-results__option--highlighted[aria-selected], body.ws-theme .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ws-white); color: var(--ws-ink); }
body.ws-theme .select2-container--default .select2-results__option[aria-selected="true"], body.ws-theme .select2-container--default .select2-results__option[data-selected="true"] { background: var(--ws-char); color: var(--ws-white); }

/* ---------- Tables (shared) ---------- */
body.ws-theme .woocommerce table.shop_table { margin: 0 0 24px; border: 0; border-collapse: collapse; border-radius: 0; color: var(--ws-white); }
body.ws-theme .woocommerce table.shop_table th, body.ws-theme .woocommerce table.shop_table td {
	padding: 16px 12px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: inherit; line-height: 1.45; vertical-align: middle;
}
body.ws-theme .woocommerce table.shop_table thead th {
	border-top: 0; padding-top: 0; color: var(--ws-mist); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
body.ws-theme .woocommerce table.shop_table tbody th, body.ws-theme .woocommerce table.shop_table tfoot th { font-weight: 700; }
body.ws-theme .woocommerce table.shop_table tfoot td, body.ws-theme .woocommerce table.shop_table tfoot th { border-top: 1px solid rgba(255, 255, 255, 0.14); }
body.ws-theme .woocommerce table.shop_table .order-total th, body.ws-theme .woocommerce table.shop_table .order-total td { font-size: 21px; font-weight: 800; }
body.ws-theme .woocommerce table.shop_table small, body.ws-theme .woocommerce table.shop_table .includes_tax { color: var(--ws-mist); font-size: 14px; font-weight: 400; }
body.ws-theme .woocommerce table.shop_table .wc-item-meta, body.ws-theme .woocommerce table.shop_table dl.variation { margin: 6px 0 0; padding: 0; list-style: none; color: var(--ws-mist); font-size: 14px; }
body.ws-theme .woocommerce table.shop_table .wc-item-meta li, body.ws-theme .woocommerce table.shop_table dl.variation dd, body.ws-theme .woocommerce table.shop_table dl.variation dt { display: inline; margin: 0; }
body.ws-theme .woocommerce table.shop_table .wc-item-meta p, body.ws-theme .woocommerce table.shop_table dl.variation p { display: inline; margin: 0; }

/* ---------- Cart ---------- */
.woocommerce-cart .ws-woo-page .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.woocommerce-cart .ws-woo-page .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-cart .ws-woo-page .woocommerce > .woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .ws-woo-page .woocommerce > .cart-collaterals { grid-column: 2; grid-row: span 2; }
.woocommerce-cart .ws-woo-page .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
body.ws-theme .woocommerce table.cart th.product-remove, body.ws-theme .woocommerce table.cart td.product-remove { width: 56px; padding-left: 0; }
body.ws-theme .woocommerce table.cart td.product-thumbnail { width: 112px; }
body.ws-theme .woocommerce table.cart td.product-thumbnail img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: var(--ws-radius-s); background: var(--ws-paper); }
body.ws-theme .woocommerce table.cart td.product-name a { font-family: var(--ws-font-display); font-weight: 800; font-size: 19px; line-height: 1.25; text-decoration: none; }
body.ws-theme .woocommerce table.cart td.product-name a:hover { text-decoration: underline; }
body.ws-theme .woocommerce table.cart td.product-subtotal { font-weight: 800; text-align: right; }
body.ws-theme .woocommerce table.cart thead th.product-subtotal { text-align: right; }
body.ws-theme .woocommerce a.remove {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--ws-char); border-radius: 50%;
	color: var(--ws-mist) !important; font-size: 24px; font-weight: 400; line-height: 1; text-decoration: none;
}
body.ws-theme .woocommerce a.remove:hover { border-color: var(--ws-white); background: transparent; color: var(--ws-white) !important; }
body.ws-theme .woocommerce .quantity input.qty { width: 84px; min-height: 48px; padding: 0 8px; border-radius: 999px; font-weight: 800; text-align: center; }
body.ws-theme .woocommerce table.cart td.actions { padding: 24px 0 0; text-align: right; }
body.ws-theme .woocommerce table.cart td.actions .coupon { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; float: left; }
body.ws-theme .woocommerce table.cart td.actions .coupon .button { margin-left: 10px; white-space: nowrap; }
body.ws-theme .woocommerce table.cart td.actions .coupon .input-text { float: none; width: 220px; min-height: 48px; margin: 0; padding: 0 18px; border-radius: 999px; }
body.ws-theme .woocommerce table.cart td.actions .coupon .button { float: none; }
body.ws-theme .woocommerce table.cart td.actions > .button { float: none; }
/* Summary panel */
body.ws-theme .woocommerce .cart-collaterals { position: sticky; top: 112px; }
.admin-bar.ws-theme .woocommerce .cart-collaterals { top: 144px; }
body.ws-theme .woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; padding: clamp(20px, 3vw, 32px); border-radius: var(--ws-radius-l); background: var(--ws-char); }
body.ws-theme .woocommerce .cart-collaterals .cart_totals h2 { font-size: 26px; }
body.ws-theme .woocommerce .cart_totals table.shop_table th { width: 40%; padding-left: 0; color: var(--ws-mist); font-weight: 700; }
body.ws-theme .woocommerce .cart_totals table.shop_table td { padding-right: 0; text-align: right; }
body.ws-theme .woocommerce .cart_totals table.shop_table tr:first-child th, body.ws-theme .woocommerce .cart_totals table.shop_table tr:first-child td { border-top: 0; }
body.ws-theme .woocommerce .cart_totals .order-total th { color: var(--ws-white); }
body.ws-theme .woocommerce .cart_totals .woocommerce-shipping-destination, body.ws-theme .woocommerce .cart_totals .woocommerce-shipping-calculator { color: var(--ws-mist); font-size: 15px; }
body.ws-theme .woocommerce .cart_totals ul#shipping_method { margin: 0; padding: 0; list-style: none; text-align: right; }
body.ws-theme .woocommerce .cart_totals ul#shipping_method li { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 0 6px; }
body.ws-theme .woocommerce .cart_totals .shipping-calculator-button { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; color: var(--ws-white); font-weight: 800; }
body.ws-theme .woocommerce .cart_totals .shipping-calculator-button::after { display: none; }
body.ws-theme .woocommerce .cart_totals .shipping-calculator-form { margin-top: 12px; text-align: left; }
body.ws-theme .woocommerce .wc-proceed-to-checkout { padding: 12px 0 0; }
body.ws-theme .woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; margin: 0; }
body.ws-theme .woocommerce .cart-collaterals .cross-sells { float: none; width: 100%; margin-top: 32px; }
.woocommerce-cart .cart-empty.woocommerce-info { font-size: 19px; }
.woocommerce-cart .return-to-shop .button { min-height: 56px; padding: 0 32px; border-color: var(--ws-red) !important; background: var(--ws-red) !important; font-size: 19px !important; }

/* ---------- Checkout ---------- */
.woocommerce-checkout .ws-woo-page .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 16px; }
body.ws-theme .woocommerce form.checkout_coupon { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 32px; padding: 24px; border: 2px dashed var(--ws-char); border-radius: var(--ws-radius-l); }
body.ws-theme .woocommerce form.checkout_coupon p:not(.form-row) { flex: 1 1 100%; margin: 0; color: var(--ws-mist); }
body.ws-theme .woocommerce form.checkout_coupon .form-row { float: none; width: auto; margin: 0; }
body.ws-theme .woocommerce form.checkout_coupon .form-row-first { flex: 1 1 240px; }
body.ws-theme .woocommerce form.checkout_coupon .input-text { border-radius: 999px; }
body.ws-theme .woocommerce form.checkout_coupon .button { min-height: 52px; }
body.ws-theme form.woocommerce-checkout {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); grid-template-areas: "top top" "details heading" "details review";
	grid-template-rows: auto auto 1fr; gap: 0 clamp(24px, 4vw, 64px); align-items: start;
}
body.ws-theme form.woocommerce-checkout > * { grid-column: 1 / -1; }
body.ws-theme form.woocommerce-checkout > .wcpay-express-checkout-wrapper { grid-area: top; }
body.ws-theme form.woocommerce-checkout > #customer_details { grid-area: details; grid-column: auto; }
body.ws-theme form.woocommerce-checkout > #order_review_heading {
	grid-area: heading; grid-column: auto; margin: 0; padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 8px;
	border-radius: var(--ws-radius-l) var(--ws-radius-l) 0 0; background: var(--ws-char);
}
body.ws-theme form.woocommerce-checkout > #order_review {
	grid-area: review; grid-column: auto; padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
	border-radius: 0 0 var(--ws-radius-l) var(--ws-radius-l); background: var(--ws-char);
}
body.ws-theme .woocommerce .col2-set .col-1, body.ws-theme .woocommerce .col2-set .col-2 { float: none; width: 100%; }
body.ws-theme .woocommerce-checkout #customer_details .col-2 { margin-top: 16px; }
body.ws-theme .woocommerce-checkout #customer_details h3, body.ws-theme .woocommerce-checkout #customer_details h2 { margin: 0 0 20px; }
/* Checkout section headings are h2 (theme templates) but keep the h3 size. */
body.ws-theme .woocommerce h2.ws-checkout-h { font-size: clamp(22px, 2vw, 26px); }
body.ws-theme .woocommerce-checkout #ship-to-different-address { margin: 0 0 16px; font-size: 22px; }
body.ws-theme .woocommerce-checkout #ship-to-different-address label { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; cursor: pointer; }
body.ws-theme .woocommerce-checkout .woocommerce-additional-fields { margin-top: 12px; }
body.ws-theme .woocommerce-checkout-review-order-table th, body.ws-theme .woocommerce-checkout-review-order-table td { padding-left: 0 !important; padding-right: 0 !important; }
body.ws-theme .woocommerce-checkout-review-order-table thead { display: none; }
body.ws-theme .woocommerce-checkout-review-order-table tbody tr:first-child td { border-top: 0; }
body.ws-theme .woocommerce-checkout-review-order-table td.product-total, body.ws-theme .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
body.ws-theme .woocommerce-checkout-review-order-table td.product-name { font-weight: 700; }
body.ws-theme .woocommerce-checkout-review-order-table .product-quantity { color: var(--ws-mist); font-weight: 700; }
body.ws-theme .woocommerce-checkout-review-order-table tfoot th { color: var(--ws-mist); font-weight: 700; }
body.ws-theme .woocommerce-checkout-review-order-table .order-total th { color: var(--ws-white); }
body.ws-theme .woocommerce-checkout-review-order-table #shipping_method { margin: 0; padding: 0; list-style: none; }
body.ws-theme .woocommerce-checkout-review-order-table #shipping_method li { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 0 6px; }
/* Payment */
body.ws-theme .woocommerce-checkout #payment { margin-top: 8px; border-radius: 0; background: transparent; }
body.ws-theme .woocommerce-checkout #payment ul.payment_methods { margin: 0 0 8px; padding: 0; border: 0; }
body.ws-theme .woocommerce-checkout #payment ul.payment_methods li { margin: 0 0 10px; padding: 0; border: 2px solid var(--ws-field-line); border-radius: var(--ws-radius-s); background: var(--ws-ink); line-height: 1.4; }
body.ws-theme .woocommerce-checkout #payment ul.payment_methods li:has(> input:checked) { border-color: var(--ws-white); }
body.ws-theme .woocommerce-checkout #payment ul.payment_methods li > input { margin: 0 0 0 16px; vertical-align: middle; }
body.ws-theme .woocommerce-checkout #payment ul.payment_methods li > label { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; width: calc(100% - 52px); padding: 8px 8px 8px 0; font-weight: 800; cursor: pointer; }
body.ws-theme .woocommerce-checkout #payment ul.payment_methods li img { max-height: 28px; margin: 0 0 0 auto; padding: 3px 6px; border-radius: 6px; background: var(--ws-white); }
body.ws-theme .woocommerce-checkout #payment div.payment_box { margin: 0; padding: 4px 16px 16px; border-radius: 0 0 var(--ws-radius-s) var(--ws-radius-s); background: transparent; color: var(--ws-mist); font-size: 15px; }
body.ws-theme .woocommerce-checkout #payment div.payment_box::before { display: none; }
body.ws-theme .woocommerce-checkout #payment .payment-methods--logos-count { padding: 3px 8px; border-radius: 6px; background: var(--ws-white) !important; color: var(--ws-ink) !important; font-size: 13px; font-weight: 800; }
body.ws-theme .woocommerce-checkout #payment div.payment_box fieldset { margin: 0; padding: 0 !important; border: 0; }
body.ws-theme .woocommerce-checkout #payment div.payment_box .woocommerce-SavedPaymentMethods-saveNew label { color: var(--ws-mist); font-weight: 700; }
body.ws-theme .woocommerce-checkout #payment div.form-row.place-order { margin: 0; padding: 12px 0 0; }
body.ws-theme .woocommerce-checkout #payment .woocommerce-privacy-policy-text, body.ws-theme .woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { color: var(--ws-mist); font-size: 14px; line-height: 1.55; }
body.ws-theme .woocommerce-checkout #payment .woocommerce-privacy-policy-text a { color: var(--ws-white); }
body.ws-theme .woocommerce-checkout #payment #place_order { float: none; display: flex; width: 100%; margin-top: 16px; }
body.ws-theme .woocommerce-checkout .blockUI.blockOverlay { background: rgba(34, 34, 34, 0.7) !important; }
body.ws-theme .wcpay-express-checkout-wrapper:not(:empty) { margin-bottom: 24px; }

/* ---------- Order received / view order ---------- */
body.ws-theme .woocommerce ul.order_details {
	display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none;
}
body.ws-theme .woocommerce ul.order_details::before, body.ws-theme .woocommerce ul.order_details::after { display: none; }
body.ws-theme .woocommerce ul.order_details li {
	float: none; margin: 0; padding: 16px 20px; border: 0; border-radius: var(--ws-radius-s); background: var(--ws-char);
	color: var(--ws-mist); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
body.ws-theme .woocommerce ul.order_details li strong { display: block; margin-top: 6px; color: var(--ws-white); font-size: 18px; letter-spacing: 0; text-transform: none; }
body.ws-theme .woocommerce .woocommerce-thankyou-order-received { font-family: var(--ws-font-display); font-weight: 800; font-size: clamp(24px, 3vw, 34px); color: var(--ws-white); }
body.ws-theme .woocommerce .woocommerce-order-details, body.ws-theme .woocommerce .woocommerce-customer-details { margin-bottom: 32px; }
body.ws-theme .woocommerce .woocommerce-customer-details address {
	padding: 20px 24px; border: 0; border-radius: var(--ws-radius-s); background: var(--ws-char); color: var(--ws-mist); font-style: normal; line-height: 1.6;
}
body.ws-theme .woocommerce .woocommerce-customer-details .col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.ws-theme .woocommerce mark { background: transparent; color: var(--ws-white); font-weight: 800; }

/* ---------- My account ---------- */
.woocommerce-account .ws-woo-page .woocommerce { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.woocommerce-account .ws-woo-page .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-account .ws-woo-page .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account .ws-woo-page .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
body.ws-theme.woocommerce-account .woocommerce-MyAccount-navigation, body.ws-theme.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
body.ws-theme .woocommerce-MyAccount-navigation { position: sticky; top: 112px; padding: 12px; border-radius: var(--ws-radius-l); background: var(--ws-char); }
.admin-bar.ws-theme .woocommerce-MyAccount-navigation { top: 144px; }
body.ws-theme .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
body.ws-theme .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; }
body.ws-theme .woocommerce-MyAccount-navigation li a {
	display: flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; color: var(--ws-white) !important;
	font-weight: 700; text-decoration: none;
}
body.ws-theme .woocommerce-MyAccount-navigation li a:hover { background: rgba(255, 255, 255, 0.08); }
body.ws-theme .woocommerce-MyAccount-navigation li.is-active a { background: var(--ws-white); color: var(--ws-ink) !important; font-weight: 800; }
body.ws-theme .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
body.ws-theme .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--ws-mist) !important; }
body.ws-theme .woocommerce-MyAccount-content { font-size: 17px; line-height: 1.65; color: var(--ws-mist); }
body.ws-theme .woocommerce-MyAccount-content > p:first-child { font-size: clamp(20px, 2vw, 24px); color: var(--ws-white); }
body.ws-theme .woocommerce-MyAccount-content strong { color: var(--ws-white); }
body.ws-theme .woocommerce-MyAccount-content a:not(.button) { color: var(--ws-white); font-weight: 700; }
/* Orders and downloads tables */
body.ws-theme .woocommerce-MyAccount-content table.shop_table { width: 100%; }
body.ws-theme .woocommerce-MyAccount-content table.shop_table td .button { min-height: 40px; margin: 2px 4px 2px 0; padding: 0 16px; font-size: 14px; }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a { font-weight: 800; }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-pagination { display: flex; gap: 10px; }
/* Addresses */
body.ws-theme .woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-Addresses::before, body.ws-theme .woocommerce-MyAccount-content .woocommerce-Addresses::after { display: none; }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-Address { float: none; width: 100%; padding: 24px; border-radius: var(--ws-radius-l); background: var(--ws-char); }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-Address-title::before, body.ws-theme .woocommerce-MyAccount-content .woocommerce-Address-title::after { display: none; }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-Address-title h2 { margin: 0; font-size: 22px; }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-Address-title a.edit { float: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 2px solid var(--ws-grey); border-radius: 999px; font-size: 14px; text-decoration: none; }
body.ws-theme .woocommerce-MyAccount-content .woocommerce-Address-title a.edit:hover { border-color: var(--ws-white); }
body.ws-theme .woocommerce-MyAccount-content address { font-style: normal; line-height: 1.6; }
/* Account forms */
body.ws-theme .woocommerce-MyAccount-content form.edit-account, body.ws-theme .woocommerce-MyAccount-content .woocommerce-address-fields { max-width: 760px; }
body.ws-theme .woocommerce-MyAccount-content fieldset { margin: 24px 0; padding: 24px; border: 2px solid var(--ws-char); border-radius: var(--ws-radius-l); }
body.ws-theme .woocommerce-MyAccount-content fieldset legend { padding: 0 8px; color: var(--ws-white); font-family: var(--ws-font-display); font-weight: 800; font-size: 20px; }
body.ws-theme .woocommerce-MyAccount-content #account_display_name_description { display: block; margin-top: 6px; color: var(--ws-mist); font-size: 14px; }
body.ws-theme .woocommerce-MyAccount-content #account_display_name_description em { font-style: normal; }

/* Login, register, lost password */
.woocommerce-account:not(.logged-in) .ws-woo-page .woocommerce { display: block; max-width: 560px; }
.woocommerce-account:not(.logged-in) .ws-woo-page .woocommerce:has(#customer_login) { max-width: none; }
body.ws-theme .woocommerce form.woocommerce-form-login, body.ws-theme .woocommerce form.woocommerce-form-register,
body.ws-theme .woocommerce form.woocommerce-ResetPassword, body.ws-theme .woocommerce form.lost_reset_password {
	margin: 0 0 24px; padding: clamp(24px, 4vw, 40px); border: 0; border-radius: var(--ws-radius-l); background: var(--ws-char);
}
body.ws-theme .woocommerce #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
body.ws-theme .woocommerce #customer_login::before, body.ws-theme .woocommerce #customer_login::after { display: none; }
body.ws-theme .woocommerce #customer_login .u-column1, body.ws-theme .woocommerce #customer_login .u-column2 { float: none; width: 100%; }
body.ws-theme .woocommerce form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 24px; margin-top: 8px; }
body.ws-theme .woocommerce form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) .woocommerce-form-login__submit { margin-left: auto; }
body.ws-theme .woocommerce form.woocommerce-form-login .woocommerce-form-login__rememberme { margin: 0; }
body.ws-theme .woocommerce form.woocommerce-form-login .woocommerce-form-login__submit { float: none; margin: 0; }
body.ws-theme .woocommerce .lost_password { margin: 16px 0 0; }
body.ws-theme .woocommerce .lost_password a { color: var(--ws-mist) !important; font-weight: 700; }
body.ws-theme .woocommerce form .woocommerce-privacy-policy-text { color: var(--ws-mist); font-size: 14px; }
.woocommerce-account:not(.logged-in) .ws-woo-page .woocommerce > h2 { margin-bottom: 16px; }

/* ---------- Responsive ---------- */
/* The cart needs ~1200px for items and totals side by side; below that the totals sit under the items. */
@media (max-width: 1199px) {
	.woocommerce-cart .ws-woo-page .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-cart .ws-woo-page .woocommerce > .woocommerce-cart-form, .woocommerce-cart .ws-woo-page .woocommerce > .cart-collaterals { grid-column: 1; grid-row: auto; }
	body.ws-theme .woocommerce .cart-collaterals { position: static; }
	body.ws-theme .woocommerce .cart-collaterals .cart_totals { max-width: 480px; margin-left: auto; }
}
@media (max-width: 1024px) {
	.woocommerce-account .ws-woo-page .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-cart .ws-woo-page .woocommerce > .woocommerce-cart-form,
	.woocommerce-cart .ws-woo-page .woocommerce > .cart-collaterals,
	.woocommerce-account .ws-woo-page .woocommerce > .woocommerce-MyAccount-navigation,
	.woocommerce-account .ws-woo-page .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; grid-row: auto; }
	body.ws-theme .woocommerce .cart-collaterals, body.ws-theme .woocommerce-MyAccount-navigation { position: static; }
	body.ws-theme .woocommerce-MyAccount-navigation { padding: 8px; }
	body.ws-theme .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; }
	body.ws-theme .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
	body.ws-theme form.woocommerce-checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "details" "heading" "review"; }
	body.ws-theme form.woocommerce-checkout > #order_review_heading { margin-top: 32px; }
}
@media (max-width: 768px) {
	/* Cart rows become cards (WooCommerce stacks the table cells at this width) */
	body.ws-theme .woocommerce table.shop_table_responsive thead { display: none; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item {
		position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 16px; margin: 0 0 12px; padding: 16px;
		border-radius: var(--ws-radius); background: var(--ws-char);
	}
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border: 0; text-align: left !important; background: transparent !important; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td::before { float: none; color: var(--ws-mist); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-thumbnail { display: block; grid-row: 1 / span 4; width: auto; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-thumbnail::before, body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-name::before { display: none; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-thumbnail img { width: 88px; height: 88px; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-name { grid-column: 2; padding-right: 48px; }
	body.ws-theme .woocommerce .cart-collaterals .cart_totals { max-width: none; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-name a { font-size: 17px; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-price,
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-quantity,
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-subtotal { grid-column: 2; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-remove { position: absolute; top: 12px; right: 12px; width: auto; padding: 0; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-remove::before { display: none; }
	body.ws-theme .woocommerce table.cart tbody tr:not(.cart_item) { display: block; }
	body.ws-theme .woocommerce table.cart td.actions { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 0; border: 0; text-align: left; }
	body.ws-theme .woocommerce table.cart td.actions::before { display: none; }
	body.ws-theme .woocommerce table.cart td.actions .coupon { float: none; width: 100%; padding: 0; }
	body.ws-theme .woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 auto; width: auto; min-width: 0; }
	body.ws-theme .woocommerce table.cart td.actions .coupon .button { padding: 0 18px; }
	body.ws-theme .woocommerce table.cart td.actions > .button { width: 100%; }
	body.ws-theme .woocommerce table.cart tbody, body.ws-theme .woocommerce table.cart { display: block; }
	body.ws-theme .woocommerce .cart_totals table.shop_table_responsive tr { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
	body.ws-theme .woocommerce .cart_totals table.shop_table_responsive tr:first-child { border-top: 0; }
	body.ws-theme .woocommerce .cart_totals table.shop_table_responsive tr th { display: block; border: 0; }
	body.ws-theme .woocommerce .cart_totals table.shop_table_responsive tr td { display: block; border: 0; text-align: right !important; }
	body.ws-theme .woocommerce .cart_totals table.shop_table_responsive tr td::before { display: none; }
	/* Account tables stack */
	body.ws-theme .woocommerce-MyAccount-content table.shop_table_responsive tr { display: block; margin: 0 0 12px; padding: 12px 16px; border-radius: var(--ws-radius-s); background: var(--ws-char); }
	body.ws-theme .woocommerce-MyAccount-content table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: right !important; }
	body.ws-theme .woocommerce-MyAccount-content table.shop_table_responsive tr td:first-child { border-top: 0; }
	body.ws-theme .woocommerce-MyAccount-content table.shop_table_responsive tr td::before { color: var(--ws-mist); font-weight: 800; }
	body.ws-theme .woocommerce-MyAccount-content .woocommerce-Addresses, body.ws-theme .woocommerce #customer_login,
	body.ws-theme .woocommerce .woocommerce-customer-details .col2-set { grid-template-columns: minmax(0, 1fr); }
	body.ws-theme .woocommerce form .form-row-first, body.ws-theme .woocommerce form .form-row-last { float: none; width: 100%; }
}
@media (max-width: 400px) {
	body.ws-theme .woocommerce table.cart tbody tr.cart_item { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; padding: 14px; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td.product-thumbnail img { width: 64px; height: 64px; }
	body.ws-theme .woocommerce table.cart tbody tr.cart_item td::before { font-size: 12px; letter-spacing: 0.04em; }
	body.ws-theme .woocommerce table.cart td.actions .coupon { flex-wrap: wrap; gap: 10px; }
	body.ws-theme .woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 100%; }
	body.ws-theme .woocommerce table.cart td.actions .coupon .button { flex: 1 1 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	body.ws-theme .woocommerce a.button, body.ws-theme .woocommerce button.button { transition: none; }
}
