/*
 * Dango COD Order Form — storefront styles.
 * Every rule is scoped under .dcof-* so theme styles do not leak in and ours do
 * not leak out. Colours come from the form's design tokens (CSS variables).
 * Logical properties throughout, so right-to-left forms need no extra file.
 */

/* Currency signs many theme fonts lack (₨ ₹ ₦ ₱ ₺ ₽ ৳ ₫ ₮ ₴ ₸ ₾), from system fonts. */
@font-face {
	font-family: "dcof-cur";
	font-weight: 100 500;
	src: local("Segoe UI"), local("Roboto"), local("Helvetica Neue"), local("Arial"), local("Noto Sans");
	unicode-range: U+20A8, U+20B9, U+20A6, U+20B1, U+20BA, U+20BD, U+09F3, U+20AB, U+20AE, U+20B4, U+20B8, U+20BE;
}

@font-face {
	font-family: "dcof-cur";
	font-weight: 600 900;
	src: local("Segoe UI Bold"), local("SegoeUI-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Helvetica Neue Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Noto Sans Bold");
	unicode-range: U+20A8, U+20B9, U+20A6, U+20B1, U+20BA, U+20BD, U+09F3, U+20AB, U+20AE, U+20B4, U+20B8, U+20BE;
}

.dcof-cta,
.dcof-embed,
.dcof-sticky,
.dcof-modal {
	--dcof-primary: #0f766e;
	--dcof-on-primary: #fff;
	--dcof-radius: 14px;
	--dcof-ring: color-mix(in srgb, var(--dcof-primary) 22%, transparent);
	box-sizing: border-box;
}

.dcof-cta *,
.dcof-embed *,
.dcof-sticky *,
.dcof-modal *,
.dcof-form * {
	box-sizing: border-box;
}

/* ---------------- Order-now button ---------------- */

.dcof-cta {
	margin: 14px 0 18px;
	width: 100%;
	clear: both;
}

.dcof-cta .dcof-open {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 10px 22px;
	border: 2px solid var(--dcof-primary);
	border-radius: var(--dcof-radius);
	background: var(--dcof-primary);
	color: var(--dcof-on-primary);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 8px 22px -10px var(--dcof-primary);
	transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.dcof-cta .dcof-open:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -10px var(--dcof-primary);
}

.dcof-cta .dcof-open:active {
	transform: translateY(1px) scale(.995);
}

.dcof-cta .dcof-open:focus-visible {
	outline: 3px solid var(--dcof-ring);
	outline-offset: 3px;
}

.dcof-cta .dcof-open[aria-busy="true"] {
	opacity: .85;
	cursor: progress;
}

.dcof-open--gradient {
	background: linear-gradient(135deg, var(--dcof-primary), color-mix(in srgb, var(--dcof-primary) 70%, #000)) !important;
}

.dcof-open--outline {
	background: transparent !important;
	color: var(--dcof-primary) !important;
	box-shadow: none !important;
}

.dcof-open__icon {
	display: inline-flex;
	flex: none;
}

.dcof-open__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: start;
}

.dcof-open__main {
	font-size: 1.08rem;
}

.dcof-open__sub {
	font-size: .78rem;
	font-weight: 600;
	opacity: .88;
	margin-top: 2px;
}

.dcof-cta--compact {
	margin: 8px 0 0;
}

.dcof-cta--compact .dcof-open {
	min-height: 42px;
	padding: 6px 12px;
	gap: 8px;
	box-shadow: none;
}

.dcof-cta--compact .dcof-open__sub,
.dcof-cta--compact .dcof-open__icon {
	display: none;
}

.dcof-cta--compact .dcof-open__main {
	font-size: .92rem;
}

.dcof-cta--wide {
	margin: 0 0 12px;
}

/* Button animations. */
.dcof-anim--pulse {
	animation: dcof-pulse 2.4s infinite;
}

.dcof-anim--shake {
	animation: dcof-shake 4.5s infinite;
}

.dcof-anim--glow {
	animation: dcof-glow 2.2s infinite alternate;
}

@keyframes dcof-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dcof-primary) 55%, transparent); }
	70% { box-shadow: 0 0 0 14px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes dcof-shake {
	0%, 86%, 100% { transform: translateX(0); }
	88%, 92%, 96% { transform: translateX(-4px); }
	90%, 94%, 98% { transform: translateX(4px); }
}

@keyframes dcof-glow {
	from { box-shadow: 0 0 6px -1px var(--dcof-primary); }
	to { box-shadow: 0 0 22px 2px color-mix(in srgb, var(--dcof-primary) 70%, transparent); }
}

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

.dcof-sticky {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 99990;
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid rgba(15, 23, 42, .08);
	box-shadow: 0 -10px 30px -12px rgba(15, 23, 42, .25);
	transform: translateY(110%);
	transition: transform .28s ease;
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}

.dcof-sticky.is-visible {
	transform: translateY(0);
}

@media (max-width: 768px) {
	.dcof-sticky:not([hidden]) {
		display: flex;
	}
}

.dcof-sticky__img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 10px;
	flex: none;
}

