/**
 * Winco theme: WooCommerce's classic cart, checkout, thank-you and account
 * pages. Loaded on those pages only (inc/commerce.php), after winco.css and
 * WooCommerce's own layout and general sheets (its small-screen sheet is left
 * out there: this file is phone first).
 *
 * Rules:
 * - Phone first (T19): base rules for 360 px, min-width queries upward; fields
 *   at least 48 px tall with 16 px text (no zoom on phones), labels above.
 * - Every selector is scoped to a WooCommerce container. Never a global
 *   button, .button, [type=button], checkbox or .form-row label rule: the
 *   offer engine's order bumps sit inside the checkout's payment area and
 *   must keep their own look (doc 07 §4 row 5).
 * - Notices are restyled, never hidden (doc 07 §4).
 * - Colours from the theme tokens; --winco-pay is the pay-button green
 *   (the live site's green buttons, darkened so white text passes WCAG AA).
 */

.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-account {
	--winco-pay: #15803d;
	--winco-pay-hover: #166534;
	--winco-field: #b9bcc1;
}

/* ---------- Shared: notices, links, fields, buttons ---------- */

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
	background: var(--winco-pale);
	color: var(--winco-ink);
	border-top-color: var(--winco-ink);
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 16px;
}

.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error,
.woocommerce-account .woocommerce-error {
	border-top-color: var(--winco-red);
}

.woocommerce-cart .woocommerce-message a,
.woocommerce-checkout .woocommerce-info a,
.woocommerce-checkout .woocommerce-message a,
.woocommerce-account .woocommerce-info a,
.woocommerce-account .woocommerce-message a {
	color: var(--winco-red);
}

.woocommerce-page .woocommerce-billing-fields .form-row label,
.woocommerce-page .woocommerce-shipping-fields .form-row label,
.woocommerce-page .woocommerce-additional-fields .form-row label,
.woocommerce-page .woocommerce-account-fields .form-row label,
.woocommerce-page .woocommerce-form-login .form-row label,
.woocommerce-page .woocommerce-form-register .form-row label,
.woocommerce-page .woocommerce-ResetPassword .form-row label,
.woocommerce-page .woocommerce-EditAccountForm .form-row label,
.woocommerce-page .woocommerce-address-fields .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--winco-ink);
}

.woocommerce-page .woocommerce-billing-fields .form-row label.checkbox,
.woocommerce-page .woocommerce-shipping-fields .form-row label.checkbox,
.woocommerce-page .woocommerce-account-fields .form-row label.checkbox,
.woocommerce-page .woocommerce-form-login .form-row label.woocommerce-form__label-for-checkbox,
.woocommerce-page #ship-to-different-address label {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 44px;
	font-weight: 400;
	cursor: pointer;
}

.woocommerce-page .woocommerce-billing-fields abbr.required,
.woocommerce-page .woocommerce-shipping-fields abbr.required,
.woocommerce-page .woocommerce-form-login abbr.required,
.woocommerce-page .woocommerce-form-register abbr.required,
.woocommerce-page .woocommerce-EditAccountForm abbr.required,
.woocommerce-page .woocommerce-address-fields abbr.required {
	color: var(--winco-red);
	text-decoration: none;
}

