/* Dot Quick Checkout — front-end styles */
/* Isolation: the popup uses only its own styles. Theme button/input/heading
   rules are rolled back, then the scoped rules below re-style everything. */
#dqc-modal :where(div, span, button, input, textarea, select, label, h1, h2, h3, h4, p, ul, ol, li, a, img, svg, small, header, footer, form) {
	all: revert;
}
#dqc-modal :where(button, input, textarea, select) {
	font: inherit;
	color: inherit;
}
#dqc-modal [hidden] { display: none !important; }
#dqc-modal .dqc-card { position: relative; }

#dqc-modal {
	--dqc-muted: #6b7280;
	--dqc-border: #e5e7eb;
	--dqc-bg: #ffffff;
	--dqc-soft: #f9fafb;
	--dqc-radius-lg: var(--dqc-radius);
	--dqc-radius-sm: 8px;
	--dqc-radius-area: var(--dqc-radius);
	--dqc-tint: rgba(17, 24, 39, 0.04);
	--dqc-ring: rgba(17, 24, 39, 0.12);

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	color: var(--dqc-text);
	line-height: 1.45;
}

#dqc-modal.dqc-open {
	display: flex;
}

#dqc-modal *, #dqc-modal *::before, #dqc-modal *::after {
	box-sizing: border-box;
}

#dqc-modal .dqc-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	backdrop-filter: blur(2px);
}

#dqc-modal .dqc-dialog {
	position: relative;
	width: 100%;
	max-width: var(--dqc-max-width);
	max-height: 92vh;
	background: var(--dqc-bg);
	border-radius: var(--dqc-radius-lg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: dqc-pop 0.18s ease-out;
}

@keyframes dqc-pop {
	from { transform: translateY(8px) scale(0.99); opacity: 0; }
	to { transform: none; opacity: 1; }
}

#dqc-modal .dqc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--dqc-border);
	flex: 0 0 auto;
}

#dqc-modal .dqc-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

#dqc-modal .dqc-close {
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--dqc-muted);
	padding: 4px;
	line-height: 0;
	border-radius: var(--dqc-radius-sm);
}

#dqc-modal .dqc-close:hover { color: var(--dqc-text); background: var(--dqc-soft); }

#dqc-modal .dqc-body {
	padding: 18px;
	overflow-y: auto;
	flex: 1 1 auto;
	-webkit-overflow-scrolling: touch;
}

#dqc-modal .dqc-footer {
	padding: 14px 18px;
	border-top: 1px solid var(--dqc-border);
	background: var(--dqc-bg);
	flex: 0 0 auto;
}

#dqc-modal .dqc-footer[hidden] { display: none; }

/* Buttons */
#dqc-modal .dqc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: var(--dqc-radius);
	font-size: 16px;
	font-weight: 700;
	padding: 13px 18px;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.05s ease;
}

#dqc-modal .dqc-btn:active { transform: translateY(1px); }

#dqc-modal .dqc-btn-primary {
	width: 100%;
	background: var(--dqc-primary);
	color: #fff;
}

#dqc-modal .dqc-btn-primary[disabled] { opacity: 0.65; cursor: not-allowed; }

#dqc-modal .dqc-btn-ghost {
	background: var(--dqc-soft);
	color: var(--dqc-text);
	border: 1px solid var(--dqc-border);
	font-weight: 600;
	font-size: 14px;
	padding: 10px 14px;
}

#dqc-modal .dqc-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; animation: dqc-spin 0.7s linear infinite; }
#dqc-modal .dqc-loading .dqc-spinner { display: inline-block; }
#dqc-modal .dqc-loading .dqc-btn-label { opacity: 0.85; }
@keyframes dqc-spin { to { transform: rotate(360deg); } }

/* Fields: quiet by default (no hover effect), strong border while typing. */
#dqc-modal .dqc-field {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--dqc-border);
	border-radius: var(--dqc-radius);
	margin-bottom: 10px;
	background: var(--dqc-bg);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#dqc-modal .dqc-field-top { border-radius: var(--dqc-radius-area); }

