/*
 * WAUW commerce: cart, checkout, receipt, account. Ink on ivory, one white panel
 * for what it costs, one filled button for the next step.
 * Every <main> here has the id "wk" (set in the templates; the account uses page.html),
 * so one short selector outranks WooCommerce's own long ones.
 */
.woocommerce-page {
	--wk-ink: var(--wp--preset--color--contrast);
	--wk-soft: color-mix(in srgb, var(--wk-ink) 78%, var(--wp--preset--color--base));
	--wk-line: color-mix(in srgb, var(--wk-ink) 16%, transparent);
	--wk-edge: color-mix(in srgb, var(--wk-ink) 58%, #fff);
	--wk-rust: #8a3a14;
	--wk-round: 0.625rem;
	--wk-display: var(--wp--preset--font-family--display);
	--wk-body: var(--wp--preset--font-family--body);
	--wk-side: clamp(20rem, 30vw, 28rem);
	--wk-gap: clamp(2.5rem, 6vw, 6rem);
	--wc-form-border-color: var(--wk-edge);
	--wc-form-border-radius: var(--wk-round);
}

/* ---------- Page ---------- */
#wk { color: var(--wk-ink); font-size: 1rem; font-variant-numeric: lining-nums; line-height: 1.5; }
.wk > * { box-sizing: border-box; width: min(96rem, 100% - 2 * var(--wauw-gutter)); margin: 0 auto; }
#wk .entry-content > .woocommerce { max-width: none; margin: 0; }
#wk > .wc-block-store-notices { max-width: none; }
.wk-top { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; align-items: baseline; justify-content: space-between; padding-block: clamp(2rem, 4.5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
#wk :is(.wk-title, .wc-block-order-confirmation-status h1) { margin: 0; color: inherit; font-size: var(--wx-title); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.wk-steps { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; color: var(--wk-soft); list-style: none; }
.wk-steps li { display: flex; align-items: center; min-height: 2.75rem; }
.wk-steps li + li::before { content: ""; width: clamp(1rem, 2.4vw, 2.25rem); height: 1px; margin-inline: 0.75rem; background: currentColor; }
.wk-steps [aria-current] { color: var(--wk-ink); font-weight: 700; }
.wk-steps a { padding-block: 0.6rem; color: inherit; text-decoration: none; }
.wk-steps a:hover { text-decoration: underline 1px; text-underline-offset: 0.35em; }
.wk-facts { display: grid; gap: 1.75rem 3rem; padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--wk-line); list-style: none; }
.wk-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 1rem; }
.wk-facts svg { grid-row: span 2; margin-top: -0.05rem; }
.wk-facts span { grid-column: 2; max-width: 22rem; color: var(--wk-soft); }
@media (min-width: 48rem) { .wk-facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 47.99rem) { .wk-steps { flex-basis: 100%; } .wk-bar__back span span { display: none; } }

/* ---------- Buttons: the theme's pill. Filled is the next step, outlined the rest. ---------- */
#wk .button:is(a, button, input) { --fill: transparent; --type: var(--wk-ink); --edge: var(--wk-edge); box-sizing: border-box; display: inline-flex; flex: none; align-items: center; justify-content: center; float: none; width: auto; height: auto; min-height: 3rem; margin: 0; padding: 0.4rem 1.5rem; border: 0; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--edge); color: var(--type); font-family: var(--wk-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.25; text-transform: none; text-decoration: none; opacity: 1; transition: background-color 0.2s, color 0.2s; }
#wk .button:is(a, button, input):hover { --fill: var(--wk-ink); --type: var(--wx-ivory); --edge: var(--wk-ink); }
#wk :is(.checkout-button, #place_order, .return-to-shop .button, .woocommerce-form-login__submit, .woocommerce-form-register__submit, .lost_reset_password .button, [name="save_account_details"], [name="save_address"], .wc-block-order-confirmation-status__actions .button:first-child) { --fill: var(--wk-ink); --type: var(--wx-ivory); --edge: var(--wk-ink); }
#wk :is(.checkout-button, #place_order, .return-to-shop .button, .woocommerce-form-login__submit, .woocommerce-form-register__submit, .lost_reset_password .button, [name="save_account_details"], [name="save_address"], .wc-block-order-confirmation-status__actions .button:first-child):hover { --fill: transparent; --type: var(--wk-ink); }
#wk :is(a.checkout-button, button#place_order) { width: 100%; min-height: 3.5rem; font-size: 1.0625rem; }
#wk :is(button, input).button:disabled { opacity: 0.5; cursor: default; }
#wk .wk-link { display: inline-flex; align-items: center; min-height: 3rem; color: inherit; font-weight: 600; text-decoration: underline 1px; text-underline-offset: 0.35em; }

/* ---------- Fields ---------- */
#wk :is(.input-text, select, textarea, .select2-selection--single) { box-sizing: border-box; width: 100%; height: auto; min-height: 3.25rem; margin: 0; padding: 0.7rem 1rem; border: 1px solid var(--wk-edge); border-radius: var(--wk-round); background-color: #fff; color: var(--wk-ink); font-family: var(--wk-body); font-size: 1.0625rem; font-variant-numeric: lining-nums; line-height: 1.4; }
#wk textarea { min-height: 7rem; }
#wk :is(.input-text, textarea)::placeholder { color: #5d655f; opacity: 1; }
#wk :is(.input-text, select, textarea):focus-visible, #wk .select2-container--open .select2-selection--single { border-color: var(--wk-ink); outline: 1px solid var(--wk-ink); outline-offset: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--wk-ink) 18%, transparent); }
#wk .select2-container { width: 100% !important; font-size: 1.0625rem; }
#wk .select2-selection--single { display: flex; align-items: center; padding: 0; }
#wk .select2-selection__rendered { width: 100%; padding: 0 3rem 0 1rem; color: var(--wk-ink); line-height: 1.4; }
#wk .select2-selection__arrow { top: 0; right: 0.9rem; height: 100%; }
/* select2 hangs its list on the body, outside #wk. */
.woocommerce-page .select2-dropdown { border: 1px solid var(--wk-ink); border-radius: var(--wk-round); overflow: hidden; color: var(--wk-ink); font-family: var(--wk-body); font-size: 1.0625rem; }
.woocommerce-page .select2-container--open .select2-search__field { min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--wk-edge); border-radius: calc(var(--wk-round) - 0.2rem); }
.woocommerce-page .select2-container--open .select2-results__option { padding: 0.6rem 1rem; }
.woocommerce-page .select2-container--open .select2-results__option[aria-selected="true"], .woocommerce-page .select2-container--open .select2-results__option[data-selected="true"] { background: #ece4d9; color: var(--wk-ink); }
.woocommerce-page .select2-container--open .select2-results__option--highlighted { background: var(--wk-ink) !important; color: #fff !important; }
#wk .form-row { float: none; width: auto; margin: 0; padding: 0; }
#wk .form-row > label:not(.checkbox, .woocommerce-form__label-for-checkbox) { display: block; margin: 0 0 0.4rem; font-weight: 600; line-height: 1.4; }
#wk .form-row .optional { font-weight: 400; }
#wk .form-row .required { color: var(--wk-rust); visibility: visible; }
#wk .woocommerce-input-wrapper { display: block; }
#wk .woocommerce-input-wrapper > strong { display: block; padding: 0.6rem 0; }
#wk :is(input[type="checkbox"], input[type="radio"]) { flex: none; width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--wk-ink); }
#wk label:is(.checkbox, .woocommerce-form__label-for-checkbox) { display: block; position: relative; margin: 0; padding: 0.65rem 0 0.65rem 2.1rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
#wk label:is(.checkbox, .woocommerce-form__label-for-checkbox) > input { position: absolute; top: 0.75rem; left: 0; }
#wk .woocommerce-invalid :is(.input-text, select, .select2-selection--single) { border-color: var(--wk-rust); box-shadow: inset 0 0 0 1px var(--wk-rust); }
#wk .woocommerce-invalid > label { color: var(--wk-rust); }
#wk :is(.checkout-inline-error-message, .coupon-error-notice) { margin: 0.4rem 0 0; color: var(--wk-rust); font-size: 1rem; font-weight: 600; }
#wk .password-input { display: block; position: relative; }
#wk .password-input .input-text { padding-right: 3.5rem; }
#wk .show-password-input { display: flex; align-items: center; justify-content: center; top: 0; right: 0; width: 3.25rem; height: 3.25rem; margin: 0; transform: none; }

/* ---------- Notices ---------- */
#wk .wc-block-components-notice-banner { gap: 0.85rem; align-items: center; margin: 0 0 1.5rem; padding: 0.9rem 1.25rem !important; border: 0; border-radius: var(--wk-round); background: #e0eae2; color: #123a30; font-size: 1rem; line-height: 1.5; }
#wk .wc-block-components-notice-banner:focus { outline: 0; }
#wk .wc-block-components-notice-banner > svg { flex: none; background: #123a30; fill: #fff; }
#wk .wc-block-components-notice-banner.is-error { align-items: flex-start; background: #f6ddd2; color: #6d2c0e; }
#wk .wc-block-components-notice-banner.is-error > svg { background: var(--wk-rust); }
#wk .wc-block-components-notice-banner.is-info { background: #ece4d9; color: var(--wk-ink); }
#wk .wc-block-components-notice-banner.is-info > svg { background: var(--wk-ink); }
#wk .wc-block-components-notice-banner a { color: inherit; text-underline-offset: 0.2em; }
#wk .wc-block-components-notice-banner__content { display: flex; flex: 1; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; justify-content: space-between; }
#wk .wc-block-components-notice-banner__list { width: 100%; margin: 0; padding-left: 1.2em; }
#wk .wc-block-components-notice-banner .button.wc-forward { order: 2; min-height: 0; padding: 0; background: none; box-shadow: none; color: inherit; text-decoration: underline 1px; text-underline-offset: 0.3em; }
/* The cart's own "see the cart" link leads to where you already are. */
.wk-cart .wc-block-components-notice-banner .wc-forward { display: none !important; }

/* ---------- The white panel: what it costs (cart totals, order review) ---------- */
.woocommerce-page { --wk-panel: clamp(1.4rem, 2.4vw, 2.25rem); }
#wk :is(.cart_totals h2, #order_review_heading) { width: auto; margin: 0; color: inherit; font-size: 1.5rem; letter-spacing: 0; line-height: 1.25; }
#wk :is(.cart_totals, .checkout) .shop_table { display: block; width: 100%; margin: 1rem 0 0; border: 0; }
#wk :is(.cart_totals, .checkout) :is(tbody, tfoot) { display: block; }
#wk :is(.cart_totals, .checkout) tr { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: baseline; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--wk-line); }
#wk :is(.cart_totals, .checkout) :is(th, td) { display: block; width: auto; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font-weight: 400; line-height: 1.4; text-align: left !important; }
#wk :is(.cart_totals, .checkout) td::before { display: none; }
#wk :is(.cart_totals, .checkout) td:last-child { margin-left: auto; font-weight: 600; text-align: right !important; white-space: nowrap; }
#wk :is(.cart_totals, .checkout) tr.order-total { padding: 1.1rem 0 0; border: 0; }
#wk tr.order-total th { font-size: 1.0625rem; font-weight: 600 !important; }
#wk tr.order-total strong { font-weight: inherit; }
#wk tr.order-total .amount { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
#wk tr.order-total small { display: block; color: var(--wk-soft); font-size: 0.95rem; font-weight: 400; }
#wk tr.order-total small .amount { font: inherit; letter-spacing: 0; }
#wk :is(.cart_totals, .woocommerce-checkout-review-order-table) a:not(.button) { color: inherit; text-decoration: underline 1px; text-underline-offset: 0.25em; }
/* Delivery choice: the whole line is the target. */
#wk :is(.cart_totals, .checkout) tr.woocommerce-shipping-totals { display: block; }
#wk :is(.cart_totals, .checkout) tr.woocommerce-shipping-totals td { margin: 0; font-weight: 400; text-align: left !important; white-space: normal; }
#wk #shipping_method { width: auto; margin: 0.35rem 0 0; padding: 0; list-style: none; }
#wk #shipping_method li { display: flex; gap: 0.85rem; align-items: center; margin: 0; padding: 0; text-indent: 0; }
#wk #shipping_method label { display: flex; flex: 1; flex-wrap: wrap; gap: 0 0.75rem; align-items: center; justify-content: space-between; min-height: 2.75rem; margin: 0; cursor: pointer; }
#wk #shipping_method .amount { font-weight: 600; }
#wk .woocommerce-shipping-destination { margin: 0.5rem 0 0; color: var(--wk-soft); }
#wk .shipping-calculator-form { display: grid; gap: 0.75rem; margin-top: 0.75rem; }

/* ---------- Cart ---------- */
#wk .woocommerce-cart-form { border-top: 1px solid var(--wk-line); }
#wk .woocommerce-cart-form :is(table.shop_table, tbody) { display: block; margin: 0; border: 0; }
#wk .woocommerce-cart-form thead, #wk .woocommerce-checkout-review-order-table thead, #wk .wk-slip thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#wk :where(tr.cart_item > td, td.actions) { box-sizing: border-box; display: block; width: auto; padding: 0; border: 0; background: none; text-align: left !important; }
#wk .woocommerce-cart-form td::before { display: none; }
#wk .woocommerce-cart-form .cart_item { display: grid; grid-template: "pic name name" "pic unit unit" "pic qty sum" "pic remove remove" / 5.5rem minmax(0, 1fr) auto; column-gap: 1.1rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--wk-line); }
#wk td.product-thumbnail { grid-area: pic; align-self: start; }
#wk td.product-thumbnail img { display: block; width: 100%; aspect-ratio: 1; background: #fff; object-fit: cover; }
#wk .woocommerce-cart-form td.product-name { grid-area: name; font-family: var(--wk-display); font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.3; overflow-wrap: anywhere; }
#wk .product-name a { color: inherit; text-decoration: none; }
#wk .product-name a:hover { text-decoration: underline 1px; text-underline-offset: 0.2em; }
#wk .product-name :is(dl, .backorder_notification) { margin: 0.35rem 0 0; font-family: var(--wk-body); font-size: 1rem; }
#wk td.product-price { grid-area: unit; padding-top: 0.25rem; color: var(--wk-soft); }
#wk td.product-quantity { grid-area: qty; padding-top: 0.85rem; }
#wk td.product-subtotal { grid-area: sum; padding-top: 0.85rem; font-size: 1.0625rem; font-weight: 700; white-space: nowrap; }
#wk td.product-remove { grid-area: remove; }
/* The plugin prints a red cross; the word is clearer. Its full label is in aria-label. */
#wk a.remove { display: inline-flex; align-items: center; width: auto; height: auto; min-height: 2.75rem; border-radius: 0; background: none; color: var(--wk-soft) !important; font-size: 0; font-weight: 400; }
#wk a.remove::after { content: "Tak burtur"; font-family: var(--wk-body); font-size: 1rem; line-height: 1.4; text-decoration: underline 1px; text-underline-offset: 0.3em; }
#wk a.remove:hover { color: var(--wk-rust) !important; }
#wk .woocommerce-cart-form .quantity { display: inline-flex; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--wk-edge); }
#wk .woocommerce-cart-form .qty { width: 3rem; min-height: 2.75rem; padding: 0; border: 0; background: none; font-size: 1rem; font-weight: 600; text-align: center; -webkit-appearance: textfield; -moz-appearance: textfield; appearance: textfield; }
#wk .woocommerce-cart-form .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#wk .woocommerce-cart-form .qty:only-of-type:not(:has(~ .wk-step)) { width: 4.5rem; }
.wk-step { width: 2.75rem; min-height: 2.75rem; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--wk-ink); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color 0.2s; }
.wk-step:hover { background: color-mix(in srgb, var(--wk-ink) 10%, transparent); }
#wk tr:has(> td.actions) { display: block; }
#wk td.actions.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; padding: 1.5rem 0 clamp(2rem, 4vw, 3.5rem); }
#wk td.actions .coupon { display: flex; flex: 1 1 min(100%, 22rem); flex-wrap: wrap; gap: 0.75rem; float: none; max-width: 30rem; margin: 0; padding: 0; }
#wk td.actions .coupon::before, #wk td.actions .coupon::after, #wk :is(.col2-set, .u-columns, .woocommerce-Address-title)::before, #wk :is(.col2-set, .u-columns, .woocommerce-Address-title)::after { display: none; }
#wk #coupon_code { flex: 1 1 8rem; width: auto; min-width: 0; height: auto; min-height: 3rem; margin: 0; padding: 0.5rem 1rem; font-size: 1rem; }
#wk td.actions .coupon-error-notice { flex-basis: 100%; margin: 0; }
/* With the script on, a changed quantity updates the cart by itself. */
#wk .is-auto [name="update_cart"] { display: none; }
#wk .cart-collaterals, #wk .cart_totals { float: none; width: auto; }
#wk .cart_totals { margin-bottom: clamp(2rem, 4vw, 3.5rem); padding: var(--wk-panel); border-radius: var(--wk-round); background: #fff; }
#wk .wc-proceed-to-checkout { margin-top: 1.5rem; padding: 0; }
.wk-cart .cross-sells { padding-bottom: 3rem; }
@media (min-width: 60rem) {
	.wk-cart .entry-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) var(--wk-side); column-gap: var(--wk-gap); align-items: start; }
	.wk-cart .entry-content > .woocommerce > * { grid-column: 1; }
	.wk-cart .entry-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	#wk .cart-collaterals { display: contents; }
	.wk-cart .cross-sells { grid-column: 1; }
	#wk .cart_totals { position: sticky; top: calc(var(--wauw-header) + var(--wp-admin--admin-bar--height, 0px) + 1.5rem); grid-column: 2; grid-row: 2 / span 20; }
	#wk .woocommerce-cart-form .cart_item { grid-template: "pic name qty sum" auto "pic unit qty sum" auto "pic remove qty sum" 1fr / 8.5rem minmax(0, 1fr) auto minmax(6.75rem, auto); column-gap: 2rem; }
	#wk .woocommerce-cart-form :is(td.product-quantity, td.product-subtotal) { padding: 0; }
	#wk .woocommerce-cart-form td.product-subtotal { text-align: right !important; }
	#wk .woocommerce-cart-form td.product-name { padding-top: 0.5rem; }
	#wk .woocommerce-cart-form td.product-remove { align-self: start; }
}