.woocommerce-page .woocommerce-billing-fields .form-row .input-text,
.woocommerce-page .woocommerce-shipping-fields .form-row .input-text,
.woocommerce-page .woocommerce-additional-fields .form-row .input-text,
.woocommerce-page .woocommerce-account-fields .form-row .input-text,
.woocommerce-page .woocommerce-form-login .form-row .input-text,
.woocommerce-page .woocommerce-form-register .form-row .input-text,
.woocommerce-page .woocommerce-ResetPassword .form-row .input-text,
.woocommerce-page .woocommerce-EditAccountForm .form-row .input-text,
.woocommerce-page .woocommerce-address-fields .form-row .input-text,
.woocommerce-page .woocommerce-billing-fields .form-row select,
.woocommerce-page .woocommerce-shipping-fields .form-row select,
.woocommerce-page .woocommerce-address-fields .form-row select,
.woocommerce-page .checkout_coupon .form-row .input-text,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-page .woocommerce-shipping-calculator .form-row .input-text,
.woocommerce-page .woocommerce-shipping-calculator .form-row select {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--winco-field);
	border-radius: 2px;
	background: #fff;
	color: var(--winco-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.woocommerce-page .woocommerce-billing-fields .form-row textarea.input-text,
.woocommerce-page .woocommerce-additional-fields .form-row textarea.input-text {
	min-height: 96px;
}

.woocommerce-page .woocommerce-billing-fields .form-row .input-text:focus,
.woocommerce-page .woocommerce-shipping-fields .form-row .input-text:focus,
.woocommerce-page .woocommerce-additional-fields .form-row .input-text:focus,
.woocommerce-page .woocommerce-account-fields .form-row .input-text:focus,
.woocommerce-page .woocommerce-form-login .form-row .input-text:focus,
.woocommerce-page .woocommerce-form-register .form-row .input-text:focus,
.woocommerce-page .woocommerce-ResetPassword .form-row .input-text:focus,
.woocommerce-page .woocommerce-EditAccountForm .form-row .input-text:focus,
.woocommerce-page .woocommerce-address-fields .form-row .input-text:focus,
.woocommerce-page .checkout_coupon .form-row .input-text:focus,
.woocommerce-cart table.cart td.actions .coupon .input-text:focus {
	border-color: var(--winco-ink);
	outline: 2px solid var(--winco-ink);
	outline-offset: 0;
}

/* WooCommerce's country and state pickers (selectWoo). */
.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-account .select2-container .select2-selection--single {
	height: 48px;
	border: 1px solid var(--winco-field);
	border-radius: 2px;
}

.woocommerce-checkout .woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered,
.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
	padding-top: 0;
	padding-bottom: 0;
	line-height: 46px;
	padding-left: 12px;
	font-size: 16px;
	color: var(--winco-ink);
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow,
.woocommerce-account .select2-container .select2-selection--single .select2-selection__arrow {
	height: 46px;
}

/* Fields one under another on a phone; WooCommerce's half-width pairs from 768px. */
.woocommerce-checkout .woocommerce form .form-row,
.woocommerce-account .woocommerce form .form-row {
	padding: 0;
	margin: 0 0 16px;
}

.woocommerce-checkout .woocommerce form .form-row-first,
.woocommerce-checkout .woocommerce form .form-row-last,
.woocommerce-account .woocommerce form .form-row-first,
.woocommerce-account .woocommerce form .form-row-last {
	float: none;
	width: 100%;
}

.woocommerce-checkout .woocommerce .col2-set .col-1,
.woocommerce-checkout .woocommerce .col2-set .col-2,
.woocommerce-account .woocommerce .col2-set .col-1,
.woocommerce-account .woocommerce .col2-set .col-2 {
	float: none;
	width: 100%;
}

/* Buttons: one look for WooCommerce's own buttons on these pages, named one by one. */
.woocommerce-cart-form td.actions .button,
.woocommerce-page .woocommerce-shipping-calculator .button,
.woocommerce-page .return-to-shop .button,
.woocommerce-page .checkout_coupon .button,
.woocommerce-page .woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-page .woocommerce-form-register .woocommerce-form-register__submit,
.woocommerce-page .woocommerce-ResetPassword .button,
.woocommerce-page .woocommerce-EditAccountForm .button,
.woocommerce-page .woocommerce-address-fields .button,
.woocommerce-page .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-page .woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-page .woocommerce-order-details .order-again .button,
.woocommerce-cart .woocommerce .woocommerce-message .button,
.woocommerce-checkout .woocommerce .woocommerce-message .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid var(--winco-red);
	border-radius: 2px;
	background: var(--winco-red);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.woocommerce-cart-form td.actions .button:hover,
.woocommerce-page .woocommerce-shipping-calculator .button:hover,
.woocommerce-page .return-to-shop .button:hover,
.woocommerce-page .checkout_coupon .button:hover,
.woocommerce-page .woocommerce-form-login .woocommerce-form-login__submit:hover,
.woocommerce-page .woocommerce-form-register .woocommerce-form-register__submit:hover,
.woocommerce-page .woocommerce-ResetPassword .button:hover,
.woocommerce-page .woocommerce-EditAccountForm .button:hover,
.woocommerce-page .woocommerce-address-fields .button:hover,
.woocommerce-page .woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-page .woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-page .woocommerce-order-details .order-again .button:hover {
	background: #b30720;
	border-color: #b30720;
	color: #fff;
}

/* Secondary: update cart, apply coupon. */
.woocommerce-cart-form td.actions .button[name="update_cart"],
.woocommerce-cart-form td.actions .coupon .button,
.woocommerce-page .checkout_coupon .button {
	background: #fff;
	border-color: var(--winco-field);
	color: var(--winco-ink);
}

.woocommerce-cart-form td.actions .button[name="update_cart"]:hover,
.woocommerce-cart-form td.actions .coupon .button:hover,
.woocommerce-page .checkout_coupon .button:hover {
	background: #fff;
	border-color: var(--winco-red);
	color: var(--winco-red);
}

.woocommerce-cart .woocommerce-cart-form td.actions .button:disabled,
.woocommerce-cart .woocommerce-cart-form td.actions .button:disabled[disabled] {
	padding: 12px 22px;
	color: var(--winco-ink);
	opacity: 0.55;
	cursor: not-allowed;
}

/* The two pay buttons: green, full width, big enough for a thumb. */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #payment #place_order {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 14px 20px;
	border: 1px solid var(--winco-pay);
	float: none;
	border-radius: 2px;
	background: var(--winco-pay);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-align: center;
	white-space: normal;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #payment #place_order:hover {
	background: var(--winco-pay-hover);
	border-color: var(--winco-pay-hover);
	color: #fff;
}

