:root {
  --red: #ea1d2c;
  --red-dark: #c4121f;
  --bg: #f7f7f7;
  --card: #ffffff;
  --text: #3e3e3e;
  --muted: #717171;
  --line: #ededed;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --font: "Nunito", system-ui, sans-serif;
  --header-h: 70px;
  --sticky-gap: 12px;
  --sticky-top: calc(var(--header-h) + var(--sticky-gap));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-mark {
  display: none;
}
.brand-text { display: none; }

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f5f5f5;
  color: #333;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.mobile-menu-btn svg { width: 22px; height: 22px; }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-backdrop[hidden] { display: none !important; }

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20001;
  width: min(320px, calc(100vw - 48px));
  height: 100%;
  background: #fff;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav-drawer[hidden] { display: none !important; }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-head strong { font-size: 1.05rem; }
.mobile-nav-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.mobile-nav-link {
  display: block;
  padding: 14px 18px;
  color: #333;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
}
.mobile-nav-link:hover,
.mobile-nav-link.is-active { color: var(--red); background: #fff5f5; }
.mobile-nav-link--cta { color: var(--red); }
.mobile-nav-link--btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.mobile-nav-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}
.mobile-nav-user {
  margin: 12px 18px 4px;
  font-weight: 700;
  color: #444;
}
.mobile-nav-logout { margin: 0; }
body.mobile-nav-open { overflow: hidden; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.main-nav a {
  color: #3f3e3e;
  font-weight: 400;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active {
  color: var(--red);
  font-weight: 600;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 11px 14px;
  min-width: 180px;
  max-width: 420px;
  margin-left: auto;
  position: relative;
}
.search-wrap {
  flex: 1;
  position: relative;
  max-width: 420px;
  margin-left: auto;
  min-width: 180px;
}
.search-wrap .search {
  margin-left: 0;
  max-width: none;
  width: 100%;
}
.search svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
}
.search input::placeholder { color: #9a9a9a; }
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-clear {
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  font-family: inherit;
}
.search-clear:hover { color: var(--red); }
.search-clear[hidden] { display: none !important; }

.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  border: 1px solid #eee;
  max-height: 320px;
  overflow-y: auto;
}
.search-suggest[hidden] { display: none !important; }
.search-suggest li button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3e3e3e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-suggest li button:hover,
.search-suggest li button.active {
  background: #fff5f5;
  color: var(--red);
}
.search-suggest .sg-emoji { font-size: 1.1rem; }
.search-suggest .sg-hint {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a9a9a;
}
.search-suggest .suggest-msg,
.addr-rua-suggest .suggest-msg {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.addr-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 200px;
}
.addr-geo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}
.addr-geo-btn:hover { background: #fff5f5; }
.addr-geo-btn svg { width: 20px; height: 20px; }
.addr-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #3f3e3e;
  min-width: 0;
  max-width: 160px;
}
.addr-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.addr-chevron {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3f3e3e;
  text-decoration: none !important;
  border-radius: 50%;
}
.icon-btn:hover { color: var(--red); background: #fff5f5; }
.icon-btn svg { width: 24px; height: 24px; }

.notif-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notif-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #3f3e3e;
  position: relative;
}
.notif-btn:hover,
.notif-menu.is-open .notif-btn {
  color: var(--red);
  background: #fff5f5;
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  max-height: min(70vh, 420px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  border: 1px solid #f0f0f0;
  z-index: 90;
}
.notif-dropdown[hidden] { display: none !important; }
.notif-dd-head {
  padding: 14px 16px 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0f0;
}
.notif-dd-list {
  overflow-y: auto;
  max-height: 360px;
}
.notif-dd-empty {
  padding: 24px 16px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}
.notif-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: inherit;
}
.notif-dd-item:hover { background: #fff8f8; }
.notif-dd-item.is-unread { background: #fff5f5; }
.notif-dd-item strong {
  display: block;
  font-size: 0.9rem;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.notif-dd-item span {
  display: block;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.35;
}
.notif-dd-item small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #999;
}

.notif-toast-stack {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 240;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}
.notif-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #f0d0d0;
  border-left: 4px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  animation: notifToastIn 0.28s ease;
}
.notif-toast.is-out {
  animation: notifToastOut 0.22s ease forwards;
}
.notif-toast-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff0f0;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-toast-icon svg {
  width: 16px;
  height: 16px;
}
.notif-toast-body {
  flex: 1;
  min-width: 0;
}
.notif-toast-body strong {
  display: block;
  font-size: 0.88rem;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.notif-toast-body span {
  display: block;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.35;
}
.notif-toast-close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.notif-toast-close:hover { color: #333; }
@keyframes notifToastIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes notifToastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(18px); }
}
@media (max-width: 720px) {
  .notif-toast-stack { top: 64px; right: 10px; left: 10px; width: auto; }
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.profile-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--red);
}
.profile-btn:hover {
  color: var(--red-dark, var(--red));
  background: #fff5f5;
}
.profile-menu.is-open .profile-btn {
  color: var(--red);
  background: #fff5f5;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 16px);
  max-height: min(78vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  border: 1px solid #f0f0f0;
  z-index: 120;
  padding: 4px 0 8px;
}
.profile-dropdown[hidden] { display: none !important; }

.profile-dd-hello {
  padding: 18px 20px 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
}

.profile-dd-notif {
  position: relative;
  margin: 4px 14px 10px;
  padding: 12px 28px 12px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #faf7f7;
  border: 1px solid #f0e4e4;
  border-radius: 10px;
}
.profile-dd-notif[hidden] { display: none !important; }
.profile-dd-notif-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  color: #9a9a9a;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.profile-dd-notif-close:hover { color: var(--text); }
.profile-dd-notif-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--red);
  margin-top: 2px;
}
.profile-dd-notif-icon svg { width: 26px; height: 26px; }
.profile-dd-notif-body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #2d2d2d;
  margin-bottom: 4px;
}
.profile-dd-notif-body p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}
.profile-dd-notif-action {
  border: none;
  background: none;
  padding: 0;
  color: var(--red);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}
.profile-dd-notif-action:hover { text-decoration: underline; }

.profile-dd-nav {
  display: flex;
  flex-direction: column;
  padding: 2px 0;
}
.profile-dd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
}
.profile-dd-item:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}
.profile-dd-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #6d6d6d;
}
.profile-dd-logout {
  margin: 0;
  display: block;
}

.logout-form { display: inline; }
.logout-link {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 2px 4px;
}
.logout-link:hover { color: var(--red); }

.user-chip { display: none; }
.link-btn {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}
.link-btn.danger { color: var(--red); }

.cart-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--red);
  min-width: 88px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.cart-summary svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.cart-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.cart-meta strong {
  font-size: 0.88rem;
  font-weight: 800;
}
.cart-meta small {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.95;
}

.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff5f5;
  color: var(--red);
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.page { max-width: 1120px; margin: 0 auto; padding: 20px 16px 80px; width: 100%; box-sizing: border-box; }
.page:has(.pd-page),
.page:has(.mp-page) {
  max-width: none;
  width: 100%;
  padding: 16px 24px 24px;
}

@media (max-width: 1100px) {
  .main-nav a:nth-child(n+4) { display: none; }
  .addr-btn { max-width: 120px; }
}

