/* Cloudmaple Checkout – front end. All rules are scoped to body.cm-checkout. */

.cm-checkout {
	--cm-primary: #4E6B44;
	--cm-primary-dark: #3F5937;
	--cm-accent: #78986A;
	--cm-surface: #EEF2EB;
	--cm-ink: #22302A;
	--cm-line: #D9DFD5;
	--cm-muted: #5F6B64;
	--cm-paper: #fff;
	--cm-radius: 12px;
	--cm-heading-font: inherit;
	--cm-focus: 0 0 0 3px rgba(120, 152, 106, .35);
}

/* ------------------------------------------------------------------ base */

/* Themes often capitalise button text; our labels are written as they should read. */
.cm-checkout .cm-link,
.cm-checkout .cm-coupon__apply,
.cm-checkout .cm-summary__toggle,
.cm-checkout .cm-mbar__btn,
.cm-checkout .cm-btn,
.cm-checkout #place_order { text-transform: none; letter-spacing: 0; }

.cm-checkout .woocommerce,
.cm-checkout .woocommerce-checkout {
	color: var(--cm-ink);
}

.cm-checkout .cm-sec__title,
.cm-checkout .cm-summary__title,
.cm-checkout .cm-total__value {
	font-family: var(--cm-heading-font, inherit);
}

/* Our own toggles use the hidden attribute; a display rule on the same element must not win. */
.cm-checkout [hidden] { display: none !important; }

/* Shortcode pasted as inline code (<p><code>[woocommerce_checkout]</code></p>): undo the code
   styling so the form keeps the body font. The status box warns about it as well. */
.cm-checkout .woocommerce code:has(> form.checkout),
.cm-checkout .woocommerce code:has(> .woocommerce-form-login) {
	display: block; font: inherit; font-family: inherit; background: none; padding: 0; margin: 0;
	border: 0; color: inherit; white-space: normal; letter-spacing: normal;
}
.cm-checkout .entry-content > p:has(> code > form.checkout) { margin: 0; }

.cm-checkout .screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- header */

.cm-header {
	background: var(--cm-paper);
	border-bottom: 1px solid var(--cm-line);
}
.cm-header__in {
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 24px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}
.cm-header__logo { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.cm-header__logo-img { max-height: 46px; width: auto; }
.cm-header__logo-text { font-size: 22px; font-weight: 700; }
.cm-header__help { justify-self: end; text-align: right; font-size: 13px; line-height: 1.35; color: var(--cm-muted); }
.cm-header__phone { display: block; font-weight: 700; color: var(--cm-ink); text-decoration: none; }

.cm-steps { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--cm-muted); }
.cm-steps li { display: flex; align-items: center; gap: 8px; }
.cm-steps a { color: inherit; }
.cm-steps__dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--cm-line); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.cm-steps .is-done .cm-steps__dot { background: var(--cm-accent); border-color: var(--cm-accent); color: #fff; }
.cm-steps .is-current { color: var(--cm-ink); font-weight: 600; }
.cm-steps .is-current .cm-steps__dot { border-color: var(--cm-primary); color: var(--cm-primary); }
.cm-steps__sep { width: 28px; height: 1px; background: var(--cm-line); }

/* -------------------------------------------------------------- layout */

/* Soft page background behind the white blocks (Design → Page background). */
body.cm-checkout { background: var(--cm-page, #F5F7F3); }
.cm-checkout .site-content,
.cm-checkout .ast-container,
.cm-checkout #primary,
.cm-checkout .site-main,
.cm-checkout article.page,
.cm-checkout .ast-article-single,
.cm-checkout .entry-content { background: transparent !important; box-shadow: none; }

.cm-checkout .site-content,
.cm-checkout .content-area,
.cm-checkout #primary,
.cm-checkout .entry-content { background: transparent; }

/* Themes add clearfix ::before/::after to the form; as grid items they take row 1. */
.cm-checkout form.checkout.woocommerce-checkout::before,
.cm-checkout form.checkout.woocommerce-checkout::after { content: none; display: none; }
.cm-checkout form.checkout.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	column-gap: 40px;
	row-gap: 0;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	padding-bottom: 40px;
}
.cm-checkout form.checkout > * { grid-column: 1; min-width: 0; }
.cm-checkout form.checkout > .cm-main { grid-column: 1; min-width: 0; }
.cm-checkout form.checkout > #order_review,
.cm-checkout form.checkout > .cm-aside { grid-column: 2; grid-row: 1 / span var(--cm-rows, 40); position: sticky; top: 20px; }
.cm-checkout #order_review_heading { display: none; }

/* sections */
.cm-sec {
	background: var(--cm-paper);
	border: 1px solid var(--cm-line);
	border-radius: var(--cm-radius);
	padding: 22px 24px 24px;
	margin-bottom: 16px;
}
.cm-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; width: 100%; box-sizing: border-box; }
/* With a hint under the title, the number stays level with the title, not the middle of both lines. */
.cm-sec__head:has(.cm-sec__hint) { align-items: flex-start; }
.cm-sec__head:has(.cm-sec__hint) .cm-sec__num { margin-top: -2px; }
.cm-sec__num {
	flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--cm-surface); color: var(--cm-primary);
	font-weight: 700; font-size: 14px; line-height: 1; display: grid; place-items: center;
}
.cm-sec__num::before { content: attr(data-num); }
.cm-sec__title { font-size: 21px; margin: 0; line-height: 1.2; }
/* Themes give h2 a bottom margin (Astra: .7em), which pushes the title off its number. */
.cm-checkout .cm-sec .cm-sec__title,
.cm-checkout .cm-sec .cm-sec__hint { margin-top: 0 !important; margin-bottom: 0 !important; }
.cm-checkout .cm-sec .cm-sec__hint { margin-top: 2px !important; }
.cm-sec__hint { color: var(--cm-muted); font-size: 13px; margin: 2px 0 0; }

