/* Compra em etapas: carrinho, plano adicional e pagamento com a nota do pedido. Usa as variáveis do site (claro e escuro).
   A nota (papel, linhas que entram e total que "rola") foi inspirada no recurso Encargo, da Moxen, reescrito para a REPO. */
.ck { --ck-brand: var(--brand, #1677f4); --ck-ok: #13a775; --ck-curve: cubic-bezier(.22, 1, .36, 1); --ck-bounce: cubic-bezier(.34, 1.45, .64, 1); position: fixed; inset: 0; z-index: 210; overflow-y: auto; overscroll-behavior: contain; font-family: var(--font, Poppins, system-ui, sans-serif); color: var(--ink); -webkit-font-smoothing: antialiased; }
.ck[hidden] { display: none; }
.ck *, .ck *::before, .ck *::after { box-sizing: border-box; }
.ck :where(button) { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ck svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ck :focus-visible { outline: 2px solid var(--ck-brand); outline-offset: 3px; }
.ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.ck-open, html.ck-open body { overflow: hidden; }

/* ---- Carrinho ---------------------------------------------------------------------------------------------------- */
.ck[data-mode="cart"] { display: grid; place-items: center; padding: 1rem; background: rgba(14, 22, 34, .5); backdrop-filter: blur(6px); animation: ck-fade .22s ease both; }
.ck-cart { position: relative; width: min(100%, 41rem); max-height: calc(100dvh - 2rem); overflow: auto; border-radius: 1.2rem; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(10, 20, 36, .3); animation: ck-rise .38s var(--ck-curve) both; }
.ck-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.6rem 1.1rem; }
.ck-cart__head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.ck-x { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); transition: background .16s; }
.ck-x:hover { background: var(--mist); }
.ck-x svg { width: 1.2rem; height: 1.2rem; }
.ck-item { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.1rem; margin: 0 1.2rem; padding: 1rem; border-radius: 1rem; background: var(--mist); }
.ck-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .7rem; background: var(--line); }
.ck-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ck-thumb__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 1.4rem; }
.ck-item__body { min-width: 0; display: grid; align-content: start; gap: .2rem; }
.ck-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.ck-item__name { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.ck-item__sub { margin: 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.45; }
.ck-item__each { margin: .1rem 0 0; color: var(--ck-brand); font-size: .76rem; font-weight: 600; }
.ck-trash { display: grid; flex: 0 0 auto; width: 2rem; height: 2rem; place-items: center; padding: 0; border: 0; border-radius: .5rem; background: transparent; color: var(--muted); }
.ck-trash:hover { background: rgba(200, 60, 60, .1); color: #c83c3c; }
.ck-trash svg { width: 1.05rem; height: 1.05rem; }
.ck-item__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-strong); }
.ck-item__price { font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ck-qty { display: flex; align-items: stretch; gap: .5rem; flex: 1 1 0; max-width: 15rem; }
.ck-qty button { display: grid; width: 2.4rem; place-items: center; padding: 0; border: 0; border-radius: .6rem; background: var(--line); color: var(--ink); }
.ck-qty button:disabled { opacity: .45; cursor: not-allowed; }
.ck-qty button svg { width: 1rem; height: 1rem; }
.ck-qty output { flex: 1 1 auto; display: grid; place-items: center; min-height: 2.4rem; border: 1px solid var(--line-strong); border-radius: .6rem; background: var(--paper); font-weight: 600; font-size: .9rem; }
.ck-qty-note { grid-column: 1 / -1; margin: -.1rem 0 0; color: var(--muted); font-size: .66rem; text-align: right; }
.ck-cart__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding: 1.1rem 1.6rem 1.5rem; border-top: 1px solid var(--line); }
.ck-sub small { display: block; color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.ck-sub strong { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: 0 1.5rem; border: 0; border-radius: .75rem; background: var(--ck-brand); color: #fff; font-size: .86rem; font-weight: 600; transition: transform .16s var(--ck-curve), background .16s, box-shadow .16s; }
.ck-btn:hover { background: var(--brand-dark, #1264cf); box-shadow: 0 10px 24px -10px rgba(22, 119, 244, .7); }
.ck-btn:active { transform: scale(.98); }
.ck-btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.ck-btn svg { width: 1.05rem; height: 1.05rem; }
.ck-btn--soft { background: var(--line); color: var(--ink); }
.ck-btn--soft:hover { background: var(--line-strong); box-shadow: none; }
.ck-btn--ghost { background: transparent; color: var(--ink-soft); padding: 0 1rem; }
.ck-btn--ghost:hover { background: var(--mist); box-shadow: none; }

/* ---- Etapas (tela cheia) ------------------------------------------------------------------------------------------ */
.ck[data-mode="flow"] { background: var(--mist); animation: ck-fade .22s ease both; }
.ck-top { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.1rem 0 0; }
.ck-top img { display: block; height: 3rem; width: auto; }
@media (max-width: 640px) { .ck-top img { height: 2.5rem; } }
html[data-theme="dark"] .ck-top img { content: url("/assets/repo-store-logo-dark.webp?v=1"); }
.ck-back { padding: .5rem .2rem; border: 0; background: transparent; color: var(--ink-soft); font-size: .84rem; font-weight: 500; }
.ck-back:hover { color: var(--ink); }
.ck-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin: 1.6rem auto 1.7rem; }
.ck-step { display: grid; justify-items: center; gap: .45rem; width: 7.8rem; color: var(--muted); font-size: .76rem; font-weight: 500; text-align: center; }
.ck-step b { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: .55rem; background: var(--line); color: var(--ink-soft); font-size: .78rem; transition: background .3s var(--ck-curve), color .3s, box-shadow .3s; }
.ck-step svg { width: .95rem; height: .95rem; stroke-width: 2.4; }
.ck-step.is-on { color: var(--ink); }
.ck-step.is-on b { background: var(--ck-brand); color: #fff; box-shadow: 0 0 0 .3rem rgba(22, 119, 244, .2); }
.ck-step.is-done { color: var(--ink-soft); }
.ck-step.is-done b { background: var(--ck-brand); color: #fff; }
.ck-steps__line { flex: 0 0 5rem; height: 2px; margin-top: .92rem; margin-inline: -1.4rem; background: var(--line-strong); position: relative; overflow: hidden; }
.ck-steps__line::after { content: ""; position: absolute; inset: 0; background: var(--ck-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ck-curve); }
.ck-steps__line.is-done::after { transform: scaleX(1); }

.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1.5rem; align-items: start; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 4rem; }
.ck-card { padding: 2rem; border-radius: 1.2rem; background: var(--paper); border: 1px solid var(--line); animation: ck-rise .4s var(--ck-curve) both; }
.ck-card > h2 { margin: 0; font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.ck-card > .ck-lead { margin: .35rem 0 1.5rem; color: var(--ink-soft); font-size: .84rem; }

/* planos */
.ck-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ck-plan { position: relative; display: grid; align-content: start; gap: .9rem; padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--paper); text-align: left; overflow: hidden; transition: border-color .25s var(--ck-curve), box-shadow .25s var(--ck-curve), transform .25s var(--ck-curve), background .25s; }
.ck-plan::before { content: ""; position: absolute; right: -2.2rem; bottom: -2.2rem; width: 11rem; height: 11rem; border-radius: 50%; background: radial-gradient(circle, rgba(22, 119, 244, .13), transparent 68%); pointer-events: none; }
.ck-plan:hover { border-color: rgba(22, 119, 244, .5); transform: translateY(-2px); }
.ck-plan[aria-checked="true"] { border-color: var(--ck-brand); background: var(--brand-pale); box-shadow: 0 0 0 1px var(--ck-brand), 0 16px 36px -22px rgba(22, 119, 244, .8); }
.ck-plan--rec { border-color: rgba(22, 119, 244, .55); }
.ck-plan__name { margin: 0; font-size: .92rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.ck-plan__name em { font-style: normal; color: #f0930c; }
.ck-plan__price { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ck-plan__tag { padding: .18rem .55rem; border-radius: .4rem; background: rgba(22, 119, 244, .14); color: var(--ck-brand); font-size: .66rem; font-weight: 600; letter-spacing: 0; }
.ck-plan ul { display: grid; gap: .55rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.ck-plan li { display: grid; grid-template-columns: 1rem 1fr; gap: .55rem; color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }
.ck-plan li svg { width: .9rem; height: .9rem; margin-top: .15rem; color: var(--muted); }
.ck-plan li b { color: var(--ink); font-weight: 700; }
.ck-plan__radio { position: absolute; top: 1.25rem; right: 1.25rem; display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 50%; color: transparent; transition: background .25s, border-color .25s, color .25s, transform .35s var(--ck-bounce); }
.ck-plan--rec .ck-plan__radio { border-color: var(--ck-brand); }
.ck-plan__radio svg { width: 1.05rem; height: 1.05rem; stroke-width: 2.6; }
.ck-plan[aria-checked="true"] .ck-plan__radio { background: var(--ck-brand); border-color: var(--ck-brand); color: #fff; transform: scale(1.06); }
.ck-note { display: grid; grid-template-columns: 1.1rem 1fr; gap: .6rem; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: .8rem; background: var(--mist); color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.ck-note svg { width: 1rem; height: 1rem; margin-top: .15rem; }
.ck-note b { display: block; color: var(--ink); font-size: .8rem; }
.ck-actions { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; }

/* pagamento */
.ck-method { border: 1px solid var(--line); border-radius: 1rem; background: var(--mist); overflow: hidden; }
.ck-method__head { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line-strong); font-size: 1.05rem; font-weight: 700; }
.ck-method__head i { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .7rem; background: var(--brand-pale); color: var(--ck-brand); }
.ck-method__head svg { width: 1.3rem; height: 1.3rem; }
.ck-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.3rem; }
.ck-tile { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1.5rem 1rem 1.2rem; border: 1px solid var(--line-strong); border-radius: .9rem; background: var(--paper); text-align: center; transition: border-color .2s, background .2s, box-shadow .2s; }
.ck-tile[aria-checked="true"] { border-color: var(--ck-brand); background: var(--brand-pale); box-shadow: 0 0 0 1px var(--ck-brand); }
.ck-tile:disabled { cursor: not-allowed; opacity: .6; background: var(--mist); }
.ck-tile__icon { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; margin-bottom: .5rem; border-radius: .9rem; background: rgba(50, 188, 173, .16); color: #32bcad; }
.ck-tile__icon--card { background: var(--brand-pale); color: var(--ck-brand); }
.ck-tile__icon svg { width: 1.7rem; height: 1.7rem; }
.ck-tile strong { font-size: .95rem; }
.ck-tile small { color: var(--ink-soft); font-size: .76rem; }
.ck-tile .ck-chip { margin-top: .35rem; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: .5rem; background: rgba(19, 167, 117, .15); color: var(--ck-ok); font-size: .72rem; font-weight: 600; }
.ck-tile .ck-chip svg { width: .8rem; height: .8rem; }
.ck-tile .ck-chip--off { background: rgba(200, 90, 60, .14); color: #c0563a; }
.ck-tile__badge { position: absolute; top: -.62rem; right: 1rem; padding: .18rem .65rem; border-radius: .45rem; background: var(--ck-brand); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .06em; }
.ck-pay-box .payment-coupon { margin: 1.2rem 0 0; }
.ck-pay-box .payment-coupon__form { gap: .6rem; margin-top: .75rem; padding: .35rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--mist); transition: border-color .16s, box-shadow .16s; }
.ck-pay-box .payment-coupon__form:focus-within { border-color: rgba(22, 119, 244, .55); box-shadow: 0 0 0 4px rgba(22, 119, 244, .12); }
.ck-pay-box .payment-coupon__form input { padding: 0 .85rem; min-height: 2.75rem; border: 0; border-radius: .7rem; background: transparent; font-size: .9rem; font-weight: 600; letter-spacing: .08em; }
.ck-pay-box .payment-coupon__form input::placeholder { font-weight: 500; letter-spacing: .06em; color: var(--ink-soft); opacity: .7; }
.ck-pay-box .payment-coupon__form input:focus-visible { outline: 0; border: 0; }
.ck-pay-box .payment-coupon__form .button { min-height: 2.75rem; padding: 0 1.3rem; border: 0; border-radius: .7rem; background: var(--ck-brand); color: #fff; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .16s, transform .16s var(--ck-curve), box-shadow .16s; }
.ck-pay-box .payment-coupon__form .button:hover { background: var(--brand-dark, #1264cf); box-shadow: 0 8px 20px -10px rgba(22, 119, 244, .8); }
.ck-pay-box .payment-coupon__form .button:active { transform: scale(.97); }
.ck-pay-box .payment-coupon__form .button:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
html[data-theme="dark"] .ck-pay-box .payment-coupon__form { background: #1d2027; border-color: #343944; }
.ck-secure { display: flex; align-items: center; gap: .5rem; margin: 1.2rem 0 0; color: var(--muted); font-size: .72rem; }
.ck-secure svg { width: .95rem; height: .95rem; }

/* ---- A nota do pedido ---------------------------------------------------------------------------------------------- */
.ck-aside { position: sticky; top: 1rem; display: grid; gap: .6rem; }
.ck-summary-toggle { display: none; }
.ck-receipt { position: relative; filter: drop-shadow(0 22px 26px rgba(8, 16, 30, .22)); animation: ck-rise .45s var(--ck-curve) .05s both; }
.ck-paper { position: relative; padding: 1.2rem 1.3rem 1.3rem; border-radius: .9rem .9rem 0 0; background: #fff; color: #10151d; }
.ck-paper::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .7rem; background: linear-gradient(-45deg, transparent .5rem, #fff 0) left top / 1rem 1rem repeat-x, linear-gradient(45deg, transparent .5rem, #fff 0) left top / 1rem 1rem repeat-x; }
.ck-paper__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-bottom: .8rem; border-bottom: 1px dashed rgba(16, 21, 29, .22); }
.ck-paper__head strong { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.ck-paper__head span { padding: .18rem .55rem; border-radius: .4rem; background: #eaf3ff; color: #1264cf; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ck-paper__img { position: relative; margin-top: .9rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .7rem; background: #e9eef5; }
.ck-paper__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ck-paper__img .ck-thumb__empty { color: #8a96a6; }
.ck-paper__name { margin: .8rem 0 0; font-size: .86rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.ck-paper__sub { margin: .15rem 0 0; color: rgba(16, 21, 29, .55); font-size: .7rem; line-height: 1.4; }
.ck-lines { margin: .9rem 0 0; padding: 0; list-style: none; border-top: 1px dashed rgba(16, 21, 29, .22); }
.ck-line { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ck-curve), opacity .35s ease; }
.ck-line.is-in { grid-template-rows: 1fr; opacity: 1; }
.ck-line > div { min-height: 0; overflow: hidden; }
.ck-line__row { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .62rem 0 0; font-size: .8rem; }
.ck-line__row span small { display: block; margin-top: .05rem; color: rgba(16, 21, 29, .5); font-size: .66rem; }
.ck-line__row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-line--minus .ck-line__row b { color: var(--ck-ok); }
.ck-line--plan .ck-line__row b { color: #1264cf; }
.ck-total { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed rgba(16, 21, 29, .22); }
.ck-total > span { font-size: .85rem; font-weight: 600; }
.ck-total strong { font-size: 1.3rem; font-weight: 800; color: #1264cf; letter-spacing: -.02em; }
.ck-paper__foot { display: flex; align-items: center; gap: .45rem; margin-top: .8rem; color: rgba(16, 21, 29, .55); font-size: .68rem; }
.ck-paper__foot svg { width: .9rem; height: .9rem; }
.ck-drum { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; white-space: pre; }
.ck-digit { display: inline-block; height: 1.18em; overflow: hidden; line-height: 1.18em; vertical-align: bottom; }
.ck-digit > span { display: block; transition: transform .7s var(--ck-bounce); }
.ck-digit.is-hidden, .ck-sep.is-hidden { display: none; }
.ck-digit { width: .64em; text-align: center; }
.ck-digit i { display: block; height: 1.18em; font-style: normal; text-align: center; }
.ck-drum.is-still .ck-digit > span { transition: none; }

@keyframes ck-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ck-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .ck-grid { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 5rem; }
  .ck-aside { position: static; order: -1; }
  .ck-summary-toggle { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 10px 26px -18px rgba(10, 20, 36, .5); font-size: 1.05rem; font-weight: 700; }
  .ck-summary-toggle > span { display: inline-flex; align-items: center; gap: .6rem; color: var(--ck-brand); font-size: .95rem; }
  .ck-summary-toggle svg { width: 1rem; height: 1rem; color: var(--ink-soft); transition: transform .3s var(--ck-curve); }
  .ck-aside.is-open .ck-summary-toggle svg { transform: rotate(180deg); }
  .ck-receipt { display: none; }
  .ck-aside.is-open .ck-receipt { display: block; }
}
@media (max-width: 640px) {
  .ck[data-mode="cart"] { place-items: end center; padding: 0; }
  .ck-cart { width: 100%; max-height: 94dvh; border-radius: 1.2rem 1.2rem 0 0; animation-name: ck-sheet; }
  .ck-item { grid-template-columns: 1fr; margin: 0 1rem; }
  .ck-item__foot { flex-direction: column; align-items: stretch; }
  .ck-qty { max-width: none; }
  .ck-qty-note { text-align: left; }
  .ck-cart__foot { flex-direction: column; align-items: stretch; padding: 1rem 1rem 1.2rem; }
  .ck-cart__foot .ck-btn { width: 100%; }
  .ck-sub { display: flex; align-items: baseline; justify-content: space-between; }
  .ck-card { padding: 1.3rem 1.1rem; }
  .ck-plans, .ck-methods { grid-template-columns: 1fr; }
  .ck-actions { flex-direction: column-reverse; align-items: stretch; }
  .ck-actions .ck-btn { width: 100%; }
  .ck-steps { margin-top: 1.1rem; }
  .ck-step { width: 6.6rem; }
}
@keyframes ck-sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ck, .ck * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- Tema escuro ---------------------------------------------------------------------------------------------------- */
html[data-theme="dark"] .ck[data-mode="cart"] { background: rgba(4, 6, 10, .66); }
html[data-theme="dark"] .ck-cart { background: #1b1d23; border-color: #2c3039; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .ck-item, html[data-theme="dark"] .ck-note, html[data-theme="dark"] .ck-method { background: #20232a; border-color: #2c3039; }
html[data-theme="dark"] .ck[data-mode="flow"] { background: #121419; }
html[data-theme="dark"] .ck-card, html[data-theme="dark"] .ck-summary-toggle { background: #1b1d23; border-color: #2c3039; }
html[data-theme="dark"] .ck-plan, html[data-theme="dark"] .ck-tile { background: #20232a; border-color: #343944; }
html[data-theme="dark"] .ck-plan[aria-checked="true"], html[data-theme="dark"] .ck-tile[aria-checked="true"] { background: rgba(22, 119, 244, .14); border-color: var(--ck-brand); }
html[data-theme="dark"] .ck-tile:disabled { background: #1a1c22; }
html[data-theme="dark"] .ck-qty output { background: #15171c; border-color: #343944; }
html[data-theme="dark"] .ck-receipt { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .6)); }
html[data-theme="dark"] .ck-btn--soft { background: #2b2f38; color: #e9ebef; }
html[data-theme="dark"] .ck-btn--soft:hover { background: #343944; }
.ck-tile__icon--pix { width: auto; height: auto; margin-bottom: .35rem; background: none; }
.ck-tile__icon--pix img { display: block; width: min(7.6rem, 100%); height: auto; }
.ck-tile__brands { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: .55rem; }
.ck-tile__brands img { display: block; width: 2.6rem; height: auto; }

/* logos das marcas das IAs: aparecem inteiras, sem corte, num fundo claro */
.ck-logo { background: #fff; }
.ck-logo img { object-fit: contain; padding: .45rem; }

/* ---- Cartão de crédito (formulário embaixo das formas de pagamento) ------------------------------------------------ */
.cc-form { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; padding: 0 1.3rem 1.3rem; }
.cc-form[hidden] { display: none; }
.cc-field { display: grid; gap: .3rem; min-width: 0; }
.cc-field--wide { grid-column: 1 / -1; }
.cc-field > span { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.cc-field input { width: 100%; min-height: 2.9rem; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: .7rem; background: var(--paper); color: inherit; font: inherit; font-size: 1rem; }
.cc-field input:focus { outline: 2px solid var(--ck-brand); outline-offset: 1px; border-color: var(--ck-brand); }
.cc-field input.is-invalid { border-color: #d64545; outline-color: #d64545; }
.cc-note { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.cc-note i { font-style: normal; margin-right: .35rem; }
.cc-error { grid-column: 1 / -1; margin: 0; padding: .65rem .85rem; border-radius: .7rem; background: rgba(214, 69, 69, .12); color: #c13a3a; font-size: .86rem; font-weight: 600; }
.cc-error[hidden] { display: none; }
html[data-theme="dark"] .cc-field input { background: #15171c; border-color: #343944; }
html[data-theme="dark"] .cc-error { color: #ff8f8f; background: rgba(214, 69, 69, .18); }

/* Pop-up "Processando pagamento" do cartão: spinner azul grande */
.payment-dialog__spinner { display: flex; justify-content: center; margin: 1.4rem 0 .4rem; }
.repo-spin.repo-spin--lg { width: 2.8rem; height: 2.8rem; margin: 0; border-width: 4px; }

/* ---- Serviço de redes sociais (dist/smm-buyer.js): regra na página do produto, link no pagamento, andamento na compra ---------------- */
.smm-rule { margin: .7rem 0 0; padding: .7rem .85rem; border-radius: .7rem; background: var(--mist, #f3f4f6); color: var(--ink-soft, #5f6671); font-size: .78rem; line-height: 1.5; }
.smm-rule b { color: var(--ink, #30343b); }
.ck-smm { display: grid; gap: .55rem; margin: 1.1rem 0 0; padding: 1rem 1.1rem; border-radius: .8rem; background: var(--mist, #f3f4f6); }
.ck-smm label.ck-smm__label { color: var(--ink, #30343b); font-size: .8rem; font-weight: 700; }
.ck-smm input[type="text"] { width: 100%; min-height: 2.6rem; padding: .55rem .8rem; border: 1px solid var(--line, #d9dce1); border-radius: .6rem; background: #fff; color: var(--ink, #30343b); font: inherit; font-size: .9rem; box-sizing: border-box; }
.ck-smm__hint { margin: 0; color: var(--muted, #6b7280); font-size: .74rem; line-height: 1.45; }
.ck-smm__check { display: grid; grid-template-columns: 1.1rem 1fr; gap: .6rem; align-items: start; color: var(--ink-soft, #5f6671); font-size: .78rem; line-height: 1.5; cursor: pointer; }
.ck-smm__check input { width: 1.05rem; height: 1.05rem; margin: .15rem 0 0; }
.ck-smm__error { margin: 0; color: #b42318; font-size: .78rem; font-weight: 600; }
.smm-status { display: grid; gap: .6rem; }
.smm-status h3 { margin: 0; }
.smm-status p { margin: 0; color: var(--ink-soft, #5f6671); font-size: .92rem; line-height: 1.5; }
.smm-status__pill { display: inline-block; justify-self: start; padding: .25rem .7rem; border-radius: 999px; background: var(--mist, #f3f4f6); color: var(--ink, #30343b); font-size: .8rem; font-weight: 700; }
.smm-status__pill.is-ok { background: #e7f6ec; color: #17653a; }
.smm-status__pill.is-bad { background: #fdecea; color: #b42318; }
.smm-status form { display: grid; gap: .5rem; }
.smm-status input[type="text"] { width: 100%; min-height: 2.6rem; padding: .55rem .8rem; border: 1px solid var(--line, #d9dce1); border-radius: .6rem; font: inherit; box-sizing: border-box; }
.smm-status__error { color: #b42318; font-size: .85rem; font-weight: 600; }
html[data-theme="dark"] .smm-rule, html[data-theme="dark"] .ck-smm { background: #20232a; color: #c8ccd4; }
html[data-theme="dark"] .smm-rule b, html[data-theme="dark"] .ck-smm label.ck-smm__label, html[data-theme="dark"] .ck-smm__check { color: #e6e8ec; }
html[data-theme="dark"] .ck-smm input[type="text"], html[data-theme="dark"] .smm-status input[type="text"] { background: #14161b; border-color: #343944; color: #e6e8ec; }
html[data-theme="dark"] .ck-smm__error, html[data-theme="dark"] .smm-status__error { color: #ff8f85; }
html[data-theme="dark"] .smm-status p { color: #c8ccd4; }
html[data-theme="dark"] .smm-status__pill { background: #2a2e37; color: #e6e8ec; }
html[data-theme="dark"] .smm-status__pill.is-ok { background: #123421; color: #7fe0a3; }
html[data-theme="dark"] .smm-status__pill.is-bad { background: #3a1814; color: #ff8f85; }

/* Serviço de redes sociais: comentários, usuário, aviso de perfil público e resumo do pedido (etapa d) */
.ck-smm textarea, .smm-status textarea { width: 100%; min-height: 7.5rem; padding: .6rem .8rem; border: 1px solid var(--line, #d9dce1); border-radius: .6rem; background: #fff; color: var(--ink, #30343b); font: inherit; font-size: .9rem; line-height: 1.45; box-sizing: border-box; resize: vertical; }
.ck-smm input[type="text"]:focus, .ck-smm textarea:focus { outline: 3px solid var(--brand-pale, #edf5ff); border-color: var(--brand, #1677f4); }
.ck-smm__count { float: right; font-weight: 700; color: var(--muted, #6b7280); }
.ck-smm__count.is-ok { color: #17653a; }
.ck-smm__count.is-bad { color: #b42318; }
.ck-smm__warn { margin: 0; padding: .65rem .8rem; border-radius: .6rem; background: #fff6e0; border: 1px solid #f1d9a0; color: #6b4a00; font-size: .78rem; line-height: 1.5; }
.ck-smm__summary { padding: .7rem .85rem; border-radius: .6rem; background: var(--paper, #fff); border: 1px solid var(--line, #d9dce1); color: var(--ink-soft, #5f6671); font-size: .78rem; line-height: 1.5; }
.ck-smm__summary strong { display: block; margin-bottom: .25rem; color: var(--ink, #30343b); font-size: .8rem; }
.ck-smm__summary ul { margin: 0; padding-left: 1.1rem; }
.ck-smm__summary li span { color: var(--ink, #30343b); font-weight: 600; overflow-wrap: anywhere; }
html[data-theme="dark"] .ck-smm textarea, html[data-theme="dark"] .smm-status textarea { background: #14161b; border-color: #343944; color: #e6e8ec; }
html[data-theme="dark"] .ck-smm__warn { background: #2e2713; border-color: #5a4a1c; color: #f0d58a; }
html[data-theme="dark"] .ck-smm__summary { background: #14161b; border-color: #343944; color: #c8ccd4; }
html[data-theme="dark"] .ck-smm__summary strong, html[data-theme="dark"] .ck-smm__summary li span { color: #e6e8ec; }
html[data-theme="dark"] .ck-smm__count.is-ok { color: #6fd39a; }
html[data-theme="dark"] .ck-smm__count.is-bad { color: #ff8f85; }