@media (max-width: 860px) {
  .mobile-menu-btn { display: inline-flex; }
  .main-nav { display: none; }
  .search { max-width: none; margin-left: 0; }
  .search-wrap {
    min-width: 0;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
    margin-left: 0;
    grid-area: search;
  }
  .addr-text { display: none; }
  .addr-btn,
  .addr-chevron { display: none !important; }
  .topbar-inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      "menu brand . actions"
      "search search search search";
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
  }
  .mobile-menu-btn { grid-area: menu; }
  .brand { grid-area: brand; }
  .top-actions {
    grid-area: actions;
    justify-self: end;
    gap: 8px;
    min-width: 0;
    overflow: visible;
  }
  .profile-dropdown,
  .notif-dropdown {
    position: fixed;
    top: 56px;
    right: 8px;
    left: auto;
    width: min(320px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }
  .brand-logo { height: 34px; }
  .page { padding-left: 14px; padding-right: 14px; }
  .loja-hero,
  .menu-cat-carousel-wrap,
  .loja-layout,
  .section.narrow {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 560px) {
  .cart-meta small { display: none; }
  .topbar-inner { gap: 6px; padding: 8px 12px; }
  .top-actions { gap: 4px; overflow: visible; }
  .top-actions .addr-group {
    display: inline-flex;
    max-width: none;
    flex-shrink: 0;
  }
  .addr-text,
  .addr-btn,
  .addr-chevron { display: none !important; }
  .addr-geo-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .addr-geo-btn svg { width: 22px; height: 22px; }
  .profile-dropdown,
  .notif-dropdown {
    top: 52px;
    right: 8px;
    width: min(320px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }
  .page { padding-left: 12px; padding-right: 12px; }
  .auth-box,
  .auth-box-wide,
  .auth-box-split,
  .section.narrow.auth-box-split {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .checkout-form,
  .auth-register-form {
    width: 100%;
    box-sizing: border-box;
  }
  .addr-geo-btn { flex-shrink: 0; }
  .cart-summary { padding: 8px 10px; }
  .icon-btn { width: 38px; height: 38px; }
  .prod-modal-scroll { padding: 16px 12px 8px !important; }
}

.flash {
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.flash.ok { background: #e8f5e9; color: #1b5e20; }
.flash.err { background: #ffebee; color: #b71c1c; }

.hero {
  background: linear-gradient(135deg, #ea1d2c 0%, #ff5b4a 55%, #ff8a65 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}
.hero p { margin: 0; opacity: 0.95; font-weight: 600; }

/* Carrossel de categorias (estilo iFood) */
.cat-section {
  margin-bottom: 28px;
}
.cat-title {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
  max-width: 640px;
}
.cat-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cat-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 0 0 auto;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #3e3e3e;
  padding: 4px;
  border-radius: 12px;
  transition: transform .15s ease, color .15s ease;
}
.cat-item:hover { transform: translateY(-2px); color: var(--red); }
.cat-item.active .cat-icon {
  box-shadow: 0 0 0 3px var(--red);
}
.cat-item.active .cat-label {
  color: var(--red);
  font-weight: 800;
}
.cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cat-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  max-width: 88px;
}
.cat-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  z-index: 2;
}
.cat-arrow:hover { border-color: var(--red); color: var(--red); }
.cat-arrow[hidden] { display: none !important; }
.cat-prev { margin-right: 4px; }
.cat-next { margin-left: 4px; }
.filter-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.filter-hint a { font-weight: 800; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 1.35rem; }
.count { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* Cards de loja estilo iFood (horizontal) */
.loja-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
.loja-card-wrap {
  position: relative;
  min-width: 0;
}
.loja-fav-form {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
}
.loja-fav-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #c4c4c4;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.loja-fav-btn:hover { color: var(--red); }
.loja-fav-btn.is-on { color: var(--red); background: #fff5f6; }
.loja-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.loja-title-row h1 { margin: 0; flex: 1 1 auto; min-width: 0; }
.loja-hero-fav-form { flex-shrink: 0; margin: 0; }
.loja-hero-fav-btn { box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.prod-card { position: relative; }
.prod-fav-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}
.prod-fav-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #c4c4c4;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.prod-fav-btn:hover,
.prod-fav-btn.is-on { color: var(--red); background: #fff5f6; }
.prod-loja-tag {
  margin: 0 0 4px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.menu-fav-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 12px 0;
}
.prod-link-loja {
  text-decoration: none !important;
  display: inline-block;
}
.fav-toast {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: min(92vw, 420px);
  margin: 0;
  transition: opacity .25s ease;
}
.fav-toast.is-hide { opacity: 0; }
.loja-card-wrap.is-outra-cidade .loja-card-meta::after {
  content: ' · Favorita';
  color: var(--red);
  font-weight: 700;
}
.loja-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none !important;
  color: inherit;
  min-width: 0;
  padding: 6px;
  border-radius: 12px;
  transition: background .15s ease;
}
.loja-card:hover { background: #fafafa; }
.loja-card-wrap.is-fechada .loja-card { position: relative; }
.loja-card-wrap.is-fechada .loja-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 244, 246, 0.72);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}
.loja-fechada-tag {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  pointer-events: none;
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
}
.fav-card.is-fechada { position: relative; }
.fav-card.is-fechada::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 244, 246, 0.72);
  pointer-events: none;
  z-index: 1;
}
.fav-card.is-fechada .loja-fechada-tag { z-index: 2; }
.loja-card-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f2f2;
}
.loja-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.loja-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--red);
  background: #fff5f5;
}
.loja-card-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
.loja-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.loja-card-title h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.loja-super {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.loja-card-meta,
.loja-card-fees {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loja-card-meta .star {
  color: #e7a74e;
  font-weight: 800;
}
.loja-card-meta .dot,
.loja-card-fees .dot {
  margin: 0 2px;
  opacity: 0.8;
}
.loja-card-fees .gratis {
  color: #50a773;
  font-weight: 700;
}

@media (max-width: 980px) {
  .loja-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
}
@media (max-width: 620px) {
  .loja-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* cards antigos (outras telas) */
.resto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.resto-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none !important;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.resto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.resto-cover {
  height: 120px;
  background: linear-gradient(120deg, #ffcdd2, #ffe0b2) center/cover no-repeat;
}
.resto-body { padding: 12px 14px 16px; position: relative; }
.resto-logo-wrap {
  position: absolute;
  top: -28px;
  left: 14px;
}
.resto-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: var(--shadow);
}
.resto-logo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--red);
  background: #fff5f5;
}
.resto-body h3 {
  margin: 28px 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}
.resto-meta, .resto-fees {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.star {
  color: #e67e22;
  font-weight: 800;
}

.alert {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.alert.err { border-left: 4px solid var(--red); }
.alert .hint { color: var(--muted); font-size: 0.9rem; }
.alert code {
  background: #f2f2f2;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

.empty {
  background: #fff;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.loja-hero {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.loja-cover {
  width: 100%;
  aspect-ratio: 3 / 1;
  height: auto;
  min-height: 120px;
  background-color: #f3f3f3;
  background-image: linear-gradient(120deg, #ff8a80, #ffab91);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.loja-info {
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: flex-start;
  position: relative;
}
.loja-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  margin-top: -40px;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.loja-logo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.loja-logo--empty img {
  width: 58%;
  height: auto;
  object-fit: contain;
}
.loja-info-main {
  flex: 1;
  min-width: 0;
}
.loja-info h1 { margin: 0 0 10px; font-size: 1.45rem; }
.loja-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.loja-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #444;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}
.loja-pill svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
}
.loja-info-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.loja-info-local {
  margin: 0;
  font-size: 0.9rem;
}
.loja-mais-info {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}
.loja-mais-info svg {
  width: 18px;
  height: 18px;
}
.loja-mais-info:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .loja-info {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 10px;
    align-items: start;
  }
  .loja-info-main {
    display: contents;
  }
  .loja-logo {
    grid-column: 1;
    grid-row: 1;
    margin-top: -40px;
  }
  .loja-title-row {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .loja-title-row h1 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
  }
  .loja-meta-pills {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 0;
  }
  .loja-info-footer {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

.loja-fees { margin: 4px 0 0; font-weight: 700; color: #555; font-size: 0.9rem; }
.muted { color: var(--muted); }

.modal-card--info {
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 18px 0 18px;
}
.modal-card--info .modal-head {
  padding: 0 18px 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.modal-info-body {
  padding: 0 18px 18px;
}
.horario-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.horario-box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #222;
}
.horario-box-head svg {
  width: 20px;
  height: 20px;
  color: var(--red);
}
.horario-box-head strong {
  font-size: 0.98rem;
}
.horario-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.horario-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #333;
}
.horario-row span:first-child { font-weight: 600; }
.horario-row span:last-child { color: #555; text-align: right; }
.horario-row.is-today {
  background: #fdf2f0;
}
.horario-row.is-today span:last-child {
  color: #333;
  font-weight: 600;
}
.loja-fechada-msg {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
  font-weight: 600;
}
.loja-fechada-hoje {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
}
.loja-fechada-pergunta {
  margin: 18px 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}
.loja-fechada-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.btn-secondary-outline {
  border: 1.5px solid #ddd;
  background: #fff;
  color: #333;
  font: inherit;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-secondary-outline:hover {
  border-color: #bbb;
  background: #fafafa;
}
.loja-fechada-actions .btn-primary {
  width: auto;
  min-width: 160px;
}
.horario-loading,
.horario-erro {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.horario-erro { color: var(--red); }

.cat-chips {
  display: none;
}

.menu-carousel-section {
  position: sticky;
  top: var(--header-h, 70px);
  z-index: 30;
  background: var(--bg, #f7f7f7);
  margin: 0 0 16px;
  padding: 8px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-cat-carousel-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 8px 6px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.menu-cat-carousel {
  gap: 8px;
  padding: 4px 6px 6px;
}
.menu-cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 0;
  background: transparent;
  color: #555;
  font-weight: 400;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
  border: none;
  transition: color .15s ease;
}
.menu-cat-chip:hover {
  background: transparent;
  color: var(--red);
}
.menu-cat-chip.active {
  background: transparent;
  color: var(--red);
  border: none;
  font-weight: 400;
}

.loja-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.loja-layout--single {
  grid-template-columns: 1fr;
}

.menu-sidebar {
  display: none !important;
}
.menu-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: #1a1a1a;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.menu-sidebar-toggle:hover { background: #fafafa; }
.menu-chevron {
  width: 20px;
  height: 20px;
  color: #666;
  transition: transform .2s ease;
}
.menu-sidebar.is-collapsed .menu-chevron {
  transform: rotate(-90deg);
}
.menu-sidebar-nav {
  overflow-y: auto;
  padding: 6px 0;
  flex: 1;
}
.menu-sidebar.is-collapsed .menu-sidebar-nav {
  display: none;
}
.menu-sidebar-link {
  display: block;
  padding: 10px 16px;
  color: #444;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  border-left: 3px solid transparent;
}
.menu-sidebar-link:hover {
  background: #fff5f5;
  color: var(--red);
}
.menu-sidebar-link.active {
  color: var(--red);
  background: #fff5f5;
  border-left-color: var(--red);
  font-weight: 800;
}

.loja-main { min-width: 0; }

.menu-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 0;
  box-shadow: var(--shadow);
  position: relative;
  top: auto;
  z-index: 1;
}
.menu-search-wrap--solo {
  position: sticky;
  top: var(--sticky-top);
  z-index: 25;
  margin-bottom: 16px;
}
.menu-search-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex-shrink: 0;
}
.menu-search-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 0.98rem;
  background: transparent;
  color: #1a1a1a;
}
.menu-search-wrap input::placeholder { color: #9a9a9a; }
.menu-search-clear {
  border: 0;
  background: #eee;
  color: #555;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.menu-search-empty {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.menu-cat { margin-bottom: 28px; scroll-margin-top: calc(var(--header-h, 70px) + 120px); }
.menu-cat h2 {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
  font-size: 1.15rem;
  font-weight: 800;
  color: #333;
  line-height: 1.25;
}

.loja-menu .prod-list,
.menu-cat .prod-list,
.prod-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.loja-menu .prod-card,
.menu-cat .prod-card,
.prod-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  box-shadow: var(--shadow);
  min-width: 0;
  width: auto;
  max-width: 100%;
  grid-column: auto;
  position: relative;
}
.loja-menu .prod-card[hidden],
.menu-cat .prod-card[hidden],
.prod-card[hidden],
.prod-card.is-search-hidden,
.menu-cat[hidden],
[data-cat-section][hidden] {
  display: none !important;
}
.prod-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 88px;
}
.prod-text h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #333;
  line-height: 1.25;
}
.prod-desc {
  margin: 0 0 6px;
  color: #8a8a8a;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.prod-price {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
}
.prod-price-value {
  color: #222;
  font-weight: 800;
}
.prod-img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  background: #ececec center/cover no-repeat;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod-img--empty {
  background: #e8e8e8;
}
.prod-img-fallback {
  width: 52%;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
.add-form {
  margin: auto 0 0 auto;
  display: flex;
  justify-content: flex-end;
}
.btn-add {
  background: #ffe8e0;
  border: none;
  color: var(--red);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-add:hover { background: #ffd9ce; }
.btn-add--ghost {
  display: inline-block;
  margin-top: auto;
  margin-left: auto;
  align-self: flex-end;
  pointer-events: none;
}
.prod-card {
  cursor: pointer;
}
.prod-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Modal produto (detalhe) */
.prod-modal-backdrop {
  z-index: 110;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.prod-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  width: min(920px, 100%);
  height: min(92vh, 720px);
  max-height: min(92vh, 720px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.prod-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
.prod-modal-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.prod-modal-media {
  background: #ececec center/cover no-repeat;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.prod-modal-media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
}
.prod-modal-fallback {
  width: 28%;
  opacity: .9;
  filter: brightness(0) invert(1);
}
.prod-modal-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.prod-modal-scroll {
  padding: 24px 10px 12px 24px;
  overflow-x: hidden;
  overflow-y: scroll; /* sempre reserva a trilha; aparece o thumb quando sobra conteudo */
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #ea1d2c #ececec;
}
.prod-modal-scroll::-webkit-scrollbar {
  width: 10px;
}
.prod-modal-scroll::-webkit-scrollbar-track {
  background: #ececec;
  border-radius: 999px;
  margin: 10px 2px;
}
.prod-modal-scroll::-webkit-scrollbar-thumb {
  background: #ea1d2c;
  border-radius: 999px;
  border: 2px solid #ececec;
  min-height: 40px;
}
.prod-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #c41624;
}
.prod-modal-scroll::-webkit-scrollbar-thumb:active {
  background: #a8121e;
}
.prod-modal-scroll h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #222;
  line-height: 1.3;
  padding-right: 36px;
}
.prod-modal-desc {
  margin: 0 0 12px;
  color: #777;
  font-size: 0.92rem;
  line-height: 1.45;
}
.prod-modal-price {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f7a3a;
}
.prod-modal-store {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 14px;
}
.prod-modal-store svg {
  width: 22px;
  height: 22px;
  color: #666;
  flex-shrink: 0;
  margin-top: 2px;
}
.prod-modal-store strong {
  display: block;
  font-size: 0.9rem;
  color: #333;
}
.prod-modal-store span {
  font-size: 0.8rem;
  color: #888;
}
.prod-modal-obs-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}
.prod-modal-obs-block {
  margin-top: 8px;
}
.prod-modal-obs-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.prod-modal-obs-head .prod-modal-obs-label {
  margin-bottom: 6px;
}
.prod-modal-obs-count {
  font-size: 0.78rem;
  color: #999;
  font-weight: 600;
}

/* Grupos Adicionais / Condimentos */
.prod-opcoes {
  margin: 4px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prod-opcao-grupo {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.prod-opcao-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f3f3f3;
}
.prod-opcao-head strong {
  display: block;
  font-size: 0.95rem;
  color: #222;
}
.prod-opcao-head small {
  display: block;
  margin-top: 2px;
  color: #888;
  font-size: 0.8rem;
}
.prod-opcao-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #3e3e3e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.prod-opcao-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2ecc71;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.prod-opcao-list {
  display: flex;
  flex-direction: column;
}
.prod-opcao-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.prod-opcao-item:hover {
  background: #fafafa;
}
.prod-opcao-item-text {
  flex: 1;
  min-width: 0;
  color: #444;
  font-size: 0.92rem;
  font-weight: 400;
}
.prod-opcao-item-price {
  flex: 0 0 auto;
  margin-left: auto;
  color: #666;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  padding-right: 6px;
}

.prod-opcao-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  position: relative;
  background: #fff;
}
.prod-opcao-radio.is-on {
  border-color: var(--red, #ea1d2c);
}
.prod-opcao-radio.is-on::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--red, #ea1d2c);
}
.prod-opcao-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--red, #ea1d2c);
  color: var(--red, #ea1d2c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.prod-opcao-plus.is-on {
  background: var(--red, #ea1d2c);
  color: #fff;
}
.prod-modal-add.is-disabled,
.prod-modal-add:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.prod-modal-obs {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 64px;
}
.prod-modal-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px 18px;
  border-top: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
}
.prod-modal-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 6px 8px;
  background: #fff;
}
.prod-modal-qty button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
}
.prod-modal-qty button:disabled {
  opacity: .35;
  cursor: default;
}
.prod-modal-qty span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 800;
}
.prod-modal-qtd-msg {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #666;
}
.prod-modal-add {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: none;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 10px;
  cursor: pointer;
}
.prod-modal-add:disabled {
  opacity: .7;
  cursor: wait;
}

/* Sacola drawer lateral (estilo iFood) */
.sacola-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.sacola-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sacola-drawer-backdrop[hidden] { display: none !important; }

.sacola-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
}
.sacola-drawer.is-open {
  transform: translateX(0);
}
.sacola-drawer[hidden] { display: none !important; }
.sacola-drawer.is-open[hidden] { display: flex !important; }

body.sacola-open {
  overflow: hidden;
}

body.cupom-open {
  overflow: hidden;
}

.sacola-empty {
  padding: 40px 12px;
  text-align: center;
  color: #666;
}
.sacola-empty p { margin: 0 0 8px; }

.sacola-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 12px 32px;
}
.sacola-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}
.sacola-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.sacola-head-top {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
}
.sacola-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.sacola-head-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
}
.sacola-head-title strong {
  display: block;
  font-size: 1.05rem;
  color: #222;
  line-height: 1.3;
}
.sacola-ver-cardapio {
  color: var(--red) !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
  margin-top: 4px;
}
.sacola-body {
  padding: 8px 18px 18px;
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.sacola-itens {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sacola-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.sacola-item-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.sacola-item-name {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #222;
  line-height: 1.35;
}
.sacola-item-desc,
.sacola-item-obs {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: #888;
  line-height: 1.35;
}
.sacola-item-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.sacola-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--red) !important;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none !important;
}
.inline-form { display: inline; }
.sacola-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.sacola-item-price {
  font-size: 0.95rem;
  color: #222;
}
.sacola-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2px 4px;
}
.sacola-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
}
.sacola-qty button:disabled {
  opacity: .35;
  cursor: default;
}
.sacola-qty span {
  min-width: 1.1rem;
  text-align: center;
  font-weight: 700;
}
.sacola-cupom {
  width: 100%;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px dashed #ddd;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
  font: inherit;
  opacity: 1;
  transition: border-color .15s, background .15s;
}
.sacola-cupom:hover {
  border-color: #ccc;
  background: #fff;
}
.sacola-cupom-icon {
  width: 28px;
  height: 28px;
  color: #999;
}
.sacola-cupom-icon svg { width: 100%; height: 100%; }
.sacola-cupom-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sacola-cupom-text strong { color: #333; font-size: 0.95rem; }
.sacola-cupom-text small { color: #999; font-size: 0.8rem; }
.sacola-cupom-arrow {
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 700;
}
.sacola-totais {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sacola-totais > div {
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 0.95rem;
}
.sacola-total-linha {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 1.05rem !important;
  color: #222 !important;
}
.sacola-desconto-linha {
  color: #2e7d32 !important;
}
.sacola-desconto-linha .js-sacola-desconto-valor {
  color: #2e7d32;
  font-weight: 700;
}
.sacola-desconto-linha small {
  font-weight: 400;
  color: #666;
}
.sacola-foot {
  padding: 14px 18px 18px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.sacola-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: var(--red, #ea1d2c);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.sacola-cta:hover { background: #d01020; }
.sacola-cta--disabled,
.sacola-cta.is-disabled {
  background: #ffb3ab;
  color: #fff !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}
.sacola-cta--disabled:hover,
.sacola-cta.is-disabled:hover {
  background: #ffb3ab;
}
.sacola-minimo-msg {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b42318;
}

/* Loading de navegação / CTA */
.ioo-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: ioo-spin 0.7s linear infinite;
}
.main-nav a.is-loading,
.loja-card.is-loading {
  opacity: 0.72;
  pointer-events: none;
}
.sacola-cta.is-loading {
  opacity: 0.92;
  pointer-events: none;
  cursor: wait;
}
.sacola-cta.is-loading .ioo-btn-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}
#sacolaDrawer.is-checkout-navigating .sacola-drawer-close,
#sacolaDrawer.is-checkout-navigating .js-sacola-close {
  pointer-events: none;
  opacity: 0.45;
}
.ioo-page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(3px);
  pointer-events: all;
}
.ioo-page-loading-overlay[hidden] {
  display: none !important;
}
.ioo-page-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 36px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.ioo-page-loading-spinner {
  display: block;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(234, 29, 44, 0.2);
  border-top-color: var(--red, #ea1d2c);
  border-radius: 50%;
  animation: ioo-spin 0.7s linear infinite;
}
.ioo-page-loading-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #444;
}
body.ioo-page-loading {
  overflow: hidden;
}
@keyframes ioo-spin {
  to { transform: rotate(360deg); }
}

/* Checkout - Finalize seu pedido */
.checkout-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}
.checkout-title {
  margin: 8px 0 20px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #222;
}
.cko-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 18px;
}
.cko-tab {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #777;
  padding: 10px 16px 12px;
  cursor: pointer;
  position: relative;
}
.cko-tab.is-active {
  color: var(--red);
}
.cko-tab.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
}
.cko-section {
  margin-bottom: 22px;
}
.cko-subtitle {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #333;
}
.cko-address {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid #f0f0f0;
}
.cko-address svg {
  width: 22px;
  height: 22px;
  color: #666;
  flex-shrink: 0;
}
.cko-address-text {
  flex: 1;
  min-width: 0;
}
.cko-address-text strong {
  display: block;
  font-size: 0.95rem;
  color: #222;
  line-height: 1.35;
}
.cko-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--red) !important;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.cko-entrega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cko-entrega-grid.is-somente-agendada {
  grid-template-columns: minmax(0, 1fr);
}
.cko-entrega-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
  min-width: 0;
  font: inherit;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.cko-entrega-card[hidden] {
  display: none !important;
}
.cko-entrega-aviso {
  margin: 0 0 10px;
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 600;
}
.cko-entrega-aviso[hidden] {
  display: none !important;
}
.cko-entrega-erro {
  margin: 8px 0 0;
  color: #ea1d2c;
  font-size: 0.86rem;
  font-weight: 600;
}
.cko-entrega-erro[hidden] {
  display: none !important;
}
.cko-entrega-card input { display: none; }
button.cko-entrega-card { appearance: none; }
.cko-entrega-card.is-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.cko-entrega-nome {
  font-weight: 800;
  color: #222;
  font-size: 0.92rem;
}
.cko-entrega-meta {
  color: #888;
  font-size: 0.8rem;
}
.cko-entrega-preco {
  margin-top: 6px;
  color: #222;
  font-size: 0.95rem;
}
.cko-entrega-card--agendada {
  cursor: default;
  gap: 10px;
}
.cko-entrega-card--agendada.is-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.cko-entrega-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cko-entrega-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cko-entrega-card-top .cko-entrega-preco {
  margin-top: 0;
  flex-shrink: 0;
}
.cko-btn-add-horario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1.5px dashed var(--red, #ea1d2c);
  border-radius: 10px;
  background: #fff5f5;
  color: var(--red, #ea1d2c);
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.cko-btn-add-horario:hover {
  background: #ffecec;
}
.cko-btn-add-horario.is-open {
  background: #fff;
  border-style: solid;
}
.cko-btn-add-horario__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red, #ea1d2c);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

/* Agendamento inline no checkout */
.agend-inline {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}
.agend-inline[hidden] {
  display: none !important;
}
.agend-inline-hint {
  margin: 0 0 12px;
  color: #888;
  font-size: 0.86rem;
}
.agend-inline-label {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #222;
}
.agend-datas {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}
.agend-data-card {
  min-width: 52px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  padding: 6px 8px;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.agend-data-card span {
  font-size: 0.72rem;
  color: #888;
  font-weight: 600;
}
.agend-data-card strong {
  font-size: 0.98rem;
  color: #222;
}
.agend-data-card.is-selected {
  border-color: var(--red, #ea1d2c);
  background: #fff5f5;
  box-shadow: 0 0 0 1px var(--red, #ea1d2c);
}
.agend-data-card.is-selected span,
.agend-data-card.is-selected strong {
  color: var(--red, #ea1d2c);
}
.agend-slots--inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.agend-slot-chip {
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  color: #222;
  text-align: center;
}
.agend-slot-chip.is-selected {
  border-color: var(--red, #ea1d2c);
  background: #fff5f5;
  color: var(--red, #ea1d2c);
  box-shadow: 0 0 0 1px var(--red, #ea1d2c);
}
.agend-slots-empty {
  margin: 8px 0 12px;
  color: #888;
  font-size: 0.88rem;
}
.agend-confirm {
  width: 100%;
  border: none;
  background: var(--red, #ea1d2c);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.agend-confirm:hover:not(:disabled) {
  background: #d01020;
}
.agend-confirm:disabled,
.agend-confirm.agend-confirm--disabled {
  background: #f0f0f0;
  color: #b0b0b0;
  cursor: not-allowed;
}

@media (min-width: 640px) {
  .agend-slots--inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .agend-slots--inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cko-pay-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cko-pay-panel[hidden] {
  display: none !important;
}
.cko-pay-card,
button.cko-pay-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
  font: inherit;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.cko-pay-card input { display: none; }
.cko-pay-card.is-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.cko-pay-card strong {
  display: block;
  color: #222;
  font-size: 0.95rem;
}
.cko-pay-card small {
  display: block;
  color: #888;
  font-size: 0.8rem;
  margin-top: 2px;
  line-height: 1.35;
}
.cko-pay-card--muted {
  cursor: default;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cko-pay-card.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}
.cko-pay-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.cko-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cko-pay-grid-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
}
.cko-pay-grid-item:hover { border-color: #ccc; }
.cko-pay-grid-item.is-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.cko-pay-grid-icon {
  width: 32px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.cko-pix-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: #32bcad;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.cko-pix-inline {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d7f3ef;
  border-radius: 10px;
  background: #f3fbfa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cko-pix-inline-text {
  margin: 0;
  color: #2a7a72;
  font-size: 0.9rem;
  font-weight: 600;
}
.cko-pix-title {
  margin: 0 0 12px;
  font-weight: 700;
  color: #333;
  font-size: 0.95rem;
}
.cko-pix-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  min-height: 200px;
  align-items: center;
}
.cko-pix-qr {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}
.cko-pix-copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.cko-pix-code {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  background: #fff;
}
.cko-pix-status {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
}
.cko-pix-erro {
  margin-top: 10px;
  color: #c62828;
  font-size: 0.88rem;
}
#cartaoErro .cko-link {
  display: inline;
  margin-left: 6px;
  white-space: nowrap;
}

/* Modal Pix */
.pix-backdrop {
  z-index: 21000;
}
.pix-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
  padding: 24px 22px 22px;
  text-align: center;
}
.pix-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.pix-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}
.pix-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #32bcad;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.pix-modal h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #222;
}
.pix-modal-sub {
  margin: 0 0 16px;
  color: #777;
  font-size: 0.9rem;
}
.pix-timer {
  margin: 0 0 16px;
  text-align: left;
}
.pix-timer-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #555;
}
.pix-timer-labels strong {
  font-variant-numeric: tabular-nums;
  color: #222;
  font-size: 1rem;
}
.pix-timer-track {
  height: 8px;
  border-radius: 999px;
  background: #ebebeb;
  overflow: hidden;
}
.pix-timer-bar {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #32bcad, #1fa892);
  transition: width .25s linear, background .2s;
}
.pix-timer.is-low .pix-timer-bar {
  background: linear-gradient(90deg, #f5a623, #ea1d2c);
}
.pix-timer.is-low .pix-timer-labels strong {
  color: #ea1d2c;
}
.pix-timer.is-expired .pix-timer-bar {
  width: 0 !important;
  background: #ccc;
}
.pix-timer.is-expired .pix-timer-labels strong {
  color: #999;
}
.pix-modal-qr {
  margin-bottom: 14px;
}
.pix-qr-loading {
  color: #888;
  font-size: 0.92rem;
  font-weight: 600;
}
.pix-regen-btn {
  width: 100%;
  margin-top: 8px;
}
.cko-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f3f3;
  color: #444;
  flex-shrink: 0;
}
.cko-pay-grid-icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cartao-modal {
  text-align: left;
  overflow-x: hidden;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 24px));
}
.cartao-modal .pix-modal-sub {
  text-align: left;
  word-wrap: break-word;
}
.cartao-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.cartao-form .cko-field {
  margin-bottom: 12px;
  min-width: 0;
}
.cartao-form .cko-field input,
.cartao-form .cko-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  color: #222;
}
.cartao-form .cko-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 36px;
  cursor: pointer;
}
.cartao-form .cko-field input:focus,
.cartao-form .cko-field select:focus {
  outline: 2px solid #ffcdd2;
  border-color: var(--red, #ea1d2c);
}
.cartao-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.cartao-form-row--mp {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
.mp-field-container {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  box-sizing: border-box;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.mp-field-container iframe {
  width: 100% !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  border: 0 !important;
  display: block;
}
.mp-card-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mp-card-brand-row input[type="text"] {
  flex: 1;
  min-width: 0;
}
.mp-card-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 72px;
  justify-content: flex-end;
}
.mp-card-brand__img {
  width: 36px;
  height: 24px;
  object-fit: contain;
}
.mp-card-brand__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}
.cko-cartao-mp-note {
  margin: -4px 0 10px;
  font-size: 0.82rem;
  color: #666;
}
.cartao-form-row .cko-field {
  margin-bottom: 12px;
  min-width: 0;
}
.cartao-form-row .cko-field span {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cartao-form-row .cko-field input {
  padding: 10px 8px;
  font-size: 0.9rem;
  text-align: center;
}
.cko-cartao-inline {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
}
.cko-cartao-inline-title {
  margin: 0 0 10px;
  font-weight: 800;
  color: #333;
  font-size: 0.95rem;
}
.cko-cartao-salvo-slot {
  display: contents;
}
.cko-cartao-salvo-slot--grid {
  display: contents;
}
.cko-cartao-salvo-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cko-cartao-salvo-item--grid {
  grid-column: span 1;
}
.cko-cartao-salvo-acoes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 4px 2px;
  font-size: 0.78rem;
}
.cko-cartao-acao {
  border: none;
  background: none;
  padding: 0;
  color: #666;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cko-cartao-acao:hover {
  color: var(--brand, #e53935);
}
.cko-cartao-acao-sep {
  color: #ccc;
  user-select: none;
}
.cko-cartao-salvo-main {
  flex: 1;
}
.cko-cartao-edit-resumo {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
}
.cko-cartao-edit-resumo p {
  margin: 0 0 4px;
  font-weight: 700;
  color: #333;
}
.cko-cartao-edit-resumo small {
  color: #666;
  line-height: 1.35;
}
.cko-input-readonly {
  background: #f5f5f5 !important;
  color: #333 !important;
  cursor: default;
}
.cko-pay-grid .cko-cartao-salvo.is-selected,
.cko-cartao-salvo.is-selected {
  border-color: var(--brand, #e53935);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.15);
}
.cko-cartao-salvo-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.cko-cartao-salvo-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cko-cartao-salvo-wrap[hidden],
.cko-cartao-inline[hidden],
.cko-pix-inline[hidden],
.cko-cartao-loading[hidden],
.cko-pay-card[hidden],
.cko-pay-site-item[hidden],
.cko-pay-grid-item[hidden] {
  display: none !important;
}
.cko-cartao-salvo,
.cko-cartao-novo {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.cko-cartao-https-aviso {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfe2ff;
  background: #eef5ff;
  color: #1a4f9c;
  font-size: 0.88rem;
  line-height: 1.45;
}
.cko-cartao-aprovado {
  border-color: #b7e4c7;
  background: #f0faf4;
}
.cko-cartao-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 22px 16px;
  border: 1px solid #f0d4d7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
  text-align: center;
}
.cko-cartao-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3d6da;
  border-top-color: #ea1d2c;
  border-radius: 50%;
  animation: cko-cartao-spin 0.75s linear infinite;
}
.cko-cartao-loading__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #222;
}
.cko-cartao-loading__sub {
  margin: 0;
  max-width: 280px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #666;
}
.checkout-layout.is-cartao-processando {
  pointer-events: none;
}
.checkout-layout.is-cartao-processando .cko-cartao-loading,
.checkout-layout.is-cartao-processando #btnFazerPedido {
  pointer-events: auto;
}
.cko-submit.cko-submit--loading {
  opacity: 0.92;
  cursor: wait;
}
.cko-submit__loading-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@keyframes cko-cartao-spin {
  to { transform: rotate(360deg); }
}
.cko-cartao-aprovado .cko-pix-inline-text {
  color: #1b7a3d;
  font-weight: 700;
}
.cko-cartao-wallet {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
}
.cko-cartao-wallet__title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #333;
}
.cko-cartao-wallet__lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.cko-btn-add-cartao {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--brand, #e53935);
  border-radius: 8px;
  background: #fff;
  color: var(--brand, #e53935);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: center;
}
.cko-btn-add-cartao:hover {
  background: #fff5f5;
}
.cko-cartao-salvo-cvv {
  display: none;
  margin: 12px 0 14px;
  padding: 14px;
  border: 1.5px solid var(--brand, #e53935);
  border-radius: 12px;
  background: #fff8f8;
}
.cko-cartao-salvo-cvv.is-open,
.cko-cartao-wallet.has-cvv .cko-cartao-salvo-cvv {
  display: block !important;
}
.cko-cartao-salvo-cvv[hidden]:not(.is-open) {
  display: none !important;
}
.cko-cartao-salvo-cvv .cko-field {
  max-width: 160px;
  margin: 0;
}
.cko-cartao-salvo-cvv .cko-field > span {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}
.cko-cartao-salvo-cvv__plain {
  display: block !important;
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 18px;
  letter-spacing: 0.2em;
  background: #fff;
}
.cko-cartao-salvo-cvv__hint {
  display: block;
  margin-top: 8px;
  color: #666;
  font-size: 0.82rem;
  line-height: 1.35;
}
.cko-cartao-flow {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
}
.checkout-page:has(.checkout-layout.is-cartao-expanded) {
  padding-top: 20px;
  padding-bottom: 48px;
}
.cko-cartao-screen {
  width: 100%;
  min-height: 420px;
  padding: 4px 0 32px;
  background: #fff;
  animation: ckoCartaoScreenIn 0.22s ease-out;
  box-sizing: border-box;
}
@keyframes ckoCartaoScreenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cko-cartao-screen[hidden] {
  display: none !important;
}
.checkout-layout.is-cartao-expanded {
  grid-template-columns: minmax(0, 1fr);
}
.checkout-layout.is-cartao-expanded .checkout-side {
  display: none;
}
.checkout-layout.is-cartao-expanded .cko-cartao-screen {
  max-width: 520px;
  margin: 20px auto 32px;
  padding: 20px 20px 28px;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.checkout-main.is-cartao-expanded {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.cko-cartao-screen-title {
  margin: 0 0 24px;
  padding: 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #222;
  text-align: center;
  line-height: 1.3;
}
.cko-cartao-screen-title--tipo {
  text-align: left;
  color: var(--brand, #ea1d2c);
  margin-bottom: 16px;
  padding: 0;
}
.cko-cartao-screen-form {
  width: 100%;
}
.cko-cartao-screen #cartaoTipoPicker,
.cko-cartao-screen .cko-cartao-screen-form {
  padding: 0 4px;
}
.cko-cartao-screen .cko-cartao-tipo-list {
  gap: 14px;
  max-width: none;
  margin: 0;
  padding: 0 4px;
}
.cko-cartao-screen .cko-cartao-tipo-opt {
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.cko-cartao-screen .cartao-form {
  max-width: none;
  margin: 0;
  padding: 0 4px;
}
.cko-cartao-screen .cko-cartao-flow-back {
  margin-bottom: 16px;
  padding: 4px 0 8px;
  font-size: 1.35rem;
}
.cko-cartao-screen .cko-cartao-mp-note {
  margin: 0 4px 14px;
}
.cko-cartao-screen .cko-pix-erro,
.cko-cartao-screen #cartaoFormErro {
  margin: 12px 4px 0;
  line-height: 1.45;
}
.cko-cartao-screen #btnSalvarCartao {
  margin-top: 18px;
  width: 100%;
}
@media (max-width: 639px) {
  .checkout-page:has(.checkout-layout.is-cartao-expanded) {
    padding-top: 16px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .checkout-layout.is-cartao-expanded .cko-cartao-screen {
    margin: 12px auto 24px;
    padding: 18px 16px 24px;
  }
}
@media (min-width: 640px) {
  .checkout-page:has(.checkout-layout.is-cartao-expanded) {
    padding-top: 32px;
  }
  .checkout-layout.is-cartao-expanded .cko-cartao-screen {
    margin-top: 24px;
    padding: 28px 28px 36px;
  }
}
.cko-cartao-flow[hidden] {
  display: none !important;
}
.cko-cartao-flow-back {
  border: none;
  background: none;
  padding: 0 0 8px;
  color: var(--brand, #e53935);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.cko-cartao-flow-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #333;
  text-align: center;
}
.cko-cartao-tipo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cko-cartao-tipo-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  text-align: left;
}
.cko-cartao-tipo-opt:hover:not(:disabled) {
  border-color: #ccc;
  background: #fefefe;
}
.cko-cartao-tipo-opt.is-soon,
.cko-cartao-tipo-opt:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cko-cartao-tipo-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f3f3;
  flex-shrink: 0;
}
.cko-cartao-ifood {
  display: flex;
  align-items: stretch;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.cko-cartao-ifood.is-selected {
  border-color: var(--brand, #e53935);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.12);
}
.cko-cartao-ifood__main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.cko-cartao-ifood__brand {
  width: 36px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.cko-cartao-ifood__brand--svg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cko-cartao-ifood__info {
  min-width: 0;
}
.cko-cartao-ifood__info strong {
  display: block;
  font-size: 0.92rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cko-cartao-ifood__info small {
  display: block;
  font-size: 0.82rem;
  color: #777;
}
.cko-cartao-ifood__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-left: 1px solid #f0f0f0;
}
.cko-cartao-ifood-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--brand, #e53935);
  cursor: pointer;
  border-radius: 6px;
}
.cko-cartao-ifood-icon:hover {
  background: #fff5f5;
}
.cko-field-hint--erro {
  color: var(--brand, #e53935);
  font-weight: 600;
}
.cko-modal-backdrop {
  z-index: 1200;
}
.cko-modal-card {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 24px 20px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.cko-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.cko-modal-card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #333;
}
.cko-modal-text {
  margin: 0 0 18px;
  color: #666;
  line-height: 1.45;
  font-size: 0.92rem;
}
.cko-modal-cancel {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
}
#pixInlineHint {
  display: none !important;
}
@media (max-width: 480px) {
  .cartao-form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .pix-modal {
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
  }
  .pix-backdrop {
    padding: 0;
    align-items: stretch;
  }
}
.cko-btn-outline {
  border: 1.5px solid var(--red);
  background: #fff;
  color: var(--red);
  font: inherit;
  font-weight: 800;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.cko-btn-outline:disabled {
  cursor: not-allowed;
  opacity: .7;
}

.cko-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
}
.cko-field input,
.cko-field textarea,
.cko-field select {
  font: inherit;
  font-weight: 400;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.cko-submit {
  width: 100%;
  border: none;
  background: var(--red, #ea1d2c);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 18px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
}
.cko-submit:hover:not(:disabled):not(.cko-submit--disabled) {
  background: #d01020;
}
.cko-submit:disabled,
.cko-submit.cko-submit--disabled {
  background: #ffb3ab;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}
.cko-submit:disabled:hover,
.cko-submit.cko-submit--disabled:hover {
  background: #ffb3ab;
}

.checkout-side {
  position: sticky;
  top: calc(var(--header-h, 72px) + 12px);
}
.cko-resumo {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.cko-resumo-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.cko-resumo-label {
  display: block;
  font-size: 0.8rem;
  color: #777;
}
.cko-resumo-head strong {
  display: block;
  font-size: 1rem;
  color: #222;
  line-height: 1.3;
}
.cko-resumo-itens {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cko-resumo-itens li {
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.cko-resumo-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  color: #222;
}
.cko-resumo-itens p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #888;
  line-height: 1.35;
}
.cko-resumo-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cko-resumo-cupom {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #ddd;
  border-radius: 10px;
  color: #666;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .15s, background .15s;
}
.cko-resumo-cupom:hover {
  border-color: #ccc;
  background: #fafafa;
}
.cko-cupom-ico {
  width: 22px;
  height: 22px;
  color: #999;
  flex-shrink: 0;
}
.cko-cupom-ico svg { width: 100%; height: 100%; }
.cko-resumo-cupom strong { display: block; color: #333; font-size: 0.9rem; }
.cko-resumo-cupom small { color: #999; font-size: 0.78rem; }
.cko-cupom-arrow {
  margin-left: auto;
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Modal CUPONS */
.cupom-backdrop {
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cupom-panel {
  width: min(420px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}
.cupom-panel-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.cupom-back {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--red, #ea1d2c);
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}
.cupom-back svg { width: 28px; height: 28px; }
.cupom-back:hover { background: #fff1f2; }
.cupom-panel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #3e3e3e;
}
.cupom-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #eee;
}
.cupom-code-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  color: #333;
  outline: none;
  background: #fff;
}
.cupom-code-input:focus {
  border-color: #bbb;
}
.cupom-code-input::placeholder { color: #b0b0b0; }
.cupom-add-btn {
  border: 0;
  background: transparent;
  color: #bdbdbd;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: not-allowed;
  padding: 8px 4px;
  white-space: nowrap;
}
.cupom-add-btn:not(:disabled) {
  color: var(--red, #ea1d2c);
  cursor: pointer;
}
.cupom-options {
  padding: 16px;
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: auto;
  flex-direction: column;
  gap: 10px;
}
.cupom-panel-footer {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid #eee;
  background: #fff;
}
.cupom-apply-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--red, #ea1d2c);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.cupom-apply-btn:hover {
  filter: brightness(0.96);
}
.cupom-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .15s, box-shadow .15s;
}
.cupom-option.is-selected {
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cupom-option.is-locked,
.cupom-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f7f7f7;
  box-shadow: none;
}
.cupom-option.is-locked .cupom-option-radio,
.cupom-option:disabled .cupom-option-radio {
  border-color: #ddd;
  background: #eee;
}
.cupom-option.is-locked .cupom-option-text small,
.cupom-option:disabled .cupom-option-text small {
  color: #c0392b;
}
.cupom-option-ico {
  width: 28px;
  height: 28px;
  color: #c8c8c8;
  flex-shrink: 0;
}
.cupom-option-ico--active { color: var(--red, #ea1d2c); }
.cupom-option-ico svg { width: 100%; height: 100%; }
.cupom-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cupom-option-text strong {
  color: #3e3e3e;
  font-size: 0.95rem;
  font-weight: 700;
}
.cupom-option-text small {
  color: #9a9a9a;
  font-size: 0.8rem;
}
.cupom-option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e0d8d0;
  background: #f7f3ee;
  flex-shrink: 0;
  position: relative;
}
.cupom-option.is-selected .cupom-option-radio {
  border-color: var(--red, #ea1d2c);
  background: #fff;
}
.cupom-option.is-selected .cupom-option-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--red, #ea1d2c);
}
.cupom-msg {
  margin: 0 16px 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff5f5;
  color: #c62828;
}
.cupom-msg.is-ok {
  background: #f1f8f4;
  color: #2e7d32;
}

@media (max-width: 480px) {
  .cupom-backdrop {
    padding: 0;
    align-items: stretch;
  }
  .cupom-panel {
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
  }
}
.cko-resumo-totais {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cko-resumo-totais > div {
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 0.92rem;
}
.cko-resumo-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 1.05rem !important;
  color: #222 !important;
}
.cko-resumo-desconto {
  color: #2e7d32 !important;
}
.cko-resumo-desconto .js-checkout-desconto-valor {
  color: #2e7d32;
  font-weight: 700;
}
.cko-resumo-desconto small {
  font-weight: 400;
  color: #666;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-side {
    position: static;
    order: -1;
  }
  .cko-entrega-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .prod-modal {
    height: min(94vh, 900px);
    max-height: min(94vh, 900px);
  }
  .prod-modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 200px minmax(0, 1fr);
    overflow: hidden;
  }
  .prod-modal-media {
    min-height: 180px;
    max-height: 200px;
    height: 200px;
    aspect-ratio: auto;
  }
  .prod-modal-side {
    min-height: 0;
    height: auto;
  }
  .prod-modal-scroll {
    padding: 16px 6px 8px 16px;
  }
  .prod-modal-footer { padding: 12px 14px 16px; }
}

.mini-cart {
  display: none !important;
}
.mini-cart h2 { margin: 0 0 12px; font-size: 1.1rem; }
.mini-cart ul { list-style: none; margin: 0; padding: 0; }
.mini-cart li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mini-total {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-weight: 800;
}

.btn-primary {
  background: var(--red);
  color: #fff !important;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-primary.block { width: 100%; }
.btn-ghost {
  background: #fff;
  border: 1px solid #ccc;
  color: #444;
  font-family: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.fab-cart {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--red);
  color: #fff !important;
  text-align: center;
  font-weight: 800;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px;
  border-radius: 10px;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(234, 29, 44, 0.35);
  z-index: 40;
  cursor: pointer;
  width: auto;
}
.fab-cart--visible { display: block; }

.section.narrow { max-width: 640px; margin: 0 auto; }
.section.narrow.auth-box-split { max-width: 880px; }
.section.narrow h1 { margin-top: 0; }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-item h3 { margin: 0 0 4px; font-size: 1rem; }
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
}
.qty-form button {
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.checkout-summary {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}
.checkout-summary-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 1.05rem;
}
.cart-footer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.auth-box .checkout-form input,
.auth-box .checkout-form select,
.auth-box .checkout-form textarea {
  font-weight: 400;
}

.auth-box { max-width: 420px; }
.auth-box .flash {
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
  box-sizing: border-box;
}
.auth-box-wide { max-width: 520px; }
.auth-box-split {
  max-width: 880px;
}
.auth-register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.auth-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.auth-col .auth-section-title {
  margin: 0 0 2px;
}
.auth-register-submit {
  margin-top: 4px;
}
.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}
.auth-row-2 label {
  min-width: 0;
}
.auth-senha-wrap {
  position: relative;
  display: block;
}
.auth-senha-wrap input {
  width: 100%;
  padding-right: 42px;
  box-sizing: border-box;
}
.auth-senha-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 6px;
  line-height: 0;
}
.auth-senha-toggle:hover {
  color: #e53935;
  background: #fef2f2;
}
.auth-senha-toggle:focus-visible {
  outline: 2px solid #e53935;
  outline-offset: 1px;
}
.auth-senha-regras {
  list-style: none;
  margin: -4px 0 10px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.auth-senha-regras li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.3;
}
.auth-senha-regras li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1.5px solid #9ca3af;
  border-radius: 50%;
  box-sizing: border-box;
}
.auth-senha-regras li.is-ok {
  color: #15803d;
}
.auth-senha-regras li.is-ok::before {
  border-color: #16a34a;
  background: #16a34a;
  box-shadow: inset 0 0 0 2px #fff;
}
.auth-senha-erro {
  margin: -6px 0 10px;
  font-size: 0.85rem;
  color: #dc2626;
}
.auth-register-submit.is-disabled,
.auth-register-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (max-width: 800px) {
  .auth-box-split {
    max-width: 520px;
  }
  .auth-split-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .auth-row-2 {
    grid-template-columns: 1fr;
  }
}
.auth-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 8px 0 4px;
}
.auth-section-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
}
.cpf-field-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.cpf-field-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}
.cpf-field-row .cpf-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cpf-input-label {
  display: block;
  margin: 0;
}
.cpf-input-label input,
.checkout-form .cpf-input-label input {
  width: 160px;
  max-width: 160px;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.cpf-input-label input:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}
.cpf-check-label,
.checkout-form label.cpf-check-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.cpf-check-label input[type="checkbox"],
.checkout-form .cpf-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #e53935;
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .cpf-field-row .cpf-controls {
    flex-wrap: wrap;
  }
  .cpf-input-label input {
    width: 140px;
  }
}

.success-page {
  padding-top: 28px;
  padding-bottom: 48px;
}
.success-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 0 auto;
}
.success-ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.18);
}
.success-ico svg {
  display: block;
}
.success-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #222;
  letter-spacing: -0.02em;
}
.success-order {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #444;
}
.success-order strong {
  color: #222;
}
.success-hint {
  margin: 0 0 24px;
  font-size: 0.95rem;
}
.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.success-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 48px;
  box-sizing: border-box;
  border-radius: 10px !important;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.success-actions .btn-ghost {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  color: #444 !important;
}
.success-actions .btn-ghost:hover {
  background: #eee;
  border-color: #ccc;
}
.success-actions .conta-btn-outline:hover {
  background: #fff5f5;
}
.center { text-align: center; }

.site-footer {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 4px 0; }
body:has(.pd-page) .site-footer {
  padding: 12px 16px 16px;
}

/* Busca */
.busca-page { padding-top: 4px; }
.busca-title {
  margin: 0 0 18px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a1a;
}
.busca-title span { color: var(--red); }
.busca-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.busca-tabs a {
  padding: 10px 2px 12px;
  color: #3e3e3e;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.busca-tabs a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.busca-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.busca-filters .chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #3e3e3e;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
}
.busca-filters .chip:hover,
.busca-filters .chip.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f5;
}
.busca-count {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Resultados por itens (agrupados por loja) */
.itens-grupos {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.item-grupo {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow);
}
.item-grupo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  margin-bottom: 14px;
}
.item-grupo-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #f2f2f2;
  flex-shrink: 0;
}
.item-grupo-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-grupo-logo span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--red);
  background: #fff5f5;
}
.item-grupo-info { min-width: 0; }
.item-grupo-info h3 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-grupo-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-grupo-info .star { color: #e7a74e; font-weight: 800; }
.item-grupo-info .dot { margin: 0 2px; }
.item-grupo-info .gratis { color: #50a773; }

.item-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.item-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2px 4px 8px;
  width: 100%;
  scrollbar-width: none;
}
.item-carousel::-webkit-scrollbar { display: none; }
.item-card {
  flex: 0 0 168px;
  width: 168px;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.item-card-img {
  width: 168px;
  height: 168px;
  border-radius: 12px;
  background: #f0f0f0 center/cover no-repeat;
  border: 1px solid #f0f0f0;
}
.item-card-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: #3e3e3e;
}
.item-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-size: 1.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  z-index: 2;
}
.item-arrow:hover { border-color: var(--red); color: var(--red); }
.item-arrow[hidden] { display: none !important; }
.item-prev { margin-right: 4px; }
.item-next { margin-left: 4px; }