/* form fields */
.cm-checkout .cm-sec .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 0; }
.cm-checkout .cm-sec label { font-size: 13px; font-weight: 500; }
.cm-checkout .cm-sec .required { color: #a33a2b; text-decoration: none; }
.cm-checkout .cm-sec input[type="text"],
.cm-checkout .cm-sec input[type="tel"],
.cm-checkout .cm-sec input[type="email"],
.cm-checkout .cm-sec input[type="number"],
.cm-checkout .cm-sec input[type="password"],
.cm-checkout .cm-sec textarea,
.cm-checkout .cm-sec select,
.cm-checkout .cm-sec .select2-container .select2-selection--single {
	width: 100%;
	height: var(--cm-input-h, 44px);
	box-sizing: border-box;
	border: 1px solid #C9D1C4;
	border-radius: 8px;
	/* Real vertical padding, not 0: Stripe copies these input styles into its card fields. */
	padding: calc((var(--cm-input-h, 44px) - 22px) / 2) 14px;
	background: #fff;
	color: var(--cm-ink);
	box-shadow: none;
	font-size: 15px;
}
.cm-checkout .cm-sec textarea { height: 88px; padding: 12px 14px; }
.cm-checkout .cm-sec input:focus,
.cm-checkout .cm-sec textarea:focus,
.cm-checkout .cm-sec select:focus { border-color: var(--cm-primary); outline: none; box-shadow: var(--cm-focus); }
.cm-checkout .cm-sec .select2-container .select2-selection--single { display: flex; align-items: center; }
/* Astra Pro "modern" inputs leave a floating-label top padding on the select in its generated CSS. */
.cm-checkout .cm-sec .select2-container .select2-selection--single { padding: 0 32px 0 14px !important; height: var(--cm-input-h, 44px) !important; border-color: #C9D1C4 !important; }
.cm-checkout .cm-sec .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; height: calc(var(--cm-input-h, 44px) - 2px) !important; right: 8px; }
.cm-checkout .cm-sec select { padding-top: 0 !important; padding-bottom: 0 !important; }
.cm-checkout .cm-sec .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.3; padding: 0; margin: 0; }
.cm-checkout .cm-sec .select2-container--default .select2-selection--single .select2-selection__arrow { height: calc(var(--cm-input-h, 44px) - 2px); }

.cm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
/* WooCommerce sizes .form-row-first / -last at 47% and floats them; our columns do the sizing. */
.cm-checkout .cm-sec .form-row {
	width: 100%;
	max-width: none;
	float: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}
.cm-f-phone-wrap { display: flex; }
.cm-f-phone-wrap .cm-prefix {
	display: grid; place-items: center; padding: 0 12px;
	border: 1px solid #C9D1C4; border-right: 0; border-radius: 8px 0 0 8px;
	background: var(--cm-surface); color: var(--cm-muted); font-size: 14px;
}
.cm-f-phone-wrap input { border-radius: 0 8px 8px 0 !important; }

.cm-country-static { font-size: 13px; color: var(--cm-muted); margin: -6px 0 14px; }
.cm-country-static button { background: none; border: 0; padding: 0; color: var(--cm-primary); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* invoice toggle */
.cm-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 0; border-top: 1px solid var(--cm-line); user-select: none; }
.cm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cm-switch__track { width: 40px; height: 24px; border-radius: 12px; background: #CBD3C6; position: relative; flex: none; transition: background .15s; }
.cm-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.cm-switch input:checked + .cm-switch__track { background: var(--cm-primary); }
.cm-switch input:checked + .cm-switch__track::after { transform: translateX(16px); }
.cm-switch input:focus-visible + .cm-switch__track { box-shadow: var(--cm-focus); }
.cm-switch b { font-weight: 500; }
.cm-switch small { display: block; color: var(--cm-muted); font-size: 12.5px; }
.cm-invoice-box[hidden] { display: none; }

/* buyer type: osoba fizyczna / firma */
.cm-buyer { border: 0; margin: 0 0 18px; padding: 0; }
.cm-buyer__title { font-size: 14px; font-weight: 700; padding: 0; margin: 0 0 10px; }
.cm-buyer__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-buyer__option {
	position: relative; display: flex; align-items: center; gap: 12px; margin: 0;
	border: 1.5px solid var(--cm-line); border-radius: var(--cm-radius);
	padding: 12px 14px; background: #fff; cursor: pointer; font-size: 14.5px; font-weight: 500;
	transition: border-color .15s, background .15s;
}
.cm-buyer__option:hover { border-color: #AEB9A8; }
.cm-buyer__option.is-selected { border-color: var(--cm-primary); background: var(--cm-surface); }
.cm-buyer__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cm-buyer__radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #AEB9A8; display: grid; place-items: center; background: #fff; }
.cm-buyer__option.is-selected .cm-buyer__radio { border-color: var(--cm-primary); }
.cm-buyer__option.is-selected .cm-buyer__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cm-primary); }
.cm-buyer__option input:focus-visible ~ .cm-buyer__radio { box-shadow: var(--cm-focus); }

