/*
 * MSuptech — Seletor de temas V1
 * Compartilhado pelos três temas aprovados. Não altera o fluxo de pedidos.
 */
body.theme-luxury-bronze-premium {
  --ts-surface: rgba(22, 17, 13, .94);
  --ts-border: rgba(197, 148, 91, .48);
  --ts-text: #f8f1e8;
  --ts-muted: #b9aa9c;
  --ts-accent: #d79a56;
  --ts-focus: rgba(215, 154, 86, .28);
}
body.theme-premium-light-contrast {
  --ts-surface: rgba(255, 253, 248, .96);
  --ts-border: rgba(178, 111, 51, .36);
  --ts-text: #34271e;
  --ts-muted: #75665a;
  --ts-accent: #ad672c;
  --ts-focus: rgba(173, 103, 44, .18);
}
body.theme-dark-gourmet-olive {
  --ts-surface: rgba(18, 22, 13, .96);
  --ts-border: rgba(178, 174, 71, .46);
  --ts-text: #f3f0e5;
  --ts-muted: #aaa791;
  --ts-accent: #b7b14d;
  --ts-focus: rgba(183, 177, 77, .22);
}

body.theme-luxury-bronze-premium .topbar,
body.theme-premium-light-contrast .topbar,
body.theme-dark-gourmet-olive .topbar {
  gap: 16px;
}

body.theme-luxury-bronze-premium .topbar-controls,
body.theme-premium-light-contrast .topbar-controls,
body.theme-dark-gourmet-olive .topbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

body.theme-luxury-bronze-premium .theme-switcher,
body.theme-premium-light-contrast .theme-switcher,
body.theme-dark-gourmet-olive .theme-switcher {
  display: grid;
  grid-template-columns: auto minmax(174px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 250px;
  padding: 6px 7px 6px 10px;
  border: 1px solid var(--ts-border);
  border-radius: 14px;
  color: var(--ts-text);
  background: var(--ts-surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
}

body.theme-luxury-bronze-premium .theme-switcher__copy,
body.theme-premium-light-contrast .theme-switcher__copy,
body.theme-dark-gourmet-olive .theme-switcher__copy {
  display: grid;
  gap: 1px;
  white-space: nowrap;
}

body.theme-luxury-bronze-premium .theme-switcher__label,
body.theme-premium-light-contrast .theme-switcher__label,
body.theme-dark-gourmet-olive .theme-switcher__label {
  color: var(--ts-text);
  font: 800 10px/1.1 Inter, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.theme-luxury-bronze-premium .theme-switcher__hint,
body.theme-premium-light-contrast .theme-switcher__hint,
body.theme-dark-gourmet-olive .theme-switcher__hint {
  color: var(--ts-muted);
  font: 600 8px/1.15 Inter, Arial, sans-serif;
}

body.theme-luxury-bronze-premium .theme-switcher__select,
body.theme-premium-light-contrast .theme-switcher__select,
body.theme-dark-gourmet-olive .theme-switcher__select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--ts-border);
  border-radius: 10px;
  outline: 0;
  color: var(--ts-text);
  background-color: var(--ts-surface);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ts-accent) 50%),
    linear-gradient(135deg, var(--ts-accent) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) calc(50% - 2px),
    calc(100% - 10px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
  cursor: pointer;
  font: 800 12px/1 Inter, Arial, sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.theme-luxury-bronze-premium .theme-switcher__select:focus-visible,
body.theme-premium-light-contrast .theme-switcher__select:focus-visible,
body.theme-dark-gourmet-olive .theme-switcher__select:focus-visible {
  border-color: var(--ts-accent);
  box-shadow: 0 0 0 4px var(--ts-focus);
}

body.theme-luxury-bronze-premium .theme-switcher__select:hover,
body.theme-premium-light-contrast .theme-switcher__select:hover,
body.theme-dark-gourmet-olive .theme-switcher__select:hover {
  border-color: var(--ts-accent);
}

body.theme-luxury-bronze-premium .theme-switcher__select option,
body.theme-premium-light-contrast .theme-switcher__select option,
body.theme-dark-gourmet-olive .theme-switcher__select option {
  color: #17120f;
  background: #fffaf2;
}

/* Margem final padronizada solicitada após a validação do tema Olive. */
body.theme-luxury-bronze-premium .order-main,
body.theme-premium-light-contrast .order-main,
body.theme-dark-gourmet-olive .order-main {
  padding-left: 8px;
}

@media (max-width: 1080px) {
  body.theme-luxury-bronze-premium .topbar,
  body.theme-premium-light-contrast .topbar,
  body.theme-dark-gourmet-olive .topbar {
    flex-wrap: wrap;
    padding-block: 8px;
  }

  body.theme-luxury-bronze-premium .topbar-controls,
  body.theme-premium-light-contrast .topbar-controls,
  body.theme-dark-gourmet-olive .topbar-controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  body.theme-luxury-bronze-premium .theme-switcher,
  body.theme-premium-light-contrast .theme-switcher,
  body.theme-dark-gourmet-olive .theme-switcher {
    flex: 1 1 360px;
  }
}

@media (max-width: 700px) {
  body.theme-luxury-bronze-premium .topbar-controls,
  body.theme-premium-light-contrast .topbar-controls,
  body.theme-dark-gourmet-olive .topbar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  body.theme-luxury-bronze-premium .theme-switcher,
  body.theme-premium-light-contrast .theme-switcher,
  body.theme-dark-gourmet-olive .theme-switcher {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 5px;
    border-radius: 12px;
  }

  body.theme-luxury-bronze-premium .theme-switcher__copy,
  body.theme-premium-light-contrast .theme-switcher__copy,
  body.theme-dark-gourmet-olive .theme-switcher__copy {
    display: none;
  }

  body.theme-luxury-bronze-premium .theme-switcher__select,
  body.theme-premium-light-contrast .theme-switcher__select,
  body.theme-dark-gourmet-olive .theme-switcher__select {
    min-height: 40px;
    font-size: 11px;
  }

  body.theme-luxury-bronze-premium .order-main,
  body.theme-premium-light-contrast .order-main,
  body.theme-dark-gourmet-olive .order-main {
    padding-left: 0;
  }
}
