/*
 * Checkout.
 *
 * Tokens are scoped to the two WooCommerce body classes this file targets
 * (.woocommerce-checkout, .woocommerce-order-received) rather than added to
 * the theme's global palette in theme.json: the brief for this page specifies
 * its own accent/success/error hues and its own type scale, distinct from the
 * rest of the (monochrome) site, and it would be wrong to let a page-specific
 * palette leak into every other template.
 *
 * Reduced motion: every animation here is neutralised by the site-wide rule
 * in motion.css (`*,*::before,*::after{animation-duration:.01ms!important}`
 * under prefers-reduced-motion), which loads on every page including this
 * one - nothing extra is needed in this file for that.
 */

body.woocommerce-checkout,
body.woocommerce-order-received {
	--ef-ink: #0a0a0b;
	--ef-accent: oklch(0.56 0.16 243);
	--ef-success: oklch(0.62 0.13 155);
	--ef-error: oklch(0.57 0.19 27);
	--ef-muted: #5d636b;
	--ef-muted-2: #8d939b;
	--ef-muted-3: #9aa0a8;
	--ef-faint: #b6bbc1;
	--ef-line: rgba(0, 0, 0, 0.1);
	--ef-line-input: rgba(0, 0, 0, 0.13);
	--ef-surface: #fbfcfd;
	--ef-radius-input: 14px;
	--ef-radius-card: 18px;
	--ef-radius-summary: 22px;
	--ef-shadow-dropdown: 0 22px 60px rgba(10, 12, 16, 0.18);
	--ef-shadow-summary: 0 12px 40px rgba(10, 12, 16, 0.07);
	--ef-shadow-hover: 0 8px 24px rgba(10, 12, 16, 0.07);
	--ef-mono: var(--wp--preset--font-family--ibm-plex-mono, ui-monospace, monospace);
	--ef-sans: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	background: #fff;
	color: var(--ef-ink);
}

.ef-checkout,
.ef-checkout *,
.ef-checkout *::before,
.ef-checkout *::after,
.ef-thanks,
.ef-thanks *,
.ef-thanks *::before,
.ef-thanks *::after {
	box-sizing: border-box;
}

/* --- Topbar: breadcrumb + secure-connection badge ------------------------- */

/*
 * This page now uses the site's own fixed header (parts/header.html, the same
 * one cart and the homepage use - see the changelog note at the top of this
 * file), not a page-specific minimal one. The topbar therefore sticks just
 * below it (--ef-header-h), not at the very top of the viewport, or it would
 * sit underneath the real header instead of below it.
 */
.ef-checkout-topbar {
	position: sticky;
	top: var(--ef-header-h, 48px);
	z-index: 40;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.ef-checkout-topbar__inner {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding: 14px var(--wp--preset--spacing--5, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ef-crumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 600 12.5px/1 var(--ef-sans);
	color: var(--ef-muted-3);
	flex-wrap: wrap;
}

.ef-crumbs a {
	color: inherit;
	text-decoration: none;
}

.ef-crumbs a:hover {
	color: var(--ef-ink);
}

.ef-crumbs span[aria-hidden] {
	color: #d3d7db;
}

.ef-crumbs .is-current {
	color: var(--ef-ink);
}

.ef-secure-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font: 600 12.5px/1 var(--ef-sans);
	color: var(--ef-muted);
	flex: none;
}

/* --- Section headings ------------------------------------------------------ */

.ef-checkout .ef-section {
	margin-bottom: 44px;
}

.ef-section__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.ef-step {
	font: 500 11px/1 var(--ef-mono);
	letter-spacing: 0.1em;
	color: var(--ef-faint);
}

.ef-section h2 {
	font: 700 22px/1.2 var(--ef-sans);
	letter-spacing: -0.015em;
	color: var(--ef-ink);
	margin: 0;
}

.ef-section__hint {
	font: 600 13.5px/1.5 var(--ef-sans);
	color: var(--ef-muted-2);
	margin: 0 0 18px 38px;
}

.ef-mono-label {
	display: block;
	font: 500 10px/1 var(--ef-mono);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ef-muted-3);
}

/* --- Page grid -------------------------------------------------------------- */

/* WooCommerce's own woocommerce-blocktheme.css hardcodes
   `.woocommerce-checkout main .woocommerce { max-width: 1000px }` around the
   [woocommerce_checkout] shortcode wrapper — override it so the checkout
   column matches the site's actual wide-size (1320px) used by header/cart. */
body.woocommerce-checkout main .woocommerce {
	max-width: none;
}

.ef-checkout-grid {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding: 44px 56px 72px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 404px;
	gap: 56px;
	align-items: start;
}

.ef-checkout-left {
	min-width: 0;
}

/*
 * Clears the real fixed site header plus this page's own sticky breadcrumb
 * bar underneath it (--ef-header-h + the topbar's own height, roughly 52px,
 * plus a little breathing room) - not a bare 92px, now that there is a real
 * header above the topbar rather than the topbar being the only sticky thing
 * on the page.
 */
.ef-checkout-right {
	position: sticky;
	top: calc(var(--ef-header-h, 48px) + 68px);
}

/* --- Notices / error banner -------------------------------------------------- */

.ef-checkout .woocommerce-NoticeGroup,
.ef-checkout .woocommerce-error {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin: 24px auto 0;
	padding: 0 56px;
	list-style: none;
}