@media (max-width: 620px) {
  .item-card,
  .item-card-img { width: 140px; }
  .item-card { flex-basis: 140px; }
  .item-card-img { height: 140px; }
}

/* Modal endereco */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none !important; }

/* Cupom acima da sacola (modal-backdrop genérico usa z-index 100) */
.modal-backdrop.cupom-backdrop {
  z-index: 1400;
}

body.cupom-open .sacola-drawer-backdrop {
  z-index: 110;
  pointer-events: none;
}

body.cupom-open .sacola-drawer {
  z-index: 115;
  pointer-events: none;
  filter: brightness(0.92);
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  padding: 20px 22px 24px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}
.modal-close {
  border: 0;
  background: #f2f2f2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  color: #555;
}
.addr-form label {
  display: block;
  margin-bottom: 12px;
}
.addr-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #555;
}
.addr-form input,
.addr-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.addr-form input:focus,
.addr-form select:focus {
  outline: 2px solid #ffcdd2;
  border-color: var(--red);
}
.addr-rua-field { position: relative; }
.addr-rua-wrap { position: relative; z-index: 1; }
.addr-rua-wrap input {
  width: 100%;
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
}
.addr-rua-suggest {
  top: calc(100% + 4px);
  z-index: 120;
  max-height: 260px;
  overflow-y: auto;
}
/* Evita overlay quebrado do antigo Google Places Autocomplete */
.pac-container {
  display: none !important;
}
.modal-card-map {
  max-width: 640px;
}
.user-map {
  width: 100%;
  height: 360px;
  min-height: 360px;
  border-radius: 12px;
  background: #e8e8e8;
  overflow: hidden;
  border: 1px solid #eee;
  position: relative;
  z-index: 0;
  cursor: crosshair;
}
#mapPickHint {
  margin: 0 0 8px;
}
.user-map .leaflet-container {
  width: 100%;
  height: 100%;
  z-index: 1;
  font: inherit;
}
.map-status {
  margin: 0 0 6px;
  font-weight: 700;
  color: #555;
  font-size: 0.92rem;
}
.map-address {
  margin: 0 0 10px;
  font-weight: 800;
  color: #1a1a1a;
  font-size: 0.98rem;
}
.map-modal-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.map-modal-meta-text {
  flex: 1;
  min-width: 0;
}
.map-modal-meta .modal-hint {
  margin: 2px 0;
}
.btn-confirm-loc {
  flex-shrink: 0;
  border: 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
}
.btn-confirm-loc:hover:not(:disabled) {
  background: var(--red-dark);
}
.btn-confirm-loc:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.modal-hint {
  margin: 4px 0 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.btn-primary {
  width: 100%;
  border: 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); }