/* ---------- Cart ---------- */

.woocommerce-cart table.shop_table.cart {
	width: 100%;
	margin: 0 0 24px;
	border: 0;
	border-top: 1px solid var(--winco-rule);
	border-collapse: collapse;
	border-radius: 0;
}

.woocommerce-cart table.shop_table.cart thead {
	display: none;
}

.woocommerce-cart table.shop_table.cart tbody,
.woocommerce-cart table.shop_table.cart tr.cart_item {
	display: block;
}

/* A phone line: photo | name, price, quantity, line total | remove. */
.woocommerce-cart table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto;
	grid-template-areas:
		"thumb name remove"
		"thumb price price"
		"thumb qty subtotal";
	gap: 4px 12px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--winco-rule);
}

.woocommerce-cart table.shop_table.cart tr.cart_item td {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
	background: none;
}

.woocommerce-cart table.shop_table.cart tr.cart_item td::before {
	content: none;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail {
	grid-area: thumb;
	align-self: start;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: contain;
	background: var(--winco-pale);
}

.woocommerce-cart table.shop_table.cart td.product-name {
	grid-area: name;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.woocommerce-cart table.shop_table.cart td.product-name a {
	color: var(--winco-ink);
	text-decoration: none;
}

.woocommerce-cart table.shop_table.cart td.product-name .variation,
.woocommerce-cart table.shop_table.cart td.product-name .backorder_notification {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 400;
	color: var(--winco-muted);
}

.woocommerce-cart table.shop_table.cart td.product-remove {
	grid-area: remove;
	align-self: start;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 2px;
	color: var(--winco-muted) !important;
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
	background: var(--winco-pale);
	color: var(--winco-red) !important;
}

.woocommerce-cart table.shop_table.cart td.product-price {
	grid-area: price;
	font-size: 14px;
	color: var(--winco-muted);
}

.woocommerce-cart table.shop_table.cart td.product-quantity {
	grid-area: qty;
}

.woocommerce-cart table.shop_table.cart td.product-subtotal {
	grid-area: subtotal;
	font-weight: 600;
	text-align: right;
}

.woocommerce-cart-form .quantity .qty {
	width: 72px;
	min-height: 44px;
	padding: 6px;
	border: 1px solid var(--winco-field);
	border-radius: 2px;
	font: inherit;
	font-size: 16px;
	text-align: center;
}

/* The coupon and update row. */
.woocommerce-cart table.shop_table.cart tr:last-child,
.woocommerce-cart table.shop_table.cart td.actions {
	display: block;
}

.woocommerce-cart table.shop_table.cart td.actions {
	padding: 16px 0 0;
	border: 0;
	text-align: left;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	float: none;
	margin: 0 0 12px;
	padding: 0;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
	float: none;
	flex: 1 1 160px;
	width: auto;
	margin: 0;
}

.woocommerce-cart table.shop_table.cart td.actions .button[name="update_cart"] {
	float: none;
	width: 100%;
}

/* Totals and the pay button. */
.woocommerce-cart .cart-collaterals {
	display: flow-root;
}

.woocommerce-cart .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	padding: 20px 16px;
	background: var(--winco-pale);
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
}

.woocommerce-cart .cart_totals table.shop_table {
	width: 100%;
	margin: 0 0 16px;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
}

.woocommerce-cart .cart_totals table.shop_table tr {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 12px 0;
	border-top: 1px solid var(--winco-rule);
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	font-size: 15px;
	text-align: left;
}

.woocommerce-cart .cart_totals table.shop_table td::before {
	content: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
	width: auto;
	font-weight: 600;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
	font-size: 18px;
}

.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td {
	flex: 1 1 100%;
}

.woocommerce-cart .wc-proceed-to-checkout {
	padding: 0;
}

/* Delivery choices (cart and checkout). */
.woocommerce-cart ul.woocommerce-shipping-methods,
.woocommerce-checkout ul.woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-cart ul.woocommerce-shipping-methods li,
.woocommerce-checkout ul.woocommerce-shipping-methods li {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 44px;
	margin: 0 0 6px;
	padding: 8px 12px;
	border: 1px solid var(--winco-rule);
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}

.woocommerce-cart ul.woocommerce-shipping-methods li:has(input:checked),
.woocommerce-checkout ul.woocommerce-shipping-methods li:has(input:checked) {
	border-color: var(--winco-ink);
}

.woocommerce-cart ul.woocommerce-shipping-methods li label,
.woocommerce-checkout ul.woocommerce-shipping-methods li label {
	cursor: pointer;
}

.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-cart .woocommerce-shipping-calculator {
	font-size: 13px;
	color: var(--winco-muted);
}

.woocommerce-cart .woocommerce-shipping-calculator .shipping-calculator-button {
	color: var(--winco-red);
}

/* WooCommerce's own cross-sells under the cart. */
.woocommerce-cart .cart-collaterals .cross-sells {
	float: none;
	width: 100%;
	margin: 0 0 24px;
}

.woocommerce-cart .cart-collaterals .cross-sells h2 {
	font-size: 20px;
	font-weight: 600;
}

/* The empty cart (WooCommerce's wc-empty-cart-message stays). */
.woocommerce-cart .wc-empty-cart-message .cart-empty {
	margin: 0 0 16px;
	padding: 24px 16px;
	border: 0;
	background: var(--winco-pale);
	font-size: 17px;
	text-align: center;
}

.woocommerce-cart .wc-empty-cart-message .cart-empty::before {
	content: none;
}

.woocommerce-cart .return-to-shop {
	margin: 0;
	text-align: center;
}

/* ---------- Checkout ---------- */

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
	margin-bottom: 12px;
}