.ef-checkout .woocommerce-error {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	margin: 24px 56px 0;
	border-radius: 16px;
	background: color-mix(in oklab, var(--ef-error) 7%, white);
	border: 1px solid color-mix(in oklab, var(--ef-error) 28%, transparent);
	font: 600 13px/1.7 var(--ef-sans);
	color: color-mix(in oklab, var(--ef-error) 70%, black);
}

.ef-checkout .woocommerce-error::before {
	content: "Перевірте, будь ласка, кілька полів";
	font: 700 14px/1.3 var(--ef-sans);
	color: color-mix(in oklab, var(--ef-error) 60%, black);
}

.ef-checkout .woocommerce-error li {
	list-style: none;
}

.ef-checkout .woocommerce-error li::before {
	content: "— ";
}

.ef-field-error {
	font: 600 12.5px/1.4 var(--ef-sans);
	color: var(--ef-error);
	margin: 7px 0 0 4px;
}

/* Shown when the Nova Poshta picker fell back to its offline sample data
   (API down/invalid key/rate limited) - amber, not --ef-error red, since
   this isn't something the shopper did wrong. */
.ef-np-offline-warning {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: color-mix(in oklab, oklch(0.75 0.16 70) 12%, white);
	border: 1px solid color-mix(in oklab, oklch(0.75 0.16 70) 35%, transparent);
	font: 600 12.5px/1.5 var(--ef-sans);
	color: color-mix(in oklab, oklch(0.75 0.16 70) 55%, black);
}

/* --- Billing fields: floating label on WooCommerce's own markup ------------ */

/*
 * form-billing.php is untouched - this is CSS only, laid on top of
 * WooCommerce's normal .form-row > label + .woocommerce-input-wrapper >
 * input structure. The label is pinned above the value rather than
 * animating out of the placeholder position: that is what the design's own
 * "floating" label actually is on closer inspection - a fixed micro-label
 * with the value sitting below it, always, not a transition.
 */
.ef-checkout .woocommerce-billing-fields > h3,
.ef-checkout .woocommerce-shipping-fields,
.ef-checkout .woocommerce-account-fields {
	display: none;
}

.ef-checkout .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ef-checkout .woocommerce-billing-fields__field-wrapper .form-row {
	position: relative;
	width: auto;
	margin: 0;
	padding: 0;
}

.ef-checkout .woocommerce-billing-fields__field-wrapper label {
	position: absolute;
	left: 16px;
	top: 10px;
	z-index: 1;
	font: 500 10px/1 var(--ef-mono);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ef-muted-3);
	pointer-events: none;
}

.ef-checkout .woocommerce-billing-fields__field-wrapper label .required {
	display: none;
}

.ef-checkout .woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper {
	display: block;
}

.ef-checkout .woocommerce-billing-fields__field-wrapper input.input-text {
	width: 100%;
	height: 60px;
	padding: 26px 16px 8px;
	border: 1px solid var(--ef-line-input);
	border-radius: var(--ef-radius-input);
	font: 600 15.5px/1.2 var(--ef-sans);
	color: var(--ef-ink);
	background: #fff;
	outline: none;
	transition: border-color 0.18s, box-shadow 0.18s;
}

/*
 * WooCommerce's `.woocommerce-page form .form-row input.input-text` outranks
 * the rule above and resets the padding to .9rem, which centred the value
 * under the floating label. Put the room for the label back.
 */
.woocommerce-page form.ef-checkout .woocommerce-billing-fields__field-wrapper .form-row input.input-text {
	padding: 26px 16px 8px;
}

.ef-checkout .woocommerce-billing-fields__field-wrapper input.input-text:hover {
	border-color: rgba(0, 0, 0, 0.26);
}

.ef-checkout .woocommerce-billing-fields__field-wrapper input.input-text:focus {
	border-color: var(--ef-accent);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--ef-accent) 13%, transparent);
}

/*
 * WooCommerce's own checkout.js flags `.woocommerce-invalid` on plain
 * `focusout` - so simply clicking into a required field and back out (before
 * the shopper has typed anything) turns it red. That reads as broken, not
 * helpful. Gate the red state behind `.ef-was-submitted`, a class this
 * theme's checkout.js adds to the form only once the shopper has actually
 * tried to place the order - matching the "validate on submit" pattern the
 * design expects instead of WooCommerce's default "validate on blur".
 */
.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid input.input-text {
	border-color: var(--ef-error);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--ef-error) 10%, transparent);
}

.ef-checkout.ef-was-submitted .form-row .woocommerce-invalid-required-field ~ label,
.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid label {
	color: var(--ef-error);
}

/*
 * A line of text under an invalid contact field, not just the red border.
 * The rules below style WooCommerce's inline `<span>` errors, but this
 * WooCommerce version never prints them - it only toggles the row classes
 * (and this theme's checkout.js sets the same classes for empty fields on
 * submit). So the message is generated from those classes, in the same style
 * as the delivery/payment `.ef-field-error` lines. `::after` is otherwise
 * WooCommerce's clearfix on .form-row; a block-level text box still clears.
 * The required-field message is listed last so it wins when both apply.
 */
.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid-email::after,
.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid-phone::after,
.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid-required-field::after {
	display: block;
	clear: both;
	font: 600 12.5px/1.4 var(--ef-sans);
	color: var(--ef-error);
	margin: 7px 0 0 4px;
}