.addr-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  max-height: min(42vh, 320px);
  overflow: auto;
}
.addr-pick-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid #e6e6e6;
  border-radius: 12px;
  cursor: pointer;
  background: #fafafa;
}
.addr-pick-item:has(input:checked) {
  border-color: var(--red);
  background: #fff5f5;
}
.addr-pick-item input {
  margin-top: 3px;
  accent-color: var(--red);
}
.addr-pick-item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
  line-height: 1.35;
  min-width: 0;
}
.addr-pick-item-text strong {
  font-weight: 700;
}
.addr-pick-sub {
  color: #777;
  font-size: 0.82rem;
}
.addr-pick-badge {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  width: fit-content;
}
.btn-link-addr {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px;
  cursor: pointer;
  text-align: center;
}
.btn-link-addr:hover {
  text-decoration: underline;
}
.btn-addr-new {
  width: 100%;
  margin-top: 8px;
  background: #fff !important;
  color: var(--red, #ea1d2c) !important;
  border: 1.5px solid var(--red, #ea1d2c);
  font: inherit;
  font-weight: 800;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
}
.btn-addr-new:hover {
  background: #fff5f5 !important;
  color: var(--red, #ea1d2c) !important;
}
.addr-gps-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1.5px dashed #ccc;
  border-radius: 10px;
  background: #fafafa;
  color: #333;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.addr-gps-btn:hover:not(:disabled) {
  border-color: var(--red, #ea1d2c);
  color: var(--red, #ea1d2c);
  background: #fff5f5;
}
.addr-gps-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
#addrGpsHint {
  margin: -4px 0 12px;
  color: #555;
}

@media (max-width: 1100px) {
  .loja-layout { grid-template-columns: 1fr; }
  .fab-cart--visible { display: block; }
}

@media (max-width: 900px) {
  .loja-layout { grid-template-columns: 1fr; }
  .fab-cart--visible { display: block; }
  .mobile-menu-btn { display: inline-flex; }
  .main-nav { display: none; }
}

@media (max-width: 560px) {
  .loja-menu .prod-list,
  .menu-cat .prod-list,
  .prod-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .prod-card {
    padding: 8px;
    grid-template-columns: 64px 1fr;
    gap: 8px;
  }
  .prod-img,
  .prod-text { min-height: 64px; }
  .prod-img { width: 64px; height: 64px; }
  .prod-text h3 { font-size: 0.8rem; }
  .prod-desc {
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 4px;
  }
  .prod-price { font-size: 0.82rem; }
  .prod-price-value { font-weight: 800; }
  .btn-add { padding: 5px 8px; font-size: 0.75rem; }
}

/* ===== Meus dados / Conta ===== */
.conta-page {
  max-width: 520px;
  margin: 28px auto 60px;
  padding: 0 16px;
}
.conta-page-wide { max-width: 640px; }
.conta-title {
  margin: 0 0 28px;
  font-size: 1.75rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}
.conta-title-sm {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
.conta-sub {
  margin: -16px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.conta-sub-block {
  margin: 0 0 28px;
  max-width: 560px;
}

/* Hub Meus dados (visual proprio iOO) */
.md-page {
  max-width: 760px;
  margin: 28px auto 64px;
  padding: 0 16px;
}
.md-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
  color: #8a8a8a !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 600;
}
.md-back:hover { color: #555 !important; }
.md-header { margin-bottom: 18px; }
.md-title {
  margin: 0 0 6px;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}
.md-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.md-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.md-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #ececec;
  border-left: 4px solid var(--red);
  border-radius: 16px;
  padding: 18px 16px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
  min-height: 140px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.md-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.08);
}
.md-card-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffe9ec;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.md-card-ico svg { width: 22px; height: 22px; }
.md-card strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}
.md-card > span:last-child {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}
.md-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
  border-left: 4px solid var(--red);
}
.md-panel .conta-float > span { background: #fff; }
.md-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #ececec;
  flex-wrap: wrap;
}
.md-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.md-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}
.md-info-card:hover { border-color: #ffd0d6; background: #fffafb; }
.md-info-body { flex: 1; min-width: 0; }
.md-info-body strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  margin-bottom: 4px;
}
.md-info-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-word;
}
.md-info-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  line-height: 1.35;
}
.conta-form-row-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .conta-form-row-2 { grid-template-columns: 1fr; }
}
.md-info-edit {
  flex-shrink: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 0.88rem;
  align-self: center;
}
.md-cred-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.md-cred-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: #fafafa;
  border-radius: 12px;
}
.md-cred-item strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  margin-bottom: 2px;
}
.md-ads-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.md-ads-copy strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.md-ads-copy p {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.92rem;
  line-height: 1.45;
}
.md-ads-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 12px;
  font-weight: 600;
}
@media (max-width: 700px) {
  .md-grid,
  .md-info-grid { grid-template-columns: 1fr; }
  .md-panel-foot { flex-direction: column; align-items: stretch; }
  .md-panel-foot .conta-btn-outline { width: 100%; }
}

