:root {
	--primary: #7c3aed;
	--primary-fg: #ffffff;
	--secondary: #14b8a6;
	--background: #faf8fc;
	--foreground: #1e1b24;
	--card: #ffffff;
	--card-fg: #09090b;
	--muted: #f4f0f8;
	--muted-fg: #6b6574;
	--border: #e8e0f0;
	--input: #ffffff;
	--footer: rgba(255,255,255,0.95);
	--header: rgba(255,255,255,0.72);
	--radius: 14px;
	--shadow: 0 2px 12px rgba(30, 27, 36, 0.08);
}

* { box-sizing: border-box; }

/* iOS Safari zooms focused form controls under 16px — keep plugin controls at 16px. */
.dc-v2-chat input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.dc-v2-chat select,
.dc-v2-chat textarea,
.dc-v2-chat .dc-v2-custom-select__btn {
	font-size: 16px !important;
}

html, body.dc-v2-body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--background);
	color: var(--foreground);
	-webkit-font-smoothing: antialiased;
	position: relative;
}

body.dc-v2-body {
	display: flex;
	justify-content: center;
	overflow: hidden;
}

/* Storefront: full viewport */
html:not(.dc-v2-html--embed) body.dc-v2-body {
	height: 100dvh;
	max-height: 100dvh;
}

/* Admin preview iframe: fill iframe, not parent window */
html.dc-v2-html--embed,
html.dc-v2-html--embed body.dc-v2-body {
	height: 100%;
	max-height: 100%;
}

.dc-v2-bg-blobs {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.dc-v2-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.35;
}

.dc-v2-blob--1 { width: 200px; height: 200px; background: var(--primary); top: 10%; left: -40px; }
.dc-v2-blob--2 { width: 160px; height: 160px; background: var(--secondary); top: 40%; right: -30px; }
.dc-v2-blob--3 { width: 220px; height: 220px; background: var(--primary); bottom: 15%; left: 20%; opacity: 0.2; }

.dc-v2-chat {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 430px;
	margin: 0;
	display: flex;
	flex-direction: column;
	background: var(--background);
	flex-shrink: 0;
	overflow: hidden;
}

html:not(.dc-v2-html--embed) .dc-v2-chat {
	height: 100dvh;
	max-height: 100dvh;
}

html.dc-v2-html--embed .dc-v2-chat {
	height: 100%;
	max-height: 100%;
}

.dc-v2-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid transparent;
	background: var(--header);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 10;
}

.dc-v2-brand-mark {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	min-width: 0;
}

.dc-v2-brand-mark--favicon {
	width: 36px;
	height: 36px;
	border-radius: 9999px;
	overflow: hidden;
	background: var(--card);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.dc-v2-logo {
	height: 32px;
	width: auto;
	max-width: 140px;
	display: block;
	object-fit: contain;
}

.dc-v2-brand-mark--favicon .dc-v2-logo {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.dc-v2-badge {
	font-size: 12px;
	color: var(--muted-fg);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	margin-left: auto;
}

.dc-v2-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #14b8a6;
	flex-shrink: 0;
	box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
	animation: dc-v2-badge-pulse 1.8s infinite;
}

.dc-v2-badge--success {
	color: #22c55e;
	font-weight: 600;
}

.dc-v2-badge-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #22c55e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

@keyframes dc-v2-badge-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
	70%  { box-shadow: 0 0 0 7px rgba(20, 184, 166, 0); }
	100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.dc-v2-thread {
	flex: 1;
	min-height: 0;
	position: relative;
	padding: 16px;
	display: block;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding-bottom: 16px;
	scroll-padding-bottom: calc(168px + env(safe-area-inset-bottom));
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--border) 85%, transparent) transparent;
}

.dc-v2-thread::-webkit-scrollbar {
	width: 6px;
}

.dc-v2-thread::-webkit-scrollbar-track {
	background: transparent;
	margin: 4px 0;
}

.dc-v2-thread::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--border) 90%, transparent);
	border-radius: 999px;
}

.dc-v2-thread::-webkit-scrollbar-thumb:hover {
	background: color-mix(in srgb, var(--muted-fg) 40%, transparent);
}

.dc-v2-thread > * {
	margin-bottom: 12px;
}

.dc-v2-thread > *:last-child {
	margin-bottom: 0;
}

.dc-v2-thread-spacer {
	display: block;
	height: calc(168px + env(safe-area-inset-bottom));
	width: 100%;
}