.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid-email::after {
	content: "Перевірте формат e-mail";
}

.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid-phone::after {
	content: "Перевірте номер телефону";
}

.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid-required-field::after {
	content: "Заповніть це поле";
}

/* WooCommerce prints its own inline field errors as a <span>; keep them
   consistent with the design's custom ones. */
.ef-checkout.ef-was-submitted .woocommerce-billing-fields__field-wrapper span.description,
.ef-checkout.ef-was-submitted span.woocommerce-invalid-required-field-error {
	display: block;
	font: 600 12.5px/1.4 var(--ef-sans);
	color: var(--ef-error);
	margin: 7px 0 0 4px;
}

.ef-checkout:not(.ef-was-submitted) .woocommerce-billing-fields__field-wrapper span.description,
.ef-checkout:not(.ef-was-submitted) span.woocommerce-invalid-required-field-error {
	display: none;
}

/* --- Order note textarea --------------------------------------------------- */

.ef-checkout #order_comments_field {
	margin: 0;
	padding: 0;
}

.ef-checkout #order_comments_field label {
	display: none;
}

.ef-checkout textarea#order_comments {
	width: 100%;
	min-height: 104px;
	resize: vertical;
	padding: 16px;
	border: 1px solid var(--ef-line-input);
	border-radius: var(--ef-radius-input);
	font: 600 15px/1.5 var(--ef-sans);
	color: var(--ef-ink);
	outline: none;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.ef-checkout textarea#order_comments:hover {
	border-color: rgba(0, 0, 0, 0.26);
}

.ef-checkout textarea#order_comments:focus {
	border-color: var(--ef-accent);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--ef-accent) 13%, transparent);
}

/* --- Coupon toggle ----------------------------------------------------------- */

/*
 * The design's own mock-up has no coupon field, but coupons are switched on
 * in this store and a shopper who has one needs a way to use it - dropping
 * the control would remove working functionality the brief also says to
 * keep. It is folded into a quiet link rather than a boxed banner so it does
 * not compete with the four numbered sections.
 */
.ef-checkout .checkout_coupon.woocommerce-form-coupon {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin: 0 auto;
	padding: 0 56px;
}

.ef-checkout .woocommerce-form-coupon-toggle {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin: 20px auto 0;
	padding: 0 56px;
}

.ef-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	list-style: none;
	margin: 0;
	font: 600 13px/1.6 var(--ef-sans);
	color: var(--ef-muted);
}

.ef-checkout .woocommerce-form-coupon-toggle .showcoupon {
	color: var(--ef-ink);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ef-checkout .checkout_coupon.woocommerce-form-coupon {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.ef-checkout .checkout_coupon .form-row {
	margin: 0;
	flex: 1 1 220px;
}

.ef-checkout .checkout_coupon input#coupon_code {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--ef-line-input);
	border-radius: var(--ef-radius-input);
	font: 600 14px var(--ef-sans);
	outline: none;
}

.ef-checkout .checkout_coupon button.button {
	height: 48px;
	padding: 0 20px;
	border: 1px solid var(--ef-line-input);
	border-radius: var(--ef-radius-input);
	background: #fff;
	font: 700 13.5px var(--ef-sans);
	cursor: pointer;
}

/* --- Delivery method cards --------------------------------------------------- */

/* Seven methods: four to a row on desktop (4 + 3); a list on phones. */
.ef-methods {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.ef-method {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	/*
	 * These cards are <button>s, and a button centres its content vertically.
	 * Where one description is a line shorter ("Доставка до дверей") that
	 * card's icon and title sat ~9px lower than its neighbours'. Laying the
	 * content out from the top keeps icon and title on one line across cards.
	 */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: var(--ef-radius-card);
	background: #fff;
	cursor: pointer;
	text-align: left;
	appearance: none;
	font-family: inherit;
	transition: box-shadow 0.2s, border-color 0.2s;
	outline: none;
}

.ef-method:hover {
	border-color: rgba(0, 0, 0, 0.3);
	box-shadow: var(--ef-shadow-hover);
}

.ef-method:focus-visible {
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--ef-accent) 18%, transparent);
}

.ef-method__icon {
	display: block;
	margin-bottom: 32px;
	color: var(--ef-ink);
}

.ef-method__title {
	display: block;
	font: 700 16px/1.2 var(--ef-sans);
	color: var(--ef-ink);
}

.ef-method__desc {
	display: block;
	font: 600 13px/1.45 var(--ef-sans);
	color: var(--ef-muted-2);
	margin-top: 6px;
}

.ef-method__check {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ef-accent);
	display: none;
	align-items: center;
	justify-content: center;
}

.ef-method.is-selected {
	border: 2px solid var(--ef-accent);
	margin: -1px;
}

.ef-method.is-selected .ef-method__check {
	display: flex;
	animation: efPop 0.22s ease both;
}

/* --- Nova Poshta cascading fields -------------------------------------------- */

.ef-np-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ef-np-fields:empty {
	display: none;
}