.conta-menu {
  display: flex;
  flex-direction: column;
}
.conta-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid #ececec;
  color: inherit;
  text-decoration: none !important;
}
.conta-menu-item:first-child { border-top: 1px solid #ececec; }
.conta-menu-item:hover { background: #fafafa; }
.conta-menu-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.conta-menu-item span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}
.conta-menu-item svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex-shrink: 0;
}

.conta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.conta-float {
  position: relative;
  display: block;
  margin: 0;
}
.conta-float > span {
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 0 6px;
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  z-index: 1;
}
.conta-float input {
  width: 100%;
  height: 52px;
  padding: 14px 14px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
  outline: none;
}
.conta-float input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(234, 29, 44, 0.12);
}
.conta-float input[readonly] {
  background: #f5f5f5;
  color: #555;
  cursor: default;
  border-color: #e0e0e0;
}
.conta-float input[readonly]:focus {
  border-color: #e0e0e0;
  box-shadow: none;
}
.conta-hint {
  margin: -6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.conta-field-hint {
  margin: -8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.conta-field-erro,
.auth-field-erro {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #dc2626;
  line-height: 1.35;
}
.conta-float input.is-invalid,
.auth-register-form input.is-invalid {
  border-color: #dc2626;
}
.conta-float input.is-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.conta-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.conta-actions-end { margin-top: 36px; }
.conta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: #fff;
  color: var(--red) !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}
.conta-btn-outline:hover { background: #fff5f5; }
.conta-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.conta-btn-solid:hover { background: var(--red-dark); }

.conta-rows {
  display: flex;
  flex-direction: column;
}
.conta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid #ececec;
  color: inherit;
  text-decoration: none !important;
}
.conta-row:first-child { border-top: 1px solid #ececec; }
.conta-row:hover:not(.is-static) { background: #fafafa; }
.conta-row strong {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #1a1a1a;
}
.conta-row-value {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: #2d2d2d;
  font-style: normal;
  font-weight: 500;
}
.conta-ok {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  color: #2e7d32;
}
.conta-row svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex-shrink: 0;
}
.conta-row.is-static { cursor: default; }

.conta-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.conta-switch {
  position: relative;
  width: 48px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: #cfcfcf;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.conta-switch.is-on { background: var(--red); }
.conta-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.conta-switch.is-on .conta-switch-knob {
  transform: translateX(20px);
}

@media (max-width: 560px) {
  .conta-title { font-size: 1.45rem; }
  .conta-actions { width: 100%; }
  .conta-btn-outline,
  .conta-btn-solid { flex: 1; }
}

/* ===== Pedidos (conta) — cards legados (cupons/ajuda) ===== */
.pedido-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.pedido-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pedido-loja {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pedido-loja-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f3f3;
  flex-shrink: 0;
}
.pedido-loja-logo--empty {
  background: linear-gradient(135deg, #ffe5e5, #ffd0d0);
}
.pedido-loja-nome {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}
.pedido-data {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}
.pedido-status {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3cd;
  color: #856404;
}
.pedido-status.is-pending { background: #fff3cd; color: #856404; }
.pedido-status.is-prep { background: #e3f2fd; color: #1565c0; }
.pedido-status.is-ready { background: #e8f5e9; color: #2e7d32; }
.pedido-status.is-route { background: #e8eaf6; color: #3949ab; }
.pedido-status.is-done { background: #e8f5e9; color: #1b5e20; }
.pedido-status.is-cancel { background: #ffebee; color: #b71c1c; }

.pedido-card-body { margin-bottom: 12px; }
.pedido-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.pedido-end {
  margin: 0;
  font-size: 0.88rem;
  color: #3e3e3e;
  line-height: 1.35;
}

.pedido-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.pedido-valor strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
}
.pedido-valor small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}
.pedido-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red) !important;
  text-decoration: none !important;
}
.pedido-link:hover { text-decoration: underline !important; }

.pedido-vazio {
  text-align: center;
  padding: 40px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ececec;
}
.pedido-vazio p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

/* ===== Meus pedidos (layout proprio iOO) ===== */
.mp-page {
  max-width: none;
  width: 100%;
  margin: 8px 0 40px;
  padding: 0;
}
.mp-header { margin-bottom: 8px; }
.mp-title {
  margin: 0 0 6px;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}
.mp-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}
.mp-section-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.mp-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
  border-left: 4px solid var(--red);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.mp-card-main {
  display: block;
  padding: 16px 16px 12px;
  color: inherit;
  text-decoration: none !important;
  flex: 1;
}
.mp-card-main:hover { background: #fcfcfc; }
.mp-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}
.mp-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3f3f3;
  border: 2px solid #ffe0e4;
  flex-shrink: 0;
}
.mp-logo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--red);
  background: linear-gradient(145deg, #fff0f2, #ffd6dc);
  border-color: #ffc2cb;
}
.mp-card-info { min-width: 0; }
.mp-loja {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 4px;
}
.mp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #6b6b6b;
}
.mp-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c4c4c4;
  display: inline-block;
}
.mp-data {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: #9a9a9a;
}
.mp-status {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  align-self: center;
}
.mp-status.is-pending { background: #fff4d6; color: #8a6a00; }
.mp-status.is-prep { background: #e8f1ff; color: #1e4fd6; }
.mp-status.is-ready { background: #e7f7ec; color: #1b7a3a; }
.mp-status.is-route { background: #eeeafc; color: #4b3fb8; }
.mp-status.is-done { background: #e7f7ec; color: #146c2e; }
.mp-status.is-cancel,
.mp-status.is-reject { background: #fde8e8; color: #b42318; }
.mp-chevron {
  color: #bdbdbd;
  align-self: center;
  display: inline-flex;
}
.mp-itens {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-itens li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.35;
}
.mp-qtd {
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f4f4f4;
  color: #333;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mp-item-nome { padding-top: 4px; }
.mp-itens-vazio {
  color: var(--muted);
  font-size: 0.88rem;
}
.mp-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #ececec;
  font-size: 0.82rem;
  color: var(--muted);
}
.mp-total-row strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
}
.mp-actions {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.mp-actions form { flex: 1; display: flex; }
.mp-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  cursor: pointer;
  width: 100%;
}
.mp-action + .mp-action,
.mp-actions > a.mp-action + form {
  border-left: 1px solid #ececec;
}
.mp-actions > a.mp-action {
  border-right: 1px solid #ececec;
}
.mp-action--primary { background: #fff5f6; }
.mp-action:hover { background: #fff0f2; }
.mp-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mp-vazio {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed #e0e0e0;
  border-radius: 16px;
}
.mp-vazio-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #ffe9ec;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-vazio p {
  margin: 0 0 18px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .mp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-card-top {
    grid-template-columns: auto 1fr auto;
  }
  .mp-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
  .mp-chevron { grid-row: 1; grid-column: 3; }
  .mp-action { font-size: 0.86rem; }
}

/* ===== Cupons (conta) ===== */
.cupons-page {
  max-width: 980px;
  margin: 28px auto 64px;
  padding: 0 16px;
}
.cupons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.cupons-grid .cupom-card {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cupons-grid .pedido-card-body { flex: 1; }
.cupons-grid .pedido-card-foot { margin-top: auto; }
.cupom-add-form {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  box-sizing: border-box;
}
.cupom-add-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3e3e3e;
  margin-bottom: 8px;
}
.cupom-add-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}
.cupom-add-form .cupom-add-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.95rem;
  text-transform: uppercase;
  background: #fff;
  color: #1a1a1a;
}
.cupom-add-form .cupom-add-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.12);
}
.cupom-add-form .cupom-page-add-btn {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  height: 48px;
  padding: 0 20px;
  white-space: nowrap;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cupom-add-form .cupom-page-add-btn:hover {
  background: var(--red-dark);
}
.cupom-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: #ffe9ec;
}
.cupom-codigo {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}
.cupom-beneficio {
  color: var(--red) !important;
}
.cupom-salvar-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.cupom-salvo-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 640px) {
  .cupons-grid { grid-template-columns: 1fr; }
  .cupom-add-row { flex-direction: column; }
  .cupom-add-form .cupom-page-add-btn { width: 100%; }
}

/* ===== Ajuda / Seguranca ===== */
.ajuda-section-title {
  margin: 28px 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}
.ajuda-atalhos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.ajuda-atalho {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  min-width: 0;
}
.ajuda-atalho:hover { background: #fafafa; border-color: #e0e0e0; }
.ajuda-atalho-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffe9ec;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.ajuda-atalho-icon svg { width: 20px; height: 20px; }
.ajuda-atalho strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
}
.ajuda-atalho small {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.ajuda-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.ajuda-faq-item {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 0 16px;
  overflow: hidden;
}
.ajuda-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: #1a1a1a;
  position: relative;
  padding-right: 28px;
}
.ajuda-faq-item summary::-webkit-details-marker { display: none; }
.ajuda-faq-item summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.ajuda-faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.ajuda-faq-item p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4a4a4a;
}
.ajuda-contato { margin-top: 8px; }
.ajuda-telefones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}
.ajuda-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red) !important;
  text-decoration: none !important;
}
.ajuda-tel-link:hover { text-decoration: underline !important; }
.ajuda-wa-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.ajuda-wa-icon svg { display: block; width: 100%; height: 100%; }
button.pedido-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
button.pedido-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none !important;
}
.modal-card--ajuda { max-width: 520px; }
.ajuda-email-form label {
  display: block;
  margin-bottom: 12px;
}
.ajuda-email-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.ajuda-email-form input[type="text"],
.ajuda-email-form textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.ajuda-email-form textarea { resize: vertical; min-height: 110px; }
.ajuda-anexo-field { margin-bottom: 14px; }
.ajuda-anexo-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.ajuda-anexo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ajuda-email-form .ajuda-anexo-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0 0 0 !important;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: background .15s, border-color .15s;
}
.ajuda-email-form .ajuda-anexo-btn:hover {
  background: #fff5f5;
  border-color: #f0c0c0;
}
.ajuda-email-form .ajuda-anexo-btn input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  border: 0;
}
.ajuda-email-form .ajuda-anexo-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.ajuda-anexo-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.ajuda-email-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.ajuda-email-actions .conta-btn-outline,
.ajuda-email-actions .conta-btn-solid {
  width: auto;
  min-width: 110px;
}