/* Inside the company box WooCommerce's own "(optional)" marker contradicts our own rule. */
.cm-invoice-box { margin-bottom: 4px; }
.cm-invoice-box .optional { display: none; }
.cm-invoice-box[data-required="1"] label::after { content: " *"; color: #a33a2b; }

/* collapsible links */
/* The separator belongs to the row; the trigger itself stays as wide as its label,
   otherwise the theme's button radius makes a full-width bar look like a cut-off button. */
.cm-checkout .cm-collapsible,
.cm-checkout .cm-coupon { border-top: 1px solid var(--cm-line); }
.cm-checkout .cm-link {
	display: flex; align-items: center; gap: 8px;
	width: auto; max-width: 100%; align-self: flex-start;
	background: none; border: 0; border-radius: 0; box-shadow: none;
	padding: 12px 0; min-height: 0; line-height: 1.4;
	color: var(--cm-primary); font-weight: 500; font-size: 15px; text-align: left; cursor: pointer;
}
.cm-checkout .cm-link:hover,
.cm-checkout .cm-link:focus { background: none; color: var(--cm-primary-dark); text-decoration: none; }
.cm-checkout .cm-link:hover .cm-link__text,
.cm-checkout .cm-link:focus-visible .cm-link__text { text-decoration: underline; }
.cm-link__plus { flex: none; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; transition: background .15s; }
.cm-checkout .cm-link:hover .cm-link__plus { background: var(--cm-surface); }
.cm-collapse[hidden] { display: none; }

/* WooCommerce wraps the ship-to checkbox in an <h3>, which the theme renders as a display heading. */
.cm-checkout .woocommerce-shipping-fields { border-top: 1px solid var(--cm-line); }
.cm-checkout .woocommerce-shipping-fields > h3 { font-family: inherit; font-size: 15px; font-weight: 500; margin: 0; padding: 12px 0; }
.cm-checkout .woocommerce-shipping-fields > h3 label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; cursor: pointer; }
.cm-checkout .woocommerce-shipping-fields > h3 input { width: 18px; height: 18px; margin: 0; accent-color: var(--cm-primary); }
/* Account creation (WooCommerce's checkbox), moved under the e-mail in Contact by the script. */
.cm-checkout .cm-account-fields { margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--cm-line); }
.cm-checkout .cm-account-fields .form-row { margin: 0 0 8px; }
.cm-checkout .cm-account-fields label.checkbox,
.cm-checkout .cm-account-fields .woocommerce-form__label-for-checkbox { display: flex !important; align-items: center; gap: 10px; font-size: 14.5px !important; font-weight: 500; cursor: pointer; }
.cm-checkout .cm-account-fields input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--cm-primary); }
.cm-account-fields__hint { display: block; color: var(--cm-muted); font-size: 12.5px; margin: 2px 0 0 28px; }

/* Login line + inline login in Contact. */
.cm-account { margin: -4px 0 16px; }
.cm-account__prompt { margin: 0; font-size: 14px; color: var(--cm-muted); }
.cm-checkout .cm-inline-link { background: none !important; border: 0; padding: 0; margin: 0; min-height: 0; color: var(--cm-primary) !important; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.cm-login { margin-top: 12px; padding: 16px; border: 1px solid var(--cm-line); border-radius: var(--cm-radius); background: var(--cm-surface); }
.cm-login .form-row { margin-bottom: 12px !important; }
.cm-login__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cm-checkout .cm-login__submit { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--cm-primary); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; text-transform: none; }
.cm-checkout .cm-login__submit:hover { background: var(--cm-primary-dark); color: #fff; }
.cm-checkout .cm-login__submit[disabled] { opacity: .6; cursor: progress; }
.cm-login__forgot { font-size: 13px; color: var(--cm-primary); }
.cm-login__msg { margin: 8px 0 0; font-size: 13px; color: #a33a2b; }
.cm-login__msg:empty { display: none; }
/* Leftover WooCommerce wrappers: our sections carry the headings and the columns. */
.cm-checkout .cm-main #customer_details,
.cm-checkout .cm-main #customer_details > .col-1,
.cm-checkout .cm-main #customer_details > .col-2 { width: 100%; float: none; padding: 0; }
.cm-checkout .cm-main .woocommerce-billing-fields > h3 { display: none; }
.cm-checkout .cm-hide { display: none !important; }

/* ------------------------------------------------------------ delivery */

.cm-group { margin-bottom: 18px; }
.cm-group:last-child { margin-bottom: 0; }
.cm-group__title { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.cm-group__title small { font-weight: 400; color: var(--cm-muted); font-size: 12.5px; }
.cm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }

.cm-card {
	position: relative; display: grid; grid-template-columns: auto 1fr auto;
	gap: 4px 12px; align-items: start;
	border: 1.5px solid var(--cm-line); border-radius: var(--cm-radius);
	padding: 14px; background: #fff; cursor: pointer; margin: 0;
	transition: border-color .15s, background .15s;
}
.cm-card:hover { border-color: #AEB9A8; }
.cm-card.is-selected { border-color: var(--cm-primary); background: var(--cm-surface); }
.cm-card__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cm-card__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #AEB9A8; margin-top: 2px; display: grid; place-items: center; background: #fff; }
.cm-card.is-selected .cm-card__radio { border-color: var(--cm-primary); }
.cm-card.is-selected .cm-card__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cm-primary); }
.cm-card__input:focus-visible ~ .cm-card__radio { box-shadow: var(--cm-focus); }
.cm-card__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: block; }
.cm-card__badge { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--cm-muted); border: 1px solid var(--cm-line); border-radius: 5px; padding: 1px 6px; margin-top: 4px; }
.cm-card__price { font-weight: 700; font-size: 15px; white-space: nowrap; text-align: right; }
.cm-card__price del { font-weight: 400; color: var(--cm-muted); font-size: 13px; }
.cm-card__free { color: var(--cm-primary); }
.cm-card__eta,
.cm-card__note { grid-column: 2 / 4; font-size: 12.5px; color: var(--cm-muted); }
.cm-card__note { color: var(--cm-primary); }
.cm-card__point { grid-column: 1 / 4; display: none; margin-top: 8px; padding-top: 10px; border-top: 1px dashed #BFCAB9; font-size: 13px; }
.cm-card.is-selected .cm-card__point { display: block; }
.cm-card__point .polkurier-shippment-parcel-machine-button,
.cm-card__point .button {
	background: #fff !important; color: var(--cm-primary) !important;
	border: 1px solid var(--cm-primary) !important; border-radius: 8px !important;
	padding: 8px 12px !important; font-size: 13px !important; font-weight: 600 !important;
	line-height: 1.2 !important; min-height: 0 !important; width: auto !important;
}
.cm-card__point #polkurier-shipping-label-container { margin-top: 6px; line-height: 1.4; }
.cm-card__point .hidden { display: none; }
.cm-note { color: var(--cm-muted); font-size: 14px; margin: 0; }

/* GLS / native carrier output inside the selected card */
.cm-card__point .cm-point__carrier { display: block; }
.cm-card__point .cm-point__carrier:empty { display: none; }
.cm-card__point [class*="dugme-"],
.cm-card__point .cm-point__carrier button,
.cm-card__point .cm-point__carrier a.button {
	display: inline-flex !important; align-items: center; gap: 6px;
	background: #fff !important; color: var(--cm-primary) !important;
	border: 1px solid var(--cm-primary) !important; border-radius: 8px !important;
	padding: 8px 12px !important; font-size: 13px !important; font-weight: 600 !important;
	line-height: 1.2 !important; min-height: 0 !important; width: auto !important;
	text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer;
}
.cm-card__point [class*="dugme-"]:hover,
.cm-card__point .cm-point__carrier button:hover { background: var(--cm-surface) !important; }
.cm-point__label { display: block; line-height: 1.45; color: var(--cm-ink); }
.cm-point__label:empty { display: none; }
.cm-point__label:not(:empty) { margin-top: 8px; padding: 8px 10px; background: #fff; border-radius: 8px; border: 1px solid var(--cm-line); }
.cm-point__label strong { font-weight: 600; }
/* GLS prints its own info box inside the summary (once per refresh) – the card shows it instead. */
.cm-checkout #order_review #gls-pickup-info { display: none !important; }
.cm-card.cm-card--needs-point .cm-card__point { border-top-color: #a33a2b; }

/* the original Polkurier row in the summary is emptied out */
.cm-checkout tr.polkurier-shippment { display: none; }

/* ---------------------------------------------------------- express */

/* Stripe (Apple Pay / Google Pay / Link), WooPayments and similar plugins print their express
   buttons straight into form.checkout. They stay where they are – moving a mounted payment
   iframe reloads it – and are styled as a block above the left column. The summary spans all
   left-column rows (--cm-rows is set by the script), so these rows no longer take its height. */
.cm-checkout #wc-stripe-express-checkout-element,
.cm-checkout #wcpay-express-checkout-element {
	background: var(--cm-paper); border: 1px solid var(--cm-line); border-bottom: 0;
	border-radius: var(--cm-radius) var(--cm-radius) 0 0; padding: 16px 24px 0; margin: 0 !important;
	gap: 8px; flex-wrap: wrap; justify-content: center;
}
.cm-checkout #wc-stripe-express-checkout-element:not([style*="none"]),
.cm-checkout #wcpay-express-checkout-element:not([style*="none"]) { display: flex !important; }
.cm-checkout #wc-stripe-express-checkout-element::before,
.cm-checkout #wcpay-express-checkout-element::before {
	content: var(--cm-express-title, ""); flex: 0 0 100%; text-align: center;
	font-size: 13px; font-weight: 600; color: var(--cm-muted); margin-bottom: 2px;
}
.cm-checkout #wc-stripe-express-checkout-element > *,
.cm-checkout #wcpay-express-checkout-element > * { margin: 0 !important; min-width: 0; flex: 1 1 180px; max-width: 240px; }
.cm-checkout #wc-stripe-express-checkout-button-separator,
.cm-checkout #wcpay-express-checkout-button-separator {
	display: flex !important; align-items: center; gap: 12px; margin: 0 0 16px !important;
	background: var(--cm-paper); border: 1px solid var(--cm-line); border-top: 0;
	border-radius: 0 0 var(--cm-radius) var(--cm-radius); padding: 14px 24px 16px;
	color: var(--cm-muted); font-size: 0; text-align: center;
}
.cm-checkout #wc-stripe-express-checkout-button-separator::before,
.cm-checkout #wc-stripe-express-checkout-button-separator::after,
.cm-checkout #wcpay-express-checkout-button-separator::before,
.cm-checkout #wcpay-express-checkout-button-separator::after { content: ""; flex: 1; height: 1px; background: var(--cm-line); }
/* The separator's own text ("— OR —") is replaced by our label. */
.cm-checkout #wc-stripe-express-checkout-button-separator > .cm-or,
.cm-checkout #wcpay-express-checkout-button-separator > .cm-or { font-size: 12.5px; }
/* WooCommerce's own "Have a coupon?" notice above the form – the summary has its own field. */
.cm-checkout .woocommerce-form-coupon-toggle,
.cm-checkout form.checkout_coupon { display: none !important; }