.ef-combo {
	position: relative;
	flex: 1 1 250px;
	min-width: 0;
	/*
	 * This element must NEVER carry a transform, opacity < 1, filter, or
	 * `isolation: isolate` of its own - any of those independently creates a
	 * stacking context, and .ef-combo__panel (a child, position: absolute,
	 * z-index: 500) would then be judged only against ITS siblings inside
	 * that context instead of the real page - capping it below the payment
	 * section that follows later in the DOM at a plain z-index: auto.
	 *
	 * `isolation: isolate` used to sit here on the theory that it would make
	 * the panel "win" against later sections (it does the opposite - see
	 * git history) - removing it was the first fix, and it was real, but
	 * incomplete: the efIn entrance animation below (transform + opacity)
	 * was ALSO independently creating that same trap for its ~300ms run
	 * every time a combo is freshly inserted (which happens a lot here - a
	 * new .ef-combo is built by JS for each step of the region/city/warehouse
	 * cascade). Moved the animation onto .ef-combo__toggle - a SIBLING of
	 * .ef-combo__panel, not its ancestor - so the entrance effect still
	 * plays without ever touching the element the escaping panel is
	 * positioned against. `position: relative` alone (no z-index) is all
	 * .ef-combo needs: it makes it the containing block for the panel's
	 * `top/left/right` without creating a stacking context itself, so the
	 * panel's z-index: 500 keeps comparing against the real page (nothing
	 * else here is anywhere near that high).
	 */
}

.ef-combo .ef-mono-label {
	margin-bottom: 9px;
}

.ef-combo__toggle {
	/* Moved here from .ef-combo itself - see the long comment on that rule. */
	animation: efIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	width: 100%;
	height: 56px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: 1px solid var(--ef-line-input);
	border-radius: var(--ef-radius-input);
	background: #fff;
	cursor: pointer;
	text-align: left;
	appearance: none;
	font-family: inherit;
	outline: none;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.ef-combo__toggle:hover {
	border-color: rgba(0, 0, 0, 0.26);
}

.ef-combo__toggle:focus-visible,
.ef-combo.is-open .ef-combo__toggle {
	border-color: var(--ef-accent);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--ef-accent) 13%, transparent);
}

.ef-combo.has-error .ef-combo__toggle {
	border-color: var(--ef-error);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--ef-error) 10%, transparent);
}

.ef-combo__value {
	min-width: 0;
	overflow: hidden;
	display: block;
}

.ef-combo__title {
	display: block;
	font: 700 15px/1.25 var(--ef-sans);
	color: var(--ef-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ef-combo__sub {
	display: block;
	font: 600 12px/1.3 var(--ef-sans);
	color: var(--ef-muted-3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ef-combo__placeholder {
	font: 600 15px/1.25 var(--ef-sans);
	color: #a9aeb5;
}

.ef-combo__chevron {
	flex: none;
	color: var(--ef-muted-3);
	transition: transform 0.18s;
}

.ef-combo.is-open .ef-combo__chevron {
	transform: rotate(180deg);
}

.ef-combo__panel {
	position: absolute;
	z-index: 500;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: 16px;
	box-shadow: var(--ef-shadow-dropdown);
	overflow: hidden;
	animation: efPop 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ef-combo__search {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	color: var(--ef-muted-3);
}

.ef-combo__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font: 600 14.5px var(--ef-sans);
	color: var(--ef-ink);
}

.ef-combo__list {
	max-height: 236px;
	overflow: auto;
}

.ef-combo__option {
	padding: 11px 14px;
	cursor: pointer;
	transition: background 0.12s;
}

.ef-combo__option:hover,
.ef-combo__option.is-active {
	background: #f3f5f7;
}

.ef-combo__option-title {
	font: 700 14px/1.3 var(--ef-sans);
	color: var(--ef-ink);
}

.ef-combo__option-sub {
	font: 600 12px/1.4 var(--ef-sans);
	color: var(--ef-muted-3);
	margin-top: 2px;
}

.ef-combo__status {
	padding: 18px 14px;
	font: 600 13px var(--ef-sans);
	color: var(--ef-muted-3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ef-combo__retry {
	appearance: none;
	background: none;
	border: 0;
	font: 700 13px var(--ef-sans);
	color: var(--ef-accent);
	cursor: pointer;
	flex: none;
}

.ef-combo__skeleton {
	padding: 10px 14px;
}

.ef-combo__skeleton-line {
	height: 13px;
	border-radius: 6px;
	background: linear-gradient(90deg, #eef0f2 25%, #f7f8f9 37%, #eef0f2 63%);
	background-size: 400% 100%;
	animation: efShimmer 1.4s ease infinite;
	margin: 8px 0;
}

@keyframes efShimmer {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0 50%;
	}
}

/* Courier's house/flat pair, injected next to the street combobox. */
.ef-house-row {
	display: flex;
	gap: 14px;
	flex: 1 1 100%;
	animation: efIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ef-house-row .ef-field {
	flex: 0 1 180px;
}

.ef-field .ef-mono-label {
	margin-bottom: 9px;
}

.ef-field input {
	width: 100%;
	height: 56px;
	padding: 0 16px;
	border: 1px solid var(--ef-line-input);
	border-radius: var(--ef-radius-input);
	font: 600 15px var(--ef-sans);
	color: var(--ef-ink);
	outline: none;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.ef-field input:hover {
	border-color: rgba(0, 0, 0, 0.26);
}

.ef-field input:focus {
	border-color: var(--ef-accent);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--ef-accent) 13%, transparent);
}

.ef-field.has-error input {
	border-color: var(--ef-error);
}

.ef-point-confirm {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 16px;
	background: color-mix(in oklab, var(--ef-success) 7%, white);
	border: 1px solid color-mix(in oklab, var(--ef-success) 30%, transparent);
	animation: efIn 0.3s ease both;
}

/* An explicit display:flex above would otherwise always beat the browser's
   own [hidden]{display:none} - author styles outrank user-agent styles at
   any specificity, so this needs to be said explicitly to actually hide. */
.ef-point-confirm[hidden] {
	display: none;
}

.ef-point-confirm__badge {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ef-success);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.ef-point-confirm__title {
	font: 700 14.5px/1.3 var(--ef-sans);
	color: var(--ef-ink);
}

.ef-point-confirm__sub {
	font: 600 12.5px/1.4 var(--ef-sans);
	color: var(--ef-muted);
	margin-top: 2px;
}

/* --- Self-pickup: fixed address, no Nova Poshta fields ---------------------- */

.ef-pickup-address {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(0, 0, 0, 0.025);
	border: 1px solid rgba(0, 0, 0, 0.09);
	animation: efIn 0.3s ease both;
}

.ef-pickup-address svg {
	flex: none;
	color: var(--ef-accent);
	margin-top: 1px;
}

.ef-pickup-address__title {
	font: 500 10px/1 var(--ef-mono);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ef-muted-3);
	margin-bottom: 6px;
}

.ef-pickup-address__value {
	font: 700 14.5px/1.4 var(--ef-sans);
	color: var(--ef-ink);
}

/* --- Payment method cards ----------------------------------------------------- */

.ef-payment-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/*
 * woocommerce.css paints #payment a lilac panel (rgba(129,110,153,.14), 5px
 * radius) and gives its list 1em padding plus a bottom rule, at (1,2,1) - so
 * the `padding: 0` above never applied. The payment cards sat 17px inset on
 * a tinted panel, out of line with the contact fields and delivery cards
 * above them, in the one off-palette colour on the page. #payment here is
 * only the wrapper of the card list, so it drops the panel entirely.
 */
form.ef-checkout #payment {
	background: none;
	border-radius: 0;
}

form.ef-checkout #payment ul.ef-payment-methods {
	padding: 0;
	border-bottom: 0;
}

.ef-payment-card {
	position: relative;
}

.ef-payment-card__radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.ef-payment-card__label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s;
}

.ef-payment-card__label:hover {
	border-color: rgba(0, 0, 0, 0.3);
}

.ef-payment-card__radio:focus-visible ~ .ef-payment-card__label {
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--ef-accent) 18%, transparent);
}