@media (max-width: 26rem) { #wk .woocommerce-cart-form .cart_item { grid-template-columns: 4.5rem minmax(0, 1fr) auto; column-gap: 0.9rem; } }
@media (max-width: 22.9rem) { #wk .woocommerce-cart-form .cart_item { grid-template-areas: "pic name name" "pic unit unit" "pic qty qty" "pic remove sum"; } #wk td.product-subtotal { padding: 0; } }

/* Empty cart: the message beside the shelf, the newest products below. */
main:has(.woocommerce-cart-form) .wk-empty, .wk-cart:has(.wc-empty-cart-message) :is(.wk-facts, .wk-steps) { display: none; }
.wk .wk-empty { width: 100%; }
#wk .wc-empty-cart-message .wc-block-components-notice-banner { margin: 0; padding: 0 !important; background: none; color: inherit; font-size: clamp(1.125rem, 1.6vw, 1.3rem); }
#wk .wc-empty-cart-message svg { display: none; }
#wk .return-to-shop { margin: 1.5rem 0 2.5rem; }
.wk-empty__pic { display: block; width: 100%; height: clamp(14rem, 60vw, 26rem); object-fit: cover; object-position: 78% 60%; }
.wk-empty__new { padding: clamp(2.5rem, 5vw, 4.5rem) var(--wauw-gutter) clamp(3rem, 6vw, 5.5rem); }
#wk .wk-empty__head { margin: 0 0 1.5rem; color: inherit; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
@media (min-width: 60rem) {
	.wk-cart:has(.wc-empty-cart-message) { display: grid !important; grid-template: minmax(12rem, 1fr) auto auto minmax(6rem, 1fr) auto / max(var(--wauw-gutter), calc((100% - 96rem) / 2)) minmax(0, 24rem) minmax(2rem, 1fr) 54%; }
	.wk-cart:has(.wc-empty-cart-message) > * { grid-column: 2; width: auto; margin: 0; }
	.wk-cart:has(.wc-empty-cart-message) > .wk-top { grid-row: 1; align-items: end; padding-bottom: 1rem; }
	.wk-cart:has(.wc-empty-cart-message) > .wc-block-store-notices { grid-row: 2; padding: 0; }
	.wk-cart:has(.wc-empty-cart-message) > .entry-content { grid-row: 3; }
	.wk-cart:has(.wc-empty-cart-message) .entry-content > .woocommerce { display: block; }
	.wk-cart:has(.wc-empty-cart-message) > .wk-empty { display: contents; }
	.wk-empty__pic { grid-column: 4; grid-row: 1 / 5; height: 0; min-height: max(100%, 27rem); }
	.wk-empty__new { grid-column: 1 / -1; grid-row: 5; box-sizing: border-box; width: 100%; padding-inline: max(var(--wauw-gutter), calc((100% - 96rem) / 2)); }
}

/* ---------- Checkout ---------- */
/* The header's own slim row, with only the way back, the name and the phone. */
.wk-bar { background: rgb(var(--wx-rgb)); color: var(--wx-text); box-shadow: inset 0 -1px rgb(255 255 255 / 0.1); }
.wk-bar .wk-bar__row { box-sizing: border-box; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; height: var(--wauw-header); padding-inline: max(var(--wauw-gutter), calc((100% - 96rem) / 2)); font-family: var(--wx-body); font-size: 0.95rem; font-weight: 500; font-variant-numeric: lining-nums; }
.wk-bar__back { display: inline-flex; gap: 0.6rem; align-items: center; justify-self: start; min-height: 2.75rem; color: var(--wx-text); white-space: nowrap; }
.wk-bar__back:hover { text-decoration: underline 1px !important; text-underline-offset: 0.5em; }
.wk-bar .wx-call { justify-self: end; margin-right: 0; }
.wauw-theme .wp-site-blocks > .wk-foot { box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 0 2rem; align-items: center; justify-content: space-between; padding: 1.1rem max(var(--wauw-gutter), calc((100% - 96rem) / 2)) !important; background: rgb(var(--wx-rgb)); color: var(--wx-text); }
.wk-foot p { margin: 0; }
.wk-foot a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; text-decoration: underline 1px; text-underline-offset: 0.3em; }
.wk-foot a:focus-visible { outline: 2px solid var(--wx-ivory); outline-offset: 3px; }
.wk-foot__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

/* On a phone: the sum stays in view and leads to the order. */
.wk .wk-peek { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.25rem; margin-bottom: 1.25rem; padding: 0.4rem var(--wauw-gutter); background: #fff; box-shadow: inset 0 1px var(--wk-line), inset 0 -1px var(--wk-line); color: var(--wk-ink); text-decoration: none; }
.admin-bar .wk .wk-peek { top: var(--wp-admin--admin-bar--height, 0); }
.wk-peek span { text-decoration: underline 1px; text-underline-offset: 0.3em; }
.wk-peek b { font-size: 1.125rem; }
.wk-peek:focus-visible { outline-offset: -4px; }

#wk form.checkout { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(3rem, 5vw, 4.5rem); }
#wk form.checkout #order_review { display: contents; }
#wk #customer_details, #wk #customer_details :is(.col-1, .col-2) { float: none; width: auto; }
#wk #customer_details { margin: 0 0 2.5rem; }
#wk #customer_details .col-2 { margin-top: 2rem; }
#wk :is(#customer_details h3, .woocommerce-MyAccount-content form > h3) { margin: 0 0 1.25rem; color: inherit; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: 0; line-height: 1.25; }
#wk #customer_details #ship-to-different-address { margin: 0; font-size: 1.0625rem; }
#wk #ship-to-different-address label { font-family: var(--wk-body); font-weight: 600; }
#wk .shipping_address { padding-top: 0.75rem; }
#wk .woocommerce-shipping-fields + .woocommerce-additional-fields { margin-top: 1.75rem; }
#wk [class$="__field-wrapper"] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 1.25rem; }
@media (min-width: 30rem) {
	#wk [class$="__field-wrapper"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
	#wk [class$="__field-wrapper"] > :not(.form-row-first, .form-row-last, [id$="_city_field"], [id$="_postcode_field"]) { grid-column: 1 / -1; }
}

/* Coupon and log in: one quiet line until they are opened. */
#wk :is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle) { padding-bottom: 1rem; }
#wk :is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle) .wc-block-components-notice-banner { margin: 0; padding: 0 !important; background: none; }
#wk :is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle) .wc-block-components-notice-banner__content { gap: 0 0.5rem; justify-content: flex-start; }
#wk :is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle) svg { display: none; }
#wk :is(.showcoupon, .showlogin) { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: underline 1px; }
#wk form:is(.checkout_coupon, .woocommerce-form-login) { max-width: 30rem; margin: 0; padding: 0 0 2rem; border: 0; border-radius: 0; }
/* Shown and hidden by the plugin's own script, so only their insides are laid out. */
#wk form.checkout_coupon .form-row { margin: 0 0 0.75rem; }
#wk .checkout_coupon #coupon_code { width: 100%; }
.wk-checkout#wk form.woocommerce-form-login > p { margin: 0 0 1rem; }

/* Payment. Every gateway's own markup is left as it is, only given room. */
#wk #payment { padding: 0; border-radius: 0; background: none; }
#wk form.checkout #payment::before { content: "Gjalding"; display: block; margin-bottom: 1.1rem; font-family: var(--wk-display); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; }
#wk #payment .payment_methods { display: grid; gap: 0.75rem; margin: 0; padding: 0; border: 0; list-style: none; }
#wk #payment .payment_methods > li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; margin: 0; padding: 0; border: 1px solid var(--wk-edge); border-radius: var(--wk-round); background: #fff; line-height: 1.4; text-indent: 0; }
#wk #payment .payment_methods > li::before, #wk #payment .payment_methods > li::after { display: none; }
#wk #payment .payment_methods > li:has(> input:checked) { border-color: var(--wk-ink); box-shadow: inset 0 0 0 1px var(--wk-ink); }
#wk #payment .payment_methods > li:not(.wc_payment_method) { display: block; padding: 1rem 1.25rem; }
#wk #payment .payment_methods > li > input[type="radio"] { margin: 0 -0.35rem 0 1.25rem; }
#wk #payment .payment_methods > li > label { display: flex; flex-wrap: wrap; grid-column: 2; gap: 0.5rem 0.75rem; align-items: center; min-height: 3.5rem; margin: 0; padding: 0.5rem 1.25rem; font-size: 1.0625rem; font-weight: 600; cursor: pointer; }
#wk #payment .payment_methods > li > label img { float: none; width: auto; max-height: 1.75rem; margin: 0; }
#wk #payment .payment_box { grid-column: 1 / -1; width: auto; margin: 0; padding: 0 1.25rem 1.1rem; border-radius: 0; background: none; color: inherit; font-size: 1rem; line-height: 1.5; }
#wk #payment .payment_box::before { display: none; }
#wk #payment .payment_box > p { margin: 0 0 0.5rem; }
#wk #payment .payment_box > p:last-child { margin: 0; }
#wk #payment .place-order { display: block; float: none; width: auto; margin: 0; padding: 1.5rem 0 0; }
#wk .woocommerce-terms-and-conditions-wrapper { margin: 0 0 1.5rem; }
#wk .woocommerce-terms-and-conditions-wrapper p { margin: 0 0 0.75rem; }
#wk .woocommerce-terms-and-conditions-wrapper a { color: inherit; text-underline-offset: 0.25em; }
#wk .woocommerce-terms-and-conditions { margin: 0 0 1rem; padding: 1.25rem; border: 1px solid var(--wk-line); border-radius: var(--wk-round); background: #fff; }

/* The order: heading and table are two pieces of one white panel. */
#wk form.checkout > #order_review_heading { z-index: 1; margin: 0; padding: var(--wk-panel) var(--wk-panel) 0.25rem; border-radius: var(--wk-round) var(--wk-round) 0 0; background: #fff; scroll-margin-top: 4.5rem; }
#wk .checkout .shop_table { box-sizing: border-box; margin: 0 0 2.5rem; padding: 0 var(--wk-panel) var(--wk-panel); border-radius: 0 0 var(--wk-round) var(--wk-round); background: #fff; }
#wk .checkout tr.cart_item { flex-wrap: nowrap; }
#wk .checkout tr.cart_item > td { flex: none; }
#wk .checkout tr.cart_item > td:first-child { flex: 1; overflow-wrap: anywhere; }
#wk .woocommerce-checkout-review-order-table .product-quantity { color: var(--wk-soft); font-family: var(--wk-body); font-weight: 400; white-space: nowrap; }
@media (min-width: 60rem) {
	.wk .wk-peek { display: none; }
	#wk form.checkout { grid-template-columns: minmax(0, 1fr) var(--wk-side); column-gap: var(--wk-gap); }
	#wk :is(form.checkout, .woocommerce-checkout-review-order) > * { grid-column: 1; min-width: 0; }
	/* Both share one tall area, so they stay in view together while the form scrolls. */
	#wk form.checkout > #order_review_heading, #wk form.checkout .shop_table { position: sticky; grid-row: 1 / span 20; grid-column: 2; align-self: start; }
	#wk form.checkout > #order_review_heading { top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem); box-sizing: border-box; height: calc(var(--wk-panel) + 2.5rem); margin: 0; padding-bottom: 0; }
	#wk form.checkout .shop_table { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--wk-panel) + 4rem); max-height: calc(100vh - var(--wk-panel) - 5.5rem); margin: calc(var(--wk-panel) + 2.5rem) 0 0; overflow-y: auto; scrollbar-width: thin; }
}

/* Paying for an order that already exists: one column. */
.woocommerce-order-pay .wk-peek { display: none; }
.woocommerce-order-pay .wk > * { width: min(46rem, 100% - 2 * var(--wauw-gutter)); }
#wk form#order_review { padding-bottom: 3rem; }
#wk form#order_review table.shop_table { width: 100%; margin: 0 0 2rem; border: 0; }
#wk form#order_review table.shop_table :is(th, td) { padding: 0.8rem 0; border: 0; border-bottom: 1px solid var(--wk-line); text-align: left; }
#wk form#order_review table.shop_table :is(th, td):last-child { text-align: right; }

/* ---------- Receipt ---------- */
.wauw-theme.woocommerce-order-received .wp-site-blocks > #wk { padding: 0 !important; }
.woocommerce-order-received #wk.wk > * { max-width: 46rem; margin-inline: auto !important; }
.wk-done .wk-top { padding-bottom: 1rem; }
#wk > .wc-block-order-confirmation-status { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
#wk .wc-block-order-confirmation-status p { max-width: 38rem; margin: 0.75rem 0 0; font-size: 1.125rem; line-height: 1.5; }
#wk .wc-block-order-confirmation-status__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
#wk > .wc-block-order-confirmation-status-description { padding-bottom: 1.5rem; }
#wk > .wc-block-order-confirmation-status-description:empty { display: none; }
.wk-slip { box-sizing: border-box; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--wk-round); background: #fff; }
#wk .wk-slip > * + * { margin-top: 2.25rem; }
#wk .wk-slip h2 { margin: 0 0 0.6rem; color: inherit; font-size: 1.5rem; letter-spacing: 0; line-height: 1.25; }
#wk .wc-block-order-confirmation-summary-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.1rem 2rem; margin: 0; padding: 0; border: 0; list-style: none; }
#wk .wc-block-order-confirmation-summary-list-item { display: block; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 1rem; }
#wk .wc-block-order-confirmation-summary-list-item > span { display: block; font-size: 1rem; }
#wk .wc-block-order-confirmation-summary-list-item__key { color: var(--wk-soft); font-weight: 400; }
#wk .wc-block-order-confirmation-summary-list-item__value { font-weight: 600; overflow-wrap: anywhere; }
#wk .wk-slip :is(table, tbody, tfoot) { display: block; width: 100%; margin: 0; border: 0; }
#wk .wk-slip tr { display: flex; gap: 1.5rem; align-items: baseline; justify-content: space-between; padding: 0.75rem 0; border: 0; border-bottom: 1px solid var(--wk-line); }
#wk .wk-slip :is(th, td) { display: block; min-width: 0; padding: 0; border: 0; font-weight: 400; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
#wk .wk-slip td:last-child { flex: none; font-weight: 600; text-align: right; }
#wk .wk-slip a { color: inherit; text-decoration: none; }
#wk .wk-slip a:hover { text-decoration: underline 1px; text-underline-offset: 0.25em; }
#wk .wk-slip tfoot tr:last-child { padding: 1.1rem 0 0; border: 0; }
#wk .wk-slip tfoot tr:last-child th { font-size: 1.0625rem; font-weight: 600; }
#wk .wk-slip tfoot tr:last-child td { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.wk-slip__who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2rem; }
#wk .wk-slip__who > * { margin: 0; }
#wk .wk-slip :is(address, .wc-block-order-confirmation-billing-address, .wc-block-order-confirmation-shipping-address) { padding: 0; border: 0; font-style: normal; line-height: 1.6; }
.wk-slip p { margin: 0.5rem 0 0; }
#wk .wk-done__on { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; padding-block: 2rem clamp(3rem, 6vw, 5.5rem); }

/* ---------- Account ---------- */
.woocommerce-account .wd-toc { display: none; }
#wk .wd-sheet > h1 { max-width: none; }
.woocommerce-account #wk .wd-text { max-width: none; font-size: 1rem; line-height: 1.6; }
.woocommerce-account #wk :is(h2, h3) { margin: 0 0 1.1rem; color: inherit; font-family: var(--wk-display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.woocommerce-account #wk form { display: grid; gap: 1.1rem; max-width: 27rem; margin: 0; padding: 0; border: 0; border-radius: 0; }
.woocommerce-account #wk form > p:has(> .button) { display: grid; gap: 1.1rem; justify-items: start; }
.woocommerce-account #wk .woocommerce-MyAccount-content form { max-width: 40rem; }
.woocommerce-account #wk form .form-row { margin: 0; }
.woocommerce-account #wk form :is(.clear, .clearfix) { display: none; }
.woocommerce-account #wk :is(.woocommerce-form-login__submit, .woocommerce-form-register__submit) { width: 100%; min-height: 3.5rem; font-size: 1.0625rem; }
#wk .lost_password a { display: inline-flex; align-items: center; min-height: 2.75rem; }
#wk :is(.lost_password, .woocommerce-MyAccount-content) a:not(.button) { color: inherit; text-decoration: underline 1px; text-underline-offset: 0.25em; }
#wk :is(.u-columns, .woocommerce-MyAccount-content .col2-set) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2.5rem; width: auto; }
.woocommerce-account #wk :is(.col-1, .col-2) { float: none; width: auto; max-width: none; padding: 0; }

/* Logged out: the form on the left, the sofa on the right. */
.woocommerce-account:not(.logged-in) #wk .wd-sheet { padding-bottom: 0; }
.woocommerce-account:not(.logged-in) .wd-sheet::after { content: ""; display: block; height: clamp(15rem, 62vw, 28rem); margin: 3rem calc(-1 * var(--wauw-gutter)) 0; background: #8a3a14 url("/wp-content/uploads/2024/09/wauw-62-1024x683.jpg") 30% 60% / cover no-repeat; }
@media (min-width: 60rem) {
	.woocommerce-account:not(.logged-in) #wk .wd-sheet { grid-template: auto auto 1fr / minmax(0, 27rem) minmax(0, 1fr); gap: 0 clamp(3rem, 8vw, 8rem); padding-right: 0; }
	.woocommerce-account:not(.logged-in) #wk .wd-sheet > * { grid-column: 1; }
	.woocommerce-account:not(.logged-in) #wk .wd-help { position: static; margin: 2rem 0 4rem; padding-top: 1.5rem; border-top: 1px solid var(--wk-line); }
	.woocommerce-account:not(.logged-in) .wd-sheet::after { grid-column: 2; grid-row: 1 / 4; height: auto; min-height: calc(100vh - var(--wauw-header)); margin: calc(-1 * clamp(2rem, 5vw, 4.5rem)) 0 0; background-image: url("/wp-content/uploads/2024/09/wauw-62-2048x1365.jpg"); background-position: 34% 60%; }
}

/* Logged in: menu and help on the left, what you came for on the right. */
#wk .woocommerce-MyAccount-navigation { float: none; width: auto; margin: 0 0 2rem; }
#wk .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
#wk .woocommerce-MyAccount-navigation li { padding: 0; }
#wk .woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; text-decoration: none; }
#wk .woocommerce-MyAccount-navigation a:hover, #wk .woocommerce-MyAccount-navigation .is-active a { text-decoration: underline 1px; text-underline-offset: 0.4em; }
#wk .woocommerce-MyAccount-navigation .is-active a { font-weight: 700; }
#wk .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
#wk .woocommerce-MyAccount-content > p { max-width: 42rem; margin: 0 0 1.1rem; }
#wk .woocommerce-MyAccount-content mark { background: none; color: inherit; font-weight: 700; }
#wk .woocommerce-MyAccount-content fieldset { display: grid; gap: 1.1rem; margin: 0.75rem 0 0; padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--wk-line); }
#wk .woocommerce-MyAccount-content legend { float: left; padding: 0 0 0.25rem; font-family: var(--wk-display); font-size: 1.5rem; }
#wk .woocommerce-MyAccount-content form em { font-style: normal; }
.woocommerce-account #wk .shop_table { width: 100%; margin: 0 0 2.5rem; font-size: 1rem; border: 0; border-radius: 0; border-collapse: collapse; }
.woocommerce-account #wk .shop_table :is(th, td) { padding: 0.9rem 1.25rem 0.9rem 0; border: 0; border-bottom: 1px solid var(--wk-line); background: none; font-weight: 400; line-height: 1.4; text-align: left; vertical-align: middle; }
.woocommerce-account #wk .shop_table thead th { padding-top: 0; font-weight: 700; }
.woocommerce-account #wk .shop_table :is(th, td):last-child { padding-right: 0; text-align: right; }
.woocommerce-account #wk table.order_details tfoot tr:last-child :is(th, td) { font-weight: 700; }
.woocommerce-account #wk .shop_table a.button { min-height: 2.75rem; padding: 0.35rem 1.25rem; }
#wk address { box-sizing: border-box; width: auto; padding: 0; border: 0; font-style: normal; line-height: 1.6; }
#wk .woocommerce-Address-title { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: baseline; justify-content: space-between; }
.woocommerce-account #wk .woocommerce-Address-title :is(h2, h3) { margin: 0 0 0.35rem; }
#wk .woocommerce-Address-title .edit { float: none; display: inline-flex; align-items: center; min-height: 2.75rem; margin: 0; }
#wk :is(.woocommerce-customer-details, .woocommerce-order-details) { margin-top: 2rem; }
@media (min-width: 60rem) {
	.woocommerce-account.logged-in #wk .wd-sheet { grid-template: auto auto auto 1fr / 15rem minmax(0, 1fr); gap: 0 4rem; }
	.woocommerce-account.logged-in #wk .wd-sheet > h1 { grid-column: 1 / -1; }
	.woocommerce-account.logged-in #wk :is(.wd-text, .wd-text > .woocommerce) { display: contents; }
	.woocommerce-account.logged-in #wk .wd-text > .woocommerce > * { grid-column: 2; min-width: 0; line-height: 1.6; }
	.woocommerce-account.logged-in #wk .woocommerce > .woocommerce-notices-wrapper { grid-row: 2; }
	.woocommerce-account.logged-in #wk .wd-text > .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: 2 / 4; margin: -0.6rem 0 0; }
	.woocommerce-account.logged-in #wk .woocommerce > .woocommerce-MyAccount-content { grid-row: 3 / 5; }
	.woocommerce-account.logged-in #wk .wd-help { position: static; grid-column: 1; grid-row: 4; align-self: start; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--wk-line); }
	#wk .woocommerce-MyAccount-navigation ul { display: block; }
}
@media (max-width: 48rem) {
	.woocommerce-account #wk .shop_table_responsive tbody tr { padding: 1rem 0; border-bottom: 1px solid var(--wk-line); }
	.woocommerce-account #wk .shop_table_responsive tbody :is(td, th) { display: block; padding: 0.3rem 0; border: 0; text-align: right !important; }
	.woocommerce-account #wk .shop_table_responsive tbody th { font-size: 1.125rem; font-weight: 700; text-align: left !important; }
	.woocommerce-account #wk .shop_table_responsive td::before { font-weight: 400; }
	.woocommerce-account #wk .shop_table_responsive td.woocommerce-orders-table__cell-order-actions a.button { width: 100%; }
}