.dcof-sticky__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	line-height: 1.25;
}

.dcof-sticky__name {
	font-size: .85rem;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dcof-sticky__price {
	font-size: .85rem;
	color: #475569;
}

.dcof-sticky__price del {
	opacity: .6;
	margin-inline-end: 4px;
}

.dcof-sticky__price ins {
	text-decoration: none;
	font-weight: 700;
	color: #0f172a;
}

.dcof-sticky__btn {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	min-height: 46px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--dcof-radius);
	background: var(--dcof-primary);
	color: var(--dcof-on-primary);
	font: inherit;
	font-weight: 700;
	font-size: .95rem;
	cursor: pointer;
}

/* ---------------- Embedded form & skeleton ---------------- */

.dcof-embed {
	margin: 18px 0;
	width: 100%;
}

.dcof-skeleton {
	display: grid;
	gap: 12px;
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: var(--dcof-radius);
}

.dcof-skeleton span {
	display: block;
	height: 46px;
	border-radius: 10px;
	background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
	background-size: 200% 100%;
	animation: dcof-shimmer 1.3s infinite;
}

.dcof-skeleton .dcof-skeleton__btn {
	height: 56px;
	background: color-mix(in srgb, var(--dcof-primary) 30%, #e2e8f0);
}

@keyframes dcof-shimmer {
	to { background-position: -200% 0; }
}

/* ---------------- Popup ---------------- */

html.dcof-locked,
html.dcof-locked body {
	overflow: hidden !important;
}

.dcof-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.dcof-modal[hidden] {
	display: none;
}

.dcof-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .56);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .22s ease;
}

.dcof-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 540px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55);
	opacity: 0;
	transform: translateY(18px) scale(.98);
	transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1);
	outline: none;
	-webkit-overflow-scrolling: touch;
}

.dcof-modal.is-open .dcof-modal__backdrop {
	opacity: 1;
}

.dcof-modal.is-open .dcof-modal__dialog {
	opacity: 1;
	transform: none;
}

.dcof-modal__grab {
	display: none;
}

.dcof-modal__close {
	-webkit-appearance: none;
	appearance: none;
	position: sticky;
	top: 12px;
	float: right;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 12px 12px -52px 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 23, 42, .06);
	color: #0f172a;
	cursor: pointer;
	transition: background .15s ease;
}

.dcof-modal__dialog[dir="rtl"] .dcof-modal__close {
	float: left;
	margin: 12px 0 -52px 12px;
}

.dcof-modal__close:hover {
	background: rgba(15, 23, 42, .12);
}

.dcof-modal__close:focus-visible {
	outline: 3px solid var(--dcof-ring);
}