.ef-payment-card__icon {
	flex: none;
	color: var(--ef-ink);
}

.ef-payment-card__body {
	flex: 1;
	min-width: 0;
}

.ef-payment-card__title {
	display: block;
	font: 700 15.5px/1.25 var(--ef-sans);
	color: var(--ef-ink);
}

.ef-payment-card__desc {
	display: block;
	font: 600 12.5px/1.4 var(--ef-sans);
	color: var(--ef-muted-2);
	margin-top: 3px;
}

.ef-payment-card__dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid rgba(0, 0, 0, 0.18);
	flex: none;
	position: relative;
}

.ef-payment-card__radio:checked ~ .ef-payment-card__label {
	border-color: transparent;
}

.ef-payment-card__radio:checked ~ .ef-payment-card__label::before {
	content: "";
	position: absolute;
	inset: -1px;
	border: 2px solid var(--ef-accent);
	border-radius: 16px;
	pointer-events: none;
}

.ef-payment-card__radio:checked ~ .ef-payment-card__label .ef-payment-card__dot {
	border-color: transparent;
	background: var(--ef-accent);
}

.ef-payment-card__radio:checked ~ .ef-payment-card__label .ef-payment-card__dot::after {
	content: "";
	position: absolute;
	inset: 5px;
	background: #fff;
	clip-path: polygon(9% 45%, 0 55%, 38% 100%, 100% 20%, 90% 10%, 38% 78%);
}

.ef-payment-card__box {
	margin-top: 10px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--ef-surface);
	font: 600 13px/1.6 var(--ef-sans);
	color: var(--ef-muted);
}

/* --- Terms checkbox ------------------------------------------------------------ */

.ef-terms {
	margin-top: 14px;
}

.ef-terms__row {
	margin: 0 0 14px;
}

.ef-terms__label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font: 600 12px/1.5 var(--ef-sans);
	color: var(--ef-muted-2);
	cursor: pointer;
}

.ef-terms__label input[type="checkbox"] {
	margin-top: 2px;
	flex: none;
	width: 16px;
	height: 16px;
	accent-color: var(--ef-ink);
}