.dc-v2-bubble {
	display: block;
	width: fit-content;
	max-width: 85%;
	min-width: 44px;
	min-height: 38px;
	padding: 10px 14px;
	border-radius: var(--radius);
	font-size: 15px;
	line-height: 1.45;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.dc-v2-bubble--enter {
	animation: dc-v2-bubble-pop 0.16s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dc-v2-bubble-pop {
	from {
		opacity: 0;
		transform: scale(0.72) translateY(8px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes dc-v2-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.dc-v2-bubble--brand {
	background: var(--card);
	color: var(--card-fg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.dc-v2-bubble__text {
	white-space: pre-wrap;
}

.dc-v2-bubble__cursor {
	display: none;
	width: 2px;
	height: 1.05em;
	margin-left: 1px;
	vertical-align: text-bottom;
	background: currentColor;
	opacity: 0.8;
	animation: dc-v2-cursor 0.7s step-end infinite;
}

.dc-v2-bubble--waiting .dc-v2-bubble__cursor,
.dc-v2-bubble--typing .dc-v2-bubble__cursor {
	display: inline-block;
}

.dc-v2-bubble--user.dc-v2-bubble--typing .dc-v2-bubble__cursor {
	background: var(--primary-fg);
}

@keyframes dc-v2-cursor {
	50% { opacity: 0; }
}

.dc-v2-card--reveal {
	animation: dc-v2-in 0.35s ease;
}

.dc-v2-bubble--user {
	margin-left: auto;
	background: var(--primary);
	color: var(--primary-fg);
}

.dc-v2-highlight {
	color: var(--secondary);
	font-weight: 600;
}

.dc-v2-cards-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
}

.dc-v2-card {
	background: var(--card);
	color: var(--card-fg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	box-shadow: var(--shadow);
	animation: dc-v2-in 0.25s ease;
	align-self: flex-start;
	width: 100%;
	max-width: 100%;
	position: relative;
}

.dc-v2-card--incomplete {
	border-color: #f59e0b;
	box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.dc-v2-card--incomplete::before {
	content: "";
	position: absolute;
	top: 10px;
	right: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f59e0b;
}

.dc-v2-field--error input,
.dc-v2-field--error textarea,
.dc-v2-field--error .dc-v2-custom-select__btn {
	border-color: #ef4444;
	box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.dc-v2-field-error {
	margin: 4px 0 0;
	font-size: 12px;
	color: #ef4444;
	line-height: 1.3;
}

.dc-v2-card + .dc-v2-card { margin-top: 8px; }

.dc-v2-card-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 10px;
}

.dc-v2-card-thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--muted);
	display: block;
}

.dc-v2-card-thumb-btn {
	padding: 0;
	border: none;
	background: none;
	border-radius: 10px;
	flex-shrink: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.dc-v2-card-thumb-btn:active .dc-v2-card-thumb {
	opacity: 0.85;
}

.dc-v2-card-thumb-btn:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.dc-v2-card-thumb-btn:disabled {
	cursor: default;
	pointer-events: none;
}

.dc-v2-card-title {
	font-weight: 600;
	font-size: 14px;
	margin: 0;
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.dc-v2-card-info {
	flex: 1;
	min-width: 0;
}

.dc-v2-card-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}

.dc-v2-card-meta {
	font-size: 12px;
	color: var(--muted-fg);
}

.dc-v2-qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.dc-v2-qty-btn {
	width: 28px;
	height: 28px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--input);
	font-size: 16px;
	line-height: 1;
	color: var(--foreground);
	padding: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.dc-v2-qty-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.dc-v2-qty-btn--plus {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-fg);
}

.dc-v2-qty-btn--plus:disabled {
	opacity: 0.45;
}

.dc-v2-qty-value {
	min-width: 22px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.dc-v2-badge-pill {
	display: inline-block;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--muted);
	color: var(--foreground);
	margin-top: 4px;
}

.dc-v2-field {
	margin-top: 10px;
}

.dc-v2-field label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 4px;
}

.dc-v2-field input,
.dc-v2-field select,
.dc-v2-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	/* ≥16px avoids iOS Safari zoom-on-focus */
	font-size: 16px;
	background: var(--input);
	color: var(--foreground);
}

.dc-v2-card .dc-v2-field input,
.dc-v2-card .dc-v2-field select,
.dc-v2-card .dc-v2-field textarea,
.dc-v2-card .dc-v2-custom-select__btn {
	background: var(--muted);
	border: 1px solid var(--border);
}

.dc-v2-payment-card {
	padding: 12px 0 4px;
	background: transparent;
	border: none;
	box-shadow: none;
}

.dc-v2-pay-method-scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 2px 2px 14px;
	margin-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--border) 85%, transparent) transparent;
}

.dc-v2-pay-method-scroll::-webkit-scrollbar {
	height: 6px;
}

.dc-v2-pay-method-scroll::-webkit-scrollbar-track {
	background: transparent;
	margin: 0 4px;
}

.dc-v2-pay-method-scroll::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--border) 90%, transparent);
	border-radius: 999px;
}

