/* Painel do checkout multi-loja. Sem biblioteca: CSS simples, claro, denso onde precisa (lista de lojas). */
:root { --bg: #f5f6f8; --card: #fff; --ink: #111827; --muted: #6b7280; --line: #e5e7eb; --line2: #d1d5db; --pri: #2563eb; --pri-d: #1d4ed8; --pri-bg: #eff6ff;
  --ok: #047857; --ok-bg: #ecfdf5; --warn: #b45309; --warn-bg: #fffbeb; --err: #b91c1c; --err-bg: #fef2f2; --r: 10px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--pri); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; } h2 { font-size: 16px; margin: 0 0 10px; } h3 { font-size: 14px; margin: 0 0 6px; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: #f3f4f6; padding: 1px 6px; border-radius: 5px; word-break: break-all; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; } .wrap.wide { width: min(1500px, 100% - 32px); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.logo { font-weight: 700; color: var(--ink); } .logo span { font-weight: 400; color: var(--muted); } .logo:hover { text-decoration: none; }
.bar nav { display: flex; gap: 18px; align-items: center; } .bar nav a, .bar nav button.link { color: var(--ink); font-size: 14px; }
.bar nav a.on { color: var(--pri); font-weight: 600; } .bar nav form { margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--muted); }
main { padding: 22px 0 60px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--pri); color: #fff; border: 1px solid var(--pri); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--pri-d); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line2); font-weight: 500; } .btn.ghost:hover { background: #f9fafb; }
.btn.danger { background: #fff; color: var(--err); border-color: #fca5a5; } .btn.danger:hover { background: var(--err-bg); }
.btn.sm { padding: 5px 10px; font-size: 13px; } .btn[disabled] { opacity: .5; cursor: not-allowed; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.card.flush { padding: 0; }
.tbl-wrap { overflow-x: auto; }
@media (min-width: 900px) { .tbl-wrap { overflow: visible; } }
.flash { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid; }
.flash.ok { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; } .flash.err { background: var(--err-bg); border-color: #fecaca; color: var(--err); } .flash.warn { background: var(--warn-bg); border-color: #fde68a; color: #92400e; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef0f3; color: #374151; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.err { background: var(--err-bg); color: var(--err); } .badge.pri { background: var(--pri-bg); color: var(--pri); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; flex: none; } .dot.on { background: #10b981; } .dot.warn { background: #f59e0b; }

/* formulários */
.fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .fg .f { grid-column: span 2; } .fg .f.s { grid-column: span 1; }
@media (max-width: 700px) { .fg .f.s { grid-column: span 2; } }
.f { display: flex; flex-direction: column; gap: 4px; } .f label { font-weight: 600; font-size: 13px; } .f .hint { color: var(--muted); font-size: 12px; } .f .msg { color: var(--err); font-size: 12px; }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--err); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], select, textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--pri) 35%, transparent); border-color: var(--pri); }
input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; cursor: pointer; }
textarea { min-height: 70px; resize: vertical; } label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; } input[type=checkbox], input[type=radio] { accent-color: var(--pri); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 8px 0 40px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; } @media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* resumo e filtros da lista de lojas */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; } .stat b { display: block; font-size: 20px; line-height: 1.2; } .stat span { color: var(--muted); font-size: 12.5px; }
.stat.warn b { color: var(--warn); } .stat.err b { color: var(--err); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters .search { position: relative; flex: 1 1 280px; max-width: 460px; } .filters .search input { padding-left: 32px; } .filters .search::before { content: "⌕"; position: absolute; left: 11px; top: 6px; color: var(--muted); font-size: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { border: 1px solid var(--line2); background: #fff; color: var(--ink); border-radius: 99px; padding: 4px 11px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; } .chip:hover { text-decoration: none; background: #f9fafb; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; } .chip i { font-style: normal; opacity: .7; font-size: 12px; }
.filters select { width: auto; padding: 6px 8px; }
.bulk { display: none; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--pri-bg); border: 1px solid #bfdbfe; border-radius: var(--r); padding: 8px 12px; margin-bottom: 10px; } .bulk.show { display: flex; }
.bulk select, .bulk input[type=text] { width: auto; padding: 5px 8px; }

/* tabela */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { background: #f9fafb; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) { .tbl thead th { position: sticky; top: 52px; z-index: 5; } }
.tbl thead th:first-child { border-top-left-radius: var(--r); } .tbl thead th:last-child { border-top-right-radius: var(--r); }
.tbl thead th a { color: inherit; } .tbl thead th a.sorted { color: var(--ink); }
.tbl tbody tr:hover { background: #fafbfc; } .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; } .tbl .empty { text-align: center; color: var(--muted); padding: 36px; }
.tbl td.name { min-width: 240px; } .name .n { display: flex; align-items: center; gap: 8px; font-weight: 600; } .name .n a { color: var(--ink); } .name .d { color: var(--muted); font-size: 12.5px; margin-left: 17px; }
.tag { display: inline-block; font-size: 11px; background: #eef2ff; color: #4338ca; border-radius: 6px; padding: 0 6px; margin-left: 4px; font-weight: 500; }
.mini { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; } .mini .bar2 { flex: 1; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; min-width: 44px; } .mini .bar2 span { display: block; height: 100%; background: var(--pri); } .mini .bar2.full span { background: #10b981; }
.dense .tbl th, .dense .tbl td { padding: 4px 10px; font-size: 13px; } .dense .name .d { display: none; }
.menu { position: relative; display: inline-block; } .menu > summary { list-style: none; cursor: pointer; border: 1px solid transparent; border-radius: 6px; padding: 0 8px; font-size: 18px; line-height: 24px; color: var(--muted); } .menu > summary::-webkit-details-marker { display: none; } .menu > summary:hover, .menu[open] > summary { background: #f3f4f6; }
.menu-box { position: absolute; right: 0; top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 190px; padding: 4px; z-index: 30; }
.menu-box a, .menu-box button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; font: inherit; color: var(--ink); cursor: pointer; } .menu-box a:hover, .menu-box button:hover { background: #f3f4f6; text-decoration: none; } .menu-box form { margin: 0; } .menu-box .sep { height: 1px; background: var(--line); margin: 4px 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; } .pager .pg { display: flex; gap: 4px; } .pager .pg a, .pager .pg span { border: 1px solid var(--line2); border-radius: 6px; padding: 2px 9px; color: var(--ink); background: #fff; } .pager .pg span.on { background: var(--ink); color: #fff; border-color: var(--ink); } .pager .pg span.off { color: #9ca3af; }

/* loja: passo a passo */
.next { background: var(--pri-bg); border: 1px solid #bfdbfe; border-radius: var(--r); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; } .next .t { font-weight: 700; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; } .progress span { display: block; height: 100%; background: #10b981; }
.step { border-top: 1px solid var(--line); } .step > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 2px; cursor: pointer; } .step > summary::-webkit-details-marker { display: none; }
.step .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; border: 1.5px solid var(--line2); color: var(--muted); } .step.done .ic { background: #10b981; border-color: #10b981; color: #fff; } .step.next-step .ic { border-color: var(--pri); color: var(--pri); }
.step .ti { flex: 1; font-weight: 500; } .step .st { font-size: 12px; color: var(--muted); } .step.done .st { color: var(--ok); } .step.next-step .st { color: var(--pri); font-weight: 600; }
.step .body { padding: 0 2px 14px 32px; color: #374151; } .step .body ol { padding-left: 18px; margin: 6px 0 10px; } .step .body li { margin-bottom: 6px; }
.copy { display: inline-flex; align-items: center; gap: 6px; } .copy button { border: 1px solid var(--line2); background: #fff; border-radius: 6px; font-size: 12px; padding: 1px 8px; cursor: pointer; } .copy button.ok { color: var(--ok); border-color: #a7f3d0; }
dl.rules { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; } dl.rules dt { color: var(--muted); } dl.rules dd { margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; } .check-list li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); } .check-list li:first-child { border-top: 0; } .check-list .ic { color: var(--ok); font-weight: 700; } .check-list .ic.bad { color: var(--err); }
.login { max-width: 360px; margin: 14vh auto 0; }

/* editor de aparência */
.ed { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 16px; align-items: start; } @media (max-width: 1000px) { .ed { grid-template-columns: 1fr; } }
.ed-side { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; padding-right: 8px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; } .acc > summary { list-style: none; cursor: pointer; padding: 11px 14px; font-weight: 600; display: flex; justify-content: space-between; } .acc > summary::-webkit-details-marker { display: none; } .acc > summary::after { content: "▾"; color: var(--muted); } .acc[open] > summary::after { content: "▴"; } .acc .in { padding: 0 14px 14px; display: grid; gap: 12px; }
.colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .colors .c { display: flex; align-items: center; gap: 8px; font-size: 13px; } .colors .c input[type=text] { width: 76px; flex: none; padding: 4px 6px; font-family: ui-monospace, monospace; font-size: 12px; }
.colors .c span { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.2; }
.colors .c input[type=color] { flex: none; }
.pv { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; } .pv-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #f9fafb; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: #fff; } .seg button { border: 0; background: #fff; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); border-right: 1px solid var(--line2); } .seg button:last-child { border-right: 0; } .seg button.on { background: var(--ink); color: #fff; }
.pv-frame { background: #e5e7eb; padding: 12px; display: flex; justify-content: center; } .pv-frame iframe { border: 0; background: #fff; width: 100%; height: 760px; border-radius: 8px; transition: width .2s; box-shadow: 0 2px 10px rgba(0,0,0,.12); } .pv-frame.mobile iframe { width: 390px; }
.warn-box { background: var(--warn-bg); border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }

@media (max-width: 640px) {
  .logo span { display: none; } .bar nav { gap: 12px; font-size: 13px; } .bar nav a, .bar nav button.link { font-size: 13px; }
  main { padding-top: 14px; } h1 { font-size: 19px; } .card { padding: 14px; }
  .filters .search { flex-basis: 100%; max-width: none; }
  .tbl th, .tbl td { padding: 8px 8px; } .tbl td.name { min-width: 180px; }
  dl.rules { grid-template-columns: 96px 1fr; }
}
@media (max-width: 1000px) { .ed-side { position: static; max-height: none; overflow: visible; padding-right: 0; } .colors { grid-template-columns: 1fr; } .pv-frame iframe { height: 640px; } }