.dcof-modal .dcof-form {
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

@media (max-width: 640px) {
	.dcof-modal {
		padding: 0;
		align-items: flex-end;
	}

	.dcof-modal__dialog {
		max-width: none;
		max-height: 94vh;
		max-height: 94dvh;
		border-radius: 22px 22px 0 0;
		transform: translateY(100%);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.dcof-modal.is-open .dcof-modal__dialog {
		transform: none;
	}

	.dcof-modal__grab {
		display: block;
		width: 42px;
		height: 5px;
		margin: 8px auto 0;
		border-radius: 99px;
		background: rgba(15, 23, 42, .18);
	}
}

/* ---------------- The form ---------------- */

.dcof-form {
	--dcof-bg: #fff;
	--dcof-surface: #f6f8f8;
	--dcof-text: #0f172a;
	--dcof-muted: #64748b;
	--dcof-border: #e2e8f0;
	--dcof-danger: #dc2626;
	--dcof-success: #059669;
	--dcof-field-radius: max(6px, calc(var(--dcof-radius) - 4px));
	container-type: inline-size;
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--dcof-border);
	border-radius: var(--dcof-radius);
	background: var(--dcof-bg);
	color: var(--dcof-text);
	font-size: 15px;
	line-height: 1.45;
	text-align: start;
}

.dcof-shadow--soft {
	box-shadow: 0 12px 34px -18px rgba(15, 23, 42, .28);
}

.dcof-shadow--strong {
	box-shadow: 0 22px 48px -18px rgba(15, 23, 42, .45);
}

.dcof-form__head {
	position: relative;
	margin: 0 0 16px;
	padding-inline-end: 44px;
}

.dcof-form__title {
	margin: 0;
	font-size: 1.28rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--dcof-text);
}

.dcof-form__sub {
	margin-top: 4px;
	font-size: .9rem;
	color: var(--dcof-muted);
}

.dcof-header--band .dcof-form__head {
	margin: -22px -22px 18px;
	padding: 20px 64px 18px 22px;
	padding-inline: 22px 64px;
	background: var(--dcof-primary);
	border-radius: var(--dcof-radius) var(--dcof-radius) 0 0;
}

.dcof-header--band .dcof-form__title,
.dcof-header--band .dcof-form__sub {
	color: var(--dcof-on-primary);
}

.dcof-modal .dcof-header--band .dcof-form__head {
	border-radius: 0;
}

.dcof-badge {
	display: inline-block;
	margin-top: 8px;
	padding: 2px 8px;
	border-radius: 99px;
	background: #fef3c7;
	color: #92400e;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.dcof-prefill {
	margin: -6px 0 12px;
	font-size: .85rem;
}

.dcof-form [hidden],
.dcof-modal [hidden] {
	display: none !important;
}

.dcof-form__body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 12px;
}

.dcof-b {
	grid-column: span 2;
	min-width: 0;
}

.dcof-w--half {
	grid-column: span 1;
}

@container (max-width: 420px) {
	.dcof-w--half {
		grid-column: span 2;
	}
}

.dcof-b[hidden] {
	display: none;
}

.dcof-hp-wrap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Fields. */
.dcof-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dcof-label {
	display: block;
	margin: 0;
	padding: 0;
	font-size: .86rem;
	font-weight: 650;
	color: var(--dcof-text);
	border: 0;
}

.dcof-req {
	color: var(--dcof-danger);
}

.dcof-form .dcof-input,
.dcof-form .dcof-cc {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--dcof-border);
	border-radius: var(--dcof-field-radius);
	background: var(--dcof-bg);
	color: var(--dcof-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.dcof-form textarea.dcof-input {
	min-height: 84px;
	resize: vertical;
}

.dcof-form select.dcof-input,
.dcof-form .dcof-cc {
	padding-inline-end: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
}

.dcof-form[dir="rtl"] select.dcof-input,
.dcof-form[dir="rtl"] .dcof-cc {
	background-position: left 12px center;
}

.dcof-form .dcof-input::placeholder {
	color: color-mix(in srgb, var(--dcof-muted) 80%, transparent);
	opacity: 1;
}

.dcof-form .dcof-input:focus,
.dcof-form .dcof-cc:focus {
	outline: none;
	border-color: var(--dcof-primary);
	box-shadow: 0 0 0 4px var(--dcof-ring);
}

.dcof-form .dcof-input[aria-invalid="true"] {
	border-color: var(--dcof-danger);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dcof-danger) 14%, transparent);
}

.dcof-fields--filled .dcof-input,
.dcof-fields--filled .dcof-cc {
	background-color: var(--dcof-surface) !important;
	border-color: transparent !important;
}

