/* GT Merch – cart + checkout (same palette as the product page). Scoped to body.gtm-store. */
body.gtm-store {
	--gtm-ink: #12303a;
	--gtm-teal: #1f8a78;
	--gtm-teal-d: #146b5d;
	--gtm-teal-soft: #dcf1ec;
	--gtm-sun: #fcc55e;
	--gtm-coral: #f7845c;
	--gtm-coral-d: #d4553a;
	--gtm-cream: #fff7ea;
	--gtm-line: #f0dcc0;
	--gtm-muted: #5c6e72;
}

/* ---------- shared form controls ---------- */
.gtm-store .woocommerce form .form-row { margin: 0; padding: 0; }
.gtm-store .woocommerce form .form-row input.input-text,
.gtm-store .woocommerce form .form-row select,
.gtm-store .woocommerce .cart .coupon input.input-text,
.gtm-store .woocommerce form.checkout_coupon input.input-text {
	height: 50px; padding: 0 14px; font-size: 16px; color: var(--gtm-ink); background: #fff;
	border: 2px solid var(--gtm-line); border-radius: 12px; box-shadow: none; width: 100%; box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.gtm-store .woocommerce form .form-row input.input-text:focus,
.gtm-store .woocommerce form .form-row select:focus { border-color: var(--gtm-ink); box-shadow: 0 0 0 3px var(--gtm-teal-soft); outline: 0; }
.gtm-store .woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--gtm-coral-d); }
.gtm-store .woocommerce form .form-row ::placeholder { color: #8a9699; opacity: 1; }
.gtm-store .select2-container .select2-selection--single {
	height: 50px; border: 2px solid var(--gtm-line); border-radius: 12px; background: #fff;
}
.gtm-store .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding: 0 30px 0 14px; margin: 0; color: var(--gtm-ink); font-size: 16px; }
.gtm-store .select2-container .select2-selection--single .select2-selection__placeholder { color: #8a9699; }
.gtm-store .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.gtm-store .select2-container--open .select2-selection--single { border-color: var(--gtm-ink); }
.gtm-store .select2-dropdown { border: 2px solid var(--gtm-ink); border-radius: 12px; overflow: hidden; }

.gtm-store .gtm-co-h { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--gtm-ink); line-height: 1.3; }

/* ---------- checkout layout ---------- */
.gtm-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.gtm-checkout .woocommerce-info {
	background: var(--gtm-cream); border: 2px solid var(--gtm-line); border-radius: 12px; color: var(--gtm-ink); padding: 12px 16px 12px 52px; font-size: 14px;
}
.gtm-checkout form.checkout_coupon { border: 2px solid var(--gtm-line); border-radius: 12px; padding: 14px; margin: 0 0 20px; }

.gtm-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); grid-template-rows: auto auto 1fr; column-gap: 48px; row-gap: 0; align-items: start; }
.gtm-checkout form.checkout > * { min-width: 0; }
/* error box (WooCommerce puts it at the start of the form): first row, full width – never at the bottom */
.gtm-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; margin: 0 0 20px; }
.gtm-checkout #customer_details { grid-column: 1; grid-row: 2; margin-bottom: 26px; }
.gtm-checkout .gtm-co-pay { grid-column: 1; grid-row: 3; }
.gtm-checkout .gtm-co-side { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 24px; display: grid; gap: 16px; }
.gtm-checkout #customer_details.col2-set .col-1,
.gtm-checkout #customer_details.col2-set .col-2 { float: none; width: 100%; }
.gtm-checkout #customer_details .col-2:not(:has(input, select, textarea)) { display: none; }
.gtm-checkout .woocommerce-billing-fields > h3:not(.gtm-co-h) { display: none; }
.gtm-checkout #order_review_heading { display: none; }