.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout form.woocommerce-form-login {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid var(--winco-rule);
	border-radius: 0;
}

.woocommerce-checkout form.checkout_coupon .form-row-first,
.woocommerce-checkout form.checkout_coupon .form-row-last {
	margin-bottom: 8px;
}

.woocommerce-checkout form.checkout {
	display: flow-root;
}

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout h3#order_review_heading {
	margin: 8px 0 16px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.woocommerce-checkout h3#ship-to-different-address {
	font-size: 16px;
}

/* The order review: product | total, readable at 360 px. */
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
	width: 100%;
	margin: 0 0 20px;
	border: 0;
	border-top: 1px solid var(--winco-rule);
	border-collapse: collapse;
	border-radius: 0;
	font-size: 15px;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--winco-rule);
	background: none;
	line-height: 1.45;
	vertical-align: top;
	text-align: left;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
	padding-left: 12px;
	text-align: right;
	white-space: nowrap;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
	white-space: normal;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name .product-quantity {
	font-weight: 600;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
	font-size: 18px;
}

/* Payment methods. */
.woocommerce-checkout #payment {
	border-radius: 0;
	background: var(--winco-pale);
}

.woocommerce-checkout #payment ul.payment_methods {
	padding: 16px;
	border-bottom: 1px solid var(--winco-rule);
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: 6px 0;
	font-size: 15px;
	line-height: 1.5;
}

