/* Meli-Shop consent banner. Picks up the shop's design tokens when they exist and falls back to sensible values otherwise. */
.mc {
  --mc-bg: var(--surface, #fff);
  --mc-text: var(--text, #1a1511);
  --mc-muted: var(--muted, #6b6258);
  --mc-border: var(--border-strong, #cdbd9a);
  --mc-accent: var(--accent, #f2b230);
  --mc-on-accent: var(--on-accent, #1a1511);
  position: fixed;
  z-index: 100000;
  left: 16px;
  bottom: 16px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--mc-bg);
  color: var(--mc-text);
  border: 1px solid var(--mc-border);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  padding: 20px 20px 18px;
  font: 400 .92rem/1.5 var(--font-body, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}
.mc * { box-sizing: border-box; }
.mc-title { margin: 0 0 8px; font: 700 1.1rem/1.3 var(--font-head, inherit); color: var(--mc-text); }
.mc-text { margin: 0 0 8px; color: var(--mc-muted); }
.mc-link { color: var(--mc-text); font-weight: 600; text-underline-offset: 3px; }
.mc-actions { display: grid; gap: 8px; margin-top: 14px; grid-template-columns: 1fr 1fr; }
.mc-actions .mc-settings { grid-column: 1 / -1; }
.mc-btn {
  appearance: none;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--mc-text);
  font: 700 .92rem/1 var(--font-body, inherit);
  cursor: pointer;
  text-align: center;
}
/* Accept and reject carry the same size, shape and contrast on purpose. */
.mc-accept { background: var(--mc-accent); color: var(--mc-on-accent); border-color: var(--mc-accent); }
.mc-reject { background: var(--mc-text); color: var(--mc-bg); border-color: var(--mc-text); }
.mc-settings { background: transparent; color: var(--mc-text); border-color: var(--mc-border); font-weight: 600; }
.mc-btn:hover { filter: brightness(.96); }
.mc-btn:focus-visible, .mc-switch:focus-visible, .mc-link:focus-visible { outline: 3px solid var(--mc-text); outline-offset: 2px; }
.mc-prefs .mc-actions { grid-template-columns: 1fr; }
.mc-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--mc-border); }
.mc-row:first-child { border-top: 0; padding-top: 0; }
.mc-row-text { display: grid; gap: 2px; cursor: pointer; }
.mc-row-text small { color: var(--mc-muted); font-size: .8rem; line-height: 1.4; }
.mc-switch {
  appearance: none;
  flex: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--mc-border);
  position: relative;
  cursor: pointer;
  transition: background .2s;
  margin: 0;
}
.mc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mc-switch:checked { background: var(--mc-text); }
.mc-switch:checked::after { transform: translateX(20px); }
.mc-switch:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) {
  .mc { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 20px 20px 0 0; max-height: 86vh; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
/* the floating chat buttons would sit on top of the sheet */
.mc-open .float-stack { display: none !important; }
@media (prefers-reduced-motion: reduce) { .mc-switch, .mc-switch::after { transition: none; } }