.gtm-checkout .woocommerce-billing-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 12px; }
.gtm-checkout .woocommerce-billing-fields__field-wrapper > .form-row { float: none !important; width: auto !important; flex: 1 1 100%; margin: 0 !important; }
.gtm-checkout .woocommerce-billing-fields__field-wrapper > .gtm-f--state,
.gtm-checkout .woocommerce-billing-fields__field-wrapper > .gtm-f--zip { flex: 1 1 calc(50% - 6px); }
.gtm-checkout .woocommerce-billing-fields__field-wrapper > .gtm-f--addr { flex: 1 1 calc(64% - 6px); }
.gtm-checkout .woocommerce-billing-fields__field-wrapper > .gtm-f--apt { flex: 1 1 calc(36% - 6px); }
.gtm-checkout .woocommerce-billing-fields__field-wrapper > .gtm-f--zip.gtm-f--full { flex-basis: 100%; }
/* labels stay for screen readers; placeholders show the field names */
.gtm-checkout .gtm-f > label {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gtm-checkout .woocommerce-billing-fields__field-wrapper > .gtm-f--country:not(.is-open) { display: none !important; }
.gtm-checkout .gtm-country-line { flex: 1 1 100%; margin: 2px 0 0; font-size: 15px; color: var(--gtm-ink); }
.gtm-checkout .gtm-country-line a { color: var(--gtm-teal-d); font-weight: 700; }

/* payment */
.gtm-checkout .gtm-co-pay #payment { background: transparent; border-radius: 0; }
.gtm-checkout #payment ul.payment_methods { padding: 0; margin: 0 0 16px; border: 0; }
.gtm-checkout #payment ul.payment_methods > li {
	list-style: none; margin: 0 0 10px; padding: 14px 16px; background: #fff; border: 2px solid var(--gtm-line); border-radius: 14px; line-height: 1.4;
}
.gtm-checkout #payment ul.payment_methods > li:has(input:checked) { border-color: var(--gtm-ink); box-shadow: 0 3px 0 var(--gtm-ink); }
.gtm-checkout #payment ul.payment_methods > li > label { font-weight: 700; color: var(--gtm-ink); }
.gtm-checkout #payment ul.payment_methods li img { max-height: 24px; vertical-align: middle; margin-left: 6px; }
.gtm-checkout #payment div.payment_box { margin: 12px 0 0; padding: 12px; background: var(--gtm-cream); border-radius: 10px; color: var(--gtm-ink); font-size: 14px; }
.gtm-checkout #payment div.payment_box::before { display: none; }
.gtm-checkout #payment div.form-row.place-order { padding: 0; margin: 0; }
.gtm-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--gtm-muted); margin: 0 0 14px; }
.gtm-checkout .woocommerce-privacy-policy-text p { margin: 0 0 12px; }
body.gtm-checkout #payment #place_order,
body.gtm-checkout button.gtm-co-place {
	float: none; width: 100%; height: 56px; margin: 0; padding: 0 20px;
	font-size: 17px; font-weight: 800; letter-spacing: 0; text-transform: none; line-height: 1;
	color: var(--gtm-ink); background: var(--gtm-coral); border: 2px solid var(--gtm-ink); border-radius: 14px; box-shadow: 0 4px 0 var(--gtm-ink);
	transition: transform .1s, box-shadow .1s, background .15s;
}
body.gtm-checkout #payment #place_order:hover { background: #ff9672; transform: translateY(1px); box-shadow: 0 3px 0 var(--gtm-ink); }
body.gtm-checkout #payment #place_order:active { transform: translateY(4px); box-shadow: none; }
.gtm-checkout .gtm-co-secure { margin: 12px 0 0; font-size: 13px; color: var(--gtm-muted); text-align: center; }
.gtm-checkout .gtm-co-secure::before { content: "🔒 "; }