.ef-terms__label a {
	color: var(--ef-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ef-terms .abbr.required,
.ef-terms abbr.required {
	display: none;
}

.ef-checkout.ef-was-submitted .form-row.woocommerce-invalid .ef-terms__label {
	color: var(--ef-error);
}

/* --- Order summary sidebar ------------------------------------------------------ */

.ef-summary {
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: var(--ef-radius-summary);
	background: #fff;
	box-shadow: var(--ef-shadow-summary);
	overflow: hidden;
	transition: opacity 0.15s;
}

/* Set right before the quantity-change AJAX call; the response replaces this
   whole element, so nothing needs to remove the class again. */
.ef-summary.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.ef-summary__head {
	padding: 24px 24px 18px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.ef-summary__head h2 {
	font: 700 19px/1.2 var(--ef-sans);
	letter-spacing: -0.015em;
	color: var(--ef-ink);
	margin: 0;
}

.ef-summary__count {
	font: 600 12.5px var(--ef-sans);
	color: var(--ef-muted-3);
	white-space: nowrap;
}

.ef-summary__items {
	padding: 0 24px;
}

/*
 * The sidebar is sticky, but with a few products it is taller than a laptop
 * screen (~880px at 3 items with the trust card). At 1024x768 / 1280x720 the
 * "Оформити замовлення" button then scrolled off the top as the shopper
 * reached the payment/comment sections - the moment they want it. The item
 * list scrolls inside the card instead, capped so the button stays on screen;
 * on a 900px-tall window three items still fit without a scrollbar.
 */
@media (min-width: 1024px) {
	.ef-summary__items {
		max-height: max(160px, calc(100vh - 550px));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

.ef-item {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.ef-summary__items > .ef-item:first-child {
	border-top: 0;
}

.ef-item__media {
	width: 84px;
	height: 84px;
	flex: none;
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.07);
	overflow: hidden;
	background: var(--ef-surface);
}

.ef-item__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.ef-item__body {
	flex: 1;
	min-width: 0;
}

.ef-item__name {
	font: 700 14.5px/1.3 var(--ef-sans);
	color: var(--ef-ink);
}

.ef-item__meta {
	font: 600 11.5px/1.4 var(--ef-sans);
	color: var(--ef-muted-3);
	margin-top: 3px;
}

.ef-item__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 11px;
	gap: 8px;
}

.ef-qty {
	display: flex;
	align-items: center;
	gap: 2px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	padding: 2px;
}

.ef-qty__btn {
	width: 26px;
	height: 26px;
	border: 0;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	font: 700 15px var(--ef-sans);
	color: var(--ef-muted);
	transition: background 0.15s;
}

.ef-qty__btn:hover:not(:disabled) {
	background: #f1f3f5;
}

.ef-qty__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.ef-qty__value {
	min-width: 20px;
	text-align: center;
	font: 700 13.5px var(--ef-sans);
	color: var(--ef-ink);
}

.ef-item__price {
	text-align: right;
}

.ef-item__now {
	font: 700 14.5px/1.2 var(--ef-sans);
	color: var(--ef-ink);
}

.ef-item__old {
	font: 600 11.5px/1.3 var(--ef-sans);
	color: var(--ef-faint);
	text-decoration: line-through;
}

.ef-summary__totals {
	padding: 18px 24px 4px;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.ef-summary__line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font: 600 13.5px var(--ef-sans);
	color: var(--ef-muted);
}

.ef-summary__line > span:last-child {
	font-weight: 700;
	color: var(--ef-ink);
	text-align: right;
}

.ef-summary__line--discount > span:last-child {
	color: var(--ef-success);
}

.ef-summary__total {
	margin: 18px 24px 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.ef-summary__total > span:first-child {
	font: 700 16px var(--ef-sans);
	color: var(--ef-ink);
}

.ef-summary__total-value {
	font: 800 30px/1 var(--ef-sans);
	letter-spacing: -0.03em;
	color: var(--ef-ink);
	font-variant-numeric: tabular-nums;
}

.ef-summary__cta {
	padding: 20px 24px 24px;
}

.ef-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 24px;
	border-radius: 14px;
	font: 700 14.5px var(--ef-sans);
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.14s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s, background 0.2s;
}

.ef-btn--dark {
	background: var(--ef-ink);
	color: #fff;
}

.ef-btn--dark:hover {
	background: #1b1d20;
	box-shadow: 0 12px 28px rgba(10, 12, 16, 0.22);
	color: #fff;
}

.ef-btn--outline {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.14);
	color: var(--ef-ink);
}

.ef-btn--outline:hover {
	background: #f5f6f8;
	color: var(--ef-ink);
}

.ef-summary__submit {
	width: 100%;
	height: 60px;
	border-radius: 16px;
	font-size: 15.5px;
	letter-spacing: 0.01em;
	position: relative;
}

.ef-summary__submit:hover {
	transform: translateY(-1px);
}

.ef-summary__submit:active {
	transform: translateY(1px) scale(0.995);
	box-shadow: none;
}

/*
 * WooCommerce adds .processing to form.checkout for the duration of the AJAX
 * submit - the real, existing signal for the loading state, not one this
 * file invents. The spinner is a ::after pseudo-element rather than a real
 * child <span> because WooCommerce's own checkout.js runs
 * $('#place_order').text(...) on every gateway change, which replaces any
 * real children with a single text node - a generated pseudo-element is not
 * a child node, so it survives that call.
 */
.ef-checkout.processing .ef-summary__submit {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.ef-checkout.processing .ef-summary__submit::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 17px;
	height: 17px;
	margin: -8.5px 0 0 -8.5px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.28);
	border-top-color: #fff;
	animation: efSpin 0.7s linear infinite;
}

/* The phone/tablet bar's button proxies #place_order, so it shows the same
   loading state - otherwise a tap there gave no feedback while the order
   was submitting. The bar is the form's next sibling. */
.ef-checkout.processing ~ .ef-mobile-bar .ef-mobile-bar__cta {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.ef-checkout.processing ~ .ef-mobile-bar .ef-mobile-bar__cta::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 17px;
	height: 17px;
	margin: -8.5px 0 0 -8.5px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.28);
	border-top-color: #fff;
	animation: efSpin 0.7s linear infinite;
}

.ef-checkout .blockUI.blockOverlay {
	border-radius: inherit;
}

/* --- Trust list under the summary card ------------------------------------------ */

.ef-trust {
	margin-top: 16px;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: var(--ef-radius-card);
	padding: 18px 20px;
	background: var(--ef-surface);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ef-trust__row {
	display: flex;
	align-items: center;
	gap: 11px;
	font: 600 13px var(--ef-sans);
	color: var(--ef-muted);
}

.ef-trust__row--head {
	font-weight: 700;
	color: var(--ef-ink);
}

.ef-trust__check {
	width: 15px;
	text-align: center;
	font-weight: 700;
	color: var(--ef-success);
}

/* --- Mobile sticky bottom bar ----------------------------------------------------- */

.ef-mobile-bar {
	display: none;
}

@keyframes efPop {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
}

@keyframes efIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

@keyframes efSpin {
	to {
		transform: rotate(360deg);
	}
}

/* =========================================================================
   Responsive
   ========================================================================= */

/* 1024-1279: narrower sidebar, tighter gutters, still two columns. */
@media (max-width: 1279px) and (min-width: 1024px) {
	.ef-checkout-grid {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 36px;
		padding: 36px 32px 64px;
	}

	.ef-checkout-topbar__inner {
		padding: 14px 32px;
	}
}

/* 768-1023: one column, summary drops below the form, sticky bottom bar takes over the CTA. */
@media (max-width: 1023px) {
	.ef-checkout-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding: 28px 32px 48px;
	}

	.ef-checkout-right {
		position: static;
	}

	/*
	 * The mobile bottom bar (form-checkout.php's .ef-mobile-bar) only proxies
	 * the submit BUTTON - it clicks the real #place_order via JS, it does not
	 * duplicate the terms checkbox. Hiding the whole .ef-summary__cta here
	 * (as this rule used to) hid the checkbox along with the button it was
	 * meant to replace, with nothing else on the page able to check it -
	 * WooCommerce enforces terms acceptance server-side (no `required`
	 * attribute, so the browser never blocked submission on it either), so a
	 * mobile/tablet checkout attempt would silently fail server-side on an
	 * unchecked box the shopper had no way to reach. Hiding only the button
	 * keeps the checkbox (and its "умови продажу" link) visible and usable.
	 */
	.ef-summary__submit {
		display: none;
	}

	.ef-mobile-bar {
		display: flex;
	}
}

/* < 768: mobile spacing, full-width stacked delivery cards, sticky CTA. */
@media (max-width: 767px) {
	/*
	 * No side padding of their own on phones: <main> already carries the
	 * site's 20px gutter, and the extra 20px here made it 40px a side - a
	 * 280px-wide form on a 375px phone, 225px on a 320px one (where order
	 * prices overflowed the summary card).
	 */
	.ef-checkout-topbar__inner {
		padding: 12px 0;
	}

	/*
	 * The mobile design trims the trail to just the current step - "Кошик /"
	 * and "/ Підтвердження" are desktop orientation, not needed once the page
	 * is a single-column flow the visitor is already inside.
	 */
	.ef-crumbs a,
	.ef-crumbs span[aria-hidden],
	.ef-crumbs span:last-child {
		display: none;
	}

	.ef-crumbs {
		flex: 1;
		justify-content: center;
	}

	.ef-crumbs .is-current {
		font-weight: 700;
	}

	.ef-secure-badge span {
		display: none;
	}

	.ef-checkout-grid {
		padding: 20px 0 40px;
		gap: 28px;
	}

	.ef-section {
		margin-bottom: 34px;
	}

	.ef-section__hint {
		margin-left: 0;
	}

	.ef-checkout .woocommerce-billing-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	.ef-checkout .woocommerce-billing-fields__field-wrapper input.input-text,
	.ef-checkout textarea#order_comments,
	.ef-field input,
	.ef-combo__toggle,
	.ef-combo__search input {
		font-size: 16px; /* stops iOS zooming the page on focus */
	}

	.ef-methods {
		display: flex;
		flex-direction: column;
	}

	.ef-method {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 14px;
		padding: 16px;
		min-height: 64px;
	}

	.ef-method__icon {
		margin-bottom: 0;
	}

	.ef-method__title,
	.ef-method__desc {
		display: inline;
	}

	.ef-method__title {
		display: block;
	}

	.ef-house-row {
		flex-direction: column;
	}

	.ef-house-row .ef-field {
		flex: 1 1 auto;
	}

	.ef-btn,
	.ef-qty__btn,
	.ef-combo__toggle,
	.ef-method,
	.ef-payment-card__label {
		min-height: 44px;
	}

	.ef-summary {
		border-radius: 18px;
	}

	.ef-mobile-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		align-items: center;
		gap: 14px;
		padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, 0.94);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		border-top: 1px solid rgba(0, 0, 0, 0.09);
	}

	body.woocommerce-checkout .wp-site-blocks {
		padding-bottom: 84px;
	}

	.ef-mobile-bar__total {
		flex: 1;
		min-width: 0;
	}

	.ef-mobile-bar__label {
		display: block;
		font: 700 12px var(--ef-sans);
		color: var(--ef-muted);
	}

	.ef-mobile-bar__value {
		display: block;
		font: 800 20px/1.1 var(--ef-sans);
		letter-spacing: -0.02em;
		color: var(--ef-ink);
		white-space: nowrap;
	}

	.ef-mobile-bar__cta {
		flex: none;
		height: 52px;
		padding: 0 22px;
	}
}