.dcof-fields--filled .dcof-input:focus {
	background-color: var(--dcof-bg) !important;
	border-color: var(--dcof-primary) !important;
}

.dcof-fields--underline .dcof-input,
.dcof-fields--underline .dcof-cc {
	border-width: 0 0 2px !important;
	border-radius: 0 !important;
	padding-inline: 2px !important;
	box-shadow: none !important;
}

.dcof-help {
	font-size: .8rem;
	color: var(--dcof-muted);
}

.dcof-error {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	font-size: .82rem;
	font-weight: 600;
	color: var(--dcof-danger);
}

.dcof-error[hidden],
.dcof-hint[hidden] {
	display: none;
}

.dcof-hint {
	padding: 8px 10px;
	border-radius: 8px;
	background: #fffbeb;
	color: #92400e;
	font-size: .82rem;
}

.dcof-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.dcof-phone {
	display: flex;
	gap: 8px;
}

.dcof-phone .dcof-cc {
	width: auto;
	flex: none;
	min-width: 104px;
}

.dcof-input--phone {
	letter-spacing: .02em;
}

/* City search. */
.dcof-combo {
	position: relative;
}

.dcof-combo__icon {
	position: absolute;
	inset-inline-start: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	color: var(--dcof-muted);
	pointer-events: none;
}

.dcof-form .dcof-combo__input {
	padding-inline-start: 40px;
}

.dcof-combo__list {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 6px);
	z-index: 20;
	max-height: 264px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid var(--dcof-border);
	border-radius: 12px;
	background: var(--dcof-bg);
	box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .35);
}

.dcof-combo__list[hidden] {
	display: none;
}

.dcof-combo__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
	color: var(--dcof-text);
}

.dcof-combo__opt:hover,
.dcof-combo__opt.is-active {
	background: color-mix(in srgb, var(--dcof-primary) 10%, transparent);
}

.dcof-combo__name {
	font-weight: 600;
}

.dcof-combo__alt {
	color: var(--dcof-muted);
	font-size: .92rem;
}

.dcof-combo__opt--other {
	color: var(--dcof-primary);
	font-weight: 600;
}

.dcof-combo__empty {
	padding: 12px;
	color: var(--dcof-muted);
	font-size: .9rem;
}

/* Choice pills (variations, radio custom fields). */
.dcof-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dcof-form .dcof-pill {
	-webkit-appearance: none;
	appearance: none;
	min-height: 42px;
	min-width: 48px;
	margin: 0;
	padding: 8px 16px;
	border: 1.5px solid var(--dcof-border);
	border-radius: 999px;
	background: var(--dcof-bg);
	color: var(--dcof-text);
	font: inherit;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.dcof-form .dcof-pill:hover {
	border-color: var(--dcof-primary);
}

.dcof-form .dcof-pill[aria-checked="true"] {
	border-color: var(--dcof-primary);
	background: color-mix(in srgb, var(--dcof-primary) 12%, var(--dcof-bg));
	color: var(--dcof-primary);
	box-shadow: inset 0 0 0 1px var(--dcof-primary);
}

.dcof-form .dcof-pill.is-unavailable {
	opacity: .45;
	text-decoration: line-through;
}

.dcof-form .dcof-pill:focus-visible {
	outline: 3px solid var(--dcof-ring);
	outline-offset: 2px;
}

.dcof-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .92rem;
	cursor: pointer;
}

.dcof-check__box {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--dcof-primary);
	flex: none;
}

/* Product. */
.dcof-product {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 12px;
	border-radius: var(--dcof-field-radius);
	background: var(--dcof-surface);
}

.dcof-product__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dcof-product__img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--dcof-bg);
	flex: none;
}

.dcof-product__info {
	flex: 1;
	min-width: 0;
}

.dcof-product__name {
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dcof-product__variant {
	font-size: .82rem;
	color: var(--dcof-muted);
}

.dcof-product__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-top: 2px;
}

.dcof-price {
	font-weight: 800;
	color: var(--dcof-primary);
}

.dcof-price--old {
	font-size: .85rem;
	color: var(--dcof-muted);
}

