/* =============================================================================
   LetsGoPedir — Checkout
   Neutros da paleta LetsGoPedir (cinza-claro/grafite no claro, grafite arroxeado no escuro), destaque = cor da loja
   (padrão: roxo da marca #6C4DFF).
   Tipografia Sora. Raios: campos 12px, cartões 16px. Sem pill em UI de formulário.
   ============================================================================= */

.ck {
	--bg: #f5f5f7;
	--surface: #ffffff;
	--surface-2: #f5f5f7;
	--line: #e5e7eb;
	--line-strong: #d2d5dc;
	--text: #171717;
	--text-2: #5f6470;
	--text-3: #9aa0aa;
	--err: #d92d20;
	--ok: #12a150;
	--shadow: 0 1px 2px rgba(11, 13, 18, .04), 0 8px 24px -12px rgba(11, 13, 18, .12);
	--r-card: 16px;
	--r-field: 12px;
	--accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
	--accent-ring: color-mix(in srgb, var(--accent) 28%, transparent);
	--bar-h: 84px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-tema="light"]) .ck { --bg: #0f0d14; --surface: #171520; --surface-2: #1f1c2b; --line: #2b2738; --line-strong: #3a3549; --text: #f7f5ff; --text-2: #9b97ae; --text-3: #67627a; --err: #ff6b62; --ok: #3ddc84; --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 12px 32px -16px rgba(0, 0, 0, .7); --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent); }
}
	:root[data-tema="dark"] .ck { --bg: #0f0d14; --surface: #171520; --surface-2: #1f1c2b; --line: #2b2738; --line-strong: #3a3549; --text: #f7f5ff; --text-2: #9b97ae; --text-3: #67627a; --err: #ff6b62; --ok: #3ddc84; --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 12px 32px -16px rgba(0, 0, 0, .7); --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent); }

.ck, .ck * { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ck {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font: 400 15px/1.5 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
.ck a { color: inherit; text-decoration: none; }
.ck img { display: block; }
.ck .ico { width: 20px; height: 20px; flex: none; }
.ck-num { font-variant-numeric: tabular-nums; }
.ck [hidden] { display: none !important; }

/* ---------- Topo ---------- */
.ck-top {
	position: sticky; top: 0; z-index: 30;
	background: color-mix(in srgb, var(--surface) 82%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.ck-top-in {
	max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 56px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.ck-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 500; font-size: 14px; justify-self: start; padding: 8px 8px 8px 0; }
.ck-back:hover { color: var(--text); }
.ck-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; min-width: 0; }
.ck-brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; background: var(--surface-2); }
.ck-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 44vw; }
.ck-secure { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; font-weight: 500; }
.ck-secure .ico { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Estrutura ---------- */
.ck-wrap { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; }
.ck-head h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.ck-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.ck-side { order: -1; }
.ck-main { display: grid; gap: 16px; align-content: start; }

@media (min-width: 960px) {
	.ck-wrap { padding-top: 40px; }
	.ck-head h1 { font-size: 30px; }
	.ck-grid { grid-template-columns: minmax(0, 1fr) 392px; gap: 32px; margin-top: 28px; align-items: start; }
	.ck-side { order: 0; position: sticky; top: 80px; }
	body.ck { padding-bottom: 0; }
}

/* ---------- Cartões ---------- */
.ck-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
	padding: 20px; box-shadow: var(--shadow);
}
.ck-card-flat { padding: 4px 8px; box-shadow: none; }
@media (min-width: 640px) { .ck-card { padding: 24px; } .ck-card-flat { padding: 6px 12px; } }
.ck-card h2 {
	margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
	font-size: 16px; font-weight: 600; letter-spacing: -.01em;
}
.ck-step {
	width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center; flex: none;
	background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-tema="light"]) .ck-step { color: color-mix(in srgb, var(--accent) 55%, #fff); }
}
	:root[data-tema="dark"] .ck-step { color: color-mix(in srgb, var(--accent) 55%, #fff); }

/* ---------- Campos ---------- */
.ck-field { margin-bottom: 14px; }
.ck-field:last-child, .ck-field:has(+ [hidden]) { margin-bottom: 0; }
.ck-field label, .ck-pay-extra label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--text); }
.ck-opt { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 4px; }
.ck input[type=text], .ck input[type=tel], .ck input[type=password], .ck input[type=search], .ck input:not([type]), .ck select {
	width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field);
	background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; outline: none;
	transition: border-color .15s, box-shadow .15s, background .15s;
	-webkit-appearance: none; appearance: none;
}
.ck input::placeholder { color: var(--text-3); }
.ck input:hover, .ck select:hover { border-color: var(--line-strong); }
.ck input:focus, .ck select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); background: var(--surface); }
.ck input[aria-invalid=true], .ck select[aria-invalid=true] { border-color: var(--err); box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 18%, transparent); }
.ck input:disabled { opacity: .5; }
.ck-select { position: relative; }
.ck-select select { padding-right: 42px; cursor: pointer; }
.ck-select .ico { position: absolute; right: 14px; top: 14px; pointer-events: none; color: var(--text-2); }
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-hint { margin: 6px 0 0; color: var(--text-2); font-size: 12px; }
.ck-err { margin: 6px 0 0; color: var(--err); font-size: 12px; font-weight: 500; }