/* =========================================================================
   Thank-you page
   ========================================================================= */

.ef-thanks {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
	padding: 40px 56px 80px;
}

.ef-thanks--minimal {
	max-width: 720px;
	padding: 80px 24px;
	text-align: center;
}

.ef-thanks__hero {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	max-width: 820px;
}

.ef-thanks__badge {
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 50%;
	background: var(--ef-success);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: efPulse 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes efPulse {
	from {
		opacity: 0;
		transform: scale(0.7);
	}
}

.ef-thanks__title {
	font: 800 40px/1.1 var(--ef-sans);
	letter-spacing: -0.028em;
	color: var(--ef-ink);
	margin: 2px 0 12px;
}

.ef-thanks__lede {
	font: 500 16px/1.6 var(--ef-sans);
	color: var(--ef-muted);
	margin: 0;
}

.ef-thanks__facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 40px 0 44px;
	max-width: 1160px;
}

.ef-fact {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
}

.ef-fact__label {
	font: 500 10px/1 var(--ef-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ef-muted-3);
}

.ef-fact__value {
	font: 700 17px/1.2 var(--ef-sans);
	color: var(--ef-ink);
}

.ef-fact__pill {
	font: 700 10.5px/1 var(--ef-sans);
	color: var(--ef-muted);
	background: rgba(0, 0, 0, 0.06);
	padding: 5px 8px;
	border-radius: 20px;
}