.dcof-qty {
	display: inline-flex;
	align-items: center;
	flex: none;
	border: 1.5px solid var(--dcof-border);
	border-radius: 999px;
	background: var(--dcof-bg);
	overflow: hidden;
}

.dcof-form .dcof-qty__btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--dcof-text);
	cursor: pointer;
	box-shadow: none;
}

.dcof-qty:focus-within {
	border-color: var(--dcof-primary);
	box-shadow: 0 0 0 3px var(--dcof-ring);
}

.dcof-form .dcof-qty__input:focus,
.dcof-form .dcof-qty__btn:focus {
	outline: none;
}

.dcof-form .dcof-qty__btn:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.dcof-form .dcof-qty__input {
	width: 36px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--dcof-text);
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	box-shadow: none;
}

.dcof-attrs {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dcof-attr__name {
	margin-bottom: 6px;
	font-size: .84rem;
	font-weight: 650;
}

.dcof-lines {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dcof-line {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dcof-line__img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	flex: none;
}

.dcof-line__info {
	flex: 1;
	min-width: 0;
}

.dcof-line__name {
	font-weight: 600;
	font-size: .92rem;
}

.dcof-line__variant {
	font-size: .8rem;
	color: var(--dcof-muted);
}

.dcof-line__qty {
	color: var(--dcof-muted);
	font-size: .88rem;
}

.dcof-line__total {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-weight: 700;
}

.dcof-line__total del {
	font-size: .78rem;
	color: var(--dcof-muted);
	font-weight: 400;
}

.dcof-skel-line {
	height: 44px;
	border-radius: 8px;
	background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
	background-size: 200% 100%;
	animation: dcof-shimmer 1.3s infinite;
}

/* Delivery options. */
.dcof-ship {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.dcof-ship__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 6px;
}

.dcof-ship__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid var(--dcof-border);
	border-radius: var(--dcof-field-radius);
	cursor: pointer;
}

.dcof-ship__opt:has(input:checked) {
	border-color: var(--dcof-primary);
	background: color-mix(in srgb, var(--dcof-primary) 7%, var(--dcof-bg));
}

.dcof-ship__opt:has(input:focus-visible) {
	outline: 2px solid var(--dcof-primary);
	outline-offset: 2px;
}

.dcof-ship__opt input {
	accent-color: var(--dcof-primary);
	width: 18px;
	height: 18px;
	margin: 0;
}

.dcof-ship__label {
	flex: 1;
}

.dcof-ship__price {
	font-weight: 700;
}

/* Coupon. */
.dcof-coupon {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dcof-coupon__row {
	display: flex;
	gap: 8px;
}

.dcof-coupon__row[hidden],
.dcof-coupon__chip[hidden],
.dcof-coupon__toggle[hidden] {
	display: none;
}

.dcof-coupon__chip {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1.5px dashed var(--dcof-success);
	border-radius: var(--dcof-field-radius);
	background: color-mix(in srgb, var(--dcof-success) 8%, var(--dcof-bg));
	color: var(--dcof-success);
	font-weight: 700;
}

.dcof-coupon__code {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1;
}

.dcof-form .dcof-link {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dcof-primary);
	font: inherit;
	font-size: .88rem;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	box-shadow: none;
	min-height: 0;
}

.dcof-form .dcof-btn-secondary {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--dcof-text);
	border-radius: var(--dcof-field-radius);
	background: var(--dcof-text);
	color: var(--dcof-bg);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none;
}

/* Summary. */
.dcof-sum {
	padding: 14px 16px;
	border-radius: var(--dcof-field-radius);
	background: var(--dcof-surface);
}

.dcof-sum__title {
	margin-bottom: 8px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--dcof-muted);
}

.dcof-sum__rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dcof-sum__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: .92rem;
}

.dcof-sum__row.is-muted span:last-child {
	color: var(--dcof-muted);
}

.dcof-sum__row.is-discount span:last-child,
.dcof-sum__row.is-free span:last-child {
	color: var(--dcof-success);
	font-weight: 700;
}

.dcof-sum__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--dcof-border);
	font-size: 1.05rem;
}