/* ---------- Alerta ---------- */
.ck-alert {
	display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-card);
	background: color-mix(in srgb, var(--err) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--err) 35%, var(--line));
	color: var(--text); font-size: 13px; outline: none;
}
.ck-alert .ico { color: var(--err); margin-top: 1px; }
.ck-alert strong { display: block; font-weight: 600; }
.ck-alert ul { margin: 4px 0 0; padding-left: 18px; color: var(--text-2); }

/* ---------- Segmentado ---------- */
.ck-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.ck-seg button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 1px solid transparent; border-radius: 10px;
	background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.ck-seg button[aria-checked=true] { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.ck-seg button[aria-checked=true] .ico { color: var(--accent); }
.ck-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ck-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface-2); margin-bottom: 14px; }
.ck-tile .ico { color: var(--accent); margin-top: 2px; }
.ck-tile strong { display: block; font-weight: 600; font-size: 14px; }
.ck-tile span { display: block; color: var(--text-2); font-size: 13px; }

/* ---------- Pagamento ---------- */
.ck-pays { display: grid; gap: 10px; }
.ck-pay { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; overflow: hidden; }
.ck-pay:hover { border-color: var(--line-strong); }
.ck-pay.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.ck-pay > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ck-pay > label { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0; cursor: pointer; font-weight: 400; }
.ck-pay-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; transition: all .15s; }
.ck-pay.is-on .ck-pay-ico { background: var(--accent); color: var(--on-accent); }
.ck-pay-txt { flex: 1; min-width: 0; }
.ck-pay-txt strong { display: block; font-size: 14px; font-weight: 600; }
.ck-pay-txt small { display: block; color: var(--text-2); font-size: 12px; }
.ck-pay-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; transition: all .15s; }
.ck-pay-dot .ico { width: 14px; height: 14px; }
.ck-pay.is-on .ck-pay-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ck-pay > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.ck-pay-extra { display: none; padding: 0 14px 14px 66px; }
.ck-pay.is-on .ck-pay-extra { display: block; }
.ck-pay-extra .bandeiras-mini { margin-left: 0; }

/* ---------- Cupom ---------- */
.ck-coupon-toggle {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 12px; border: 0; background: none; color: var(--text);
	font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; border-radius: 12px;
}
.ck-coupon-toggle .ico:first-child { color: var(--accent); }
.ck-coupon-toggle span { flex: 1; }
.ck-chev { transition: transform .2s; color: var(--text-2); }
.ck-coupon-toggle[aria-expanded=true] .ck-chev { transform: rotate(180deg); }
.ck-coupon { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 0 12px; }
.ck-coupon-msg { margin: 8px 12px 14px; font-size: 13px; min-height: 0; }
.ck-coupon-msg:empty { margin: 0 0 8px; }
.ck-coupon-msg.is-ok { color: var(--ok); font-weight: 500; }
.ck-coupon-msg.is-bad { color: var(--err); font-weight: 500; }