/* The inner 1px ring is drawn by an overlay so the icon's tinted background
   can't cover it: left and right edges then look identical. */
#dqc-modal .dqc-field { position: relative; }
#dqc-modal .dqc-field::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	transition: box-shadow 0.15s ease;
}
#dqc-modal .dqc-field:focus-within { border-color: var(--dqc-primary); box-shadow: 0 0 0 3px var(--dqc-ring); }
#dqc-modal .dqc-field:focus-within::after { box-shadow: inset 0 0 0 1px var(--dqc-primary); }
#dqc-modal .dqc-field:focus-within .dqc-ico { border-right-color: var(--dqc-primary); color: var(--dqc-primary); }
#dqc-modal .dqc-field.dqc-invalid { border-color: #dc2626; }
#dqc-modal .dqc-field.dqc-invalid::after { box-shadow: inset 0 0 0 1px #dc2626; }
#dqc-modal .dqc-field.dqc-invalid .dqc-ico { border-right-color: #dc2626; color: #dc2626; }

#dqc-modal .dqc-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	color: var(--dqc-muted);
	background: var(--dqc-soft);
	border-right: 1px solid var(--dqc-border);
	line-height: 0;
	transition: border-color 0.15s ease, color 0.15s ease;
}
#dqc-modal .dqc-field-top .dqc-ico { align-items: flex-start; padding-top: 11px; }

#dqc-modal .dqc-field-body { flex: 1 1 auto; min-width: 0; padding: 0 12px; }

/* Label stays for screen readers; the placeholder is the visible hint. */
#dqc-modal .dqc-label {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
#dqc-modal .dqc-req { color: var(--dqc-primary); }

#dqc-modal .dqc-input {
	display: block;
	width: 100%;
	height: 34px;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	font-size: 14px;
	color: var(--dqc-text);
	padding: 0;
	font-family: inherit;
	resize: none;
}
#dqc-modal .dqc-input::placeholder { color: var(--dqc-muted); opacity: 1; }

#dqc-modal .dqc-textarea { height: auto; min-height: 52px; padding: 8px 0; line-height: 1.4; }

#dqc-modal .dqc-field-error { display: none; font-size: 12px; color: #dc2626; padding-bottom: 6px; }
#dqc-modal .dqc-field.dqc-invalid .dqc-field-error { display: block; }

#dqc-modal .dqc-alert {
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: var(--dqc-radius);
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 13px;
}
#dqc-modal .dqc-alert ul { margin: 0; padding-left: 18px; }
#dqc-modal .dqc-alert p { margin: 0 0 6px; }
#dqc-modal .dqc-alert p:last-child { margin-bottom: 0; }
#dqc-modal .dqc-alert.dqc-alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

/* Sections */
#dqc-modal .dqc-section { margin: 16px 0; }
#dqc-modal .dqc-section-title { font-size: 14px; font-weight: 700; margin: 0 0 8px; }

/* Radio cards */
#dqc-modal .dqc-cards { display: grid; gap: 8px; }
#dqc-modal .dqc-cards-2 { grid-template-columns: 1fr 1fr; }

#dqc-modal .dqc-card { display: block; cursor: pointer; }
#dqc-modal .dqc-card input { position: absolute; opacity: 0; pointer-events: none; }

#dqc-modal .dqc-card-body {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--dqc-border);
	border-radius: var(--dqc-radius);
	padding: 11px 12px;
	background: var(--dqc-bg);
	transition: border-color 0.15s ease, background 0.15s ease;
}

#dqc-modal .dqc-card:hover .dqc-card-body { border-color: var(--dqc-primary); }

#dqc-modal .dqc-card input:checked + .dqc-card-body {
	border-color: var(--dqc-primary);
	background: var(--dqc-tint);
	box-shadow: inset 0 0 0 1px var(--dqc-primary);
}

#dqc-modal .dqc-card input:focus-visible + .dqc-card-body { box-shadow: 0 0 0 3px var(--dqc-ring); }

