/*
 * Brink shop: WooCommerce basket, checkout, thank-you and account pages in the site's own design.
 * Uses the theme's tokens (--green, --cream, --oak, --line, --font, --ease).
 */

/* ---------- page shell ---------- */
.phero--shop { padding-bottom: clamp(12px, 2vw, 28px); }
.bshop { padding-top: clamp(8px, 1.5vw, 20px); }
.bshop .woocommerce { font-size: 16px; line-height: 1.55; }
.bshop a { color: var(--green); text-underline-offset: .18em; }
.bshop h2, .bshop h3 { color: var(--green); font-stretch: 125%; font-weight: 300; letter-spacing: -.02em; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; margin: 0 0 18px; }
.bshop .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bshop table { width: 100%; border-collapse: collapse; }
.bshop .clear { clear: both; }

/* ---------- buttons ---------- */
.bshop .button,
.bshop button.button,
.bshop input.button,
.bshop #place_order,
.bshop .checkout-button,
.bshop .woocommerce-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px; border-radius: 99px;
	background: var(--green); color: var(--cream); border: 1.5px solid var(--green);
	font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background .4s var(--ease, ease), color .4s var(--ease, ease);
}
.bshop .button:hover, .bshop #place_order:hover, .bshop .checkout-button:hover, .bshop .woocommerce-button:hover { background: transparent; color: var(--green); }
.bshop .button:disabled, .bshop .button.disabled { opacity: .5; cursor: not-allowed; }
.bshop #place_order, .bshop .checkout-button { width: 100%; min-height: 56px; font-size: 17px; }
.bshop .button[name="update_cart"], .bshop .button[name="apply_coupon"], .bshop .woocommerce-form-login__submit ~ .button { background: transparent; color: var(--green); }
.bshop .button[name="update_cart"]:hover, .bshop .button[name="apply_coupon"]:hover { background: var(--green); color: var(--cream); }