.dcof-sum__total strong {
	font-size: 1.28rem;
	font-weight: 800;
}

.is-quoting .dcof-sum__total strong,
.is-quoting .dcof-sum__rows {
	opacity: .55;
	transition: opacity .2s ease;
}

.dcof-sum__incl {
	margin-top: 2px;
	font-size: .8rem;
	text-align: end;
	color: var(--dcof-muted);
}

.dcof-sum__incl[hidden] {
	display: none;
}

.dcof-sum__save {
	display: inline-block;
	margin-top: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--dcof-success) 14%, transparent);
	color: var(--dcof-success);
	font-size: .8rem;
	font-weight: 700;
}

.dcof-sum__save[hidden] {
	display: none;
}

.dcof-sum__cod {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: .84rem;
	color: var(--dcof-muted);
}

.dcof-sum__eta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: -2px 0 4px;
	font-size: .8rem;
	color: var(--dcof-muted);
}

.dcof-sum__eta svg {
	flex: none;
}

/* Trust badges. */
.dcof-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcof-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: .82rem;
	font-weight: 600;
	color: var(--dcof-muted);
}

.dcof-trust__item svg {
	color: var(--dcof-primary);
}

/* Content blocks. */
.dcof-heading {
	font-size: 1rem;
	font-weight: 750;
}

.dcof-align--center {
	text-align: center;
}

.dcof-text {
	margin: 0;
	font-size: .92rem;
	color: var(--dcof-muted);
	white-space: pre-line;
}

.dcof-notice {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 10px 12px;
	border-radius: var(--dcof-field-radius);
	font-size: .9rem;
	font-weight: 600;
	background: #eff6ff;
	color: #1e40af;
}

.dcof-notice--success {
	background: #ecfdf5;
	color: #065f46;
}

.dcof-notice--warning {
	background: #fffbeb;
	color: #92400e;
}

.dcof-divider {
	margin: 2px 0;
	border: 0;
	border-top: 1px solid var(--dcof-border);
}

.dcof-image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--dcof-field-radius);
}

.dcof-image--empty {
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dcof-surface);
	color: var(--dcof-muted);
}

/* Alerts. */
.dcof-alert {
	grid-column: span 2;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: var(--dcof-field-radius);
	font-size: .92rem;
	font-weight: 600;
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.dcof-alert[hidden] {
	display: none;
}

.dcof-alert--info {
	background: #eff6ff;
	color: #1e40af;
	border-color: #bfdbfe;
}

.dcof-alert svg {
	flex: none;
	margin-top: 1px;
}

.dcof-captcha {
	grid-column: span 2;
}

/* Submit. */
.dcof-submit-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dcof-form .dcof-submit {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 12px 20px;
	border: 2px solid var(--dcof-primary);
	border-radius: var(--dcof-field-radius);
	background: var(--dcof-primary);
	color: var(--dcof-on-primary);
	font: inherit;
	font-size: 1.08rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: 0 10px 24px -12px var(--dcof-primary);
	transition: transform .15s ease, filter .2s ease;
}

.dcof-form .dcof-submit:hover {
	filter: brightness(1.06);
}

.dcof-form .dcof-submit:active {
	transform: scale(.99);
}

.dcof-form .dcof-submit:focus-visible {
	outline: 3px solid var(--dcof-ring);
	outline-offset: 3px;
}

.dcof-form .dcof-submit:disabled {
	cursor: progress;
	filter: saturate(.8);
	animation: none;
}

.dcof-btn--gradient .dcof-submit {
	background: linear-gradient(135deg, var(--dcof-primary), color-mix(in srgb, var(--dcof-primary) 68%, #000));
}

.dcof-btn--outline .dcof-submit {
	background: transparent;
	color: var(--dcof-primary);
	box-shadow: none;
}

.dcof-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: dcof-spin .7s linear infinite;
}

.is-busy .dcof-spinner {
	display: inline-block;
}

@keyframes dcof-spin {
	to { transform: rotate(360deg); }
}

.dcof-terms {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
	font-size: .84rem;
	color: var(--dcof-muted);
}

.dcof-terms .dcof-check {
	font-size: .84rem;
	gap: 8px;
}

.dcof-terms .dcof-check__box {
	width: 17px;
	height: 17px;
}

.dcof-terms a {
	color: inherit;
	text-decoration: underline;
}

.dcof-terms--notice {
	display: block;
	margin: 0 0 10px;
	text-align: center;
}

.dcof-submit__sub {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: .82rem;
	color: var(--dcof-muted);
}

/* Success. */
.dcof-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 18px 4px 6px;
	text-align: center;
	outline: none;
}

.dcof-success[hidden] {
	display: none;
}

.dcof-success__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--dcof-success) 14%, transparent);
	color: var(--dcof-success);
	animation: dcof-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes dcof-pop {
	from { transform: scale(.4); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.dcof-success__title {
	margin: 4px 0 0;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--dcof-text);
}

.dcof-success__text {
	margin: 0;
	max-width: 420px;
	color: var(--dcof-muted);
}

.dcof-success__order {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--dcof-surface);
	font-weight: 600;
}