.seguranca-card { margin-bottom: 8px; }
.seguranca-form { margin-top: 8px; }
.seguranca-form .conta-actions { margin-top: 4px; }
.seguranca-form .conta-btn-solid { width: auto; min-width: 180px; }
.conta-hint.is-error { color: #b71c1c; }
.seguranca-reset-hint {
  margin: 12px 0 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 600;
}
.seguranca-reset-form .conta-actions {
  margin-top: 0;
  justify-content: flex-start;
}
.seguranca-reset-form .conta-btn-solid {
  width: auto;
  min-width: 180px;
}
.seguranca-dicas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.seguranca-dica {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px 16px;
}
.seguranca-dica strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.seguranca-dica p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 640px) {
  .ajuda-atalhos { grid-template-columns: 1fr; }
  .seguranca-form .conta-btn-solid { width: 100%; }
  .seguranca-reset-form .conta-btn-solid { width: 100%; }
}

/* ===== Detalhe do pedido ===== */
.pd-page {
  max-width: none;
  width: 100%;
  margin: 8px 0 16px;
  padding: 0;
}
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 18px;
  color: #8a8a8a !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 600;
}
.pd-back:hover { color: #555 !important; }
.pd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}
.pd-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pd-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #f3f3f3;
  border: 2px solid #ffe0e4;
  flex-shrink: 0;
}
.pd-logo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--red);
  background: linear-gradient(145deg, #fff0f2, #ffd6dc);
}
.pd-loja {
  margin: 0 0 4px;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}