.woocommerce-checkout #payment ul.payment_methods li > label {
	cursor: pointer;
}

.woocommerce-checkout #payment div.payment_box {
	border-radius: 0;
	background: #fff;
	color: var(--winco-ink);
	font-size: 14px;
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: #fff;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .woocommerce-privacy-policy-text {
	font-size: 13px;
	color: var(--winco-muted);
}

.woocommerce-checkout .woocommerce-privacy-policy-text a,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
	color: var(--winco-red);
}

/* ---------- Thank-you page ---------- */

.woocommerce-checkout .woocommerce-order .woocommerce-thankyou-order-received {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
}

.woocommerce-checkout .woocommerce-order ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0 0 24px;
	padding: 16px;
	background: var(--winco-pale);
	list-style: none;
}

.woocommerce-checkout .woocommerce-order ul.woocommerce-order-overview::before,
.woocommerce-checkout .woocommerce-order ul.woocommerce-order-overview::after {
	content: none;
}

.woocommerce-checkout .woocommerce-order ul.woocommerce-order-overview li {
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--winco-muted);
}

.woocommerce-checkout .woocommerce-order ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 2px;
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--winco-ink);
	overflow-wrap: anywhere;
}

.woocommerce-order-details,
.woocommerce-customer-details {
	margin: 0 0 28px;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2,
.woocommerce-order h2.wc-bacs-bank-details-heading {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
}

.woocommerce-order-details table.shop_table,
.woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border: 0;
	border-top: 1px solid var(--winco-rule);
	border-collapse: collapse;
	border-radius: 0;
	font-size: 15px;
}

.woocommerce-order-details table.shop_table th,
.woocommerce-order-details table.shop_table td,
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
	padding: 12px 8px 12px 0;
	border: 0;
	border-bottom: 1px solid var(--winco-rule);
	background: none;
	line-height: 1.45;
	vertical-align: top;
	text-align: left;
}

.woocommerce-order-details table.shop_table a {
	color: var(--winco-ink);
}

.woocommerce-customer-details address {
	padding: 16px;
	border: 1px solid var(--winco-rule);
	border-radius: 0;
	font-style: normal;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* ---------- Account ---------- */

.woocommerce-account .woocommerce h2 {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 600;
}

.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register,
.woocommerce-account form.woocommerce-ResetPassword {
	margin: 0 0 28px;
	padding: 20px 16px;
	border: 1px solid var(--winco-rule);
	border-radius: 0;
}

.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit {
	width: 100%;
	margin: 8px 0 0;
}

.woocommerce-account .woocommerce-LostPassword a {
	color: var(--winco-red);
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	width: 100%;
	margin: 0 0 24px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--winco-rule);
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	border-bottom: 1px solid var(--winco-rule);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 4px;
	color: var(--winco-ink);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	color: var(--winco-red);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	font-size: 16px;
}

.woocommerce-account .woocommerce-MyAccount-content a {
	color: var(--winco-red);
}

/* ---------- From 768 px ---------- */

