/* =========================================================
   Bibi Electric — painel administrativo
   Usa as mesmas cores, fontes, botões e campos do style.css
   ========================================================= */

body.admin { background: var(--bg-alt); }
code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .875em;
  background: var(--brand-50); color: #1d3a85; padding: 1px 6px; border-radius: 6px;
  overflow-wrap: anywhere;
}

/* ---------- Telas de acesso (como a referência: logo + cartão central) ---------- */
.auth {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px; gap: 20px;
}
.auth__logo img { height: 78px; width: auto; }
.auth__card {
  width: 100%; max-width: 420px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 32px;
}
.auth__title { font-size: 1.375rem; font-weight: 800; margin-bottom: 15px; }
.auth__lead { color: var(--muted); margin-bottom: 22px; }
.auth__help { margin-top: 18px; text-align: center; }
.auth__help summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer;
  color: var(--brand); font-weight: 600; list-style: none;
}
.auth__help summary::-webkit-details-marker { display: none; }
.auth__help p { text-align: left; font-size: .9375rem; color: var(--text); margin-bottom: 10px; }
.auth__foot { max-width: 420px; text-align: center; font-size: .8125rem; color: var(--muted); }
.auth__back { color: var(--muted); font-size: .9375rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.auth__back:hover { color: var(--brand); }

/* ---------- Campos ---------- */
.admin-field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.admin-field__label { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.admin-field__label small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: .8125rem; }
.admin-field--check { align-self: end; }
.textarea { min-height: 110px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }
.form-erro { color: #a3201d; font-weight: 600; font-size: .9375rem; margin-bottom: 12px; }
.form-erro:empty { display: none; }

.admin-note {
  padding: 14px 16px; margin-bottom: 18px;
  background: var(--brand-50); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0;
  font-size: .875rem; color: var(--text);
}
.admin-note--warn { background: #fff6e5; border-left-color: #b26a00; color: #4d3100; }

/* ---------- Barra superior do painel ---------- */
.admin-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.admin-bar__logo img { height: 46px; width: auto; }
.admin-bar__title { font-weight: 700; color: var(--ink); padding-left: 16px; border-left: 1px solid var(--line); }
.admin-bar__actions { margin-left: auto; display: flex; gap: 10px; }
.admin-bar__sair { background: var(--ink); color: #fff; }
.admin-bar__sair:hover { background: #000; color: #fff; }


.admin-tabs { background: #fff; border-bottom: 1px solid var(--line); }
.admin-tabs__inner { display: flex; gap: 4px; overflow-x: auto; }
.admin-tab {
  min-height: 52px; padding: 0 18px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--muted); white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.admin-tab:hover { color: var(--brand); }
.admin-tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

.admin-main { padding-top: 32px; padding-bottom: 96px; }
.admin-main:focus { outline: none; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-head__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.admin-head__lead { color: var(--muted); margin-top: 4px; }
.admin-back {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0; margin-bottom: 4px;
  border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer;
}
.admin-search { max-width: 520px; }

/* ---------- Listas (produtos e slides) ---------- */
.admin-list { display: grid; gap: 12px; }
.admin-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.admin-item--inativo { opacity: .7; }
.admin-item__thumb {
  width: 88px; height: 88px; border-radius: 12px; overflow: hidden;
  background: var(--brand-50); display: flex; align-items: center; justify-content: center; color: #7f9fe6;
}
.admin-item__thumb--wide { width: 140px; height: 80px; }
.admin-item--slide { grid-template-columns: 140px 1fr auto; }
.admin-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item__thumb .icon { width: 30px; height: 30px; }
.admin-item__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; overflow-wrap: anywhere; }
.admin-item__meta { font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.admin-item__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: inherit; font-weight: 700;
}
.icon-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn--danger:hover:not(:disabled) { border-color: #c62828; color: #c62828; }
.admin-empty { padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; border: 2px dashed var(--line); border-radius: 16px; }

.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: .875rem; font-weight: 600; }
.switch input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }

.admin-danger { background: #fff; color: #a3201d; border-color: #f0c2c0; }
.admin-danger:hover { background: #a3201d; color: #fff; border-color: #a3201d; }

/* ---------- Editor ---------- */
.editor { max-width: 980px; }
.editor__section {
  margin: 0 0 20px; padding: 22px 24px 8px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.editor__section > legend {
  float: left; width: 100%; padding: 0; margin-bottom: 16px;
  font-size: 1.0625rem; font-weight: 700; color: var(--ink);
}
.editor__section > legend + * { clear: both; }
.editor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.editor__grid--3 { grid-template-columns: repeat(3, 1fr); }
.admin-field--wide { grid-column: 1 / -1; }
.editor__hint { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.editor__actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.editor__more { margin-bottom: 14px; }
.editor__more summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9375rem; min-height: 40px; display: inline-flex; align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 8px; }
.inline-form .admin-field { flex: 1; min-width: 220px; margin-bottom: 0; }
.editor__footer {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
  margin: 0 -16px; padding: 14px 16px;
  background: rgba(246, 248, 251, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.editor__footer .admin-danger { margin-right: auto; }

.file-btn { position: relative; overflow: hidden; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Disponível / Esgotado */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.segmented__opt { position: relative; cursor: pointer; }
.segmented__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented__opt span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; color: var(--text);
}
.segmented__opt span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #11683a; }
.segmented__opt--off span::before { background: #a3201d; }
.segmented__opt input:checked + span { border-color: #11683a; background: #e6f6ec; color: #11683a; }
.segmented__opt--off input:checked + span { border-color: #a3201d; background: #fdecec; color: #a3201d; }
.segmented__opt input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Fotos */
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.photo-list:empty::before {
  content: "Nenhuma foto. O site mostra um espaço reservado.";
  grid-column: 1 / -1; padding: 18px; text-align: center; font-size: .875rem; color: var(--muted);
  border: 2px dashed var(--line); border-radius: 12px;
}
.photo {
  display: grid; gap: 8px; padding: 8px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 14px;
}
.photo--main { border-color: var(--brand); }
.photo__img {
  aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--brand-50);
  display: flex; align-items: center; justify-content: center; font-size: .75rem; color: var(--muted); text-align: center; padding: 0;
}
.photo__img img { width: 100%; height: 100%; object-fit: contain; }
.photo__label { font-size: .75rem; font-weight: 700; color: var(--brand); min-height: 1.2em; overflow-wrap: anywhere; }
.photo__actions { display: flex; gap: 6px; }
.photo__actions .icon-btn { width: 40px; height: 40px; }

/* Linhas de cores e especificações */
.rows { display: grid; gap: 10px; margin-bottom: 14px; }
.rows:empty { display: none; }
.row {
  display: grid; gap: 10px; align-items: end;
  padding: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
}
.row--cor { grid-template-columns: minmax(0, 1.4fr) 64px minmax(0, 1fr) auto; }
.row--spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.row .admin-field { margin-bottom: 0; }
.row__actions { display: flex; gap: 6px; }
.row__actions .icon-btn { width: 44px; height: 48px; }
.color-input { width: 64px; height: 48px; padding: 4px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }

.price-preview {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
  margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); font-size: .9375rem;
}
.price-preview__label { font-weight: 700; color: var(--ink); }

/* Botões do slide */
.button-config { padding: 14px; margin-bottom: 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; }
.button-config__title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.button-config__title small { font-weight: 500; color: var(--muted); }
.button-config .admin-field:last-child { margin-bottom: 0; }

.slide-preview {
  position: relative; aspect-ratio: 32 / 15; max-height: 320px; width: 100%;
  margin-bottom: 14px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex; align-items: center; justify-content: center;
}
.slide-preview img { width: 100%; height: 100%; object-fit: cover; }
.slide-preview__empty { color: #c9d6f8; font-size: .9375rem; padding: 16px; text-align: center; }

/* ---------- Backup e dados ---------- */
.admin-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.admin-card > p { margin-bottom: 16px; color: var(--text); }
.admin-card--wide { grid-column: 1 / -1; }
.admin-card--danger { border-color: #f0c2c0; }
.admin-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
.admin-list-text { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }

/* ---------- Mensagens e diálogo ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg);
}
.toast--erro { background: #a3201d; }
.dialog {
  width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(6, 22, 61, .55); }
.dialog__form { padding: 26px; }
.dialog__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.dialog__text { color: var(--text); margin-bottom: 18px; white-space: pre-line; }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dialog--perigo #dialogo-ok { background: #a3201d; box-shadow: none; }
.dialog--perigo #dialogo-ok:hover { background: #7f1715; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .auth__card { padding: 24px 20px; }
  .auth__logo img { height: 64px; }
  .admin-bar__inner { min-height: 64px; gap: 10px; }
  .admin-bar__logo img { height: 40px; }
  .admin-bar__title { display: none; }
  .admin-main { padding-top: 24px; }
  .admin-head > .btn { width: 100%; }

  .admin-item, .admin-item--slide { grid-template-columns: 72px 1fr; }
  .admin-item__thumb { width: 72px; height: 72px; }
  .admin-item__thumb--wide { width: 72px; height: 72px; }
  .admin-item__actions { grid-column: 1 / -1; justify-content: flex-start; }

  .editor__section { padding: 18px 16px 4px; }
  .editor__grid, .editor__grid--3 { grid-template-columns: 1fr; }
  .row--cor { grid-template-columns: minmax(0, 1fr) 64px; }
  .row--cor .admin-field--estado { grid-column: 1 / -1; }
  .row--spec { grid-template-columns: 1fr; }
  .row__actions { grid-column: 1 / -1; }
  .editor__footer .btn { flex: 1 1 auto; }
  .editor__footer .admin-danger { order: 3; flex-basis: 100%; margin-right: 0; }

  .admin-cards { grid-template-columns: 1fr; }
}

/* Ajustes finais */
.admin-field.check { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.row--cor { grid-template-columns: minmax(0, 1.4fr) 88px minmax(0, 1fr) auto; }
@media (max-width: 760px) {
  .row--cor { grid-template-columns: minmax(0, 1fr) 88px; }
}

/* Avaliações */
.admin-card--inline { margin-bottom: 20px; }
.admin-card--inline .inline-form { margin-top: 0; }
.admin-card--inline .form-erro { margin: 10px 0 0; }
.star-input { display: flex; flex-wrap: wrap; gap: 8px; }
.star-input__opt { position: relative; cursor: pointer; }
.star-input__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input__opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; color: var(--text);
}
.star-input__opt input:checked + span { border-color: #c98a00; background: #fff6e0; color: #7a5300; }
.star-input__opt input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.admin-stars { color: #c98a00; letter-spacing: 1px; font-size: 1rem; }
.admin-item--review { grid-template-columns: 1fr auto; }
.admin-item__excerpt { margin-top: 6px; font-size: .9375rem; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .admin-item--review { grid-template-columns: 1fr; }
}

/* ---------- Dicas de tamanho recomendado ---------- */
.size-tip {
  margin-bottom: 14px; padding: 14px 16px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px;
  font-size: .875rem; color: var(--text);
}
.size-tip__title { color: var(--ink); margin-bottom: 6px; }
.size-tip ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }
.editor__hint--tight { margin: 0; font-size: .8125rem; }
.editor__subtitle { font-size: 1rem; font-weight: 700; margin: 8px 0 4px; }
.photo__dims { font-size: .75rem; color: var(--muted); }
.photo__dims--alerta { color: #8a5300; font-weight: 600; }

/* ---------- Ajuste de enquadramento ---------- */
.adjuster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 24px; margin-bottom: 14px; }
.adjuster__previews { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.adj-frame { margin: 0; display: grid; gap: 6px; }
.adj-frame figcaption { font-size: .75rem; color: var(--muted); }
.adj-frame__box {
  position: relative; overflow: hidden; border-radius: 12px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  display: flex; align-items: center; justify-content: center;
}
.adj-frame--card { width: 260px; max-width: 100%; }
.adj-frame--square { width: 180px; }
.adj-frame--desktop { flex: 1 1 300px; min-width: 0; }
.adj-frame--mobile { width: 120px; }
.adj-frame--dark .adj-frame__box { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border-color: var(--navy-2); }
.adj-frame--dark .adj-frame__empty { color: #c9d6f8; }
.adj-frame__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.adj-frame__empty { position: relative; z-index: 2; padding: 10px; font-size: .75rem; color: var(--muted); text-align: center; }
.adj-frame__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.adj-frame__overlay--desktop { background: linear-gradient(90deg, rgba(6, 22, 61, .92) 0%, rgba(6, 22, 61, .72) 42%, rgba(6, 22, 61, .2) 100%); }
.adj-frame__overlay--mobile { background: linear-gradient(180deg, rgba(6, 22, 61, .35) 0%, rgba(6, 22, 61, .82) 45%, rgba(6, 22, 61, .95) 100%); }
.adjuster__controls { display: grid; gap: 10px; align-content: start; }
.adjuster__controls .editor__hint { margin: 0; }
.adjuster__controls .btn { justify-self: start; }
.adj-range { display: grid; gap: 4px; }
.adj-range__label { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.adj-range__label output { font-weight: 600; text-transform: none; color: var(--brand); }
.adj-range input { width: 100%; min-height: 32px; accent-color: var(--brand); }
.adjuster input:disabled, .adjuster button:disabled { opacity: .45; cursor: not-allowed; }
.adjuster__info { grid-column: 1 / -1; font-size: .875rem; color: var(--text); }
.adjuster__info:empty { display: none; }
.adjuster__warn {
  grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px;
  background: #fff6e5; border: 1px solid #f1dcb0; color: #4d3100; font-size: .875rem;
}
.segmented--plain .segmented__opt span::before { display: none; }
.segmented--plain .segmented__opt input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.segmented--plain { margin-bottom: 0; }

@media (max-width: 760px) {
  .adjuster { grid-template-columns: 1fr; }
  .adj-frame--card { width: 100%; }
  .adj-frame--square { width: 60%; }
  .adj-frame--desktop { flex-basis: 100%; }
  .adj-frame--mobile { width: 40%; }
}

/* Campos nunca passam da largura da tela (textos longos nas opções) */
.editor__grid > *, .button-config { min-width: 0; }
.admin .select, .admin .input { max-width: 100%; min-width: 0; }

/* Tempo do carrossel */
.inline-form .admin-field--curto { flex: 0 1 260px; min-width: 150px; }

/* Migração / backup / login por e-mail */
.admin-steps { display: grid; gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.admin-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.admin-steps__hint { font-size: .875rem; color: var(--muted); }
.admin-card__status { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.admin-card__status:empty { display: none; }
.auth__help-msg { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.auth__help-msg:empty { display: none; }
.migracao-ok { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #e6f6ec; color: #11683a; font-size: .9375rem; }
.migracao-avisos { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #fff6e5; border: 1px solid #f1dcb0; color: #4d3100; font-size: .875rem; }
.migracao-avisos ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; margin-top: 6px; }

/* Botões longos dos passos de migração quebram linha em vez de estourar a tela */
.admin-steps .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
@media (max-width: 760px) {
  .admin-steps li { display: grid; }
  .admin-steps .btn { width: 100%; }
}

/* ---------- Cores (catálogo) e meios de pagamento ---------- */
.admin-head--sub { margin-top: 44px; }
.admin-head__title--sub { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

.hex-input { display: flex; align-items: center; gap: 10px; }
.hex-input .input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.hex-input__amostra {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(11, 18, 32, .18);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); background: #0755e9;
}

.cor-amostra {
  display: inline-block; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(11, 18, 32, .18); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.admin-item--cor { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.admin-item--pagamento { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.admin-item--pagamento.is-off .pay-icon { opacity: .45; filter: grayscale(1); }
.admin-item__cond { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; white-space: pre-line; overflow-wrap: anywhere; }

/* Escolha das cores no cadastro do produto */
.color-picks { display: grid; gap: 8px; margin-bottom: 4px; }
.color-picks:empty { display: none; }
.color-pick {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 200px); align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
}
.color-pick.is-on { background: #fff; border-color: var(--brand-100); }
.color-pick__check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; min-width: 0; }
.color-pick__check input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.color-pick__name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.color-pick__hex { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; color: var(--muted); }
.color-pick .select { width: 100%; }

@media (max-width: 640px) {
  .admin-item--cor, .admin-item--pagamento { grid-template-columns: auto 1fr; }
  .admin-item--cor .admin-item__actions, .admin-item--pagamento .admin-item__actions { grid-column: 1 / -1; }
  .color-pick { grid-template-columns: 1fr; }
}