.dc-v2-pay-method-scroll::-webkit-scrollbar-thumb:hover {
	background: color-mix(in srgb, var(--muted-fg) 40%, transparent);
}

.dc-v2-pay-method-card {
	flex: 0 0 auto;
	max-height: 132px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--card);
	color: var(--foreground);
	text-align: left;
	cursor: pointer;
	box-shadow: var(--shadow);
}

.dc-v2-pay-method-card.is-selected {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 28%, transparent);
}

.dc-v2-pay-method-card__title {
	font-size: 15px;
	font-weight: 600;
}

.dc-v2-pay-method-card__desc {
	font-size: 12px;
	color: var(--muted-fg);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dc-v2-pay-method-card__badge {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--muted-fg);
	margin-top: 2px;
}

.dc-v2-pay-method-card--stripe.is-selected {
	border-color: #635bff;
	box-shadow: 0 0 0 2px color-mix(in srgb, #635bff 30%, transparent);
}

.dc-v2-pay-method-card--paypal.is-selected {
	border-color: #0070ba;
	box-shadow: 0 0 0 2px color-mix(in srgb, #0070ba 30%, transparent);
}

.dc-v2-pay-method-card--mercadopago.is-selected {
	border-color: #009ee3;
	box-shadow: 0 0 0 2px color-mix(in srgb, #009ee3 30%, transparent);
}

.dc-v2-stripe-mount {
	margin: 10px 0 12px;
	padding: 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border, #363636);
	min-height: 48px;
}
.dc-v2-stripe-error {
	color: #f87171;
	font-size: 0.85rem;
	margin: 0 0 10px;
	line-height: 1.35;
}
.dc-v2-online-pay-btn {
	margin-top: 12px;
}

.dc-v2-online-pay-btn--stripe {
	background: #635bff !important;
	color: #fff !important;
}

.dc-v2-online-pay-btn--paypal {
	background: #0070ba !important;
	color: #fff !important;
}

.dc-v2-online-pay-btn--mercadopago {
	background: #009ee3 !important;
	color: #fff !important;
}

.dc-v2-pay-sandbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	background: rgba(10, 12, 18, 0.55);
	backdrop-filter: blur(4px);
}

.dc-v2-pay-sandbox__sheet {
	width: min(420px, 100%);
	border-radius: 18px 18px 14px 14px;
	background: #fff;
	color: #111;
	padding: 22px 18px 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	animation: dc-v2-pay-sheet-in 0.22s ease-out;
}

@keyframes dc-v2-pay-sheet-in {
	from { transform: translateY(18px); opacity: 0.6; }
	to { transform: translateY(0); opacity: 1; }
}

.dc-v2-pay-sandbox__brand {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}

.dc-v2-pay-sandbox--stripe .dc-v2-pay-sandbox__brand { color: #635bff; opacity: 1; }
.dc-v2-pay-sandbox--paypal .dc-v2-pay-sandbox__brand { color: #0070ba; opacity: 1; }
.dc-v2-pay-sandbox--mercadopago .dc-v2-pay-sandbox__brand { color: #009ee3; opacity: 1; }

.dc-v2-pay-sandbox__heading {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
}

.dc-v2-pay-sandbox__amount {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 700;
}

.dc-v2-pay-sandbox__fields {
	display: grid;
	gap: 10px;
	margin-bottom: 14px;
}

.dc-v2-pay-sandbox__field {
	height: 44px;
	border-radius: 10px;
	background: linear-gradient(90deg, #f1f3f7, #e8ebf2 45%, #f1f3f7);
	border: 1px solid #e4e7ee;
}

.dc-v2-pay-sandbox__field--short {
	width: 55%;
}

.dc-v2-pay-sandbox__note {
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.4;
	color: #667085;
}

.dc-v2-pay-sandbox__pay,
.dc-v2-pay-sandbox__cancel {
	width: 100%;
	border: none;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.dc-v2-pay-sandbox__pay {
	background: #111;
	color: #fff;
	margin-bottom: 8px;
}

.dc-v2-pay-sandbox--stripe .dc-v2-pay-sandbox__pay { background: #635bff; }
.dc-v2-pay-sandbox--paypal .dc-v2-pay-sandbox__pay { background: #0070ba; }
.dc-v2-pay-sandbox--mercadopago .dc-v2-pay-sandbox__pay { background: #009ee3; }

.dc-v2-pay-sandbox__cancel {
	background: transparent;
	color: #667085;
}

.dc-v2-pay-sandbox__pay:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.dc-v2-custom-select { position: relative; }

.dc-v2-custom-select__btn {
	width: 100%;
	text-align: left;
	padding: 10px 36px 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-size: 16px;
	background: var(--input);
	color: var(--foreground);
	position: relative;
}

.dc-v2-custom-select__btn--placeholder { color: var(--muted-fg); }

.dc-v2-custom-select__btn::after {
	content: "▾";
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	opacity: 0.6;
}

.dc-v2-custom-select__list {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	bottom: auto;
	max-height: 200px;
	overflow-y: auto;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: var(--shadow);
	z-index: 40;
}

.dc-v2-custom-select--drop-up .dc-v2-custom-select__list {
	top: auto;
	bottom: calc(100% + 4px);
}

.dc-v2-custom-select--open .dc-v2-custom-select__list { display: block; }

.dc-v2-custom-select__option {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: none;
	background: transparent;
	color: var(--foreground);
	font-size: 16px;
}

.dc-v2-custom-select__option.is-selected,
.dc-v2-custom-select__option:active {
	background: var(--muted);
}

.dc-v2-upload {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 16px;
	border: 2px dashed var(--border);
	border-radius: 16px;
	background: var(--muted);
	cursor: pointer;
	text-align: center;
	font-size: 13px;
	color: var(--muted-fg);
}

.dc-v2-upload__thumb {
	display: block;
	width: 72px;
	height: 72px;
	max-width: 72px;
	max-height: 72px;
	border-radius: 12px;
	margin: 10px auto 0;
	object-fit: cover;
	border: 1px solid rgba(26, 20, 40, 0.1);
	background: var(--muted, #f6f4fb);
	box-shadow: 0 1px 2px rgba(26, 20, 40, 0.06);
}

.dc-v2-upload input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.dc-v2-field textarea { min-height: 72px; resize: vertical; }

.dc-v2-radio-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dc-v2-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.dc-v2-unit-block--sep {
	border-top: 1px solid var(--border);
	margin-top: 14px;
	padding-top: 4px;
}

.dc-v2-unit-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 8px 0 6px;
	border: none;
	background: transparent;
	cursor: pointer;
	text-align: left;
	-webkit-tap-highlight-color: transparent;
}

.dc-v2-unit-toggle:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: 6px;
}

.dc-v2-unit-chevron {
	font-size: 14px;
	line-height: 1;
	color: var(--muted-fg);
	transition: transform 0.2s ease;
}

.dc-v2-unit-block:not(.dc-v2-unit-block--open) .dc-v2-unit-chevron {
	transform: rotate(-90deg);
}

.dc-v2-unit-block:not(.dc-v2-unit-block--open) .dc-v2-unit-body {
	display: none;
}

.dc-v2-unit-label {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--primary);
	margin: 0;
}

.dc-v2-unit-toggle-end {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
	margin-left: 12px;
}

.dc-v2-unit-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	background: var(--muted);
	border: 1px solid var(--border);
	color: var(--muted-fg);
}

.dc-v2-unit-pill__count {
	font-variant-numeric: tabular-nums;
}

.dc-v2-unit-pill--incomplete {
	color: var(--primary);
	border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
	background: color-mix(in srgb, var(--primary) 10%, var(--muted));
}

.dc-v2-unit-pill--complete {
	color: #15803d;
	border-color: #86efac;
	background: #dcfce7;
}

.dc-v2-unit-ring {
	display: inline-flex;
	line-height: 0;
	color: inherit;
}

.dc-v2-unit-ring svg {
	display: block;
}

.dc-v2-unit-ring__track {
	stroke: color-mix(in srgb, currentColor 22%, var(--border));
}

.dc-v2-unit-ring__progress {
	stroke: currentColor;
	transition: stroke-dashoffset 0.25s ease;
}

.dc-v2-product-sheet {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.dc-v2-product-sheet[hidden] {
	display: none;
}

.dc-v2-product-sheet__backdrop {
	position: absolute;
	inset: 0;
	border: none;
	padding: 0;
	background: rgba(30, 27, 36, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
	cursor: pointer;
}

.dc-v2-product-sheet--open .dc-v2-product-sheet__backdrop {
	opacity: 1;
}

.dc-v2-product-sheet__panel {
	position: relative;
	height: 75dvh;
	max-height: 75vh;
	background: var(--card);
	color: var(--card-fg);
	border-radius: 16px 16px 0 0;
	display: flex;
	flex-direction: column;
	transform: translateY(100%);
	transition: transform 0.25s ease;
	box-shadow: 0 -4px 24px rgba(30, 27, 36, 0.12);
	padding-bottom: env(safe-area-inset-bottom);
}

.dc-v2-product-sheet--open .dc-v2-product-sheet__panel {
	transform: translateY(0);
}

.dc-v2-product-sheet__handle {
	width: 36px;
	height: 4px;
	background: var(--border);
	border-radius: 2px;
	margin: 8px auto 0;
	flex-shrink: 0;
}

.dc-v2-product-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px 12px;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}

.dc-v2-product-sheet__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dc-v2-product-sheet__actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-shrink: 0;
}

.dc-v2-product-sheet__external {
	font-size: 12px;
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.dc-v2-product-sheet__close {
	width: 32px;
	height: 32px;
	border: none;
	background: var(--muted);
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--foreground);
	flex-shrink: 0;
}

.dc-v2-product-sheet__frame {
	flex: 1;
	width: 100%;
	border: none;
	background: #fff;
}

body.dc-v2-sheet-open {
	overflow: hidden;
}

.dc-v2-card-note {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--muted-fg);
}

.dc-v2-card-note--warn {
	color: #b45309;
	background: #fffbeb;
	border-radius: 10px;
	padding: 10px 12px;
	border: 1px solid #fcd34d;
}

.dc-v2-bacs {
	background: var(--muted);
	border: 2px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
}

.dc-v2-bacs-head {
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

.dc-v2-bacs h3 {
	margin: 0 0 4px;
	font-size: 16px;
}

.dc-v2-bacs-total {
	margin: 0;
	font-size: 14px;
	color: var(--muted-fg);
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.dc-v2-bacs-total strong {
	color: var(--foreground);
	font-size: 16px;
}

.dc-v2-bacs-section-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted-fg);
}

.dc-v2-bacs-account {
	padding: 12px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-top: 8px;
	font-size: 13px;
}

.dc-v2-bacs-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 3px 0;
}

.dc-v2-bacs-row-label {
	color: var(--muted-fg);
	flex-shrink: 0;
}

.dc-v2-bacs-row-value {
	text-align: right;
	word-break: break-word;
}

strong.dc-v2-bacs-row-value {
	font-size: 15px;
	letter-spacing: 0.02em;
}

.dc-v2-bacs-copy {
	margin-top: 8px;
	width: 100%;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--muted);
	color: var(--foreground);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.dc-v2-bacs-copy:active {
	opacity: 0.7;
}

.dc-v2-bacs-note {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	font-size: 18px;
	line-height: 1.5;
	color: #ffffff;
}

.dc-v2-footer-summary {
	font-size: 13px;
	color: var(--muted-fg);
	text-align: center;
	margin-bottom: 8px;
}

.dc-v2-footer-summary strong {
	color: var(--foreground);
	font-size: 15px;
}

.dc-v2-footer-trust {
	margin: 0 0 8px;
	font-size: 11px;
	text-align: center;
	color: var(--muted-fg);
}

.dc-v2-footer-powered {
	margin: 8px 0 0;
	font-size: 10px;
	line-height: 1.3;
	text-align: center;
}

.dc-v2-footer-powered img.emoji,
.dc-v2-chat img.emoji {
	display: inline;
	height: 1em;
	width: 1em;
	margin: 0 0.15em 0 0;
	vertical-align: -0.1em;
	max-width: 1em;
	max-height: 1em;
}

.dc-v2-footer-powered a {
	color: var(--muted-fg);
	text-decoration: none;
}

.dc-v2-footer-powered a:hover,
.dc-v2-footer-powered a:focus-visible {
	color: var(--muted-fg);
	text-decoration: none;
}

.dc-v2-cards-more {
	align-self: flex-end;
	width: 100%;
	max-width: 96%;
	padding: 10px 14px;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--card) 88%, transparent);
	font-size: 14px;
	font-weight: 500;
	color: var(--primary);
	cursor: pointer;
	text-align: center;
}

.dc-v2-card--collapsed { display: none; }

.dc-v2-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: var(--footer);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--border);
	max-width: 430px;
	margin: 0 auto;
}

.dc-v2-btn {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: var(--radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s;
}

.dc-v2-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.dc-v2-btn--primary {
	background: var(--primary);
	color: var(--primary-fg);
}

.dc-v2-btn--loading {
	pointer-events: none;
	opacity: 0.85;
}

.dc-v2-btn--loading::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid color-mix(in srgb, var(--primary-fg) 35%, transparent);
	border-top-color: var(--primary-fg);
	border-radius: 50%;
	animation: dc-v2-spin 0.7s linear infinite;
	vertical-align: -3px;
}

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

.dc-v2-footer--hidden { display: none; }

.dc-v2-toast {
	position: fixed;
	bottom: calc(88px + env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	max-width: 360px;
	width: calc(100% - 32px);
	padding: 12px 16px;
	background: #1e1b24;
	color: #fff;
	border-radius: 10px;
	font-size: 14px;
	z-index: 100;
	box-shadow: var(--shadow);
	animation: dc-v2-in 0.2s ease;
}

.dc-v2-toast[hidden] { display: none; }

.dc-v2-skeleton {
	height: 80px;
	border-radius: var(--radius);
	background: linear-gradient(90deg, var(--muted) 25%, var(--card) 50%, var(--muted) 75%);
	background-size: 200% 100%;
	animation: dc-v2-shimmer 1.2s infinite;
}

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

.dc-v2-card--admin-editable {
	cursor: pointer;
	border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.dc-v2-card--admin-editable:hover {
	border-color: var(--primary);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent);
}

.dc-v2-admin-qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.dc-v2-admin-qty-btn {
	width: 28px;
	height: 28px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--input);
	font-size: 16px;
	line-height: 1;
	color: var(--foreground);
}

.dc-v2-admin-qty-value {
	min-width: 20px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
}

.dc-v2-admin-field-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 4px;
}