/* -------------------------------------------------------------- payment */

.cm-checkout .cm-sec--payment .woocommerce-checkout-payment { background: transparent; border-radius: 0; }
.cm-checkout #payment ul.wc_payment_methods { list-style: none; margin: 0 0 10px; padding: 0; border: 0; }
.cm-checkout #payment ul.wc_payment_methods li {
	border: 1.5px solid var(--cm-line); border-radius: var(--cm-radius); margin: 0 0 12px; padding: 0;
	background: #fff; list-style: none; overflow: hidden;
	/* radio | label on one row, the payment box below spanning both columns */
	display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
}
.cm-checkout #payment ul.wc_payment_methods li::before,
.cm-checkout #payment ul.wc_payment_methods li::after { content: none; display: none; }
.cm-checkout #payment ul.wc_payment_methods li > *:not(input[type="radio"]):not(label) { grid-column: 1 / -1; }
.cm-checkout #payment ul.wc_payment_methods li > input[type="radio"] { grid-column: 1; grid-row: 1; width: 18px; height: 18px; margin: 0 0 0 16px; }
.cm-checkout #payment ul.wc_payment_methods li.cm-pay-selected { border-color: var(--cm-primary); }
.cm-checkout #payment ul.wc_payment_methods li > label { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px 14px 12px; margin: 0; cursor: pointer; font-weight: 600; font-size: 15px; width: auto; min-width: 0; }
.cm-checkout #payment ul.wc_payment_methods li.cm-pay-selected { background: var(--cm-surface); }
.cm-checkout .payment_box { border: 0 !important; }
.cm-checkout #payment ul.wc_payment_methods li > input[type="radio"] { accent-color: var(--cm-primary); }
/* Stripe's card element and other inline gateway forms need the full row width. */
.cm-checkout .payment_box .wc-upe-form,
.cm-checkout .payment_box .wc-stripe-upe-element,
.cm-checkout .payment_box fieldset { margin: 0; padding: 0; border: 0; max-width: none; }
.cm-checkout .payment_box.payment_method_stripe,
.cm-checkout .payment_box[class*="payment_method_stripe"],
.cm-checkout .payment_box[class*="payment_method_ppcp"] { padding-left: 16px !important; }
.cm-checkout .payment_box .woocommerce-SavedPaymentMethods { padding: 0; margin: 0 0 10px; }
.cm-checkout #payment ul.wc_payment_methods li img { max-height: 22px; width: auto; margin-left: auto; }
.cm-checkout .payment_box { background: transparent !important; margin: 0 !important; padding: 0 16px 16px 46px !important; font-size: 13.5px; color: var(--cm-muted); }
.cm-checkout .payment_box::before { display: none !important; }
.cm-checkout .payment_box input[type="text"],
.cm-checkout .payment_box input[type="tel"] { max-width: 240px; }
.cm-cod-info { background: var(--cm-surface); border-radius: var(--cm-radius); padding: 14px 16px; font-size: 14px; margin-bottom: 12px; }