/* ---------- notices ---------- */
.bshop .woocommerce-notices-wrapper:empty { display: none; }
.bshop .woocommerce-error, .bshop .woocommerce-message, .bshop .woocommerce-info, .bshop .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 24px; padding: 14px 18px; font-size: 15px;
	border-left: 3px solid var(--green); background: rgba(118, 141, 110, .1); color: var(--oak);
	display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
}
.bshop .woocommerce-error { border-left-color: #A4473A; background: rgba(164, 71, 58, .08); display: block; }
.bshop .woocommerce-error li + li { margin-top: 6px; }
.bshop .woocommerce-message .button, .bshop .woocommerce-info .button { min-height: 38px; padding: 0 16px; font-size: 14px; order: 2; }
.bshop .woocommerce-form-coupon-toggle .woocommerce-info, .bshop .woocommerce-form-login-toggle .woocommerce-info { background: transparent; border-left-color: var(--line); padding: 4px 0 4px 16px; }

/* ---------- fields ---------- */
.bshop .form-row { display: grid; gap: 6px; margin: 0 0 20px; padding: 0; }
.bshop .form-row label { font-size: 13px; color: var(--oak); }
.bshop .form-row .required { color: var(--oak); text-decoration: none; border: 0; }
.bshop .form-row .optional { color: rgba(117, 104, 91, .7); }
.bshop .input-text, .bshop select, .bshop textarea,
.bshop input[type="text"], .bshop input[type="email"], .bshop input[type="tel"], .bshop input[type="password"], .bshop input[type="number"] {
	width: 100%; box-sizing: border-box; background: transparent; color: var(--ink, #2E2A25);
	border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0;
	font: 400 clamp(17px, 1.4vw, 19px)/1.3 var(--font); padding: 10px 0; outline: none;
}
.bshop select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 6px center, right 0 center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 22px; }
.bshop textarea { min-height: 96px; resize: vertical; }
.bshop .input-text:focus, .bshop select:focus, .bshop textarea:focus { border-bottom-color: var(--green); box-shadow: 0 1.5px 0 var(--green); }
.bshop .woocommerce-invalid .input-text, .bshop .woocommerce-invalid select { border-bottom-color: #A4473A; }
.bshop .woocommerce-input-wrapper { display: block; }
.bshop .woocommerce-input-wrapper strong { font-weight: 400; font-size: 18px; }
.bshop .form-row-first, .bshop .form-row-last { width: auto; }
.bshop .woocommerce-billing-fields__field-wrapper,
.bshop .woocommerce-shipping-fields__field-wrapper,
.bshop .woocommerce-address-fields__field-wrapper {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px;
}
.bshop .form-row-wide, .bshop .notes { grid-column: 1 / -1; }
.bshop input[type="checkbox"], .bshop input[type="radio"] { accent-color: var(--green); width: 18px; height: 18px; margin: 0 10px 0 0; vertical-align: -3px; }
.bshop .woocommerce-form__label-for-checkbox, .bshop .checkbox { display: flex; align-items: flex-start; gap: 0; font-size: 15px; cursor: pointer; }
.bshop .woocommerce-form__label-for-checkbox input, .bshop .checkbox input { flex: none; margin-top: 2px; }

/* ---------- checkout ---------- */
.bshop form.checkout {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(24px, 4vw, 64px); align-items: start;
}
.bshop form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.bshop form.checkout { grid-template-rows: auto auto auto 1fr; }
.bshop #customer_details { grid-column: 1; grid-row: 2 / span 3; }
.bshop #customer_details .col-1, .bshop #customer_details .col-2 { width: auto; float: none; }
.bshop #customer_details .col-2:has(.woocommerce-additional-fields:only-child) h3 { display: none; }
.bshop #order_review_heading { grid-column: 2; grid-row: 2; margin: 0 0 14px; }
.bshop #order_review { grid-column: 2; grid-row: 3; position: sticky; top: 100px; display: grid; gap: 18px; }
.bshop .woocommerce-checkout-review-order-table, .bshop .cart_totals table, .bshop .woocommerce-table--order-details {
	background: var(--oak); color: var(--cream); border-radius: 16px; overflow: hidden; border-collapse: separate; border-spacing: 0;
}
.bshop .woocommerce-checkout-review-order-table th, .bshop .woocommerce-checkout-review-order-table td,
.bshop .cart_totals th, .bshop .cart_totals td,
.bshop .woocommerce-table--order-details th, .bshop .woocommerce-table--order-details td {
	padding: 14px clamp(16px, 2vw, 24px); text-align: left; vertical-align: top; border-bottom: 1px solid rgba(245, 235, 217, .2); font-weight: 400;
}
.bshop .woocommerce-checkout-review-order-table thead th, .bshop .woocommerce-table--order-details thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.bshop .woocommerce-checkout-review-order-table td:last-child, .bshop .woocommerce-checkout-review-order-table th:last-child,
.bshop .woocommerce-table--order-details td:last-child, .bshop .woocommerce-table--order-details th:last-child { text-align: right; }
.bshop .woocommerce-checkout-review-order-table tr:last-child > *, .bshop .woocommerce-table--order-details tfoot tr:last-child > * { border-bottom: 0; }
.bshop .order-total th, .bshop .order-total td { font-size: 20px; }
.bshop .order-total td strong { font-weight: 500; }
.bshop .woocommerce-checkout-review-order-table a, .bshop .woocommerce-table--order-details a { color: var(--cream); }
.bshop .variation, .bshop .wc-item-meta { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 14px; opacity: .9; }
.bshop .variation dt, .bshop .wc-item-meta strong { font-weight: 400; opacity: .75; }
.bshop .variation dd, .bshop .wc-item-meta p { margin: 0; }
.bshop .wc-item-meta li { display: contents; }
.bshop .product-quantity { font-weight: 400; }
.bshop #shipping_method { list-style: none; margin: 0; padding: 0; }
.bshop #shipping_method label { font-size: 15px; }

.bshop #payment { background: transparent; border-radius: 16px; }
.bshop #payment .payment_methods { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.bshop #payment .payment_methods > li { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.bshop #payment .payment_methods > li:has(> input:checked) { border-color: var(--green); }
.bshop #payment .payment_methods > li > label { font-size: 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.bshop #payment .payment_methods > li img { max-height: 22px; width: auto; }
.bshop #payment .payment_box { margin-top: 12px; font-size: 15px; }
.bshop #payment .payment_box p:last-child { margin-bottom: 0; }
.bshop #payment .place-order { display: grid; gap: 14px; padding: 0; }
.bshop .woocommerce-privacy-policy-text p, .bshop .woocommerce-terms-and-conditions-checkbox-text { font-size: 14px; }
.bshop .woocommerce-terms-and-conditions { max-height: 240px; overflow: auto; font-size: 14px; padding: 12px; border: 1.5px solid var(--line); margin-bottom: 10px; }
.bshop .brink-updates { margin: 0; }
.bshop .woocommerce-form-coupon { display: flex; gap: 12px; align-items: flex-end; margin: 0 0 24px; max-width: 560px; }
.bshop .woocommerce-form-coupon > p:not(.form-row) { display: none; }
.bshop .woocommerce-form-coupon .form-row { margin: 0; flex: 1; }
.bshop .woocommerce-form-coupon .form-row-last { flex: none; }
.bshop .woocommerce-form-login { max-width: 560px; margin-bottom: 28px; }
.bshop .blockUI.blockOverlay { background: var(--cream) !important; opacity: .6 !important; }

/* ---------- basket ---------- */
.bshop .woocommerce-cart-form { margin-bottom: clamp(24px, 3vw, 40px); }
.bshop table.cart { border-top: 1.5px solid var(--line); }
.bshop table.cart th { font-size: 13px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 12px 10px; border-bottom: 1.5px solid var(--line); }
.bshop table.cart td { padding: 18px 10px; border-bottom: 1.5px solid var(--line); vertical-align: middle; }
.bshop table.cart .product-thumbnail img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; display: block; }
.bshop table.cart .product-name a { color: var(--green); text-decoration: none; font-size: 18px; }
.bshop table.cart .product-remove a { font-size: 22px; text-decoration: none; color: var(--oak); }
.bshop table.cart .product-remove a:hover { color: #A4473A; }
.bshop table.cart .quantity input { width: 64px; text-align: center; }
.bshop table.cart td.actions { padding-top: 22px; }
.bshop table.cart td.actions .coupon { display: inline-flex; gap: 12px; align-items: center; margin-right: 12px; }
.bshop table.cart td.actions .coupon .input-text { width: 220px; }
.bshop .cart-collaterals { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); }
.bshop .cart-collaterals .cart_totals { grid-column: 2; display: grid; gap: 16px; }
.bshop .cart_totals h2 { margin: 0; }
.bshop .cart-empty { font-size: 20px; }
.bshop .return-to-shop { margin-top: 18px; }

/* ---------- thank you / order ---------- */
.bshop .woocommerce-order { display: grid; gap: clamp(20px, 3vw, 36px); max-width: 820px; margin-inline: auto; }
.bshop .woocommerce-thankyou-order-received { font-size: clamp(18px, 1.45vw, 21px); color: var(--green); margin: 0; }
.bshop .woocommerce-order-overview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.bshop .woocommerce-order-overview li { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; border-top: 1.5px solid var(--line); padding-top: 10px; }
.bshop .woocommerce-order-overview li strong { display: block; text-transform: none; letter-spacing: 0; font-size: 18px; font-weight: 400; color: var(--ink, #2E2A25); margin-top: 4px; }
.bshop .woocommerce-customer-details address { font-style: normal; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 22px; line-height: 1.7; }
.bshop .woocommerce-column__title { margin-bottom: 12px; }
.bshop .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ---------- account ---------- */
.bshop .woocommerce-account .woocommerce, .bshop--myaccount .woocommerce { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.bshop--myaccount .woocommerce > .woocommerce-notices-wrapper,
.bshop--myaccount .woocommerce > .woocommerce-form-login,
.bshop--myaccount .woocommerce > h2,
.bshop--myaccount .woocommerce > form { grid-column: 1 / -1; }
.bshop .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bshop .woocommerce-MyAccount-navigation a { display: block; padding: 10px 0; text-decoration: none; border-bottom: 1.5px solid var(--line); }
.bshop .woocommerce-MyAccount-navigation .is-active a { color: var(--oak); }
.bshop .woocommerce-orders-table th, .bshop .woocommerce-orders-table td { padding: 12px 10px; border-bottom: 1.5px solid var(--line); text-align: left; font-weight: 400; }
.bshop .woocommerce-orders-table .button { min-height: 36px; padding: 0 14px; font-size: 14px; }
.bshop .woocommerce-pagination { margin-top: 18px; display: flex; gap: 10px; }
.bshop .lost_password { font-size: 14px; }

/* ---------- shop page: price and size picker ---------- */
.prod__price { margin: 2px 0 6px; font-size: 17px; color: var(--ink, #2E2A25); }
.prod__price del { opacity: .55; margin-right: 6px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.size {
	min-width: 46px; height: 40px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line);
	background: transparent; color: var(--oak); font: 500 14px/1 var(--font); cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}
.size:hover { border-color: var(--green); color: var(--green); }
.size[aria-checked="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.size:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.sizes.is-missing .size { border-color: #A4473A; }
.sizes.is-missing { animation: brink-nudge .35s; }
@keyframes brink-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- booking page in live mode ---------- */
.shop-live .bk__demo { display: none; }
.bk__amount { margin-top: 14px; max-width: 260px; }
.bk__total { font-size: 20px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
	.bshop form.checkout, .bshop .cart-collaterals, .bshop--myaccount .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.bshop #customer_details, .bshop #order_review_heading, .bshop #order_review, .bshop .cart-collaterals .cart_totals { grid-column: 1; grid-row: auto; position: static; }
	.bshop #order_review_heading { margin-top: 20px; }
}
@media (max-width: 640px) {
	.bshop .woocommerce-billing-fields__field-wrapper, .bshop .woocommerce-shipping-fields__field-wrapper, .bshop .woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.bshop table.shop_table_responsive thead { display: none; }
	.bshop table.shop_table_responsive tr { display: grid; grid-template-columns: 1fr; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
	.bshop table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; text-align: right; }
	.bshop table.shop_table_responsive td::before { content: attr(data-title); font-size: 13px; text-align: left; }
	.bshop table.shop_table_responsive td.product-remove, .bshop table.shop_table_responsive td.product-thumbnail { justify-content: flex-start; }
	.bshop table.shop_table_responsive td.product-remove::before, .bshop table.shop_table_responsive td.product-thumbnail::before, .bshop table.shop_table_responsive td.actions::before { content: none; }
	.bshop table.cart td.actions { display: grid; gap: 12px; }
	.bshop table.cart td.actions .coupon { display: grid; grid-template-columns: 1fr auto; margin: 0; }
	.bshop table.cart td.actions .coupon .input-text { width: 100%; }
	.bshop .woocommerce-form-coupon { flex-direction: column; align-items: stretch; }
}

/* ---------- sign-in details ---------- */
.bshop--myaccount .woocommerce > h2:first-of-type { display: none; } /* the page heading already says "Sign in." */
.bshop .password-input { position: relative; display: block; }
.bshop .password-input input { padding-right: 64px; }
.bshop .show-password-input {
	position: absolute; right: 0; bottom: 8px; border: 0; background: transparent; padding: 4px 0; cursor: pointer;
	font: 500 13px/1 var(--font); color: var(--green); width: auto; height: auto;
}
.bshop .show-password-input::after { content: "Show"; }
.bshop .show-password-input.display-password::after { content: "Hide"; }

/* ---------- WooCommerce notice banners (block themes) ---------- */
.wc-block-components-notice-banner { list-style: none; margin: 0 0 24px; padding: 14px 18px; font-size: 15px; border: 0; border-left: 3px solid var(--green); border-radius: 0; background: rgba(118, 141, 110, .1); color: var(--oak); display: flex; gap: 10px 16px; align-items: center; }
.wc-block-components-notice-banner > svg { display: none; }
.wc-block-components-notice-banner.is-error { border-left-color: #A4473A; background: rgba(164, 71, 58, .08); }
.wc-block-components-notice-banner.is-success { border-left-color: var(--green); }
.wc-block-components-notice-banner__content { flex: 1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: flex-start; text-align: left; }
.wc-block-components-notice-banner__content ul { margin: 0; padding: 0; list-style: none; }
.wc-block-components-notice-banner a { color: var(--green); }
.wc-block-components-notice-banner .button { min-height: 38px; padding: 0 16px; font-size: 14px; order: 2; }
.woocommerce-form-coupon-toggle .wc-block-components-notice-banner, .woocommerce-form-login-toggle .wc-block-components-notice-banner { background: transparent; border-left-color: var(--line); padding: 4px 0 4px 16px; margin-bottom: 14px; }

/* ---------- basket total keeps two columns on phones ---------- */
@media (max-width: 640px) {
	.bshop .cart_totals table.shop_table_responsive tr { display: table-row; padding: 0; border: 0; }
	.bshop .cart_totals table.shop_table_responsive th, .bshop .cart_totals table.shop_table_responsive td { display: table-cell; padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(245, 235, 217, .2); }
	.bshop .cart_totals table.shop_table_responsive td { text-align: right; }
	.bshop .cart_totals table.shop_table_responsive td::before { content: none; }
}
.bshop .woocommerce-shipping-destination, .bshop .woocommerce-shipping-calculator { font-size: 13px; opacity: .85; margin: 6px 0 0; }
.bshop .cart_totals a, .bshop .woocommerce-shipping-calculator a { color: var(--cream); }
.bshop .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