/* Advance payment on the thank-you step. */
.dcof-advance {
	margin: 12px 0;
	text-align: center;
}

.dcof-advance__pay {
	display: inline-flex;
	justify-content: center;
	text-decoration: none;
}

.dcof-success__note {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-size: .88rem;
	color: var(--dcof-muted);
}

/* Keep the icon next to the text rather than at the far edge. */
.dcof-success__note > span {
	flex: 0 1 auto;
	text-align: start;
}

.dcof-success__note > svg {
	flex: none;
}

.dcof-wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 999px;
	background: #25d366;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}

.dcof-success__extra:empty {
	display: none;
}

.dcof-success__extra {
	width: 100%;
}

.dcof-success__close {
	margin-top: 6px;
}

/* Dark scheme. */
.dcof-scheme--dark {
	--dcof-bg: #0b1220 !important;
	--dcof-surface: #111a2e !important;
	--dcof-text: #e5e7eb !important;
	--dcof-muted: #9aa4b2 !important;
	--dcof-border: #243047 !important;
}

.dcof-modal:has(.dcof-scheme--dark) .dcof-modal__dialog {
	background: #0b1220;
}

.dcof-modal:has(.dcof-scheme--dark) .dcof-modal__close {
	color: #e5e7eb;
	background: rgba(255, 255, 255, .08);
}

@media (prefers-color-scheme: dark) {
	.dcof-scheme--auto {
		--dcof-bg: #0b1220 !important;
		--dcof-surface: #111a2e !important;
		--dcof-text: #e5e7eb !important;
		--dcof-muted: #9aa4b2 !important;
		--dcof-border: #243047 !important;
	}

	.dcof-modal:has(.dcof-scheme--auto) .dcof-modal__dialog {
		background: #0b1220;
	}

	.dcof-modal:has(.dcof-scheme--auto) .dcof-modal__close {
		color: #e5e7eb;
		background: rgba(255, 255, 255, .08);
	}
}

/* Small screens. */
@media (max-width: 480px) {
	.dcof-form {
		padding: 18px 16px;
	}

	.dcof-header--band .dcof-form__head {
		margin: -18px -16px 16px;
	}

	.dcof-form__title {
		font-size: 1.16rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcof-anim--pulse,
	.dcof-anim--shake,
	.dcof-anim--glow,
	.dcof-success__icon,
	.dcof-skeleton span {
		animation: none !important;
	}

	.dcof-modal__dialog,
	.dcof-modal__backdrop,
	.dcof-sticky {
		transition: none !important;
	}
}

/* A form shown to some visitors only: its add-to-cart stays for the others. */
.dcof-hide-atc .summary form.cart,
.dcof-hide-atc .wp-block-add-to-cart-form,
.dcof-hide-atc .wp-block-woocommerce-add-to-cart-form,
.dcof-hide-atc .wc-block-add-to-cart-with-options {
	display: none !important;
}

.dcof-off {
	display: none !important;
}

/* No JavaScript: the shop's own add-to-cart instead. */
.dcof-nojs {
	margin: 8px 0 0;
}