/* Privacy text (WooCommerce → Accounts & Privacy) and the terms consent, above the button. */
.cm-checkout .woocommerce-terms-and-conditions-wrapper { margin: 16px 0 0; display: grid; gap: 12px; }
.cm-checkout .woocommerce-privacy-policy-text p { margin: 0; font-size: 12px !important; line-height: 1.5; color: var(--cm-muted); }
.cm-checkout .woocommerce-privacy-policy-text a { color: var(--cm-muted); text-decoration: underline; }
.cm-checkout .cm-sec .woocommerce-terms-and-conditions-wrapper .form-row.validate-required {
	display: block; margin: 0 !important; padding: 12px 14px !important;
	border: 1.5px solid var(--cm-line); border-radius: var(--cm-radius); background: #fff;
	transition: border-color .15s, background .15s;
}
.cm-checkout .cm-sec .woocommerce-terms-and-conditions-wrapper .form-row.validate-required:has(#terms:checked) { border-color: var(--cm-primary); background: var(--cm-surface); }
.cm-checkout .cm-sec .woocommerce-terms-and-conditions-wrapper .form-row.woocommerce-invalid { border-color: #a33a2b; background: #FCEDEA; }
/* !important: the Astra fallback above resets every form label (position, padding) to undo Astra's
   floating labels – the consent label needs its own positioning for the checkbox. */
.cm-checkout .cm-sec .woocommerce-terms-and-conditions-wrapper .form-row label.woocommerce-form__label-for-checkbox {
	display: block !important; position: relative !important; margin: 0 !important; padding: 0 0 0 30px !important;
	font-size: 14px !important; font-weight: 500; line-height: 1.45 !important; color: var(--cm-ink); cursor: pointer;
}
.cm-checkout .cm-sec .woocommerce-terms-and-conditions-wrapper #terms {
	position: absolute !important; left: 0 !important; top: 0 !important; width: 20px; height: 20px; margin: 0; accent-color: var(--cm-primary); cursor: pointer;
}
.cm-checkout .woocommerce-terms-and-conditions-link { color: var(--cm-primary); font-weight: 600; text-decoration: underline; }
.cm-checkout .woocommerce-terms-and-conditions-wrapper abbr.required { text-decoration: none; border: 0; color: #a33a2b; margin-left: 2px; }
/* Terms text that WooCommerce unfolds in place when the link is clicked. */
.cm-checkout .woocommerce-terms-and-conditions { max-height: 220px; overflow-y: auto; margin: 0; padding: 12px 14px; border: 1px solid var(--cm-line); border-radius: var(--cm-radius); background: #fff; font-size: 13px; line-height: 1.5; }
.cm-checkout .validate-required.woocommerce-validated input { box-shadow: none; }
.cm-checkout #place_order,
.cm-btn {
	width: 100%; height: 58px; border: 0; border-radius: var(--cm-btn-radius, 999px);
	background: var(--cm-btn, var(--cm-primary)); color: var(--cm-btn-text, #fff); font-weight: 700; font-size: 17px;
	cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s;
}
.cm-checkout #place_order:hover,
.cm-btn:hover { background: var(--cm-btn-hover, var(--cm-primary-dark)); color: var(--cm-btn-text, #fff); }
/* Some air between the last consent box and the button. */
.cm-checkout .form-row.place-order #place_order { margin-top: 20px; }

/* -------------------------------------------------------------- summary */

.cm-checkout form.checkout > #order_review,
.cm-checkout form.checkout > .cm-aside {
	/* WooCommerce's own layout CSS sets a percentage width and a float here. */
	width: 100%;
	max-width: none;
	float: none;
}
/* Same frame as the left-column blocks. !important: Astra Pro's generated CSS removes the
   border with "form #order_review:not(…)", which outranks a normal rule. */
.cm-checkout form.checkout > #order_review {
	background: var(--cm-paper) !important;
	border: 1px solid var(--cm-line) !important;
	border-radius: var(--cm-radius) !important;
	padding: 22px 24px !important;
	box-shadow: none !important;
}
.cm-summary__title { font-size: 21px; margin: 0 0 16px; }
.cm-summary__toggle { display: none; }

.cm-checkout .shop_table { border: 0; margin: 0; width: 100%; border-collapse: collapse; }
.cm-checkout .shop_table th,
.cm-checkout .shop_table td { border: 0; padding: 8px 0; font-size: 14px; }
.cm-checkout .shop_table thead { display: none; }
.cm-checkout .shop_table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--cm-line); }
.cm-checkout .shop_table .product-name { font-weight: 500; line-height: 1.35; }
.cm-checkout .shop_table .product-total { text-align: right; white-space: nowrap; font-weight: 600; }
.cm-checkout .shop_table tfoot tr th,
.cm-checkout .shop_table tfoot tr td { border-top: 1px solid var(--cm-line); font-size: 14px; }
.cm-checkout .shop_table tfoot .order-total th,
.cm-checkout .shop_table tfoot .order-total td { padding-top: 14px; }
.cm-checkout .shop_table tfoot .order-total th { font-size: 15px; vertical-align: bottom; }
.cm-checkout .shop_table tfoot .order-total td { text-align: right; }
.cm-checkout .shop_table tfoot .order-total .woocommerce-Price-amount {
	font-family: var(--cm-heading-font, inherit);
	font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.5px; display: inline-block;
}
.cm-checkout .shop_table tfoot .order-total small { display: block; font-weight: 400; color: var(--cm-muted); font-size: 12px; margin-top: 4px; }
.cm-checkout .shop_table tfoot .order-total small .woocommerce-Price-amount { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.cm-ship-line__name { display: block; font-size: 12.5px; color: var(--cm-muted); }
.cm-ship-line td { text-align: right; }
.cm-ship-line__price { font-weight: 600; }

.cm-extras { margin-top: 4px; }
.cm-free { margin: 16px 0 4px; font-size: 13px; }
.cm-free__text { margin: 0 0 6px; }
.cm-free__bar { height: 6px; border-radius: 3px; background: var(--cm-surface); overflow: hidden; }
.cm-free__bar i { display: block; height: 100%; background: var(--cm-accent); border-radius: 3px; transition: width .3s; }
.cm-free__scope { margin: 6px 0 0; color: var(--cm-muted); font-size: 12px; }

.cm-coupon { margin-top: 10px; }
.cm-checkout .cm-coupon--box { margin-top: 18px; padding: 14px; border: 1px solid var(--cm-line); border-top: 1px solid var(--cm-line); border-radius: calc(var(--cm-radius) - 2px); background: #fff; }
.cm-coupon__label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.cm-coupon--box .cm-coupon__box { margin-bottom: 0; }
.cm-coupon--box .cm-coupon__msg:not(:empty) { margin-top: 8px; }
.cm-coupon .cm-link { font-size: 14px; padding: 10px 0; }
.cm-coupon__box { display: flex; gap: 8px; margin-bottom: 8px; }
.cm-coupon__input { flex: 1; height: 42px; border: 1px solid #C9D1C4; border-radius: 8px; padding: 0 12px; }
.cm-coupon__apply { border: 1px solid var(--cm-ink); background: #fff; color: var(--cm-ink); border-radius: 8px; padding: 0 16px; min-width: 56px; font-weight: 600; cursor: pointer; }
.cm-coupon__apply:hover { background: var(--cm-surface); color: var(--cm-ink); border-color: var(--cm-ink); }
.cm-coupon__msg { margin: 0; font-size: 12.5px; color: var(--cm-muted); }
.cm-coupon__msg.is-error { color: #a33a2b; }

.cm-bump { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border: 1.5px dashed #BFCAB9; border-radius: var(--cm-radius); cursor: pointer; font-size: 13.5px; }
.cm-bump input { accent-color: var(--cm-primary); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.cm-bump strong { display: block; font-size: 14px; }
.cm-bump__text { color: var(--cm-muted); display: block; }

.cm-checkout #order_review ul.cm-trust {
	list-style: none; margin: 18px 0 0; padding: 12px 14px; display: grid; gap: 8px;
	background: var(--cm-surface); border-radius: calc(var(--cm-radius) - 2px); font-size: 13px; line-height: 1.4;
}
.cm-checkout #order_review ul.cm-trust li {
	display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start;
	margin: 0; padding: 0; list-style: none; position: static;
}
.cm-checkout #order_review ul.cm-trust li::before { content: "✓"; position: static; color: var(--cm-primary); font-weight: 700; line-height: 1.4; }

/* --------------------------------------------------------- mobile bar */

.cm-mbar { display: none; }

/* -------------------------------------------------------- thank you */

.cm-thankyou-cta { background: var(--cm-surface); border-radius: var(--cm-radius); padding: 20px 24px; margin: 0 0 24px; }
.cm-thankyou-cta p { margin: 0 0 12px; }
.cm-thankyou-cta .cm-btn { width: auto; padding: 0 28px; height: 48px; }

/* ------------------------------------------- edit products in summary */

.cm-checkout .shop_table .product-name .cm-item-edit { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-weight: 400; }
.cm-item-edit.is-busy { opacity: .5; pointer-events: none; }
.cm-checkout .cm-qty { display: inline-flex; align-items: center; height: 30px; border: 1px solid #C9D1C4; border-radius: 8px; overflow: hidden; background: #fff; }
.cm-checkout .cm-qty button {
	width: 30px; height: 28px; padding: 0; margin: 0; border: 0; border-radius: 0; min-height: 0;
	background: transparent !important; color: var(--cm-ink) !important; font-size: 16px; line-height: 1; cursor: pointer; box-shadow: none;
}
.cm-checkout .cm-qty button:hover { background: var(--cm-surface) !important; }
.cm-checkout .cm-qty button[disabled] { opacity: .35; cursor: default; }
.cm-qty__val { min-width: 24px; text-align: center; font-size: 13.5px; font-weight: 600; }
.cm-item-edit__qty-fixed { color: var(--cm-muted); font-size: 13px; }
.cm-checkout .cm-item-edit__remove {
	padding: 0; margin: 0; border: 0; min-height: 0; background: none !important; box-shadow: none;
	color: var(--cm-muted) !important; font-size: 12.5px; font-weight: 400; text-decoration: underline; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.cm-checkout .cm-item-edit__remove:hover { color: #a33a2b !important; }
.cm-undo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; padding: 8px 8px 8px 12px; border-radius: 8px; background: var(--cm-ink); color: #fff; font-size: 13px; }
.cm-checkout .cm-undo-bar button { padding: 4px 10px; border: 0; min-height: 0; background: transparent !important; color: #CFE3C4 !important; font-weight: 700; text-decoration: underline; cursor: pointer; text-transform: none; }
/* The product cell is a flex column on Astra; keep the name and the controls stacked. */
.cm-checkout .shop_table td.product-name { vertical-align: top; }

/* ---------------------------------------------------- Astra fallbacks */

/* Normally switched off by the Astra adapter; these hold if the option was read too early. */
.cm-theme-astra #order_review .ast-product-image { display: contents; }
.cm-theme-astra #order_review .ast-product-thumbnail { display: none !important; }
.cm-theme-astra #order_review .ast-product-name { display: inline; }
.cm-theme-astra #order_review td.product-name { display: table-cell !important; }
.cm-theme-astra #order_review td.product-name .product-quantity { display: inline; font-weight: 400; color: var(--cm-muted); }
/* Astra Pro "modern" inputs: floating labels positioned over the field. */
.cm-theme-astra .cm-sec .form-row label,
.cm-theme-astra .cm-sec .form-row > label {
	position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
	top: auto !important; left: auto !important; height: auto !important; width: auto !important;
	clip: auto !important; margin: 0 !important; padding: 0 !important; background: none !important;
	font-size: 13px !important; line-height: 1.3 !important; pointer-events: auto;
}
.cm-theme-astra .cm-sec .form-row .woocommerce-input-wrapper { display: block; width: 100%; }
.cm-theme-astra .cm-sec .form-row input.input-text { padding-top: 11px !important; padding-bottom: 11px !important; }
.cm-theme-astra .cm-sec .form-row select { padding-top: 0 !important; padding-bottom: 0 !important; }
.cm-theme-astra .cm-sec .form-row textarea { padding-top: 12px !important; }
.cm-theme-astra .cm-sec .form-row.ast-animate-input label,
.cm-theme-astra .cm-sec .ast-animate-input label { transform: none !important; }
/* Astra's own checkout headings / coupon notice that may still be printed. */
.cm-theme-astra .ast-checkout-coupon,
.cm-theme-astra .ast-modern-checkout-coupon,
.cm-theme-astra #ast-order-review-toggle { display: none !important; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
	.cm-checkout form.checkout.woocommerce-checkout { grid-template-columns: 1fr; gap: 0; }
	.cm-checkout form.checkout > .cm-main,
	.cm-checkout form.checkout > #order_review { grid-column: 1; }
	.cm-checkout form.checkout > #order_review {
		grid-row: 1; position: static; border-radius: 0;
		border-left: 0; border-right: 0; margin: 0 0 16px; padding: 0 16px 16px;
	}
	.cm-summary__title { display: none; }
	.cm-summary__toggle {
		display: flex; width: calc(100% + 32px); margin: 0 -16px; justify-content: space-between;
		align-items: center; background: none; border: 0; border-bottom: 1px solid var(--cm-line);
		padding: 14px 16px; font-weight: 600; font-size: 15px; cursor: pointer; color: inherit;
	}
	/* Themes reset #order_review padding on small screens (Astra); the toggle's -16px margins rely on it. */
	.cm-checkout form.checkout.woocommerce-checkout > #order_review { padding: 0 16px 16px !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }
	.cm-checkout #order_review .cm-summary__toggle { padding: 14px 16px !important; border-radius: 0 !important; background: none !important; color: inherit !important; text-transform: none; }
	.cm-summary__toggle small { color: var(--cm-muted); font-weight: 400; }
	.cm-summary__toggle-total { font-size: 19px; }
	.cm-checkout #order_review > form { display: none; }
	/* Collapsed: either closed by default and not opened, or open by default (cm-summary-open) and closed by the customer. */
	.cm-checkout:not(.cm-summary-open) #order_review:not(.is-open) .shop_table,
	.cm-checkout:not(.cm-summary-open) #order_review:not(.is-open) .cm-extras,
	.cm-checkout.cm-summary-open #order_review.is-closed .shop_table,
	.cm-checkout.cm-summary-open #order_review.is-closed .cm-extras { display: none; }
	

	.cm-header__in { grid-template-columns: 1fr auto; padding: 12px 16px; }
	.cm-steps { display: none; }
	.cm-sec { padding: 18px 16px 20px; border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 12px; }
	.cm-checkout form.checkout.woocommerce-checkout { padding-bottom: 96px; }
	/* Sections run edge to edge on small screens; the theme's container padding would inset them. */
	.cm-theme-astra .site-content > .ast-container,
	.cm-theme-kadence .content-container { padding-left: 0; padding-right: 0; }

	.cm-mbar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--cm-paper); border-top: 1px solid var(--cm-line);
		box-shadow: 0 -4px 16px rgba(34, 48, 42, .08);
	}
	.cm-mbar__inner { display: flex; gap: 14px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
	.cm-mbar__total { flex: none; }
	.cm-mbar__total small { display: block; font-size: 12px; color: var(--cm-muted); }
	.cm-mbar__total strong { font-size: 20px; font-family: var(--cm-heading-font, inherit); }
	.cm-mbar__btn { flex: 1; min-width: 0; height: 50px; border: 0; border-radius: var(--cm-btn-radius, 999px); background: var(--cm-btn, var(--cm-primary)); color: var(--cm-btn-text, #fff); font-weight: 700; font-size: 15px; line-height: 1.15; padding: 0 14px; cursor: pointer; }
	.cm-checkout.cm-mbar-hidden .cm-mbar { display: none; }
}

@media (max-width: 560px) {
	.cm-checkout #wc-stripe-express-checkout-element,
	.cm-checkout #wcpay-express-checkout-element { padding: 14px 16px 0; border-radius: 0; border-left: 0; border-right: 0; }
	.cm-checkout #wc-stripe-express-checkout-element > *,
	.cm-checkout #wcpay-express-checkout-element > * { flex-basis: 100%; max-width: none; }
	.cm-checkout #wc-stripe-express-checkout-button-separator,
	.cm-checkout #wcpay-express-checkout-button-separator { padding: 12px 16px 14px; border-radius: 0; border-left: 0; border-right: 0; }
	.cm-cards,
	.cm-grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.cm-checkout * { transition: none !important; }
}

/* PO / reference number: visible above the "Add a note" link. */
.cm-checkout .cm-po-row { margin: 0 0 12px; }

/* Hidden labels (e.g. "Apartment, suite…" on address line 2) stay hidden – the Astra label reset above
   must not turn WooCommerce's screen-reader-text back into an empty line above the field. */
.cm-checkout .cm-sec .form-row label.screen-reader-text {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}

/* Numbers in round badges: the theme's line-height (Barlow Condensed on fammco: ~30px) pushed
   the digit down and to the side inside a 22px circle. */
.cm-checkout .cm-steps__dot,
.cm-checkout .cm-sec__num,
.cm-checkout .cm-ty-step__dot,
.cm-checkout .cm-ty-item__qty { line-height: 1 !important; padding: 0 !important; text-align: center; }
.cm-checkout .cm-steps__dot svg { display: block; }

/* Social login (Nextend) under "Already have an account?". */
.cm-checkout .cm-social { margin: 10px 0 4px; }
.cm-checkout .cm-social .nsl-container { margin: 0 !important; padding: 0 !important; }
.cm-checkout .cm-social .nsl-container-buttons { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 0 !important; }
.cm-checkout .cm-social .nsl-container-buttons a { flex: 1 1 200px; margin: 0 !important; text-decoration: none; }
.cm-checkout .cm-social .nsl-button { width: 100% !important; margin: 0 !important; min-height: 44px; border-radius: 8px !important; box-sizing: border-box; display: flex !important; align-items: center; justify-content: center; }

/* Extra consent checkboxes other plugins print above the button (e.g. Cloudmaple Stock Split Notice:
   "Potvrđujem da su stavke »u dolasku« …") – same box as the terms consent. Direct children of
   .place-order only, so the terms row inside its own wrapper is not touched. */
.cm-checkout .cm-sec .form-row.place-order > .form-row:has(input[type="checkbox"]),
.cm-checkout .cm-sec .form-row.place-order > div:not(.woocommerce-terms-and-conditions-wrapper) > .form-row:has(input[type="checkbox"]) {
	display: block; position: relative; margin: 12px 0 0 !important; padding: 12px 14px !important;
	border: 1.5px solid var(--cm-line); border-radius: var(--cm-radius); background: #fff;
	transition: border-color .15s, background .15s;
}
.cm-checkout .cm-sec .form-row.place-order > .form-row:has(input[type="checkbox"]:checked),
.cm-checkout .cm-sec .form-row.place-order > div:not(.woocommerce-terms-and-conditions-wrapper) > .form-row:has(input[type="checkbox"]:checked) { border-color: var(--cm-primary); background: var(--cm-surface); }
.cm-checkout .cm-sec .form-row.place-order > .form-row.woocommerce-invalid:has(input[type="checkbox"]),
.cm-checkout .cm-sec .form-row.place-order > div:not(.woocommerce-terms-and-conditions-wrapper) > .form-row.woocommerce-invalid:has(input[type="checkbox"]) { border-color: #a33a2b; background: #FCEDEA; }
.cm-checkout .cm-sec .form-row.place-order > .form-row:has(input[type="checkbox"]) label,
.cm-checkout .cm-sec .form-row.place-order > div:not(.woocommerce-terms-and-conditions-wrapper) > .form-row:has(input[type="checkbox"]) label {
	display: block !important; position: relative !important; margin: 0 !important; padding: 0 0 0 30px !important;
	font-size: 14px !important; font-weight: 500 !important; line-height: 1.45 !important; color: var(--cm-ink); cursor: pointer;
}
.cm-checkout .cm-sec .form-row.place-order > .form-row:has(input[type="checkbox"]) label strong,
.cm-checkout .cm-sec .form-row.place-order > .form-row:has(input[type="checkbox"]) label b { font-weight: 600; }
.cm-checkout .cm-sec .form-row.place-order > .form-row input[type="checkbox"],
.cm-checkout .cm-sec .form-row.place-order > div:not(.woocommerce-terms-and-conditions-wrapper) > .form-row input[type="checkbox"] {
	position: absolute !important; left: 14px !important; top: 13px !important; width: 20px; height: 20px; margin: 0 !important;
	accent-color: var(--cm-primary); cursor: pointer;
}
/* A checkbox inside its label: the label's own left padding makes room, so position against the label. */
.cm-checkout .cm-sec .form-row.place-order > .form-row label input[type="checkbox"],
.cm-checkout .cm-sec .form-row.place-order > div:not(.woocommerce-terms-and-conditions-wrapper) > .form-row label input[type="checkbox"] { left: 0 !important; top: 0 !important; }
.cm-checkout .cm-sec .form-row.place-order > .form-row .required,
.cm-checkout .cm-sec .form-row.place-order > div:not(.woocommerce-terms-and-conditions-wrapper) > .form-row .required { color: #a33a2b; text-decoration: none; border: 0; }

/* Cloudmaple Stock Split Notice by its own class, independent of where its hook prints the row. */
.cm-checkout p.cm-ssn-checkout {
	display: block; position: relative; margin: 12px 0 0 !important; padding: 12px 14px !important;
	border: 1.5px solid var(--cm-line); border-radius: var(--cm-radius); background: #fff; transition: border-color .15s, background .15s;
}
.cm-checkout p.cm-ssn-checkout:has(input:checked) { border-color: var(--cm-primary); background: var(--cm-surface); }
.cm-checkout p.cm-ssn-checkout.woocommerce-invalid { border-color: #a33a2b; background: #FCEDEA; }
.cm-checkout p.cm-ssn-checkout label {
	display: block !important; position: relative !important; margin: 0 !important; padding: 0 0 0 30px !important;
	font-size: 14px !important; font-weight: 500 !important; line-height: 1.45 !important; color: var(--cm-ink); cursor: pointer;
}
.cm-checkout p.cm-ssn-checkout input[type="checkbox"] {
	position: absolute !important; left: 0 !important; top: 0 !important; width: 20px; height: 20px; margin: 0 !important; accent-color: var(--cm-primary); cursor: pointer;
}
.cm-checkout p.cm-ssn-checkout .required { color: #a33a2b; text-decoration: none; border: 0; }

/* Discount code row: the field shrinks, the button never does. Without min-width:0 Firefox keeps the
   field at its intrinsic width and squeezes the button; themes also give buttons a fixed width or
   wrapping text (Chrome on bachrescue.si: "Uporab / i"). */
.cm-checkout .cm-coupon__box { display: flex !important; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
.cm-checkout .cm-coupon__box .cm-coupon__input {
	flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important;
	height: var(--cm-input-h, 44px) !important; margin: 0 !important; box-sizing: border-box;
	padding: 0 12px !important; font-size: 15px;
}
.cm-checkout .cm-coupon__box .cm-coupon__apply {
	flex: 0 0 auto !important; width: auto !important; min-width: max-content !important; max-width: none !important;
	height: var(--cm-input-h, 44px) !important; margin: 0 !important; padding: 0 16px !important;
	white-space: nowrap !important; line-height: 1 !important; font-size: 14px; letter-spacing: 0; text-transform: none;
	display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box;
}