@media (min-width: 768px) {
	.woocommerce-checkout .woocommerce form .form-row-first,
	.woocommerce-account .woocommerce form .form-row-first {
		float: left;
		width: 48%;
	}

	.woocommerce-checkout .woocommerce form .form-row-last,
	.woocommerce-account .woocommerce form .form-row-last {
		float: right;
		width: 48%;
	}

	.woocommerce-checkout .woocommerce form .form-row-wide,
	.woocommerce-account .woocommerce form .form-row-wide {
		clear: both;
	}

	/* The cart as a table again. */
	.woocommerce-cart table.shop_table.cart {
		display: table;
	}

	.woocommerce-cart table.shop_table.cart thead {
		display: table-header-group;
	}

	.woocommerce-cart table.shop_table.cart tbody {
		display: table-row-group;
	}

	.woocommerce-cart table.shop_table.cart tr,
	.woocommerce-cart table.shop_table.cart tr.cart_item,
	.woocommerce-cart table.shop_table.cart tr:last-child {
		display: table-row;
	}

	.woocommerce-cart table.shop_table.cart th,
	.woocommerce-cart table.shop_table.cart tr.cart_item td,
	.woocommerce-cart table.shop_table.cart td.actions {
		display: table-cell;
		padding: 16px 12px;
		border-bottom: 1px solid var(--winco-rule);
		vertical-align: middle;
	}

	.woocommerce-cart table.shop_table.cart th {
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--winco-muted);
		text-align: left;
	}

	.woocommerce-cart table.shop_table.cart th.product-subtotal,
	.woocommerce-cart table.shop_table.cart td.product-subtotal {
		text-align: right;
	}

	.woocommerce-cart table.shop_table.cart td.product-remove {
		width: 56px;
		padding-left: 0;
	}

	.woocommerce-cart table.shop_table.cart td.product-thumbnail {
		width: 112px;
	}

	.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
		width: 96px;
		height: 96px;
	}

	.woocommerce-cart table.shop_table.cart td.product-price {
		font-size: 15px;
		color: var(--winco-ink);
	}

	.woocommerce-cart table.shop_table.cart td.actions {
		padding: 16px 0;
		border-bottom: 0;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon {
		float: left;
		margin: 0;
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
		width: 220px;
		flex: 0 0 220px;
	}

	.woocommerce-cart table.shop_table.cart td.actions .button[name="update_cart"] {
		float: right;
		width: auto;
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		float: right;
		width: 420px;
		max-width: 100%;
		padding: 24px;
	}

	.woocommerce-cart .cart-collaterals .cross-sells {
		float: left;
		width: calc(100% - 460px);
	}

	.woocommerce-checkout .woocommerce-order ul.woocommerce-order-overview {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}

	.woocommerce-account form.woocommerce-form-login,
	.woocommerce-account form.woocommerce-form-register,
	.woocommerce-account form.woocommerce-ResetPassword {
		padding: 28px;
	}

	.woocommerce-account .woocommerce:has(> .woocommerce-form-login) {
		max-width: 520px;
	}

	.woocommerce-account .woocommerce .u-columns.col2-set .u-column1,
	.woocommerce-account .woocommerce .u-columns.col2-set .u-column2 {
		float: left;
		width: 48%;
	}

	.woocommerce-account .woocommerce .u-columns.col2-set .u-column2 {
		float: right;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		float: left;
		width: 220px;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		float: right;
		width: calc(100% - 260px);
	}
}

/* ---------- From 1024 px: the checkout in two columns ---------- */

@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout > #customer_details {
		float: left;
		width: 55%;
	}

	.woocommerce-checkout form.checkout > #customer_details ~ * {
		float: right;
		clear: right;
		width: 40%;
	}

	.woocommerce-checkout .woocommerce-order-details,
	.woocommerce-checkout .woocommerce-customer-details {
		max-width: 860px;
	}
}

/* Brief 124 (go-live log 13 Nov, finding 2): on phones the WhatsApp button (the Click to Chat plugin, fixed at the
   bottom right) sat over a cart line's price. Below 768 px it steps aside on the cart page, as over the open drawer;
   WhatsApp stays in the footer. Hidden, not removed: nothing moves (CLS 0). The body class winco-cart-no-chat comes from
   inc/commerce.php while the setting winco_cart_chat_phone is off; .woocommerce-cart is WooCommerce's own body class of
   the cart page (every selector here starts at a WooCommerce class). A bounded range, phone first (T19). */
@media (min-width: 1px) and (max-width: 767px) {
	.woocommerce-cart.winco-cart-no-chat .ht-ctc {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}
}