/* ---------- Botões ---------- */
.ck-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: var(--r-field);
	border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .1s, filter .15s, background .15s; position: relative;
}
.ck-btn:active { transform: translateY(1px); }
.ck-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ck-btn-primary, .ck a.ck-btn-primary { background: var(--accent); color: var(--on-accent); }
.ck-btn-primary:hover { filter: brightness(1.06); }
.ck-btn-ghost, .ck a.ck-btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.ck-btn-ghost:hover { border-color: var(--line-strong); }
.ck-btn[disabled] { opacity: .6; cursor: progress; }
.ck-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: ck-rot .7s linear infinite; }
.is-loading .ck-spin { display: inline-block; }
@keyframes ck-rot { to { transform: rotate(360deg); } }

/* ---------- Resumo ---------- */
.ck-sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 20px 20px; box-shadow: var(--shadow); }
.ck-sum-items summary {
	list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 15px;
}
.ck-sum-items summary::-webkit-details-marker { display: none; }
.ck-sum-items summary > span:first-child { flex: 1; }
.ck-sum-mini { font-variant-numeric: tabular-nums; font-weight: 600; }
.ck-sum-items[open] .ck-chev { transform: rotate(180deg); }
.ck-sum-items[open] .ck-sum-mini { display: none; }
.ck-lines { list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 16px; }
.ck-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start; }
.ck-lines img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.ck-line-txt strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ck-line-txt span { display: block; color: var(--text-2); font-size: 12px; }
.ck-line-txt .ck-obs { font-style: italic; }
.ck-lines b { font-size: 14px; font-weight: 600; }
.ck-totals { margin: 0; display: grid; gap: 8px; }
.ck-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.ck-totals dt, .ck-totals dd { margin: 0; }
.ck-totals dd { color: var(--text); font-weight: 500; }
.ck-desc dd, .ck-desc dt span { color: var(--ok) !important; }
.ck-totals .ck-total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); align-items: baseline; }
.ck-total dt { color: var(--text); font-weight: 600; font-size: 15px; }
.ck-total dd { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ck-min { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12px; }
.ck-min.is-bad { background: color-mix(in srgb, var(--err) 10%, var(--surface)); color: var(--err); font-weight: 500; }
.ck-submit-desk { display: none; width: 100%; margin-top: 16px; }
.ck-fine { display: none; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--text-3); font-size: 12px; justify-content: center; }
.ck-fine .ico { width: 14px; height: 14px; }
@media (min-width: 960px) { .ck-submit-desk { display: inline-flex; } .ck-fine { display: flex; } .ck-sum-items summary { cursor: default; pointer-events: none; } .ck-sum-items summary .ck-chev, .ck-sum-items summary .ck-sum-mini { display: none; } }