#dqc-modal .dqc-card-radio {
	width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid #d1d5db; flex: 0 0 auto; position: relative;
}
#dqc-modal .dqc-card input:checked + .dqc-card-body .dqc-card-radio { border-color: var(--dqc-primary); }
#dqc-modal .dqc-card input:checked + .dqc-card-body .dqc-card-radio::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--dqc-primary);
}

#dqc-modal .dqc-card-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#dqc-modal .dqc-card-label { font-size: 14px; font-weight: 600; }
#dqc-modal .dqc-card-sub { font-size: 12px; color: var(--dqc-muted); }

#dqc-modal .dqc-card-badge {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	color: #065f46;
	background: #d1fae5;
	border-radius: 999px;
	padding: 3px 8px;
}

#dqc-modal .dqc-card.dqc-disabled { opacity: 0.5; pointer-events: none; }

#dqc-modal .dqc-gateways { margin-top: 8px; display: grid; gap: 6px; }
#dqc-modal .dqc-gateway {
	display: flex; align-items: center; gap: 8px;
	border: 1px solid var(--dqc-border);
	border-radius: var(--dqc-radius);
	padding: 9px 12px; font-size: 14px; cursor: pointer;
}
#dqc-modal .dqc-gateway input { accent-color: var(--dqc-primary); }
#dqc-modal .dqc-gateway:has(input:checked) { border-color: var(--dqc-primary); background: var(--dqc-tint); }

#dqc-modal .dqc-advance {
	margin: 8px 0 0;
	font-size: 12px;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: var(--dqc-radius);
	padding: 8px 10px;
}

/* Summary */
#dqc-modal .dqc-summary-mount { margin-top: 16px; }

#dqc-modal .dqc-items { border-top: 1px solid var(--dqc-border); padding-top: 12px; }

#dqc-modal .dqc-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
#dqc-modal .dqc-item-thumb { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--dqc-radius-sm); overflow: hidden; border: 1px solid var(--dqc-border); }
#dqc-modal .dqc-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

#dqc-modal .dqc-item-info { flex: 1 1 auto; min-width: 0; }
#dqc-modal .dqc-item-name { display: block; font-size: 14px; font-weight: 600; }
#dqc-modal .dqc-item-variation { display: block; font-size: 12px; color: var(--dqc-muted); }

#dqc-modal .dqc-item-end { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#dqc-modal .dqc-item-price { font-size: 14px; font-weight: 600; }

#dqc-modal .dqc-item-remove {
	border: 0; background: transparent; color: var(--dqc-muted); cursor: pointer; line-height: 0; padding: 2px; border-radius: 4px;
}
#dqc-modal .dqc-item-remove:hover { color: var(--dqc-primary); }

#dqc-modal .dqc-qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--dqc-border); border-radius: var(--dqc-radius-sm); overflow: hidden; }
#dqc-modal .dqc-qty-btn { border: 0; background: var(--dqc-soft); width: 26px; height: 26px; cursor: pointer; font-size: 16px; line-height: 1; color: var(--dqc-text); }
#dqc-modal .dqc-qty-btn:hover { background: #eef0f3; }
#dqc-modal .dqc-qty-input { width: 34px; height: 26px; border: 0; text-align: center; font-size: 14px; background: #fff; }

/* Promo */
#dqc-modal .dqc-promo { margin-top: 14px; border-top: 1px solid var(--dqc-border); padding-top: 10px; }
#dqc-modal .dqc-promo-toggle {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	background: transparent; border: 0; cursor: pointer; font-size: 13px; color: var(--dqc-muted); padding: 0;
}
#dqc-modal .dqc-promo-toggle:hover { color: var(--dqc-text); }
#dqc-modal .dqc-chevron { transition: transform 0.15s ease; }
#dqc-modal .dqc-promo.dqc-open .dqc-chevron { transform: rotate(180deg); }
#dqc-modal .dqc-promo-body { margin-top: 8px; }
#dqc-modal .dqc-promo-row { display: flex; gap: 8px; }
#dqc-modal .dqc-promo-row .dqc-input { border: 1px solid var(--dqc-border); border-radius: var(--dqc-radius); padding: 0 12px; height: 38px; flex: 1 1 auto; }