.dc-v2-admin-field-chip {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 10px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--primary) 8%, var(--card));
	border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
	font-size: 12px;
}

.dc-v2-admin-field-type {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted-fg);
}

.dc-v2-admin-edit-btn {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 8px 12px;
	border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--border));
	border-radius: 10px;
	background: var(--card);
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
}

/* Order From DM — Instagram DM look */
body.dc-v2-theme-orderfromdm {
	--radius: 22px;
}

body.dc-v2-theme-orderfromdm .dc-v2-bg-blobs {
	display: none;
}

body.dc-v2-theme-orderfromdm .dc-v2-header {
	border-bottom: 1px solid var(--border);
	backdrop-filter: none;
}

body.dc-v2-theme-orderfromdm .dc-v2-badge {
	color: var(--muted-fg);
	font-weight: 600;
}

body.dc-v2-theme-orderfromdm .dc-v2-bubble--brand {
	border: none;
	box-shadow: none;
	border-radius: 22px;
	background: var(--card);
	color: var(--card-fg);
}

body.dc-v2-theme-orderfromdm .dc-v2-bubble--user {
	border-radius: 22px;
}

body.dc-v2-theme-orderfromdm .dc-v2-card {
	border: none;
	box-shadow: none;
	border-radius: 22px;
}

body.dc-v2-theme-orderfromdm .dc-v2-card .dc-v2-field input,
body.dc-v2-theme-orderfromdm .dc-v2-card .dc-v2-field textarea,
body.dc-v2-theme-orderfromdm .dc-v2-card .dc-v2-custom-select__btn {
	border: 1px solid var(--border);
	border-radius: 18px;
}

body.dc-v2-theme-orderfromdm .dc-v2-card .dc-v2-custom-select__list {
	border: 1px solid var(--border);
}

body.dc-v2-theme-orderfromdm .dc-v2-footer {
	border-top: 1px solid var(--border);
	backdrop-filter: none;
}

body.dc-v2-theme-orderfromdm .dc-v2-btn--primary {
	border-radius: 999px;
}

body.dc-v2-theme-orderfromdm .dc-v2-cards-more {
	border: 1px dashed var(--border);
	background: var(--card);
}

body.dc-v2-theme-orderfromdm .dc-v2-unit-block--sep {
	border-top-color: var(--border);
}

body.dc-v2-theme-orderfromdm .dc-v2-product-sheet__panel {
	background: var(--card);
	border-top: 1px solid var(--border);
	box-shadow: none;
}