.pd-link {
  color: var(--red) !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
}
.pd-link:hover { text-decoration: underline !important; }
.pd-previsao {
  display: none;
}
.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}
.pd-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 8px 22px 12px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
  margin-bottom: 0;
}
.pd-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.pd-itens {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}
.pd-itens li {
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.pd-itens li:last-child { border-bottom: 0; }
.pd-item-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.pd-item-nome {
  font-size: 0.98rem;
  color: #2a2a2a;
  line-height: 1.35;
}
.pd-item-preco {
  font-size: 0.95rem;
  color: #1a1a1a;
  white-space: nowrap;
}
.pd-item-obs,
.pd-obs-geral {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.pd-empty-itens {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 16px 0 !important;
}
.pd-resumo {
  border-top: 1px dashed #ececec;
  padding: 8px 0 12px;
}
.pd-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: #4a4a4a;
}
.pd-row--desconto span:last-child { color: var(--red); font-weight: 700; }
.pd-gratis { color: #1b7a3a; font-weight: 700; }
.pd-row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
  font-size: 1.05rem;
  color: #1a1a1a;
  font-weight: 700;
}
.pd-row--total strong {
  color: var(--red);
  font-size: 1.25rem;
}
.pd-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}
.pd-meta-block {
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f3f3;
}
.pd-meta-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.pd-meta-block .pd-meta-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 4px;
}
.pd-meta-block p {
  margin: 0;
  font-size: 0.98rem;
  color: #2a2a2a;
  line-height: 1.4;
}
.pd-motivo-cancelamento {
  margin-top: 6px !important;
  color: #b42318 !important;
  font-size: 0.92rem !important;
  font-weight: 600;
  line-height: 1.35 !important;
}
.pd-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 0;
}
.pd-footer-actions form { flex: 1 1 100%; }
.pd-footer-actions .conta-btn-solid { width: 100%; }
.pd-action-ghost {
  flex: 1 1 calc(50% - 5px);
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #ececec;
  border-radius: 10px;
  color: var(--red) !important;
  font-weight: 700;
  text-decoration: none !important;
  background: #fff;
}
.pd-action-ghost:hover { background: #fff5f6; }
.pd-cardapio-completo {
  display: block;
  text-align: center;
  color: var(--red) !important;
  font-weight: 700;
  text-decoration: none !important;
  padding: 8px 0 4px;
}
.pd-cardapio-completo:hover { text-decoration: underline !important; }
.pd-track {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 16px 18px 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}
.pd-status-lbl {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.pd-status-val {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #dc2626;
}
.pd-status-quando {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 0.88rem;
}
.pd-sec {
  margin: 18px 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
}
.pd-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pd-timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 0 14px 0;
  color: #9a9a9a;
  font-weight: 700;
}
.pd-timeline li small {
  display: block;
  margin-top: 2px;
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 600;
}
.pd-dot {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e5e7eb;
  flex: 0 0 14px;
  position: relative;
  z-index: 1;
}
.pd-timeline li.is-done { color: #1a1a1a; }
.pd-timeline li.is-done .pd-dot,
.pd-timeline li.is-current .pd-dot { background: #16a34a; }
.pd-timeline li.is-cancel .pd-dot,
.pd-timeline li.is-rejected .pd-dot { background: #dc2626; }
.pd-timeline li.is-rejected { color: #b42318; }
.pd-timeline li.is-rejected small { color: #dc2626; }
.pd-action-cancel {
  flex: 1 1 100%;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.pd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.45);
}
.pd-modal-overlay[hidden] { display: none; }
.pd-modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.pd-modal h2 { margin: 0 0 8px; font-size: 1.2rem; }
.pd-modal p { margin: 0 0 12px; color: #4b5563; }
.pd-modal label { display: block; margin: 8px 0 6px; font-weight: 700; font-size: 0.9rem; }
.pd-modal select,
.pd-modal textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.pd-modal-erro { color: #b42318 !important; font-weight: 700; }
.pd-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.pd-modal-actions .pd-action-ghost,
.pd-modal-actions .pd-action-cancel { flex: 1; }
.pd-timeline li:not(:last-child) .pd-dot::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 2px;
  height: 22px;
  background: #e5e7eb;
}
.pd-timeline li.is-done:not(:last-child) .pd-dot::after { background: #16a34a; }
.pd-moto {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}
.pd-moto-foto,
.pd-moto-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 48px;
  background: #16a34a;
}
.pd-moto-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-moto-lbl {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}
.pd-moto-nome {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
  color: #1a1a1a;
}
.pd-moto-det {
  display: block;
  margin-top: 2px;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 600;
}
.pd-map-wrap {
  position: relative;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ececec;
}
.pd-mapa { width: 100%; height: 100%; background: #e8eaed; }
.pd-map-caption {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 900px) {
  .pd-layout { grid-template-columns: 1fr; }
  .page:has(.pd-page),
  .page:has(.mp-page) { padding: 12px 16px 20px; }
}
@media (max-width: 520px) {
  .pd-loja { font-size: 1.25rem; }
  .pd-footer-actions { flex-direction: column; align-items: stretch; }
  .pd-action-ghost { width: 100%; flex: 1 1 100%; }
}

/* ===== Favoritos ===== */
.fav-page {
  max-width: 760px;
  margin: 28px auto 64px;
  padding: 0 16px;
}
.fav-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.fav-title {
  margin: 0 0 6px;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}
.fav-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.fav-explore {
  flex-shrink: 0;
  color: var(--red) !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 0.92rem;
}
.fav-explore:hover { text-decoration: underline !important; }
.fav-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
}
.fav-card.is-inactive { opacity: 0.72; }
.fav-card-media {
  position: relative;
  display: block;
  min-height: 140px;
  background: linear-gradient(145deg, #ffe9ec, #ffd0d6);
  text-decoration: none !important;
}
.fav-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}
.fav-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red);
}
.fav-card-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(26, 26, 26, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.fav-card-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}
.fav-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.fav-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f3f3;
  border: 2px solid #ffe0e4;
  flex-shrink: 0;
}
.fav-card-logo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--red);
  background: #fff0f2;
}
.fav-card-info { min-width: 0; }
.fav-card-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a !important;
  text-decoration: none !important;
  line-height: 1.25;
  margin-bottom: 4px;
}
.fav-card-name:hover { color: var(--red) !important; }
.fav-card-meta,
.fav-card-fees {
  margin: 0;
  font-size: 0.84rem;
  color: #6b6b6b;
  line-height: 1.4;
}
.fav-card-fees { margin-top: 2px; }
.fav-card-meta .dot,
.fav-card-fees .dot {
  margin: 0 4px;
  color: #c4c4c4;
}
.fav-star { color: #e6a100; font-weight: 700; }
.fav-card-fees .gratis { color: #1b7a3a; font-weight: 700; }
.fav-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fav-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--red);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none !important;
}
.fav-btn-primary:hover { background: var(--red-dark); }
.fav-btn-heart {
  width: 42px;
  height: 42px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  color: #c4c4c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fav-btn-heart.is-on,
.fav-btn-heart:hover { color: var(--red); background: #fff5f6; border-color: #ffd0d6; }
.fav-empty {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed #e0e0e0;
  border-radius: 18px;
}
.fav-empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: #ffe9ec;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-empty h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}
.fav-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .fav-header { flex-direction: column; align-items: flex-start; }
  .fav-card { grid-template-columns: 1fr; }
  .fav-card-media { min-height: 120px; }
  .fav-card-media img,
  .fav-card-placeholder { min-height: 120px; }
}

/* ===== Pagamento ===== */
.pay-page {
  max-width: 720px;
  margin: 28px auto 64px;
  padding: 0 16px;
}
.pay-header { margin-bottom: 20px; }
.pay-title {
  margin: 0 0 6px;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}
.pay-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.pay-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid #ececec;
  border-left: 4px solid var(--red);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
}
.pay-hero-copy h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}
.pay-hero-copy p {
  margin: 0 0 16px;
  color: #5a5a5a;
  font-size: 0.95rem;
  line-height: 1.45;
}
.pay-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--red);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}
.pay-cta:hover { background: var(--red-dark); }
.pay-hero-visual {
  display: flex;
  justify-content: center;
}
.pay-visual-card {
  width: 220px;
  height: 132px;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1f1f1f 0%, #3a3a3a 55%, #ef233c 140%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  transform: rotate(-4deg);
}
.pay-visual-chip {
  width: 34px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f6e27a, #d4af37);
}
.pay-visual-brand {
  justify-self: end;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pay-visual-num {
  grid-column: 1 / -1;
  align-self: end;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
.pay-visual-name {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  opacity: 0.85;
  letter-spacing: 0.06em;
}
.pay-section-title {
  margin: 8px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.pay-form-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 22px;
}
.pay-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pay-saved-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.pay-saved-face {
  height: 64px;
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #333, #666);
  font-size: 0.78rem;
}
.pay-saved-face--visa { background: linear-gradient(135deg, #1a1f71, #2b4acb); }
.pay-saved-face--mastercard { background: linear-gradient(135deg, #eb001b, #f79e1b); }
.pay-saved-face--elo { background: linear-gradient(135deg, #000, #ffcb05); color: #111; }
.pay-saved-face--amex { background: linear-gradient(135deg, #016fd0, #78b9eb); }
.pay-saved-face--hipercard { background: linear-gradient(135deg, #822124, #c62828); }
.pay-saved-info strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.pay-saved-info span {
  font-size: 0.82rem;
  color: var(--muted);
}
.pay-remove {
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 8px;
}
.pay-remove:hover { text-decoration: underline; }
.pay-empty {
  background: #fafafa;
  border: 1px dashed #e0e0e0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
  text-align: center;
}
.pay-empty p { margin: 0 0 8px; color: var(--muted); }
.pay-link {
  color: var(--red) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.pay-link:hover { text-decoration: underline !important; }
.pay-other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.pay-other-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 14px;
}
.pay-other-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffe9ec;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.pay-other-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}
.pay-other-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 700px) {
  .pay-hero { grid-template-columns: 1fr; }
  .pay-visual-card { transform: none; }
  .pay-form-row { grid-template-columns: 1fr; }
  .pay-saved-card { grid-template-columns: 1fr; }
  .pay-other-grid { grid-template-columns: 1fr; }
}

/* ===== Fidelidade ===== */
.fid-page {
  max-width: 720px;
  margin: 28px auto 64px;
  padding: 0 16px;
}
.fid-header { margin-bottom: 18px; }
.fid-title {
  margin: 0 0 6px;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}
.fid-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.fid-wallet {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  background: linear-gradient(135deg, #1f1f1f 0%, #3a3a3a 50%, #ef233c 130%);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
.fid-wallet-label {
  display: block;
  font-size: 0.82rem;
  opacity: 0.8;
  margin-bottom: 4px;
}
.fid-wallet-points {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fid-wallet-level {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 0.78rem;
  font-weight: 700;
}
.fid-wallet-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
}
.fid-stat {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.fid-stat strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}
.fid-stat span {
  font-size: 0.75rem;
  opacity: 0.8;
}
.fid-progress-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 22px;
}
.fid-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.fid-progress-head span { color: var(--muted); }
.fid-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #f0f0f0;
  overflow: hidden;
}
.fid-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ef233c, #ff6b7a);
  border-radius: 999px;
}
.fid-progress-hint {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #5a5a5a;
}
.fid-section-title {
  margin: 6px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.fid-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.fid-benefit {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 14px;
}
.fid-benefit-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffe9ec;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.fid-benefit strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.fid-benefit p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.fid-loja {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-left: 4px solid var(--red);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.fid-loja strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.fid-loja span {
  font-size: 0.82rem;
  color: var(--muted);
}
.fid-loja-link {
  color: var(--red) !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 0.9rem;
}
.fid-loja-link:hover { text-decoration: underline !important; }
.fid-section-sub {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.fid-recompensas {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.fid-recompensa {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.fid-recompensa.is-locked { opacity: 0.78; }
.fid-recompensa.is-redeemed {
  opacity: 1;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.fid-recompensa-redeemed {
  font-size: 0.78rem;
  font-weight: 800;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
.fid-recompensa-badge {
  min-width: 84px;
  text-align: center;
  background: #ffe9ec;
  color: var(--red);
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 12px;
  padding: 10px 8px;
}
.fid-recompensa-body strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.fid-recompensa-body p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.fid-recompensa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fid-recompensa-meta li {
  font-size: 0.75rem;
  font-weight: 700;
  color: #444;
  background: #f6f6f6;
  border-radius: 999px;
  padding: 3px 8px;
}
.fid-recompensa-btn {
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.fid-recompensa-btn:hover { filter: brightness(0.95); }
.fid-recompensa-lock {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a8a8a;
  text-align: right;
  max-width: 120px;
}
.fid-modal[hidden] { display: none; }
.fid-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}
.fid-modal-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px 18px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.fid-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ffe9ec;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fid-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.fid-modal-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.fid-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fid-modal-cancel,
.fid-modal-ok {
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 800;
  cursor: pointer;
}
.fid-modal-cancel { background: #f3f4f6; color: #111; }
.fid-modal-ok { background: var(--red); color: #fff; }
.fid-modal-ok:disabled { opacity: 0.7; cursor: wait; }
.fid-empty {
  text-align: center;
  padding: 40px 18px;
  background: #fff;
  border: 1px dashed #e0e0e0;
  border-radius: 18px;
}
.fid-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #ffe9ec;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fid-empty h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.fid-empty p {
  margin: 0 0 16px;
  color: var(--muted);
}
.fid-footer-cta {
  margin-top: 18px;
  text-align: center;
}
@media (max-width: 700px) {
  .fid-wallet { grid-template-columns: 1fr; }
  .fid-benefits { grid-template-columns: 1fr; }
  .fid-loja { flex-direction: column; align-items: flex-start; }
  .fid-recompensa { grid-template-columns: 1fr; }
  .fid-recompensa-badge { width: fit-content; }
  .fid-recompensa-lock { text-align: left; max-width: none; }
}

.pd-footer-actions button.pd-action-ghost {
  cursor: pointer;
  font-family: inherit;
}

.chat-loja-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  justify-content: flex-end;
}
.chat-loja-overlay[hidden] { display: none !important; }
.chat-loja-drawer {
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
}
.chat-loja-header {
  display: grid;
  grid-template-columns: 44px 1fr 36px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eef2f7;
}
.chat-loja-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff1f2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-loja-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-loja-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}
.chat-loja-header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}
.chat-loja-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #334155;
}
.chat-loja-lista {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-loja-empty {
  margin: auto;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}
.chat-loja-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.chat-loja-bubble.is-loja {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #111;
  border-bottom-left-radius: 4px;
}
.chat-loja-bubble.is-cliente {
  align-self: flex-end;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111;
  border-bottom-right-radius: 4px;
}
.chat-loja-bubble.is-ioo {
  align-self: flex-start;
  background: #fff1f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-bottom-left-radius: 4px;
}
.chat-loja-bubble.is-sistema {
  align-self: center;
  max-width: 92%;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  text-align: center;
  border-radius: 10px;
}
.chat-loja-bubble small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2px;
}
.chat-loja-banner {
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.4;
}
.chat-loja-banner[hidden] { display: none !important; }
.chat-loja-menu {
  padding: 8px 14px 4px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}
.chat-loja-menu-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}
.chat-loja-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-loja-chips button {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chat-loja-chips button:hover {
  background: #fecaca;
}
.chat-loja-chips button.is-usado,
.chat-loja-chips button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}
.chat-loja-chips button.is-resolvido {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.chat-loja-chips button.is-resolvido:hover {
  background: #dcfce7;
}
.chat-loja-chips button.is-resolvido[hidden] {
  display: none !important;
}
.chat-loja-composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px 16px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}
.chat-loja-composer input {
  flex: 1;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.chat-loja-composer input:focus { border-color: #dc2626; }
.chat-loja-composer button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