.ef-fact__pill--paid {
	color: color-mix(in oklab, var(--ef-success) 60%, black);
	background: color-mix(in oklab, var(--ef-success) 13%, transparent);
}

.ef-thanks__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 56px;
	align-items: start;
	max-width: 1160px;
}

.ef-thanks__h2 {
	font: 700 19px/1.2 var(--ef-sans);
	letter-spacing: -0.015em;
	color: var(--ef-ink);
	margin: 0 0 22px;
}

.ef-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.ef-timeline__step {
	display: flex;
	gap: 16px;
}

.ef-timeline__step:not(:last-child) {
	padding-bottom: 0;
}

.ef-timeline__dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.ef-timeline__step:not(:last-child) .ef-timeline__dot::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 1.5px;
	height: 26px;
	background: rgba(0, 0, 0, 0.1);
}

.ef-timeline__dot--done {
	background: var(--ef-success);
}

.ef-timeline__step:not(:last-child) .ef-timeline__dot--done::after {
	background: color-mix(in oklab, var(--ef-success) 35%, transparent);
}

.ef-timeline__dot--current {
	border: 2px solid var(--ef-accent);
	background: #fff;
}

.ef-timeline__dot--current::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ef-accent);
}

.ef-timeline__dot--upcoming {
	border: 1.5px solid rgba(0, 0, 0, 0.16);
}

.ef-timeline__step > div {
	padding-bottom: 26px;
}

.ef-timeline__title {
	font: 700 15.5px/1.3 var(--ef-sans);
	color: var(--ef-ink);
}

.ef-timeline__step.is-upcoming .ef-timeline__title {
	color: var(--ef-muted-3);
}

.ef-timeline__meta {
	font: 600 13.5px/1.5 var(--ef-sans);
	color: var(--ef-muted-2);
	margin-top: 4px;
}

.ef-timeline__step.is-upcoming .ef-timeline__meta {
	color: var(--ef-faint);
}

.ef-thanks__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 34px;
}

.ef-thanks__contacts {
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	gap: 44px;
	flex-wrap: wrap;
}

.ef-thanks__contact-value {
	font: 700 15.5px/1.4 var(--ef-sans);
	color: var(--ef-ink);
	margin-top: 8px;
}

.ef-thanks__delivery {
	padding: 0 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ef-thanks__delivery > div > div:last-child {
	font: 700 14.5px/1.4 var(--ef-sans);
	color: var(--ef-ink);
	margin-top: 6px;
}

.ef-thanks .ef-item--static .ef-item__price {
	align-self: center;
	font: 700 14px var(--ef-sans);
	color: var(--ef-ink);
}

.ef-thanks__note {
	margin-top: 14px;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: 18px;
	background: var(--ef-surface);
	padding: 18px 20px;
	font: 600 13px/1.7 var(--ef-sans);
	color: var(--ef-muted);
}

@media (max-width: 1023px) {
	.ef-thanks {
		padding: 28px 32px 60px;
	}

	.ef-thanks__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ef-thanks__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.ef-thanks {
		padding: 24px 20px 48px;
	}

	.ef-thanks__title {
		font-size: 27px;
	}

	.ef-thanks__actions .ef-btn {
		flex: 1 1 auto;
	}
}

/* Typed fields of the hand-dispatched methods (Kyiv courier, Ukrposhta,
   Meest): same sizing as the Nova Poshta pickers, note on its own line. */
.ef-np-fields > .ef-field {
	flex: 1 1 250px;
	animation: efIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ef-np-fields > .ef-field input {
	width: 100%;
}

.ef-manual-note {
	flex: 1 1 100%;
	margin: 0;
}