#dqc-modal .dqc-coupons { list-style: none; margin: 8px 0 0; padding: 0; }
#dqc-modal .dqc-coupons li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
#dqc-modal .dqc-coupon-code { font-weight: 600; }
#dqc-modal .dqc-coupon-amount { color: #065f46; }
#dqc-modal .dqc-coupon-remove { margin-left: auto; border: 0; background: transparent; cursor: pointer; color: var(--dqc-muted); font-size: 16px; line-height: 1; }

/* Totals */
#dqc-modal .dqc-totals { margin-top: 14px; border-top: 1px solid var(--dqc-border); padding-top: 12px; }
#dqc-modal .dqc-total-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
#dqc-modal .dqc-total-row small { color: var(--dqc-muted); font-size: 11px; }
#dqc-modal .dqc-total-discount { color: #065f46; }
#dqc-modal .dqc-total-grand { font-size: 17px; font-weight: 800; border-top: 1px solid var(--dqc-border); margin-top: 6px; padding-top: 10px; }

#dqc-modal .dqc-free { color: #065f46; font-weight: 700; font-size: 12px; background: #d1fae5; border-radius: 999px; padding: 2px 8px; }

#dqc-modal .dqc-tip {
	display: inline-flex; align-items: center; justify-content: center;
	width: 15px; height: 15px; border-radius: 50%; font-size: 10px; font-weight: 700;
	background: #e5e7eb; color: #374151; cursor: help; position: relative; margin-left: 4px;
}
#dqc-modal .dqc-tip::after {
	content: attr(data-tip);
	position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
	background: #111827; color: #fff; font-size: 11px; font-weight: 400; padding: 6px 8px;
	border-radius: 6px; width: 190px; opacity: 0; pointer-events: none; transition: opacity 0.12s ease; z-index: 5;
}
#dqc-modal .dqc-tip:hover::after, #dqc-modal .dqc-tip:focus::after { opacity: 1; }

/* Empty */
#dqc-modal .dqc-empty { text-align: center; padding: 20px 0; }
#dqc-modal .dqc-empty p { margin: 0 0 14px; color: var(--dqc-muted); }

/* Skeleton */
#dqc-modal .dqc-skeleton { display: block; }
#dqc-modal .dqc-sk { display: block; background: linear-gradient(90deg, #f3f4f6 25%, #e9ebee 37%, #f3f4f6 63%); background-size: 400% 100%; animation: dqc-shimmer 1.2s ease-in-out infinite; border-radius: 8px; }
#dqc-modal .dqc-sk-line { height: 14px; width: 40%; margin-bottom: 16px; }
#dqc-modal .dqc-sk-field { height: 52px; margin-bottom: 10px; }
#dqc-modal .dqc-sk-block { height: 90px; margin-top: 16px; }
@keyframes dqc-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

body.dqc-locked { overflow: hidden; }

/* Themes — tokens are set inline from the Design tab; these tune spacing. */
/* Dia: compact, flat, small corners, bold labels. */
#dqc-modal[data-dqc-theme="dia"] .dqc-btn { font-size: 14px; padding: 12px 16px; letter-spacing: 0.01em; }
#dqc-modal[data-dqc-theme="dia"] .dqc-card-body { padding: 10px 12px; }
#dqc-modal[data-dqc-theme="dia"] .dqc-card-badge,
#dqc-modal[data-dqc-theme="dia"] .dqc-free { border-radius: 4px; }
#dqc-modal[data-dqc-theme="dia"] .dqc-dialog { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22); }

