/* ==========================================================================
   Filago — cart + checkout (inc/cart.php, inc/checkout.php, inc/promo.php,
   tpl-commerce.php, woocommerce/cart/*, woocommerce/checkout/review-order.php).
   Ported from Six Five, in Filago's calm editorial language: serif titles,
   thin lines, ivory panels, black pills. Loaded on the cart and checkout only.
   ========================================================================== */

/* ---------- Page frame: title + steps ---------- */
.commerce { padding-bottom: 96px; }
.commerce__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.commerce__head .display-2 { font-size: 40px; }
@media (min-width: 768px) {
	.commerce__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
	.commerce__head .display-2 { font-size: 52px; }
}
@media (min-width: 1024px) {
	.commerce__head { margin-bottom: 44px; }
	.commerce__head .display-2 { font-size: 64px; }
}

.checkout-steps { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.checkout-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.checkout-steps li + li::before { content: ""; width: 20px; height: 1px; background: var(--line-strong); margin-right: 2px; }
.checkout-steps a { display: flex; align-items: center; gap: 8px; color: inherit; }
.checkout-steps a:hover .checkout-steps__label { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.checkout-steps__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.checkout-steps .is-current { color: var(--ink); font-weight: 500; }
.checkout-steps .is-current .checkout-steps__n { background: var(--ink); border-color: var(--ink); color: var(--white); }
.checkout-steps .is-done .checkout-steps__n { background: var(--soft); border-color: var(--soft); color: var(--ink); }
@media (min-width: 1024px) { .checkout-steps { padding-bottom: 10px; gap: 14px; font-size: 14px; } .checkout-steps li + li::before { width: 32px; margin-right: 4px; } }
@media (max-width: 399px) {
	.checkout-steps { gap: 6px; font-size: 12px; }
	.checkout-steps li { gap: 6px; }
	.checkout-steps a { gap: 6px; }
	.checkout-steps li + li::before { width: 10px; margin-right: 0; }
	.checkout-steps__n { width: 22px; height: 22px; font-size: 11px; }
}
/* Checkout title is long: on tablets and small laptops the steps go under it, so it stays on one line. */
@media (min-width: 768px) and (max-width: 1279px) {
	.commerce--checkout .commerce__head { flex-direction: column; align-items: flex-start; gap: 16px; }
	.commerce--checkout .checkout-steps { padding-bottom: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .commerce--checkout .commerce__head { margin-bottom: 32px; } .commerce--checkout .reassure { margin-bottom: 32px; } }

/* ---------- Reassurance bar ---------- */
.reassure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.reassure li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; text-align: center; }
.reassure li + li { border-left: 1px solid var(--line); }
.reassure .icon { flex: none; color: var(--ink); }
.reassure span { display: grid; gap: 2px; text-wrap: balance; }
.reassure strong { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.reassure small { display: none; font-size: 13px; line-height: 1.35; color: var(--muted); }
/* Phones: three narrow tiles, so a short title shows (the full one stays for screen readers). */
.reassure strong > .reassure__long { display: inline; }
.reassure strong > .reassure__short { display: none; }
@media (max-width: 767px) {
	.reassure strong > .reassure__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.reassure strong > .reassure__short { display: inline; }
}
@media (min-width: 768px) {
	.reassure li { flex-direction: row; align-items: center; gap: 14px; padding: 18px 20px; text-align: left; }
	.reassure .icon { width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); }
	.reassure strong { font-size: 14px; }
	.reassure small { display: block; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.reassure li { flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px; text-align: center; }
}
@media (min-width: 1024px) { .reassure { margin-bottom: 44px; } .reassure li { padding: 20px 24px; } }
.reassure--compact { grid-template-columns: 1fr; margin: 0; }
.reassure--compact li + li { border-left: 0; border-top: 1px solid var(--line); }

/* ---------- Cart layout ---------- */
.cart-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) {
	.cart-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
	.cart-layout__side { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (min-width: 1280px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 80px; } }

.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.cart-head__title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.cart-head__title span { color: var(--muted); font-weight: 400; }
.cart-head .link-underline { font-size: 13px; white-space: nowrap; }

/* One line per piece */
.cart-list { display: block; }
.cart-line { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .cart-line { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 24px 0; } }
.cart-line__thumb { display: block; align-self: start; overflow: hidden; border-radius: 4px; background: var(--card); }
.cart-line__thumb img { width: 100%; aspect-ratio: 5 / 6; height: auto; object-fit: cover; object-position: center 20%; }
.cart-line__body { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; }
.cart-line__top { display: flex; justify-content: space-between; gap: 12px; }
.cart-line__id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cart-line__type { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cart-line__name { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.cart-line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .cart-line__name { font-size: 17px; } }
.cart-line__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--muted); }
.cart-line__meta dl.variation { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; }
.cart-line__meta dt, .cart-line__meta dd { display: inline; margin: 0; font-weight: 400; }
.cart-line__meta dd p { display: inline; margin: 0; color: var(--ink-2); font-weight: 500; }
:is(.cart-line__meta, .co-item__info) dt.variation-Offre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(.cart-line__meta, .co-item__info) dl.variation dd.variation-Offre p { display: inline-block; margin-top: 2px; padding: 1px 9px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 11.5px; font-weight: 600; line-height: 1.6; }
.cart-line__remove { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin: -8px -8px 0 0; border-radius: 50%; color: var(--muted); transition: background-color .2s, color .2s; }
.cart-line__remove:hover { background: var(--soft); color: var(--ink); }
.cart-line__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.backorder_notification { font-size: 13px; color: var(--muted); }

.cart-qty { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.cart-qty button { display: grid; place-items: center; width: 38px; color: var(--ink); transition: background-color .15s; }
.cart-qty button:hover:not(:disabled) { background: var(--soft); }
.cart-qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.cart-qty button:focus-visible { outline-offset: -3px; border-radius: 999px; }
.cart-qty input.is-bump { animation: cart-bump .28s var(--ease); }
@keyframes cart-bump { 45% { transform: scale(1.25); } }
.cart-qty input, .cart-qty > span { display: grid; place-items: center; width: 34px; min-height: 0; padding: 0; border: 0; background: none; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.woocommerce .cart-qty input.input-text { flex: none; width: 34px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 15px; }
.cart-qty input::-webkit-inner-spin-button, .cart-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line__price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.3; text-align: right; }
.cart-line__price strong { font-size: 16px; font-weight: 500; white-space: nowrap; }
.cart-line__price strong.is-sale { color: var(--sale); }
.cart-line__price del { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cart-line__price small { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Promo code + hidden update button */
.cart-actions { position: relative; padding-top: 24px; }
.cart-actions__update { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0 !important; min-height: 0 !important; border: 0 !important; }
.cart-coupon__label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.cart-coupon .coupon { display: flex; flex-wrap: wrap; gap: 8px; max-width: 480px; }
.woocommerce .cart-coupon .coupon input.input-text { flex: 1 1 180px; min-width: 0; width: auto; min-height: 48px; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce .cart-coupon .coupon input.input-text::placeholder { text-transform: none; letter-spacing: 0; }
.cart-coupon .coupon .btn { min-height: 48px; padding: 0 24px; }
.cart-coupon .coupon-error-notice { flex-basis: 100%; order: 3; margin: 2px 0 0; font-size: 13px; color: var(--sale); }
.woocommerce .cart-coupon .coupon .input-text.has-error { border-color: var(--sale); }

.coupon-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.coupon-hint > span { color: var(--muted); }
.code-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px dashed var(--ink); border-radius: 4px; background: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink); transition: background-color .15s, color .15s; }
.code-chip:hover { background: var(--ink); color: var(--white); border-style: solid; }

/* ---------- Summary card ---------- */
.cart-collaterals { width: auto; }
.cart-summary { padding: 24px 20px; border-radius: var(--radius); background: var(--soft); }
@media (min-width: 768px) { .cart-summary { padding: 32px; } }
.cart-summary__title { margin-bottom: 16px; font-family: var(--serif); font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.cart-summary__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cart-summary__rows dt { display: flex; flex-direction: column; gap: 1px; color: var(--ink-2); }
.cart-summary__rows dt small, .co-totals dt small { font-size: 12px; color: var(--muted); }
.cart-eta:empty { display: none; }
.cart-summary__rows dt small.cart-nudge { display: block; margin-top: 2px; color: var(--sale); } /* "Plus que … pour la livraison offerte" */
.cart-summary__rows dd { margin: 0; text-align: right; font-weight: 500; }
.cart-summary__rows .cart-discount dd { color: var(--sale); }
.cart-summary__rows .woocommerce-remove-coupon, .co-totals .woocommerce-remove-coupon { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.cart-summary__rows .is-free, .co-totals .is-free { color: var(--ink); font-weight: 500; }
.cart-summary__rows .order-total { padding-top: 18px; border-bottom: 0; }
.cart-summary__rows .order-total dt { font-size: 16px; font-weight: 500; color: var(--ink); }
.cart-summary__rows .order-total dd { font-size: 24px; letter-spacing: -0.01em; }
.cart-summary__rows .order-total small, .co-totals .order-total dd small { display: none; }
.cart-summary__savings { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 4px; background: var(--white); font-size: 13px; color: var(--ink-2); }
.cart-summary__savings .icon { flex: none; color: var(--ink); }
.cart-summary__savings strong { color: var(--ink); font-weight: 600; }
.cart-summary .wc-proceed-to-checkout { margin-top: 20px; }
.cart-summary .checkout-button { width: 100%; min-height: 56px; font-size: 16px; }
.cart-summary__note { margin-top: 12px; font-size: 12px; text-align: center; color: var(--muted); }

/* Phones and tablets: the total and the checkout button stay at hand. */
.cart-sticky { display: none; }
@media (max-width: 1023px) {
	.woocommerce-cart .cart-sticky {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
		display: flex; align-items: center; gap: 16px;
		padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
		box-shadow: 0 -8px 28px rgba(20, 15, 15, .1);
		transition: transform .3s var(--ease);
	}
	.woocommerce-cart .cart-sticky.is-hidden { transform: translateY(110%); }
	.cart-sticky__total { display: flex; flex-direction: column; line-height: 1.15; }
	.cart-sticky__total small { font-size: 12px; color: var(--muted); }
	.cart-sticky__total strong { font-size: 18px; font-weight: 500; white-space: nowrap; }
	.cart-sticky__btn { flex: 1; min-height: 48px; font-size: 15px; }
	.woocommerce-cart .site-footer { padding-bottom: 76px; }
	.woocommerce-cart .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) and (max-width: 1023px) { .cart-sticky__btn { flex: 0 1 360px; margin-left: auto; } }

/* Notices after a cart update: a toast at the bottom, so the page doesn't jump. */
.cart-toast {
	position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
	display: flex; align-items: center; gap: 10px;
	width: max-content; max-width: calc(100vw - 2 * var(--gutter));
	padding: 10px 18px 10px 10px; border-radius: 999px;
	background: var(--ink); color: var(--white); font-size: 14px; line-height: 1.35;
	box-shadow: 0 12px 32px rgba(20, 15, 15, .2);
	opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cart-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast__icon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--ink); }
.cart-toast__icon::before { content: "✓"; font-size: 14px; font-weight: 700; }
.cart-toast a { margin-left: 6px; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 1023px) { .woocommerce-cart .cart-toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* ---------- Empty cart ---------- */
.woocommerce-cart .wc-empty-cart-message { display: none; }
.cart-empty-state { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 600px; margin: 8px auto 0; padding: 40px 0 8px; text-align: center; }
.cart-empty-state__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.cart-empty-state__title { margin-top: 8px; }
.cart-empty-state__text { max-width: 480px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.cart-empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.cart-empty-state__actions .btn { min-width: 132px; }
@media (max-width: 767px) {
	.cart-empty-state__actions { width: 100%; max-width: 400px; }
	.cart-empty-state__actions .btn--dark { flex-basis: 100%; }
	.cart-empty-state__actions .btn--outline { flex: 1 1 0; min-width: 0; }
}

/* ---------- Rows under the cart ---------- */
.commerce .cart-rec { padding: 56px 0 0; margin-top: 64px; border-top: 1px solid var(--line); }
.commerce .cart-empty-state ~ .cart-rec:first-of-type { margin-top: 56px; }
.commerce .cart-rec .section-head { padding: 0; margin-bottom: 24px; }
.cart-rec__intro { margin-top: 8px; max-width: 56ch; font-size: 15px; color: var(--muted); }
@media (max-width: 1023px) {
	.commerce .cart-rec .carousel__track { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
}
@media (min-width: 1024px) {
	.commerce .cart-rec { padding-top: 72px; margin-top: 88px; }
	.commerce .cart-rec .section-head { margin-bottom: 36px; }
	.commerce .cart-rec .carousel__nav { margin-top: 32px; }
}
/* Four cards or fewer fit in one view (4.35 per view): no arrows. The cards keep the carousel's width, so every
   row under the cart has the same card size (a 3-card row stretched to thirds looked like another page). */
@media (min-width: 1024px) {
	.commerce .cart-rec .carousel:not(:has(.carousel__track > li:nth-child(5))) .carousel__nav { display: none; }
}
/* Quick view lives on the shop pages (its drawer is not on the cart): cards just link to the product. */
.commerce .product-card__quick { display: none; }

/* ---------- Checkout: form + summary ---------- */
form.checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 1024px) {
	form.checkout { grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
	form.checkout > #customer_details { grid-row: 1 / span 2; grid-column: 1; }
	form.checkout > #order_review_heading, form.checkout > #order_review { grid-column: 2; }
	form.checkout > #order_review { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (min-width: 1280px) { form.checkout { grid-template-columns: minmax(0, 1fr) 480px; column-gap: 80px; } }

/* Phones and tablets: jump to the summary */
.co-jump { display: none; }
@media (max-width: 1023px) {
	.co-jump { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); font-size: 14px; color: var(--ink-2); }
	.co-jump strong { margin-left: auto; font-size: 17px; font-weight: 500; color: var(--ink); }
	.co-jump .icon { flex: none; }
	#customer_details { margin-bottom: 36px; }
}

/* Delivery details */
form.checkout :is(h2, h3), #order_review_heading { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 20px; }
@media (min-width: 1024px) { form.checkout :is(h2, h3), #order_review_heading { font-size: 32px; } }
#customer_details .col-1, #customer_details .col-2 { width: auto; float: none; }
#customer_details .col-2:empty, .woocommerce-shipping-fields:empty { display: none; }
.woocommerce-billing-fields__field-wrapper { display: grid; column-gap: 16px; }
@media (min-width: 640px) {
	.woocommerce-billing-fields__field-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
	.woocommerce-billing-fields__field-wrapper > #billing_first_name_field,
	.woocommerce-billing-fields__field-wrapper > #billing_phone_field,
	.woocommerce-billing-fields__field-wrapper > #billing_state_field,
	.woocommerce-billing-fields__field-wrapper > #billing_city_field { grid-column: auto; }
}
.woocommerce form.checkout .form-row { margin: 0 0 18px; padding: 0; }
.woocommerce form.checkout .form-row label { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.woocommerce form .form-row .required { color: var(--accent); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { font-weight: 400; color: var(--muted); }
.woocommerce form .form-row.is-hidden, .woocommerce form .form-row.hidden { display: none !important; }
.woocommerce form .woocommerce-invalid .input-text, .woocommerce form .woocommerce-invalid select, .woocommerce form .woocommerce-invalid .select2-selection { border-color: var(--sale) !important; }
.checkout-inline-error-message { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #a50e26; }
.checkout-inline-error-message::before {
	content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px;
	border-radius: 50%; background: #a50e26; color: var(--white); font-size: 11px; font-weight: 700; line-height: 1;
}
.woocommerce-additional-fields { margin-top: 12px; }
.woocommerce-additional-fields :is(h2, h3) { font-size: 22px !important; margin-bottom: 14px !important; }
.woocommerce form textarea.input-text { min-height: 96px; line-height: 1.5; resize: vertical; }
.woocommerce form .input-text::placeholder { color: var(--muted); }

/* selectWoo (governorate, city) */
.select2-container { width: 100% !important; }
/* The open list's own container hangs from <body> at the field's left: 100% of the page pushed it 80 px past the edge. */
body > .select2-container { width: auto !important; }
.select2-container .select2-selection--single { height: 48px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--white); outline: 0; }
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0 40px 0 14px; line-height: 46px; font-size: 16px; color: var(--ink); }
.select2-container .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.select2-container .select2-selection--single .select2-selection__arrow { top: 0; right: 10px; height: 46px; width: 24px; }
/* The thin chevron of every other select (express form, sort menu) instead of select2's solid triangle. */
.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
	top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23140f0f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .2s ease;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { transform: rotate(180deg); }
.select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.select2-container--default.select2-container--disabled .select2-selection--single { border-style: dashed; background: var(--soft); cursor: not-allowed; }
.select2-container--disabled .select2-selection--single .select2-selection__rendered { color: var(--muted); }
.select2-container--disabled .select2-selection__arrow { opacity: .4; }
.select2-dropdown { border: 1px solid var(--ink); border-radius: 4px; box-shadow: 0 12px 32px rgba(20, 15, 15, .12); overflow: hidden; font-family: var(--font); }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 16px; }
.select2-results__option { padding: 9px 14px; font-size: 15px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ink); color: var(--white); }
.select2-container--default .select2-results__option[aria-selected="true"], .select2-container--default .select2-results__option[data-selected="true"] { background: var(--soft); color: var(--ink); }

/* Summary card */
#order_review_heading { margin: 0; padding: 24px 20px 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--soft); }
#order_review { padding: 8px 20px 24px; border-radius: 0 0 var(--radius) var(--radius); background: var(--soft); }
@media (min-width: 768px) { #order_review_heading { padding: 32px 32px 0; } #order_review { padding: 12px 32px 32px; } }
.co-review { display: block; }
.co-items { margin: 0; }
.co-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.co-item__thumb { position: relative; display: block; width: 60px; }
.co-item__thumb img { width: 60px; height: 72px; object-fit: cover; object-position: center 20%; border-radius: 4px; background: var(--card); }
.co-item__qty { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 600; box-shadow: 0 0 0 2px var(--soft); }
.co-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-item__name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.co-item__meta { font-size: 12.5px; color: var(--muted); }
.co-item__info dl.variation { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.co-item__info dl.variation dt, .co-item__info dl.variation dd { display: inline; margin: 0; }
.co-item__info dl.variation dd p { display: inline; margin: 0; color: var(--ink-2); font-weight: 500; }
.co-item__price { font-size: 14px; font-weight: 500; white-space: nowrap; }

.co-coupon { padding: 18px 0; border-bottom: 1px solid var(--line); }
.co-coupon__label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.co-coupon__row { display: flex; gap: 8px; }
.woocommerce .co-coupon__row input, .co-coupon__row input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.co-coupon__row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted); }
.co-coupon__row input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.co-coupon__row .btn { flex: none; min-height: 44px; }
.co-coupon.is-loading [data-co-coupon-apply] { opacity: .5; pointer-events: none; }
.co-coupon__msg:empty { display: none; }
.co-coupon__msg { margin-top: 10px; }
.co-coupon__msg ul, .co-coupon__msg .woocommerce-error, .co-coupon__msg .woocommerce-message, .co-coupon__msg .woocommerce-info { margin: 0; padding: 10px 12px; border-radius: 4px; font-size: 13px; list-style: none; }
.co-coupon__msg .woocommerce-error { background: #fbeeee; color: #8a1020; }
.co-coupon__msg .woocommerce-message { background: var(--white); color: var(--ink); }

.co-totals { margin-top: 6px; }
.co-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; font-size: 15px; }
.co-totals dt { display: flex; flex-direction: column; gap: 1px; color: var(--ink-2); }
.co-totals dt small { font-size: 12px; color: var(--muted); }
.co-totals dd { margin: 0; text-align: right; font-weight: 500; }
.co-totals .cart-discount dd { color: var(--sale); }
.co-totals .order-total { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.co-totals .order-total dt { font-size: 16px; font-weight: 500; color: var(--ink); }
.co-totals .order-total dd { font-size: 24px; letter-spacing: -0.01em; }

/* Payment: the single method, already chosen, shown as a card */
#payment { margin-top: 18px; background: none; }
#payment ul.payment_methods { margin: 0; padding: 0; border: 0; list-style: none; }
#payment .wc_payment_method { position: relative; padding: 14px 16px 14px 50px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--white); }
#payment .wc_payment_method > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
#payment .wc_payment_method::before {
	content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
#payment .wc_payment_method > label { font-size: 15px; font-weight: 500; cursor: pointer; }
#payment .payment_box { margin: 4px 0 0; padding: 0; background: none; font-size: 13px; color: var(--muted); }
#payment .payment_box::before { content: none; }
#payment .payment_box p { margin: 0; }
#payment .place-order { margin: 18px 0 0; padding: 0; }
#payment .woocommerce-privacy-policy-text p { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
#payment .woocommerce-privacy-policy-text a { color: inherit; text-decoration: underline; }
#place_order { width: 100%; min-height: 58px; font-size: 16px; }
.co-trust { display: grid; gap: 10px; margin-top: 18px; }
.co-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.co-trust .icon { flex: none; color: var(--ink); }
.woocommerce-checkout .blockUI.blockOverlay { background: rgba(246, 241, 234, .6) !important; }
.woocommerce-NoticeGroup-checkout, .woocommerce-checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-NoticeGroup-checkout .woocommerce-error { margin-bottom: 24px; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-checkout .wa-float { display: none; }

/* ---------- Order received ---------- */
.woocommerce-order { max-width: 880px; }
.woocommerce-thankyou-order-received { margin: 0 0 24px; font-size: 17px; color: var(--ink-2); }
.woocommerce-order-overview { list-style: none; }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 40px; }
.woocommerce-order h2 { font-family: var(--serif); font-weight: 400; }
.woocommerce-table--order-details tfoot th { font-weight: 400; color: var(--ink-2); }
.woocommerce-table--order-details .wc-item-meta { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }
.woocommerce-customer-details address { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce-table--order-details th:last-child, .woocommerce-table--order-details td:last-child { text-align: right; }