/* summary card */
.gtm-co-sum { background: #fff; border: 2px solid var(--gtm-line); border-radius: 16px; overflow: hidden; }
.gtm-co-sum__toggle {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 18px;
	background: #fff; color: var(--gtm-ink); border: 0; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: 0;
	font: inherit; font-size: 18px; font-weight: 800; cursor: default; text-align: left;
}
.gtm-co-sum__toggle:hover, .gtm-co-sum__toggle:focus { background: #fff; color: var(--gtm-ink); }
.gtm-co-sum__label { display: inline-flex; align-items: center; gap: 10px; }
.gtm-co-sum__label i { display: none; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.gtm-co-sum.is-open .gtm-co-sum__label i { transform: rotate(-135deg) translate(-2px, -2px); }
.gtm-co-sum__total { font-size: 16px; font-weight: 800; color: var(--gtm-coral-d); }
.gtm-co-sum__total small, .gtm-co-sum__total .includes_tax { display: none; }
.gtm-co-sum__ship { margin: 0; padding: 10px 18px; background: var(--gtm-cream); border-top: 2px solid var(--gtm-line); border-bottom: 2px solid var(--gtm-line); font-size: 14px; color: var(--gtm-ink); }
.gtm-co-sum #order_review { padding: 6px 18px 14px; }
.gtm-co-sum table.shop_table { border: 0; margin: 0; border-radius: 0; }
.gtm-co-sum table.shop_table thead { display: none; }
.gtm-co-sum table.shop_table td, .gtm-co-sum table.shop_table th { border: 0; padding: 9px 0; background: transparent; vertical-align: middle; color: var(--gtm-ink); font-weight: 400; }
.gtm-co-sum table.shop_table tbody tr + tr td { border-top: 1px dashed var(--gtm-line); }
.gtm-co-sum table.shop_table td.product-total, .gtm-co-sum table.shop_table tfoot td { text-align: right; white-space: nowrap; }
.gtm-co-sum table.shop_table tfoot tr th { font-weight: 400; color: var(--gtm-muted); }
.gtm-co-sum table.shop_table tfoot tr:first-child th, .gtm-co-sum table.shop_table tfoot tr:first-child td { border-top: 2px solid var(--gtm-line); padding-top: 14px; }
.gtm-co-sum table.shop_table tr.order-total th, .gtm-co-sum table.shop_table tr.order-total td { border-top: 2px solid var(--gtm-line); padding-top: 14px; font-size: 18px; font-weight: 800; color: var(--gtm-ink); }
.gtm-co-sum table.shop_table tr.order-total .includes_tax { display: block; font-size: 12px; font-weight: 400; color: var(--gtm-muted); }
.gtm-co-sum table.shop_table ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.gtm-co-sum table.shop_table ul#shipping_method li { margin: 0; text-align: right; }
.gtm-co-sum table.shop_table tr.woocommerce-shipping-totals td { white-space: normal; font-size: 14px; }
.gtm-co-sum table.shop_table tr.woocommerce-shipping-totals th { white-space: normal; vertical-align: top; }
.gtm-co-sum small.tax_label, .gtm-cart small.tax_label { display: none; }
.gtm-co-sum table.shop_table { width: 100%; table-layout: auto; }
.gtm-co-sum table.shop_table tfoot th { width: 42%; text-align: left; }
.gtm-co-sum table.shop_table tr.woocommerce-shipping-totals td { text-align: right; }
.gtm-co-sum table.shop_table td.product-total { width: 1%; padding-left: 12px; }
.gtm-co-item { display: flex; align-items: center; gap: 12px; }
.gtm-co-pic { position: relative; flex: 0 0 56px; }
.gtm-co-pic img.gtm-co-thumb { display: block; width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 10px; border: 2px solid var(--gtm-line); margin: 0 !important; }
.gtm-co-qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gtm-ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; box-sizing: border-box; }
.gtm-co-name { font-weight: 700; font-size: 14px; line-height: 1.35; }
.gtm-co-sum .product-quantity { display: none; }
.gtm-co-sum dl.variation { margin: 2px 0 0; font-size: 12px; font-weight: 400; color: var(--gtm-muted); }
.gtm-co-sum dl.variation dt, .gtm-co-sum dl.variation dd, .gtm-co-sum dl.variation p { display: inline; margin: 0; padding: 0; float: none; }

@media (max-width: 860px) {
	.gtm-checkout form.checkout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
	.gtm-checkout .gtm-co-side { grid-column: 1; grid-row: 2; position: static; margin-bottom: 20px; }
	.gtm-checkout #customer_details { grid-row: 3; margin-bottom: 20px; }
	.gtm-checkout .gtm-co-pay { grid-row: 4; }
	.gtm-co-sum__toggle { cursor: pointer; font-size: 16px; }
	.gtm-co-sum__label i { display: inline-block; }
	.gtm-co-sum__body { display: none; }
	.gtm-co-sum.is-open .gtm-co-sum__body { display: block; }
	.gtm-co-sum__ship { border-bottom: 0; }
}

/* ---------- cart ---------- */
.gtm-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr); column-gap: 40px; row-gap: 16px; align-items: start; }
.gtm-cart .woocommerce > .woocommerce-notices-wrapper, .gtm-cart .woocommerce > .wc-empty-cart-message, .gtm-cart .woocommerce > .return-to-shop, .gtm-cart .woocommerce > .cart-empty { grid-column: 1 / -1; }
.gtm-cart .woocommerce-cart-form { grid-column: 1; }
.gtm-cart .cart-collaterals { grid-column: 2; width: 100%; position: sticky; top: 24px; }
.gtm-cart .cart-collaterals .cross-sells { display: none; }
.gtm-cart .cart-collaterals .cart_totals { float: none; width: 100%; background: #fff; border: 2px solid var(--gtm-line); border-radius: 16px; padding: 16px 18px; box-sizing: border-box; }
.gtm-cart .cart_totals h2 { font-size: 18px; font-weight: 800; color: var(--gtm-ink); margin: 0 0 8px; }
.gtm-cart .cart_totals table.shop_table { border: 0; margin: 0 0 14px; }
.gtm-cart .cart_totals table.shop_table th, .gtm-cart .cart_totals table.shop_table td { border: 0; border-top: 1px dashed var(--gtm-line); padding: 10px 0; background: transparent; color: var(--gtm-ink); }
.gtm-cart .cart_totals table.shop_table th { font-weight: 400; color: var(--gtm-muted); width: 40%; }
.gtm-cart .cart_totals table.shop_table td { text-align: right; }
.gtm-cart .cart_totals tr.order-total th, .gtm-cart .cart_totals tr.order-total td { border-top: 2px solid var(--gtm-line); font-size: 18px; font-weight: 800; color: var(--gtm-ink); }
.gtm-cart .cart_totals tr.order-total .includes_tax { display: block; font-size: 12px; font-weight: 400; color: var(--gtm-muted); }
.gtm-cart .cart_totals ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.gtm-cart .woocommerce-shipping-destination, .gtm-cart .shipping-calculator-button { font-size: 13px; color: var(--gtm-muted); }
.gtm-cart .wc-proceed-to-checkout { padding: 0; }
body.gtm-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex; align-items: center; justify-content: center; height: 56px; margin: 0; padding: 0 18px;
	font-size: 17px; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--gtm-ink);
	background: var(--gtm-coral); border: 2px solid var(--gtm-ink); border-radius: 14px; box-shadow: 0 4px 0 var(--gtm-ink);
}
body.gtm-cart .wc-proceed-to-checkout a.checkout-button:hover { background: #ff9672; color: var(--gtm-ink); transform: translateY(1px); box-shadow: 0 3px 0 var(--gtm-ink); }

.gtm-cart table.shop_table.cart { border: 0; margin: 0; border-collapse: separate; border-spacing: 0; }
.gtm-cart table.shop_table.cart thead { display: none; }
.gtm-cart table.shop_table.cart tbody { display: flex; flex-direction: column; gap: 12px; }
.gtm-cart table.shop_table.cart tr.cart_item {
	display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "pic name rm" "pic qty sub";
	column-gap: 14px; row-gap: 8px; align-items: center; padding: 14px; background: #fff; border: 2px solid var(--gtm-line); border-radius: 16px;
}
.gtm-cart table.shop_table.cart tr.cart_item td { display: block; border: 0; padding: 0; background: transparent; text-align: left; }
.gtm-cart table.shop_table.cart tr.cart_item td::before { display: none !important; }
.gtm-cart td.product-thumbnail { grid-area: pic; }
.gtm-cart td.product-thumbnail img { width: 84px !important; height: 84px; object-fit: cover; border-radius: 12px; border: 2px solid var(--gtm-line); display: block; }
.gtm-cart td.product-name { grid-area: name; font-weight: 700; color: var(--gtm-ink); line-height: 1.35; }
.gtm-cart td.product-name a { color: var(--gtm-ink); text-decoration: none; }
.gtm-cart td.product-name dl.variation { margin: 4px 0 0; font-size: 13px; font-weight: 400; color: var(--gtm-muted); }
.gtm-cart td.product-name dl.variation dt, .gtm-cart td.product-name dl.variation dd, .gtm-cart td.product-name dl.variation p { display: inline; margin: 0; float: none; }
.gtm-cart td.product-price { display: none !important; }
.gtm-cart td.product-quantity { grid-area: qty; }
.gtm-cart td.product-subtotal { grid-area: sub; text-align: right !important; font-weight: 800; color: var(--gtm-ink); font-size: 16px; }
.gtm-cart td.product-remove { grid-area: rm; justify-self: end; }
.gtm-cart td.product-remove a.remove {
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
	font-size: 20px; color: var(--gtm-muted) !important; border: 2px solid var(--gtm-line); background: #fff;
}
.gtm-cart td.product-remove a.remove:hover { color: #fff !important; background: var(--gtm-coral-d); border-color: var(--gtm-coral-d); }
.gtm-cart table.shop_table.cart tr:not(.cart_item) { display: block; }
.gtm-cart table.shop_table.cart td.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0 0; border: 0; background: transparent; }
.gtm-cart td.actions .coupon { display: flex; gap: 8px; flex: 1 1 260px; float: none; }
.gtm-cart td.actions .coupon label { display: none; }
.gtm-cart td.actions .coupon input.input-text { width: auto; flex: 1 1 auto; height: 46px; margin: 0; }
.gtm-cart td.actions .coupon .button { height: 44px; border-radius: 12px; background: #fff; color: var(--gtm-ink); border: 2px solid var(--gtm-ink); font-weight: 700; text-transform: none; padding: 0 16px; }
.gtm-cart td.actions > button[name="update_cart"], .gtm-cart table.shop_table.cart td.actions > .button[name="update_cart"] { display: none !important; }
.gtm-cart td.actions .coupon .button { white-space: nowrap; flex: 0 0 auto; }
.gtm-cart td.actions .coupon input.input-text { min-width: 0; }

/* quantity stepper (cart) */
.gtm-store .gtm-qty { display: inline-flex; align-items: stretch; height: 40px; border: 2px solid var(--gtm-ink); border-radius: 12px; background: #fff; overflow: hidden; }
.gtm-store .gtm-qty button { width: 34px; padding: 0; margin: 0; border: 0; border-radius: 0; background: #fff; color: var(--gtm-ink); font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: none; }
.gtm-store .gtm-qty button:hover { background: var(--gtm-cream); color: var(--gtm-ink); }
.gtm-store .gtm-qty input.qty { width: 38px !important; height: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0; text-align: center; font-size: 15px; font-weight: 700; color: var(--gtm-ink); background: #fff; -moz-appearance: textfield; box-shadow: none; }
.gtm-store .gtm-qty input.qty::-webkit-outer-spin-button, .gtm-store .gtm-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 860px) {
	.gtm-cart .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.gtm-cart .cart-collaterals { grid-column: 1; position: static; }
	.gtm-cart table.shop_table.cart tr.cart_item { grid-template-columns: 68px minmax(0, 1fr) auto; padding: 12px; }
	.gtm-cart td.product-thumbnail img { width: 68px !important; height: 68px; }
}
/* beat WooCommerce's small-screen table rules */
.gtm-cart table.shop_table.cart tr.cart_item td.product-thumbnail { display: block !important; }
.gtm-cart table.shop_table.cart tr.cart_item td.product-name, .gtm-cart table.shop_table.cart tr.cart_item td.product-quantity { text-align: left !important; }
.gtm-cart table.shop_table_responsive tr:nth-child(2n) td { background: transparent; }

/* long tax / shipping notes must wrap instead of widening the summary */
.gtm-co-sum table.shop_table tfoot td, .gtm-cart .cart_totals table.shop_table td { white-space: normal; overflow-wrap: anywhere; }
.gtm-co-sum .woocommerce-Price-amount, .gtm-cart .cart_totals .woocommerce-Price-amount { white-space: nowrap; }
.gtm-co-sum .includes_tax, .gtm-cart .cart_totals .includes_tax { display: block; white-space: normal; font-size: 12px; font-weight: 400; color: var(--gtm-muted); }
.gtm-co-sum table.shop_table td.product-name { overflow-wrap: break-word; }
.gtm-checkout .woocommerce-billing-fields__field-wrapper > .form-row { min-width: 0; }
.gtm-checkout .woocommerce-billing-fields__field-wrapper select, .gtm-checkout .woocommerce-billing-fields__field-wrapper .select2-container { width: 100% !important; max-width: 100%; }
@media (max-width: 860px) { .gtm-co-sum table.shop_table tfoot th { width: auto; padding-right: 12px; } }

/* ---------- 0.7.1 ---------- */
/* page titles (Cart / Checkout) in the store style, with air below */
.gtm-cart .entry-header, .gtm-checkout .entry-header { margin-bottom: 22px; }
.gtm-cart .entry-title, .gtm-checkout .entry-title { color: var(--gtm-ink); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-top: 0; margin-bottom: 0; }
.gtm-checkout .gtm-f--hidden, .gtm-checkout #billing_first_name_field, .gtm-checkout #billing_last_name_field { display: none !important; }

/* checkout coupon form: field + button on one line */
.gtm-checkout form.checkout_coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gtm-checkout form.checkout_coupon > p:not(.form-row) { flex: 1 1 100%; margin: 0; font-size: 14px; color: var(--gtm-muted); }
.gtm-checkout form.checkout_coupon .form-row { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.gtm-checkout form.checkout_coupon .form-row-first { flex: 1 1 120px; min-width: 0; }
.gtm-checkout form.checkout_coupon .form-row-last { flex: 0 0 auto; }
.gtm-checkout form.checkout_coupon input.input-text { height: 46px; }
.gtm-checkout form.checkout_coupon .clear { display: none; }
.gtm-store form.checkout_coupon .button, .gtm-cart td.actions .coupon .button {
	height: 46px; margin: 0; padding: 0 18px; border-radius: 12px; background: #fff; color: var(--gtm-ink); border: 2px solid var(--gtm-ink);
	box-shadow: 0 3px 0 var(--gtm-ink); font-weight: 700; font-size: 15px; text-transform: none; line-height: 1; white-space: nowrap; cursor: pointer;
}
.gtm-store form.checkout_coupon .button:hover, .gtm-cart td.actions .coupon .button:hover { background: var(--gtm-cream); color: var(--gtm-ink); }

/* shipping line: amount, then "Standard · 2–7 business days" */
.gtm-store tr.woocommerce-shipping-totals th { vertical-align: top; }
.gtm-store tr.woocommerce-shipping-totals td { text-align: right; }
.gtm-shipl { display: block; text-align: right; }
.gtm-shipl__amt { display: block; font-weight: 700; color: var(--gtm-ink); white-space: nowrap; }
.gtm-shipl__eta { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; font-weight: 400; color: var(--gtm-muted); white-space: normal; }
.gtm-co-sum table.shop_table tfoot th { width: auto; }
.gtm-cart .woocommerce-shipping-destination, .gtm-cart .woocommerce-shipping-calculator { display: none; }

/* cart: checkout button and PayPal buttons don't touch */
.gtm-cart .wc-proceed-to-checkout { display: flex; flex-direction: column; gap: 12px; padding-bottom: 0; }
.gtm-cart .wc-proceed-to-checkout a.checkout-button { margin: 0 !important; }
.gtm-cart .wc-proceed-to-checkout > *:not(a) { margin-top: 0 !important; }

/* error notices (WooCommerce + PayPal) stay readable in the store layout */
.gtm-store ul.woocommerce-error { margin: 0 0 18px; padding: 12px 16px 12px 44px; border: 2px solid #f3b6a6; border-radius: 12px; background: #fff3ef; color: #8a2d18; list-style: none; position: relative; }
.gtm-store ul.woocommerce-error::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--gtm-coral-d); color: #fff; font: 700 13px/20px system-ui, sans-serif; text-align: center; }
.gtm-store ul.woocommerce-error li { margin: 0; padding: 2px 0; }
.gtm-store .coupon input.input-text, .gtm-store form.checkout_coupon input.input-text { border: 2px solid var(--gtm-line) !important; border-radius: 12px !important; background: #fff !important; padding: 0 14px !important; box-shadow: none !important; }
.gtm-co-sum .gtm-shipl__eta { white-space: nowrap; }

/* headings "Shipping address" / "Payment" */
.gtm-checkout .gtm-co-h { margin: 0 0 14px; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--gtm-ink); }
/* PayPal button area full width of the column; inline card form gets room */
.gtm-checkout #ppc-button-ppcp-gateway, .gtm-checkout [id^="ppc-button-ppcp"], .gtm-checkout .ppc-button-wrapper { width: 100%; max-width: none !important; }
.gtm-checkout #ppc-button-ppcp-card-button-gateway iframe, .gtm-checkout [id^="ppc-button-"] iframe { max-width: 100% !important; }
/* PayPal shows its own buttons for PayPal / card: our styled "Place order" must stay hidden then */
body.gtm-checkout #payment #place_order.ppcp-hidden, body.gtm-checkout #payment #place_order.gtm-hide,
body.gtm-checkout.gtm-pp-own #payment #place_order, body.gtm-pp-own #place_order { display: none !important; }
.gtm-checkout #payment .ppc-button-wrapper, .gtm-checkout #payment [id^="ppc-button-"] { margin-top: 0; }
.gtm-checkout #payment [id^="ppc-button-"] + [id^="ppc-button-"] { margin-top: 10px; }

/* ---------- checkout upsell ---------- */
.gtm-upsell[hidden] { display: none !important; }
.gtm-upsell { background: var(--gtm-cream); border: 2px dashed var(--gtm-line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; }
.gtm-upsell__h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; font-size: 15px; color: var(--gtm-ink); }
.gtm-upsell__h b { font-weight: 800; }
.gtm-upsell__h span { font-size: 12.5px; color: var(--gtm-teal-d); font-weight: 600; }
.gtm-upsell__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--gtm-line); border-radius: 14px; padding: 8px 10px 8px 8px; }
.gtm-upsell__pic { display: block; line-height: 0; border: 0; box-shadow: none; }
.gtm-upsell__pic img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; margin: 0; }
.gtm-upsell__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gtm-upsell__name { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--gtm-ink); text-decoration: none; box-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtm-upsell__name:hover { color: var(--gtm-coral-d); }
.gtm-upsell__meta { font-size: 13px; color: var(--gtm-muted); }
.gtm-upsell__meta .amount { color: var(--gtm-coral-d); font-weight: 800; }
.gtm-upsell__add {
	height: 38px; min-width: 76px; margin: 0; padding: 0 14px; border-radius: 10px; border: 2px solid var(--gtm-ink); background: #fff; color: var(--gtm-ink);
	font-size: 14px; font-weight: 800; line-height: 1; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: 0 3px 0 var(--gtm-ink); transition: transform .1s, box-shadow .1s, background .15s;
}
.gtm-upsell__add span::before { content: "+ "; }
.gtm-upsell__add:hover, .gtm-upsell__add:focus { background: var(--gtm-coral); color: var(--gtm-ink); }
.gtm-upsell__add:active { transform: translateY(3px); box-shadow: none; }
.gtm-upsell__add.is-busy { opacity: .6; cursor: wait; }
.gtm-upsell__add.is-done { background: var(--gtm-teal-soft); border-color: var(--gtm-teal-d); color: var(--gtm-teal-d); box-shadow: 0 3px 0 var(--gtm-teal-d); }
.gtm-upsell__add.is-done span::before { content: "✓ "; }
.gtm-upsell-slot--top { display: none; margin: 0 0 16px; }
@media (max-width: 860px) {
	.gtm-upsell-slot--side { display: none; }
	.gtm-upsell-slot--top { display: block; }
}

/* ---------- WooCommerce notices + empty cart in the store style ---------- */
.gtm-store .woocommerce-message, .gtm-store .woocommerce-info, .gtm-store ul.woocommerce-error, .gtm-store .woocommerce-error {
	position: relative; display: block; margin: 0 0 18px; padding: 14px 16px 14px 52px; border: 2px solid var(--gtm-line, #f0dcc0) !important; border-radius: 14px;
	background: var(--gtm-cream, #fff7ea); color: var(--gtm-ink, #12303a); font-size: 15px; line-height: 1.5; list-style: none; box-shadow: none; outline: 0;
}
.gtm-store .woocommerce-message::before, .gtm-store .woocommerce-info::before, .gtm-store ul.woocommerce-error::before {
	font-family: system-ui, sans-serif !important; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
	display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; color: #fff; margin: 0;
}
.gtm-store .woocommerce-message::before { content: "✓"; background: var(--gtm-teal, #1f8a78); }
.gtm-store .woocommerce-info::before { content: "i"; background: var(--gtm-ink, #12303a); font-family: Georgia, serif !important; }
.gtm-store ul.woocommerce-error::before { content: "!"; background: var(--gtm-coral-d, #d4553a); top: 14px; transform: none; }
.gtm-store ul.woocommerce-error { border-color: #f3b6a6 !important; background: #fff3ef; color: #8a2d18; }
.gtm-store ul.woocommerce-error li { margin: 0; padding: 2px 0; }
.gtm-store .woocommerce-message a:not(.button), .gtm-store .woocommerce-info a:not(.button), .gtm-store .woocommerce-error a:not(.button) { color: var(--gtm-teal-d, #146b5d); font-weight: 700; text-decoration: underline; box-shadow: none; }
.gtm-store .woocommerce-message .button, .gtm-store .woocommerce-info .button {
	float: right; margin: -4px 0 -4px 12px; padding: 7px 14px; border-radius: 10px; background: #fff; color: var(--gtm-ink, #12303a); border: 2px solid var(--gtm-ink, #12303a);
	font-size: 13.5px; font-weight: 800; line-height: 1.2; text-transform: none;
}
.gtm-store .woocommerce-message .button:hover, .gtm-store .woocommerce-info .button:hover { background: var(--gtm-coral, #f7845c); color: var(--gtm-ink, #12303a); }

.gtm-cart .cart-empty.woocommerce-info { text-align: center; padding: 70px 20px 22px; font-size: 18px; font-weight: 800; background: #fff; border-style: dashed !important; }
.gtm-cart .cart-empty.woocommerce-info::before { content: "☕"; font-size: 26px; width: 54px; height: 54px; left: 50%; top: 18px; transform: translateX(-50%); background: var(--gtm-cream, #fff7ea); border: 2px solid var(--gtm-line, #f0dcc0); color: inherit; font-family: inherit !important; }
.gtm-store .return-to-shop { text-align: center; margin: 4px 0 8px; }
.gtm-store .return-to-shop .button, .gtm-store .return-to-shop a.button.wc-backward {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 14px;
	background: var(--gtm-coral, #f7845c); color: var(--gtm-ink, #12303a); border: 2px solid var(--gtm-ink, #12303a); box-shadow: 0 4px 0 var(--gtm-ink, #12303a);
	font-size: 16px; font-weight: 800; text-transform: none; letter-spacing: 0; text-decoration: none; transition: transform .1s, box-shadow .1s;
}
.gtm-store .return-to-shop .button:hover { background: #ff9672; color: var(--gtm-ink, #12303a); transform: translateY(1px); box-shadow: 0 3px 0 var(--gtm-ink, #12303a); }
.gtm-store .return-to-shop .button::before { content: "←"; }
.gtm-cart .woocommerce > .gtm-more { grid-column: 1 / -1; }
.gtm-cart .woocommerce > .woocommerce-notices-wrapper { order: 0; }
.gtm-cart .woocommerce > .wc-empty-cart-message { order: 1; }
.gtm-cart .woocommerce > .return-to-shop { order: 2; grid-column: 1 / -1; }
.gtm-cart .woocommerce > .gtm-more--empty { order: 3; margin-top: 24px; }

.gtm-pp-slow { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff7ea; border: 1px solid #f0dcc0; font-size: 14px; }
.gtm-pp-slow a { font-weight: 700; }

/* "Add a 2nd mug" nudge (cart + mini cart) */
.gtm-nudge { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; padding: 10px 14px; border: 1.5px dashed var(--gtm-teal, #1f8a78); border-radius: 12px; background: #eef8f5; color: var(--gtm-ink, #12303a); font-size: 14px; line-height: 1.4; }
.gtm-nudge__i { font-size: 18px; line-height: 1; }
.gtm-nudge__t { flex: 1 1 200px; font-weight: 600; }
.gtm-nudge__a { font-weight: 800; color: var(--gtm-teal-d, #146b5d) !important; text-decoration: none !important; white-space: nowrap; }
.gtm-nudge--mc { margin: 8px 0 0; padding: 8px 10px; font-size: 12.5px; border-radius: 10px; }
.gtm-nudge--mc .gtm-nudge__i { font-size: 15px; }
