/* TÔPERTO 15T2.3 - Compatibilidade para páginas antigas que chamam /style.css */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f7f7f8;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }


/* TÔPERTO 15T15 - Modal de complementos/adicionais */
.localfy-addon-modal {
  display: none;
}

.localfy-addon-modal.open {
  display: block;
}

.localfy-addon-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .55);
}

.localfy-addon-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 81;
  width: min(640px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px rgba(15, 23, 42, .25);
}

.localfy-addon-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.localfy-addon-option input {
  width: auto;
  margin-right: 8px;
}

.localfy-addon-option b {
  white-space: nowrap;
}

.localfy-addon-footer {
  position: sticky;
  bottom: -18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px -18px -18px;
  padding: 14px 18px;
  border-top: 1px solid #eee;
  background: #fff;
}

@media (min-width: 720px) {
  .localfy-addon-sheet {
    top: 50%;
    bottom: auto;
    border-radius: 24px;
    transform: translate(-50%, -50%);
  }
}

/* TÔPERTO 15T15 - Modal de complementos/adicionais */
.localfy-addon-modal {
  display: none;
}

.localfy-addon-modal.open {
  display: block;
}

.localfy-addon-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .55);
}

.localfy-addon-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 81;
  width: min(640px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px rgba(15, 23, 42, .25);
}

.localfy-addon-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.localfy-addon-option input {
  width: auto;
  margin-right: 8px;
}

.localfy-addon-option b {
  white-space: nowrap;
}

.localfy-addon-footer {
  position: sticky;
  bottom: -18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px -18px -18px;
  padding: 14px 18px;
  border-top: 1px solid #eee;
  background: #fff;
}

@media (min-width: 720px) {
  .localfy-addon-sheet {
    top: 50%;
    bottom: auto;
    border-radius: 24px;
    transform: translate(-50%, -50%);
  }
}


/* TÔPERTO 15T18 - adicionais em pedidos, central e comanda */
.localfy-adicionais-pedido {
  margin-top: 5px;
  padding: 6px 8px;
  border-left: 3px solid #ff6b00;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.localfy-adicionais-pedido div + div {
  margin-top: 2px;
}

@media print {
  .localfy-adicionais-pedido {
    margin-top: 3px;
    padding: 0 0 0 6px;
    border-left: 2px solid #000;
    border-radius: 0;
    background: transparent;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    page-break-inside: avoid;
  }
}


/* TÔPERTO 15T21 - editor visual de adicionais do lojista */
.localfy-addon-form-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.localfy-addon-form-box strong {
  display: block;
  margin-bottom: 4px;
}

.localfy-addon-form-box .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.localfy-addon-summary {
  color: var(--muted, #9ca3af);
  font-size: 12px;
  line-height: 1.35;
}

.localfy-addon-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  margin: 4px 4px 0 0;
  border-radius: 999px;
  background: rgba(255, 122, 0, .16);
  border: 1px solid rgba(255, 122, 0, .26);
  color: #ffd7a1;
  font-size: 11px;
  font-weight: 800;
}

.localfy-addon-admin-modal {
  display: none;
}

.localfy-addon-admin-modal.open {
  display: block;
}

.localfy-addon-admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,.68);
}

.localfy-addon-admin-box {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 121;
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: #111318;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.localfy-addon-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.localfy-addon-admin-head h2 {
  margin: 0;
  font-size: 22px;
}

.localfy-addon-admin-head p {
  margin: 6px 0 0;
  color: #aeb6c5;
  font-size: 13px;
}

.localfy-addon-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.localfy-addon-admin-groups {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.localfy-addon-admin-group {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  margin-bottom: 12px;
}

.localfy-addon-admin-group-head {
  display: grid;
  grid-template-columns: 1fr 130px 90px 90px auto;
  gap: 10px;
  align-items: end;
}

.localfy-addon-admin-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.localfy-addon-admin-option {
  display: grid;
  grid-template-columns: 1fr 140px 110px auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}

.localfy-addon-admin-modal label {
  display: block;
  margin-bottom: 5px;
  color: #c8d0df;
  font-size: 12px;
  font-weight: 800;
}

.localfy-addon-admin-modal input,
.localfy-addon-admin-modal select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  color: #fff;
  padding: 0 10px;
}

.localfy-addon-admin-empty {
  padding: 22px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  color: #aeb6c5;
  text-align: center;
}

@media (max-width: 760px) {
  .localfy-addon-admin-box {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 92dvh;
    transform: none;
    border-radius: 22px 22px 0 0;
  }

  .localfy-addon-admin-group-head,
  .localfy-addon-admin-option {
    grid-template-columns: 1fr;
  }
}


/* TÔPERTO 15T21B - força abertura modal adicionais */
#localfyAddonModal15T21.open,
.localfy-addon-admin-modal.open {
  display: block !important;
}

#localfyAddonModal15T21 .localfy-addon-admin-box {
  display: flex !important;
}