/* ---------- Barra fixa (mobile) ---------- */
.ck-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 16px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
	border-top: 1px solid var(--line);
}
.ck-bar-total { display: grid; line-height: 1.15; min-width: 96px; }
.ck-bar-total small { color: var(--text-2); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.ck-bar-total strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.ck-bar .ck-btn { flex: 1; height: 52px; }
@media (min-width: 960px) { .ck-bar { display: none; } }

@media (max-width: 520px) { .ck-secure span { display: none; } .ck-brand span { max-width: 52vw; } }

@media (prefers-reduced-motion: reduce) { .ck * { transition: none !important; animation-duration: .01ms !important; } }

/* ---------- Confirmação do pedido ---------- */
.ck-done-wrap { max-width: 960px; }
.ck-done { text-align: center; padding: 16px 0 8px; }
.ck-done h1 { margin: 16px 0 6px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.ck-done-sub { margin: 0 auto 16px; max-width: 520px; color: var(--text-2); font-size: 14px; }
.ck-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.ck-chip b { color: var(--text); font-weight: 600; }
.ck-done-mark { width: 76px; height: 76px; margin: 0 auto; }
.ck-done-mark svg { width: 100%; height: 100%; }
.ck-done-ring { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: ck-draw .7s ease forwards; }
.ck-done-tick { fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 46; stroke-dashoffset: 46; animation: ck-draw .5s .45s ease forwards; }
@media (prefers-color-scheme: dark) {
	:root:not([data-tema="light"]) .ck-done-ring, :root:not([data-tema="light"]) .ck-done-tick { stroke: color-mix(in srgb, var(--accent) 60%, #fff); }
}
	:root[data-tema="dark"] .ck-done-ring, :root[data-tema="dark"] .ck-done-tick { stroke: color-mix(in srgb, var(--accent) 60%, #fff); }
@keyframes ck-draw { to { stroke-dashoffset: 0; } }
.ck-done-grid { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 900px) { .ck-done-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; } .ck-done-grid .ck-side { position: sticky; top: 80px; order: 0; } }
.ck-done-grid .ck-side { order: 0; }
.ck-done-text { margin: 0 0 6px; font-size: 14px; }
.ck-muted { color: var(--text-2); }
.ck-done-actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .ck-done-actions { grid-template-columns: 1fr 1fr; } }
.ck-done-actions .ck-btn { width: 100%; text-decoration: none; }
.ck-sum-title { margin: 0; padding: 16px 0 6px; font-size: 15px; font-weight: 600; }
.ck-lines-plain { border-bottom: 1px solid var(--line); }
.ck-lines-plain li { grid-template-columns: 1fr; }

.ck-pixbox .ck-step .ico { width: 14px; height: 14px; }
.ck-qr { display: grid; place-items: center; padding: 8px 0 16px; }
.ck-qr img { width: 220px; height: 220px; max-width: 100%; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.ck-pix-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.ck-pix-value { margin: 0 0 4px; color: var(--text-2); font-size: 13px; }
.ck-pix-value b { display: block; margin-top: 2px; color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.ck-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ck-copy input { text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ck-live { display: flex; align-items: center; gap: 8px; }
.ck-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ck-pulse 1.4s ease-in-out infinite; }
@keyframes ck-pulse { 50% { opacity: .25; transform: scale(.8); } }
.ck-pixbox .ck-hint { margin: 0 0 14px; }

/* ---------- Sacola ---------- */
.ck-grid-cart .ck-side { order: 0; }
.ck-card-list { padding: 4px 20px; }
.ck-cart { list-style: none; margin: 0; padding: 0; }
.ck-cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; transition: opacity .15s; }
.ck-cart-item:last-child { border-bottom: 0; }
.ck-cart-item.is-busy { opacity: .5; pointer-events: none; }
.ck-cart-img img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.ck-cart-name { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.ck-cart-meta { display: block; margin-top: 2px; color: var(--text-2); font-size: 12px; }
.ck-cart-total { font-size: 15px; font-weight: 600; white-space: nowrap; }
.ck-cart-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.ck-step-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.ck-step-qty button { width: 38px; height: 38px; border: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.ck-step-qty button:hover { background: var(--accent-soft); }
.ck-step-qty button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ck-step-qty .ico { width: 16px; height: 16px; }
.ck-step-qty output { min-width: 34px; text-align: center; font-weight: 600; font-size: 14px; }
.ck-remove { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 4px; border-radius: 8px; }
.ck-remove:hover { color: var(--err); }
.ck-remove .ico { width: 16px; height: 16px; }
.ck-cart-err { margin-top: 8px; }
.ck-empty { text-align: center; padding: 48px 24px; margin-top: 20px; }
.ck-empty-ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ck-empty-ico .ico { width: 30px; height: 30px; }
.ck-empty h2 { justify-content: center; margin-bottom: 6px; }
.ck-empty p { margin: 0 0 20px; color: var(--text-2); font-size: 14px; }
.ck-min-wrap { margin-top: 14px; }
.ck-min-wrap .ck-min { margin-top: 8px; }
.ck-progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.ck-progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.ck-modes { display: grid; gap: 8px; margin-top: 16px; }
.ck-mode { position: relative; display: block; cursor: pointer; }
.ck-mode input { position: absolute; opacity: 0; pointer-events: none; }
.ck-mode-card { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: all .15s; }
.ck-mode-card .ico { grid-row: span 2; color: var(--text-2); }
.ck-mode-card b { font-size: 14px; font-weight: 600; }
.ck-mode-card small { color: var(--text-2); font-size: 12px; }
.ck-mode:hover .ck-mode-card { border-color: var(--line-strong); }
.ck-mode input:checked + .ck-mode-card { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.ck-mode input:checked + .ck-mode-card .ico { color: var(--accent); }
.ck-mode input:focus-visible + .ck-mode-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-clear { display: block; margin-top: 12px; text-align: center; color: var(--text-2); font-size: 13px; }
.ck-clear:hover { color: var(--err); }
@media (min-width: 960px) { .ck-card-list { padding: 4px 28px; } }
.ck-btn[disabled] { cursor: not-allowed; }

@media (max-width: 480px) { .ck-remove span { display: none; } .ck-cart-row { flex-wrap: nowrap; } }

/* ---------- Pagamento com cartão (campos do MercadoPago.js) ---------- */
.ck-mpfield { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface-2); display: flex; align-items: center; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ck-mpfield:focus-within, .ck-mpfield.mp-focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); background: var(--surface); }
.ck-mpfield iframe { width: 100% !important; height: 100% !important; border: 0; }
.ck input[type=email] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.ck input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); background: var(--surface); }
.ck-h2-gap { margin-top: 24px !important; }
.ck-row-doc { grid-template-columns: 120px 1fr; }
.ck-pay-submit { width: 100%; margin-top: 18px; }
.ck-fine-show { display: flex; }
.ck-alert-info { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.ck-alert-info .ico { color: var(--accent); }
#form-checkout .ck-alert { margin-bottom: 16px; }
.ck-done-actions-center { max-width: 420px; margin: 22px auto 0; }
.ck-tone-bad .ck-done-ring { fill: color-mix(in srgb, var(--err) 12%, transparent); stroke: var(--err); }
.ck-tone-bad .ck-done-tick { stroke: var(--err); }
.ck-tone-wait .ck-done-ring { fill: color-mix(in srgb, #f5a524 14%, transparent); stroke: #f5a524; }
.ck-tone-wait .ck-done-tick { stroke: #f5a524; }

/* Declaração de maioridade (+18) */
.ck-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; cursor: pointer; font-size: 14px; line-height: 1.45; }
.ck-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ck-accent, #6C4DFF); }
.ck-age .ck-err { padding: 0 4px 12px; }

/* Sugestões "combina com..." na sacola */
.ck-sug { margin-top: 16px; }
.ck-sug h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.ck-sug-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ck-sug-item { display: flex; align-items: center; gap: 12px; }
.ck-sug-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.ck-sug-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ck-sug-item b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-sug-item small { font-size: 13px; opacity: .7; }
.ck-sug-add { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }

/* Conta do cliente */
.ck-conta .ck-head { margin-bottom: 16px; }
#cv-ir, #ea-salvar { width: 100%; margin-top: 4px; }
.ck-conta .ck-field { margin-bottom: 16px; }
.ck-h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.ck-conta .ck-hint { font-size: 13px; margin: 10px 0 0; line-height: 1.45; }
.ck-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.ck-conta .ck-card { margin-bottom: 16px; }
.cv-lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.cv-pedido, .cv-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.cv-lista li:first-child { border-top: 0; }
.cv-pedido-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cv-pedido-info b { font-size: 14px; font-weight: 600; }
.cv-pedido-info small { font-size: 13px; opacity: .7; }
.cv-pedido-acoes { display: flex; gap: 8px; align-items: center; }
.cv-pedido-acoes form { margin: 0; }
.cv-chip { display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.cv-st-2 { background: rgba(31,183,108,.14); border-color: transparent; }
.cv-st-3 { background: rgba(229,72,77,.14); border-color: transparent; }
.cv-novo { margin-top: 8px; }
.cv-novo summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 8px 0; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 12px 0; }
@media (max-width: 520px) { .cv-grid { grid-template-columns: 1fr; } }
.cv-sair { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.cv-perigo { color: #e5484d; }

/* tema escolhido pelo usuário vence o do sistema (controles nativos, barras de rolagem) */
:root[data-tema="light"] { color-scheme: light; }
:root[data-tema="dark"] { color-scheme: dark; }

/* promoção aplicada na linha do item */
.ck .ck-promo { color: var(--accent); font-weight: 600; }
