/* =========================================================================
   fix-blockcheckout.css — the WooCommerce Cart block and Checkout block

   WooCommerce 10.x supplies the cart page and the checkout page as blocks.
   The block stylesheets use a light theme. They give each field a white
   background. The theme gives each label the color white. Thus each label
   was white on white, and the customer could not read the form.

   This file applies the dark theme to the block markup. Each field gets the
   surface color. Each label keeps the color white.

   Scope: the two block containers only. The classic WooCommerce forms keep
   the rules in jk.css.
   ========================================================================= */

.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
	--jk-field-bg:     var(--jk-surface);
	--jk-field-border: rgba(255, 255, 255, .18);
	color: var(--jk-text);
}

/* ---- Step titles and section headings --------------------------------- */
.wp-block-woocommerce-checkout .wc-block-components-title,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
.wp-block-woocommerce-cart .wc-block-components-title {
	color: var(--jk-text);
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-content,
.wp-block-woocommerce-checkout .wc-block-checkout__guest-checkout-notice,
.wp-block-woocommerce-checkout .wc-block-checkout__terms,
.wp-block-woocommerce-cart .wc-block-components-checkout-step__description {
	color: var(--jk-text-muted);
}

.wp-block-woocommerce-checkout .wc-block-checkout__terms a,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description a {
	color: var(--jk-aqua);
}

/* ---- Text fields ------------------------------------------------------ */
/* The block markup puts the label inside the field. The label moves up when
   the field has a value. Thus the label needs the field background. */
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="text"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="email"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="tel"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="number"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="password"],
.wp-block-woocommerce-checkout .wc-block-components-textarea,
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="text"],
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="email"],
.wp-block-woocommerce-cart .wc-block-components-textarea {
	background-color: var(--jk-field-bg);
	color: var(--jk-text);
	border: 1px solid var(--jk-field-border);
	border-radius: 4px;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-cart .wc-block-components-text-input label {
	color: var(--jk-text-muted);
}

.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-cart .wc-block-components-text-input.is-active label {
	color: var(--jk-text-muted);
	background: transparent;
}

/* A field that fails validation gets a `.has-error` wrapper class. The
   block default repaints that field with a white background and near-
   black text — legible on its own, but a bright white box flashing
   inside a dark form is the same white-on-white family of bug the rest
   of this file exists to fix. Keep the field dark; let the red border
   alone carry the error state. */
.wp-block-woocommerce-checkout .wc-block-components-text-input.has-error input,
.wp-block-woocommerce-cart .wc-block-components-text-input.has-error input,
.wp-block-woocommerce-checkout .wc-block-components-text-input.has-error textarea,
.wp-block-woocommerce-cart .wc-block-components-text-input.has-error textarea {
	background-color: var(--jk-field-bg) !important;
	color: var(--jk-text) !important;
	border-color: #ff6b6b !important;
}
.wp-block-woocommerce-checkout .wc-blocks-components-select__container.has-error,
.wp-block-woocommerce-cart .wc-blocks-components-select__container.has-error {
	background-color: var(--jk-field-bg) !important;
	border-color: #ff6b6b !important;
}

/* The browser autofill style writes a white background again. Paint the
   field with an inset shadow, because the browser ignores background-color. */
.wp-block-woocommerce-checkout input:-webkit-autofill,
.wp-block-woocommerce-checkout input:-webkit-autofill:hover,
.wp-block-woocommerce-checkout input:-webkit-autofill:focus,
.wp-block-woocommerce-cart input:-webkit-autofill {
	-webkit-text-fill-color: var(--jk-text);
	-webkit-box-shadow: 0 0 0 100rem var(--jk-field-bg) inset;
	caret-color: var(--jk-text);
}

/* ---- Focus ------------------------------------------------------------ */
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout .wc-block-components-textarea:focus,
.wp-block-woocommerce-checkout .wc-blocks-components-select__select:focus,
.wp-block-woocommerce-cart .wc-block-components-text-input input:focus {
	background-color: var(--jk-field-bg);
	color: var(--jk-text);
	border-color: var(--jk-aqua);
	outline: 2px solid var(--jk-aqua);
	outline-offset: 0;
	box-shadow: none;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus + label,
.wp-block-woocommerce-cart .wc-block-components-text-input input:focus + label {
	color: var(--jk-aqua);
}

/* ---- Select fields — country and state -------------------------------- */
.wp-block-woocommerce-checkout .wc-blocks-components-select__container,
.wp-block-woocommerce-cart .wc-blocks-components-select__container {
	background-color: var(--jk-field-bg);
	border: 1px solid var(--jk-field-border);
	border-radius: 4px;
}

.wp-block-woocommerce-checkout .wc-blocks-components-select__select,
.wp-block-woocommerce-cart .wc-blocks-components-select__select {
	background-color: transparent;
	color: var(--jk-text);
	border: 0;
}

.wp-block-woocommerce-checkout .wc-blocks-components-select__label,
.wp-block-woocommerce-cart .wc-blocks-components-select__label {
	color: var(--jk-text-muted);
	background: transparent;
}

.wp-block-woocommerce-checkout .wc-blocks-components-select__expand,
.wp-block-woocommerce-cart .wc-blocks-components-select__expand {
	fill: var(--jk-text);
}

/* The operating system draws the open list. Give the list the same colors,
   because Windows and Linux use these two properties. */
.wp-block-woocommerce-checkout .wc-blocks-components-select__select option,
.wp-block-woocommerce-cart .wc-blocks-components-select__select option {
	background-color: var(--jk-surface);
	color: var(--jk-text);
}

/* The combobox variant applies to a country field with a search box. */
.wp-block-woocommerce-checkout .wc-block-components-combobox .components-form-token-field__input,
.wp-block-woocommerce-checkout .wc-block-components-combobox-control input {
	background-color: var(--jk-field-bg);
	color: var(--jk-text);
}

/* ---- The address card — the collapsed address summary ----------------- */
.wp-block-woocommerce-checkout .wc-block-components-address-card {
	background-color: var(--jk-bg-2);
	color: var(--jk-text);
	border: 1px solid var(--jk-border);
	border-radius: 4px;
}

.wp-block-woocommerce-checkout .wc-block-components-address-card__edit {
	color: var(--jk-aqua);
}

/* ---- Checkbox and radio ----------------------------------------------- */
.wp-block-woocommerce-checkout .wc-block-components-checkbox__label,
.wp-block-woocommerce-cart .wc-block-components-checkbox__label {
	color: var(--jk-text);
}

.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input,
.wp-block-woocommerce-cart .wc-block-components-checkbox .wc-block-components-checkbox__input {
	background-color: var(--jk-field-bg);
	border: 1px solid var(--jk-field-border);
}

.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:checked {
	background-color: var(--jk-aqua);
	border-color: var(--jk-aqua);
}

.wp-block-woocommerce-checkout .wc-block-components-checkbox__mark {
	fill: #06141a;
}

/* ---- Payment options and shipping options ----------------------------- */
/* The radio list holds the BTCPay option. Each option needs the dark theme,
   or the customer cannot read the name of the payment method. */
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__option {
	background-color: var(--jk-bg-2);
	color: var(--jk-text);
	border-color: var(--jk-border);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__label,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__secondary-label,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__description {
	color: var(--jk-text);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__description,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__secondary-label {
	color: var(--jk-text-muted);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__input {
	background-color: var(--jk-field-bg);
	border-color: var(--jk-field-border);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked {
	border-color: var(--jk-aqua);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__input:checked::before {
	background-color: var(--jk-aqua);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-content {
	background-color: var(--jk-bg-2);
	color: var(--jk-text-muted);
}

/* ---- The order summary — the sidebar ---------------------------------- */
.wp-block-woocommerce-checkout .wc-block-components-sidebar .wc-block-components-checkout-order-summary,
.wp-block-woocommerce-checkout .wc-block-components-order-summary,
.wp-block-woocommerce-cart .wc-block-components-sidebar {
	background-color: var(--jk-bg-2);
	color: var(--jk-text);
	border-color: var(--jk-border);
}

.wp-block-woocommerce-checkout .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item,
.wp-block-woocommerce-checkout .wc-block-components-product-name,
.wp-block-woocommerce-checkout .wc-block-components-product-price,
.wp-block-woocommerce-cart .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart .wc-block-components-product-name {
	color: var(--jk-text);
}

.wp-block-woocommerce-checkout .wc-block-components-totals-item__description,
.wp-block-woocommerce-checkout .wc-block-components-product-details,
.wp-block-woocommerce-checkout .wc-block-components-product-metadata,
.wp-block-woocommerce-cart .wc-block-components-product-details {
	color: var(--jk-text-muted);
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	background-color: var(--jk-surface);
	color: var(--jk-text);
	border-color: var(--jk-border);
}

.wp-block-woocommerce-checkout .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper {
	border-color: var(--jk-border);
}

/* ---- The coupon panel ------------------------------------------------- */
.wp-block-woocommerce-checkout .wc-block-components-panel__button,
.wp-block-woocommerce-cart .wc-block-components-panel__button {
	color: var(--jk-text);
}

.wp-block-woocommerce-checkout .wc-block-components-panel__button-icon,
.wp-block-woocommerce-cart .wc-block-components-panel__button-icon {
	fill: var(--jk-text);
}

/* ---- Notices (error, warning, info, success) --------------------------
   The default WooCommerce notice is a light card: a pale background with
   dark text. That card is correct on a light page. On this dark checkout
   it looks like a mistake dropped onto the page. Give the notice a dark
   panel and a colored left edge instead, so it still reads as a notice
   but belongs on this page. The notice icon has no color rule of its
   own — it reads `currentColor`, so the `color` rule below also paints
   the icon. */
.wp-block-woocommerce-checkout .wc-block-components-notice-banner,
.wp-block-woocommerce-cart .wc-block-components-notice-banner {
	background-color: var(--jk-surface);
	color: var(--jk-text);
	border: 1px solid var(--jk-field-border);
	border-left-width: 4px;
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-error,
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-error {
	border-left-color: #ff6b6b;
	color: #ff9b9b;
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-warning,
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-warning {
	border-left-color: #f0b429;
	color: #f5cc73;
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-info,
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-info {
	border-left-color: var(--jk-lime);
	color: var(--jk-text);
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-success,
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-success {
	border-left-color: #3ddc84;
	color: #8ef0b3;
}

/* The link inside a notice needs its own rule — a link must stay a link
   color, not the notice's status color. This rule targets the anchor
   itself, so it wins over the inherited status color regardless of the
   variant class order above. */
.wp-block-woocommerce-checkout .wc-block-components-notice-banner a,
.wp-block-woocommerce-cart .wc-block-components-notice-banner a {
	color: var(--jk-lime);
	text-decoration: underline;
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner__dismiss,
.wp-block-woocommerce-cart .wc-block-components-notice-banner__dismiss {
	color: var(--jk-text-muted);
}
.wp-block-woocommerce-checkout .wc-block-components-notice-banner__dismiss:hover,
.wp-block-woocommerce-cart .wc-block-components-notice-banner__dismiss:hover {
	color: var(--jk-text);
}

.wp-block-woocommerce-checkout .wc-block-components-validation-error,
.wp-block-woocommerce-cart .wc-block-components-validation-error {
	color: #ff6b6b;
}

/* ---- Buttons ---------------------------------------------------------- */
/* The aqua fill applies to the primary buttons only. The quantity control
   and the remove control are also buttons, but they must stay quiet. */
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link) {
	background-color: var(--jk-aqua);
	color: #06141a;
	border-color: var(--jk-aqua);
	font-family: var(--jk-heading-font);
	text-transform: uppercase;
	letter-spacing: .05em;
	text-decoration: none;
}

.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover {
	background-color: var(--jk-aqua-deep);
	border-color: var(--jk-aqua-deep);
	color: #06141a;
	text-decoration: none;
}

/* Give the quantity control and the remove control the field colors again.
   Note: jk.css gives each `button` the aqua fill with `!important`. Thus
   these two rules also need `!important`. */
.wp-block-woocommerce-cart .wc-block-components-quantity-selector button,
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
	background-color: transparent !important;
	color: var(--jk-text-muted) !important;
	border-color: var(--jk-field-border);
	font-family: var(--jk-body-font);
	text-transform: none;
	letter-spacing: normal;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector button:hover,
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover {
	background-color: transparent !important;
	color: var(--jk-aqua) !important;
	border-color: var(--jk-field-border);
}

.wp-block-woocommerce-checkout .wc-block-components-button.is-link,
.wp-block-woocommerce-cart .wc-block-components-button.is-link {
	color: var(--jk-aqua);
}

/* ---- The cart page — the item table ----------------------------------- */
.wp-block-woocommerce-cart .wc-block-cart-items,
.wp-block-woocommerce-cart .wc-block-cart-items__header,
.wp-block-woocommerce-cart .wc-block-cart-item__wrap,
.wp-block-woocommerce-cart .wc-block-cart-item__prices,
.wp-block-woocommerce-cart .wc-block-cart-item__total {
	color: var(--jk-text);
	border-color: var(--jk-border);
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector input,
.wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
	background-color: var(--jk-field-bg);
	color: var(--jk-text);
	border-color: var(--jk-field-border);
}

/* ---- The block checkout on a small screen ----------------------------- */
@media (max-width: 782px) {
	.wp-block-woocommerce-checkout .wc-block-components-sidebar {
		background-color: var(--jk-bg-2);
	}
}

/* =========================================================================
   Neon pass (PJK-4). No clip-path inside .wc-block-* or
   .wp-block-woocommerce-*. Borders and shadows carry the shape.
   ========================================================================= */

/* Page title above the checkout block. */
.woocommerce-checkout .entry-header .entry-title,
.woocommerce-cart .entry-header .entry-title { text-align: left; }

/* The field border needs 3:1 against the field. */
.wp-block-woocommerce-checkout {
	--jk-field-border: #5d6a76;
}
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-blocks-components-select__container,
.wp-block-woocommerce-checkout .wc-block-components-textarea { min-height: 50px; }
.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-blocks-components-select__label {
	color: #aab4bd;
}

/* "Log in" reminder next to Contact information. */
.wp-block-woocommerce-checkout .wc-block-checkout__login-prompt,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-content a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--pink);
	font-family: var(--f-display, var(--jk-heading-font));
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.wp-block-woocommerce-checkout .wc-block-checkout__guest-checkout-notice { margin: 10px 0 0; font-size: 14px; }

/* "Create an account" checkbox. */
.wp-block-woocommerce-checkout .wc-block-checkout__create-account,
.wp-block-woocommerce-checkout .wc-block-components-checkbox {
	margin: 14px 0 6px;
}
.wp-block-woocommerce-checkout .wc-block-components-checkbox label {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
}
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input {
	width: 24px;
	height: 24px;
	min-width: 24px;
	border: 1px solid #93a0ac;
	margin: 0;
}
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:checked {
	background-color: var(--pink);
	border-color: var(--pink);
}
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}
.wp-block-woocommerce-checkout .wc-block-components-checkbox__mark { fill: #05090f; }

/* The password field and strength meter that show when the box is ticked. */
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="password"] { padding-right: 52px; }
.wp-block-woocommerce-checkout .wc-block-checkout__create-account .wc-block-components-text-input,
.wp-block-woocommerce-checkout .wc-block-components-text-input:has(input[type="password"]) { margin-top: 14px; }
.wp-block-woocommerce-checkout .wc-block-components-password-strength,
.wp-block-woocommerce-checkout .woocommerce-password-strength {
	margin: 8px 0 0;
	padding: 8px 12px;
	background: var(--jk-bg-2);
	border: 1px solid var(--jk-border);
	border-left: 4px solid var(--mute);
	color: var(--jk-text);
	font-family: var(--f-display, var(--jk-heading-font));
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.wp-block-woocommerce-checkout .woocommerce-password-strength.short { border-left-color: #ff6b6b; color: #ff9b9b; }
.wp-block-woocommerce-checkout .woocommerce-password-strength.bad { border-left-color: #ff9a4d; color: #ffb780; }
.wp-block-woocommerce-checkout .woocommerce-password-strength.good { border-left-color: #f0b429; color: #f5cc73; }
.wp-block-woocommerce-checkout .woocommerce-password-strength.strong { border-left-color: var(--teal); color: #8fe8e5; }
.wp-block-woocommerce-checkout .jk-register-note { margin: 10px 0 0; }

/* The primary buttons: pink fill, teal shadow, no chamfer. */
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link) {
	min-height: 52px;
	background-color: var(--pink) !important;
	color: var(--ink, #080b11) !important;
	border: 1px solid var(--pink);
	box-shadow: 4px 4px 0 var(--teal-deep, #0d4a48);
	font-weight: 700;
	letter-spacing: .12em;
}
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover {
	background-color: #ff5f8c !important;
	color: var(--ink, #080b11) !important;
	box-shadow: 4px 4px 0 var(--teal-dim, #17948f), 0 0 14px rgba(251, 68, 120, .45);
}
.wp-block-woocommerce-checkout .wc-block-components-button:focus-visible,
.wp-block-woocommerce-cart .wc-block-components-button:focus-visible,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible {
	outline: 2px solid var(--teal, #20bdb8);
	outline-offset: 3px;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button { width: 100%; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--pink);
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-return-to-cart-button svg { fill: currentColor; }

/* Links inside the block: legible on the void background. */
.wp-block-woocommerce-checkout .wc-block-checkout__terms a,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description a,
.wp-block-woocommerce-checkout .wc-block-components-address-card__edit { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }

/* The order summary panel gets a teal top edge. */
.wp-block-woocommerce-checkout .wc-block-components-sidebar .wc-block-components-checkout-order-summary__title,
.wp-block-woocommerce-checkout .wc-block-components-order-summary { border-color: var(--jk-border); }
.wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
	border: 1px solid var(--jk-border);
	border-top: 3px solid var(--teal, #20bdb8);
	background: var(--jk-panel, #0b0f16);
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity { min-width: 22px; }

/* ---- The 390px pass ----------------------------------------------------- */
@media (max-width: 600px) {
	.wp-block-woocommerce-checkout,
	.wp-block-woocommerce-cart { max-width: 100%; overflow-x: clip; }
	.wp-block-woocommerce-checkout .wc-block-components-address-form__first_name,
	.wp-block-woocommerce-checkout .wc-block-components-address-form__last_name,
	.wp-block-woocommerce-checkout .wc-block-components-address-form__city,
	.wp-block-woocommerce-checkout .wc-block-components-address-form__state,
	.wp-block-woocommerce-checkout .wc-block-components-address-form__postcode { flex-basis: 100%; }
	.wp-block-woocommerce-checkout .wc-block-components-main { padding-right: 0; }
	.wp-block-woocommerce-checkout .wc-block-components-panel__button,
	.wp-block-woocommerce-checkout .wc-block-components-address-card__edit,
	.wp-block-woocommerce-checkout .wc-block-components-radio-control__option { min-height: 44px; }
	.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title { font-size: 18px; }
	.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button { min-height: 56px; }
	.wp-block-woocommerce-checkout .wc-block-checkout__actions_row { flex-wrap: wrap; gap: 12px; }
}

/* Every text input in the checkout block gets the 3:1 border, even the
   optional address line that has no text-input wrapper. */
.wp-block-woocommerce-checkout input[type="text"],
.wp-block-woocommerce-checkout input[type="email"],
.wp-block-woocommerce-checkout input[type="tel"],
.wp-block-woocommerce-checkout input[type="password"] {
	background-color: var(--jk-field-bg);
	color: var(--jk-text);
	border: 1px solid #5d6a76;
}
/* The select itself carries the border, not its container. */
.wp-block-woocommerce-checkout .wc-blocks-components-select__container { border: 0; background: transparent; }
.wp-block-woocommerce-checkout .wc-blocks-components-select__select {
	background-color: var(--jk-field-bg);
	border: 1px solid #5d6a76;
	min-height: 50px;
}
.wp-block-woocommerce-checkout .wc-blocks-components-select__select:focus {
	border-color: var(--teal, #20bdb8);
	outline: 2px solid var(--teal, #20bdb8);
	outline-offset: 2px;
}

/* WooCommerce hides the button outline and paints a white inset ring.
   Restore a teal outline on every checkout control. */
.wp-block-woocommerce-checkout .wc-block-components-button:focus,
.wp-block-woocommerce-checkout .wc-block-components-button:focus-visible,
.wp-block-woocommerce-cart .wc-block-components-button:focus-visible {
	outline: 2px solid var(--teal, #20bdb8) !important;
	outline-offset: 3px !important;
	box-shadow: 4px 4px 0 var(--teal-deep, #0d4a48) !important;
}
.wp-block-woocommerce-checkout a:focus-visible,
.wp-block-woocommerce-checkout button:focus-visible,
.wp-block-woocommerce-checkout summary:focus-visible {
	outline: 2px solid var(--teal, #20bdb8);
	outline-offset: 2px;
}

/* =========================================================================
   The age-attestation checkbox (JK-3)

   CAUTION, and the reason this section exists: the block checkout's
   "additional field" area is the same light-themed markup this whole file
   exists to override. This store has a history of white-text-on-white-
   background bugs in exactly that markup. A Playwright spec makes a
   mechanical contrast assertion against this checkbox's label, so the
   contrast rules below must be real, not merely intended.

   The field id, "jk-design/age-attestation", is registered with a slash.
   React may render the DOM id and the `for` attribute with that slash
   kept, or with it swapped for a dash, or with the id namespaced further
   (for example "jk-design-age-attestation-0"). The selectors below use
   attribute-contains matching so they hold under any of those forms —
   scoped narrowly to "age-attestation" so no other field can match.

   The label, the input, and the required-field error text are already
   covered in general by the checkbox and validation-error rules earlier
   in this file (search ".wc-block-components-checkbox__label" and
   ".wc-block-components-validation-error" above). The rules below repeat
   those colors with `!important`, scoped to this field only, so this
   field's contrast holds even if a future WooCommerce update changes how
   an "additional field" checkbox nests inside the generic component.
   ========================================================================= */
.wp-block-woocommerce-checkout [id*="age-attestation"],
.wp-block-woocommerce-checkout [for*="age-attestation"],
.wp-block-woocommerce-checkout [name*="age-attestation"] {
	color: var(--jk-text) !important;
}

.wp-block-woocommerce-checkout input[type="checkbox"][id*="age-attestation"],
.wp-block-woocommerce-checkout input[type="checkbox"][name*="age-attestation"] {
	background-color: var(--jk-field-bg) !important;
	border: 1px solid var(--jk-field-border) !important;
	accent-color: var(--jk-aqua);
}

.wp-block-woocommerce-checkout input[type="checkbox"][id*="age-attestation"]:checked,
.wp-block-woocommerce-checkout input[type="checkbox"][name*="age-attestation"]:checked {
	background-color: var(--jk-aqua) !important;
	border-color: var(--jk-aqua) !important;
}

/* The field's own wrapper and label, when it renders through the shared
   checkbox component (the expected case — see the file's docblock). */
.wp-block-woocommerce-checkout .wc-block-components-checkbox:has([id*="age-attestation"]) .wc-block-components-checkbox__label,
.wp-block-woocommerce-checkout .wc-block-components-checkbox:has([name*="age-attestation"]) .wc-block-components-checkbox__label {
	color: var(--jk-text) !important;
}

.wp-block-woocommerce-checkout .wc-block-components-checkbox:has([id*="age-attestation"]) .wc-block-components-checkbox__input,
.wp-block-woocommerce-checkout .wc-block-components-checkbox:has([name*="age-attestation"]) .wc-block-components-checkbox__input {
	background-color: var(--jk-field-bg) !important;
	border: 1px solid var(--jk-field-border) !important;
}

/* A link inside the label (for example, to the adult-signature policy)
   needs its own link color, not the label's plain text color. */
.wp-block-woocommerce-checkout [id*="age-attestation"] a,
.wp-block-woocommerce-checkout [for*="age-attestation"] a {
	color: var(--jk-aqua) !important;
	text-decoration: underline;
}

/* The required-field error text for this field, wherever it renders
   relative to the input (sibling, or inside a shared error container). */
.wp-block-woocommerce-checkout .wc-block-components-checkbox:has([id*="age-attestation"]) .wc-block-components-validation-error,
.wp-block-woocommerce-checkout .wc-block-components-checkbox:has([name*="age-attestation"]) .wc-block-components-validation-error,
.wp-block-woocommerce-checkout [data-field-id*="age-attestation"] .wc-block-components-validation-error {
	color: #ff6b6b !important;
}

/* One order summary on a small screen. WooCommerce renders the summary
   twice: a full copy in the main column and a collapsible copy in the
   sidebar. Hide the full copy. The collapsible copy stays. */
@media (max-width: 782px) {
	.wp-block-woocommerce-checkout .checkout-order-summary-block-fill-wrapper { display: none !important; }
}

/* ---- Focus and active states keep the dark field ------------------------
   WooCommerce block CSS repaints a focused or active field white. The
   selectors below win by specificity and !important. */
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active input,
.wp-block-woocommerce-checkout .wc-block-components-text-input input:not(:placeholder-shown),
.wp-block-woocommerce-checkout input[type="text"]:focus,
.wp-block-woocommerce-checkout input[type="email"]:focus,
.wp-block-woocommerce-checkout input[type="tel"]:focus,
.wp-block-woocommerce-checkout input[type="password"]:focus,
.wp-block-woocommerce-checkout input[type="number"]:focus,
.wp-block-woocommerce-checkout textarea:focus,
.wp-block-woocommerce-checkout .wc-blocks-components-select__select:focus,
.wp-block-woocommerce-checkout .wc-block-components-combobox-control input:focus,
.wp-block-woocommerce-checkout .wc-block-components-combobox .components-form-token-field__input:focus,
.wp-block-woocommerce-cart .wc-block-components-text-input input:focus,
.wp-block-woocommerce-cart .wc-block-components-text-input.is-active input,
.wp-block-woocommerce-cart input[type="text"]:focus,
.wp-block-woocommerce-cart textarea:focus {
	background-color: var(--jk-surface) !important;
	color: var(--jk-text) !important;
	-webkit-text-fill-color: var(--jk-text);
	caret-color: var(--jk-text);
}
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout input:focus,
.wp-block-woocommerce-checkout textarea:focus,
.wp-block-woocommerce-checkout .wc-blocks-components-select__select:focus,
.wp-block-woocommerce-cart .wc-block-components-text-input input:focus {
	border-color: var(--teal, #20bdb8) !important;
	outline: 2px solid var(--teal, #20bdb8) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 4px rgba(32, 189, 184, .14) !important;
}
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus + label { color: #aab4bd !important; background: transparent !important; }
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus + label { color: var(--teal, #20bdb8) !important; }
.wp-block-woocommerce-checkout .wc-block-components-combobox-control,
.wp-block-woocommerce-checkout .wc-block-components-combobox .components-combobox-control__suggestions-container {
	background-color: transparent;
}
/* Autofill: a dark inset shadow and cream text on every state. */
.wp-block-woocommerce-checkout input:-webkit-autofill,
.wp-block-woocommerce-checkout input:-webkit-autofill:hover,
.wp-block-woocommerce-checkout input:-webkit-autofill:focus,
.wp-block-woocommerce-checkout input:-webkit-autofill:active,
.wp-block-woocommerce-cart input:-webkit-autofill,
.wp-block-woocommerce-cart input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--jk-text) !important;
	-webkit-box-shadow: 0 0 0 100rem var(--jk-surface) inset !important;
	box-shadow: 0 0 0 100rem var(--jk-surface) inset !important;
	caret-color: var(--jk-text);
	transition: background-color 9999s ease-in-out 0s;
}
