/* Cart, checkout, account and order pages (WooCommerce default markup). */

.flow .woocommerce { display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clear { clear: both; }

/* Notices */
.woocommerce-error, .woocommerce-message, .woocommerce-info {
	list-style: none; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--r-sm);
	font-size: 14px; background: #e0f2fe; color: #075985; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between;
}
.woocommerce-error { background: var(--sale-t); color: #9f1239; display: block; }
.woocommerce-message { background: var(--brand-t); color: var(--brand-d); }
.woocommerce-info a, .woocommerce-message a, .woocommerce-error a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Forms */
.form-row { margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form-row .required { color: var(--sale); text-decoration: none; }
.form-row .optional { color: var(--muted); font-weight: 400; }
.input-text, .flow select, .flow textarea, .flow input[type="text"], .flow input[type="tel"], .flow input[type="email"], .flow input[type="password"], .flow input[type="number"],
.select2-container .select2-selection--single {
	width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 8px 14px; outline: 0; transition: border-color .15s;
}
.flow textarea { min-height: 96px; resize: vertical; }
.input-text:focus, .flow select:focus, .flow textarea:focus { border-color: var(--brand); }
.woocommerce-invalid .input-text, .woocommerce-invalid select { border-color: var(--sale); }
.select2-container .select2-selection--single { display: flex; align-items: center; height: 48px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.75; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.select2-dropdown { border-color: var(--line); border-radius: var(--r-sm); overflow: hidden; font-family: var(--font); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--brand); }
.woocommerce-form__label-for-checkbox, .form-row label.checkbox { display: flex; gap: 8px; align-items: center; flex-direction: row; }
.flow input[type="checkbox"], .flow input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); }

.flow .button, .flow button[type="submit"], .checkout-button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
	border-radius: var(--r-sm); background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: background .15s;
}
.flow .button:hover, .checkout-button:hover, #place_order:hover { background: var(--brand-d); }
.flow .btn--soft { background: var(--brand-t); color: var(--brand-d); }

/* Cart */
.cartp { display: grid; gap: 16px; }
.cartp__items { display: grid; gap: 10px; align-content: start; }
.citem { grid-template-columns: 84px 1fr; padding: 12px; }
.citem__img { width: 84px; height: 84px; }
.citem__name { font-size: 14.5px; }
.citem .variation { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 4px; flex-wrap: wrap; }
.citem .variation dt, .citem .variation dd, .citem .variation p { margin: 0; }
.cartp__side { display: grid; gap: 12px; align-content: start; }
.coupon { display: grid; grid-template-columns: 1fr auto; gap: 8px; background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--sh); }
.cart_totals, #order_review, .woocommerce-checkout-review-order { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--sh); }
.cart_totals h2 { font-size: 16px; margin-bottom: 8px; }
.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop_table th, .shop_table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; font-weight: 500; }
.shop_table td { text-align: end; }
.shop_table td.product-name, .shop_table th.product-name { text-align: start; }
.shop_table .order-total th, .shop_table .order-total td { border-bottom: 0; font-size: 16px; font-weight: 800; }
.shop_table .order-total .amount { color: var(--brand-d); }
.shop_table .product-quantity { color: var(--muted); font-weight: 600; }
.woocommerce-shipping-methods { display: grid; gap: 6px; }
.woocommerce-shipping-methods li { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.woocommerce-shipping-destination, .shipping-calculator-button, .woocommerce-shipping-calculator { display: none; }
.wc-proceed-to-checkout { margin-top: 12px; }
.checkout-button { width: 100%; }
.woocommerce-remove-coupon { color: var(--sale); font-size: 12.5px; }

/* Checkout */
.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle { margin-bottom: 0; }
.checkout_coupon, .woocommerce-form-login { background: #fff; border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: var(--sh); }
form.checkout { display: grid; gap: 16px; }
#customer_details { display: grid; gap: 16px; }
#customer_details .col-1, #customer_details .col-2 { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--sh); }
#customer_details .col-2:empty { display: none; }
#customer_details h3, #order_review_heading { font-size: 16px; margin-bottom: 12px; }
#order_review_heading { margin: 0 0 -6px; }
.woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.woocommerce-billing-fields__field-wrapper .form-row { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: auto; }
#payment { margin-top: 14px; }
.wc_payment_methods { display: grid; gap: 8px; margin-bottom: 14px; }
.wc_payment_method { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.wc_payment_method:has(input:checked) { border-color: var(--brand); background: var(--brand-t); }
.wc_payment_method > label { font-weight: 700; margin-inline-start: 8px; cursor: pointer; }
.wc_payment_method img { display: inline-block; max-height: 24px; margin-inline-start: 8px; vertical-align: middle; }
.payment_box { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.payment_box p { margin: 0; }
.woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--muted); }
#place_order { width: 100%; min-height: 52px; font-size: 16px; }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 10px; }

/* Order received / order details */
.woocommerce-order { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--sh); }
.woocommerce-thankyou-order-received { font-size: 17px; font-weight: 800; color: var(--brand-d); }
.woocommerce-order-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.woocommerce-order-overview li { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.woocommerce-order-overview strong { display: block; color: var(--ink); font-size: 14.5px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 16px; margin: 18px 0 8px; }
.woocommerce-customer-details address { font-style: normal; font-size: 14px; color: var(--ink-2); line-height: 2; }

/* Account */
.woocommerce-account .flow > .woocommerce { display: grid; gap: 16px; }
.woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.woocommerce-MyAccount-navigation a { display: block; white-space: nowrap; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--brand); border-color: var(--brand); color: #fff; }
.woocommerce-MyAccount-content, .woocommerce-form-register, .woocommerce-ResetPassword { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--sh); }
.woocommerce-MyAccount-content a { color: var(--brand-d); font-weight: 600; }
.woocommerce-MyAccount-content .button { color: #fff; }
.woocommerce-account .woocommerce-form-login { max-width: 460px; margin-inline: auto; }
.woocommerce-account h2 { font-size: 18px; margin-bottom: 12px; }
.u-columns { display: grid; gap: 16px; }
.woocommerce-LostPassword { font-size: 13.5px; margin: 10px 0 0; }
.woocommerce-LostPassword a { color: var(--brand-d); }
.woocommerce-Addresses { display: grid; gap: 12px; }
.woocommerce-Address address { font-style: normal; color: var(--ink-2); }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; margin: 14px 0; }
legend { font-weight: 700; padding-inline: 8px; }

@media (min-width: 1024px) {
	.cartp { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
	.cartp__side { position: sticky; top: 150px; }
	form.checkout { grid-template-columns: minmax(0, 1fr) 420px; gap: 0 24px; align-items: start; }
	#customer_details { grid-column: 1; grid-row: 1 / span 3; }
	#order_review_heading { grid-column: 2; margin-bottom: 10px; }
	#order_review { grid-column: 2; position: sticky; top: 150px; }
	.woocommerce-account .flow > .woocommerce { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
	.woocommerce-account .flow > .woocommerce:has(> .woocommerce-form-login), .woocommerce-account .flow > .woocommerce:has(> .u-columns) { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation ul { flex-direction: column; overflow: visible; }
	.woocommerce-MyAccount-navigation a { border-radius: var(--r-sm); }
	.woocommerce-order-overview { grid-template-columns: repeat(4, 1fr); }
	.u-columns { grid-template-columns: 1fr 1fr; }
}