#dqc-modal[data-dqc-theme="pill"] .dqc-field .dqc-ico { padding-left: 6px; }
#dqc-modal[data-dqc-theme="pill"] .dqc-field-body { padding: 0 18px 0 14px; }
#dqc-modal[data-dqc-theme="pill"] .dqc-field-top .dqc-field-body { padding-right: 16px; }
#dqc-modal[data-dqc-theme="pill"] .dqc-card-body { padding: 12px 18px; }
#dqc-modal[data-dqc-theme="pill"] .dqc-gateway { padding: 10px 18px; }
#dqc-modal[data-dqc-theme="pill"] .dqc-btn { padding: 14px 24px; }
#dqc-modal[data-dqc-theme="pill"] .dqc-advance,
#dqc-modal[data-dqc-theme="pill"] .dqc-alert { padding: 10px 16px; }
#dqc-modal[data-dqc-theme="pill"] .dqc-promo-row .dqc-input { padding: 0 18px; }
#dqc-modal[data-dqc-theme="pill"] .dqc-qty-btn { width: 30px; }

/* Buy Now trigger button (plugin-generated buttons only) */
a.dqc-buy.dqc-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	margin: 10px 0 0;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	border: 2px solid var(--dqc-btn-bg, #dc2626);
	border-radius: var(--dqc-btn-radius, 10px);
	background: var(--dqc-btn-bg, #dc2626);
	color: var(--dqc-btn-color, #fff);
	transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
a.dqc-buy.dqc-trigger:visited { color: var(--dqc-btn-color, #fff); }
a.dqc-buy.dqc-trigger:hover,
a.dqc-buy.dqc-trigger:focus { color: var(--dqc-btn-color, #fff); text-decoration: none; filter: brightness(0.93); transform: translateY(-1px); }
a.dqc-buy.dqc-trigger:active { transform: translateY(0); filter: brightness(0.88); }
a.dqc-buy.dqc-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--dqc-btn-bg, #dc2626) 35%, transparent); outline-offset: 2px; }

a.dqc-buy.dqc-buy--shadow { box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--dqc-btn-bg, #dc2626) 70%, transparent); }

a.dqc-buy.dqc-buy--outline.dqc-trigger,
a.dqc-buy.dqc-buy--outline.dqc-trigger:visited { background: transparent; color: var(--dqc-btn-bg, #dc2626); }
a.dqc-buy.dqc-buy--outline.dqc-trigger:hover,
a.dqc-buy.dqc-buy--outline.dqc-trigger:focus { background: var(--dqc-btn-bg, #dc2626); color: var(--dqc-btn-color, #fff); filter: none; }

a.dqc-buy.dqc-buy--soft.dqc-trigger,
a.dqc-buy.dqc-buy--soft.dqc-trigger:visited { background: color-mix(in srgb, var(--dqc-btn-bg, #dc2626) 12%, #fff); border-color: transparent; color: var(--dqc-btn-bg, #dc2626); }
a.dqc-buy.dqc-buy--soft.dqc-trigger:hover,
a.dqc-buy.dqc-buy--soft.dqc-trigger:focus { background: color-mix(in srgb, var(--dqc-btn-bg, #dc2626) 20%, #fff); color: var(--dqc-btn-bg, #dc2626); filter: none; }

a.dqc-buy.dqc-buy--sm { padding: 8px 16px; font-size: 13px; }
a.dqc-buy.dqc-buy--lg { padding: 16px 30px; font-size: 17px; }
a.dqc-buy.dqc-buy--block { display: flex; width: 100%; }

/* Mobile: full-screen sheet */
@media (max-width: 640px) {
	#dqc-modal .dqc-dialog {
		max-width: 100%;
		width: 100%;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
	}
	#dqc-modal { align-items: stretch; }
	#dqc-modal .dqc-cards-2 { grid-template-columns: 1fr; }
	#dqc-modal .dqc-header { padding: 14px 16px; }
	#dqc-modal .dqc-body { padding: 14px 16px; }
}

/* Variable-product option picker */
#dqc-modal .dqc-picker-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
#dqc-modal .dqc-picker-img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: cover; border-radius: var(--dqc-radius-sm); border: 1px solid var(--dqc-border); background: var(--dqc-soft); }
#dqc-modal .dqc-picker-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#dqc-modal .dqc-picker-name { font-size: 16px; font-weight: 700; }
#dqc-modal .dqc-picker-price { font-size: 16px; font-weight: 700; color: var(--dqc-pk-price, var(--dqc-primary)); }
/* WooCommerce adds screen-reader price text; the popup's style reset would otherwise show it on top of the price. */
#dqc-modal .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#dqc-modal .dqc-picker-price del { color: var(--dqc-muted); font-weight: 400; margin-right: 4px; }
#dqc-modal .dqc-picker-price ins { text-decoration: none; }

#dqc-modal .dqc-attr { margin-bottom: 16px; }
#dqc-modal .dqc-attr-label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--dqc-pk-label, var(--dqc-text)); }
#dqc-modal .dqc-attr-chosen { color: var(--dqc-muted); font-weight: 500; }
#dqc-modal .dqc-opts { display: flex; flex-wrap: wrap; gap: 8px; }

#dqc-modal .dqc-opt {
	min-width: 44px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--dqc-border);
	border-radius: var(--dqc-radius-sm);
	background: #fff;
	color: var(--dqc-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#dqc-modal .dqc-opt:hover { border-color: var(--dqc-pk-select, var(--dqc-primary)); }
#dqc-modal .dqc-opt:focus-visible { outline: 2px solid var(--dqc-primary); outline-offset: 2px; }
#dqc-modal .dqc-opt[aria-checked="true"] { border-color: var(--dqc-pk-select, var(--dqc-primary)); background: var(--dqc-pk-select-tint, var(--dqc-tint)); box-shadow: 0 0 0 2px var(--dqc-pk-select-ring, var(--dqc-ring)); }
#dqc-modal .dqc-opt.dqc-opt-off { opacity: 0.4; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
#dqc-modal .dqc-opt.dqc-opt-off:hover { border-color: var(--dqc-border); }

#dqc-modal .dqc-opt-swatch { width: 40px; min-width: 40px; height: 40px; padding: 4px; border-radius: 50%; text-decoration: none; }
#dqc-modal .dqc-opt-swatch.dqc-opt-off { text-decoration: none; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, 0.08) 6px 7px); }
#dqc-modal .dqc-opt-dot { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); }
#dqc-modal .dqc-opt-pic { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

#dqc-modal .dqc-picker-msg { margin: 0 0 12px; font-size: 13px; color: var(--dqc-primary); }
#dqc-modal .dqc-picker-foot { display: flex; align-items: stretch; gap: 12px; margin-top: 20px; }
#dqc-modal .dqc-picker-qty { margin-top: 0; flex: 0 0 auto; }
#dqc-modal .dqc-picker-qty .dqc-qty-btn { width: 38px; height: auto; min-height: 46px; }
#dqc-modal .dqc-picker-qty .dqc-qty-input { height: auto; width: 40px; }
#dqc-modal .dqc-picker-go { flex: 1 1 auto; width: auto; background: var(--dqc-pk-btn-bg, var(--dqc-primary)); color: var(--dqc-pk-btn-color, #fff); }
#dqc-modal .dqc-picker-back { flex: 0 0 auto; }

#dqc-modal .dqc-item-edit { display: block; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--dqc-primary); font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; }
#dqc-modal .dqc-item-edit[disabled] { opacity: 0.5; cursor: wait; }

/* Add-on (cross-sell) card */
#dqc-modal .dqc-addon {
	display: block;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1.5px dashed var(--dqc-primary);
	border-radius: var(--dqc-radius-area);
	background: var(--dqc-tint);
	cursor: pointer;
	transition: border-style 0.15s ease, box-shadow 0.15s ease;
}
#dqc-modal .dqc-addon-on { border-style: solid; box-shadow: 0 0 0 3px var(--dqc-ring); }
#dqc-modal .dqc-addon-heading { display: block; font-size: 14px; font-weight: 800; color: var(--dqc-primary); }
#dqc-modal .dqc-addon-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--dqc-muted); }
#dqc-modal .dqc-addon-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
#dqc-modal .dqc-addon-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#dqc-modal .dqc-addon-box {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--dqc-primary);
	border-radius: 6px;
	background: #fff;
	color: #fff;
	transition: background 0.15s ease;
}
#dqc-modal .dqc-addon-box svg { opacity: 0; transform: scale(0.6); transition: opacity 0.15s ease, transform 0.15s ease; }
#dqc-modal .dqc-addon-input:checked + .dqc-addon-box { background: var(--dqc-primary); }
#dqc-modal .dqc-addon-input:checked + .dqc-addon-box svg { opacity: 1; transform: none; }
#dqc-modal .dqc-addon-input:focus-visible + .dqc-addon-box { outline: 2px solid var(--dqc-primary); outline-offset: 2px; }
#dqc-modal .dqc-addon-input:disabled + .dqc-addon-box { opacity: 0.6; }
#dqc-modal .dqc-addon-thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--dqc-radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--dqc-border); }
#dqc-modal .dqc-addon-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
#dqc-modal .dqc-addon-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#dqc-modal .dqc-addon-label { font-size: 14px; font-weight: 700; }
#dqc-modal .dqc-addon-name { font-size: 12px; color: var(--dqc-muted); }
#dqc-modal .dqc-addon-price { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--dqc-primary); text-align: right; }
#dqc-modal .dqc-addon-price del { display: block; color: var(--dqc-muted); font-weight: 400; font-size: 12px; }
#dqc-modal .dqc-addon-price ins { text-decoration: none; }
#dqc-modal .dqc-item-addon-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--dqc-tint); color: var(--dqc-primary); font-size: 11px; font-weight: 700; }

/* Urgency timer */
#dqc-modal .dqc-urgency {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: var(--dqc-radius-sm);
	background: var(--dqc-urgency, var(--dqc-primary));
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}
#dqc-modal .dqc-urgency-ico { flex: 0 0 auto; }
#dqc-modal .dqc-timer { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.02em; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.22); }
#dqc-modal .dqc-urgency-low .dqc-timer { animation: dqc-blink 1s steps(2, start) infinite; }
@keyframes dqc-blink { 50% { opacity: 0.45; } }

/* Place order button animation (ready state only) */
#dqc-modal .dqc-btn-primary[data-anim] { position: relative; overflow: hidden; }
#dqc-modal .dqc-btn-primary[data-anim="pulse"]:not([disabled]):not(.dqc-loading) { animation: dqc-pulse 1.8s ease-out infinite; }
#dqc-modal .dqc-btn-primary[data-anim="bounce"]:not([disabled]):not(.dqc-loading) { animation: dqc-bounce 2.2s ease-in-out infinite; }
#dqc-modal .dqc-btn-primary[data-anim="shine"]:not([disabled]):not(.dqc-loading)::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-20deg);
	animation: dqc-shine 2.6s ease-in-out infinite;
	pointer-events: none;
}
@keyframes dqc-pulse {
	0% { box-shadow: 0 0 0 0 var(--dqc-pulse, rgba(220, 38, 38, 0.45)); }
	70% { box-shadow: 0 0 0 12px var(--dqc-pulse-zero, rgba(220, 38, 38, 0)); }
	100% { box-shadow: 0 0 0 0 var(--dqc-pulse-zero, rgba(220, 38, 38, 0)); }
}
@keyframes dqc-bounce {
	0%, 60%, 100% { transform: translateY(0); }
	70% { transform: translateY(-4px); }
	80% { transform: translateY(0); }
	90% { transform: translateY(-2px); }
}
@keyframes dqc-shine {
	0% { left: -60%; }
	55%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
	#dqc-modal .dqc-btn-primary[data-anim],
	#dqc-modal .dqc-btn-primary[data-anim]::after,
	#dqc-modal .dqc-urgency-low .dqc-timer { animation: none !important; }
}

/* The popup's style reset also strips SVG presentation attributes (fill/stroke),
   which made these two icons render as solid black. Set them explicitly. */
#dqc-modal .dqc-urgency-ico,
#dqc-modal .dqc-addon-box svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}
#dqc-modal .dqc-urgency-ico { stroke-width: 2; color: #fff; }
#dqc-modal .dqc-addon-box svg { stroke-width: 3; color: #fff; }
