/* Integração Zé Pedidos — não altera o bundle React */
.ze-auth-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.ze-btn {
  border: 1px solid #2e3540;
  background: #181c23;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ze-btn--gold {
  background: linear-gradient(#f8c33e, #de9f16);
  color: #111;
  border-color: #de9f16;
}
.ze-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 17, 21, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ze-fade 0.2s ease;
}
@keyframes ze-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ze-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.ze-modal__head {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}
.ze-tab {
  flex: 1;
  padding: 14px;
  border: 0;
  background: #f8fafc;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #64748b;
}
.ze-tab.active {
  background: #fff;
  color: #111;
  box-shadow: inset 0 -3px 0 #f7b825;
}
.ze-modal__body {
  padding: 18px;
}
.ze-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.ze-field label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.ze-field input {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
}
.ze-link-guest {
  background: none;
  border: 0;
  color: #d97706;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
}
.ze-link-guest:hover {
  color: #b45309;
}
.ze-link-guest--muted {
  color: #64748b;
  font-weight: 600;
}
.ze-link-guest--muted:hover {
  color: #334155;
}
.ze-guest-intro {
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  margin: 0 0 14px;
}
.ze-msg {
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.ze-msg.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.ze-msg.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
/* Painel fora do React (evita sumir a cada tick do cronômetro PIX) */
#ze-pix-receipt-panel {
  position: fixed;
  /* referência para input file sr-only */
  left: 12px;
  right: 12px;
  bottom: max(88px, calc(12px + env(safe-area-inset-bottom)));
  z-index: 45;
  max-width: 696px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
  text-align: left;
  max-height: 42vh;
  overflow-y: auto;
}
#ze-pix-receipt-panel p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.45;
}
#ze-pix-receipt-panel input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* CTA — clique para escolher comprovante */
.ze-receipt-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 12px 0 10px;
  padding: 16px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 45%, #fef3c7 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ze-receipt-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ze-receipt-cta:active {
  transform: translateY(0);
}
.ze-receipt-cta__glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, #fbbf24, #f59e0b, #fcd34d, #fbbf24);
  opacity: 0.15;
  animation: ze-cta-shimmer 8s linear infinite;
}
@keyframes ze-cta-shimmer {
  to {
    transform: rotate(360deg);
  }
}
.ze-receipt-cta__text {
  position: relative;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  color: #78350f;
  letter-spacing: 0.02em;
}
.ze-receipt-cta__text::before,
.ze-receipt-cta__text::after {
  content: ' * ';
  font-weight: 700;
  opacity: 0.65;
}
.ze-receipt-cta__sub {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  opacity: 0.9;
}
.ze-receipt-cta--compact {
  padding: 12px 14px;
  margin-bottom: 6px;
}
.ze-receipt-cta--compact .ze-receipt-cta__text {
  font-size: 14px;
}

/* Itens do pedido — Meus pedidos */
.ze-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.ze-cart-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}
.ze-cart-line__img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #e5e7eb;
  display: grid;
  place-items: center;
}
.ze-cart-line__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ze-cart-line__img--empty {
  font-size: 26px;
}
.ze-cart-line__meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.ze-cart-line__name {
  font-weight: 700;
  font-size: 14px;
  color: #0f1115;
  margin-bottom: 4px;
}
.ze-cart-line__sub {
  font-size: 12px;
  color: #64748b;
}

#ze-op-aside {
  position: relative;
}
#ze-op-aside .ze-os-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (min-width: 768px) {
  #ze-pix-receipt-panel {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}
.ze-track-panel {
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  text-align: center;
}
.ze-track-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.ze-track-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  text-align: left;
}
.ze-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}
.ze-step.done {
  border-color: #86efac;
  background: #ecfdf5;
}
.ze-step.active {
  border-color: #f7b825;
  background: #fffbeb;
  box-shadow: 0 4px 16px rgba(247, 184, 37, 0.25);
}
.ze-moto {
  font-size: 42px;
  line-height: 1;
  animation: ze-bounce 1.2s ease-in-out infinite;
}
@keyframes ze-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
.ze-order-list {
  display: grid;
  gap: 10px;
}
.ze-order-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  background: #fff;
}
.ze-order-card:hover {
  border-color: #f7b825;
}
@media (max-width: 480px) {
  .ze-auth-wrap {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Página “Meus pedidos” — pedido à esquerda, comprovante sempre à direita */
#ze-orders-fullpage.ze-orders-page {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ze-fade 0.2s ease;
}
.ze-orders-page__top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(#0f1115fa, #0f1115f2);
  border-bottom: 1px solid #2a303a;
  color: #fff;
}
.ze-orders-page__top h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f7b825;
}
.ze-orders-page__back {
  border: 1px solid #2e3540;
  background: #181c23;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ze-orders-page__layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
  box-sizing: border-box;
}
.ze-orders-page__left {
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid #e5e7eb;
}
.ze-orders-page__aside {
  overflow-y: auto;
  padding: 16px;
  background: #fffbeb;
  border-left: 1px solid #fde68a;
  position: sticky;
  top: 0;
  align-self: stretch;
  box-sizing: border-box;
}
.ze-orders-page__aside h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #78350f;
}
.ze-orders-page__aside .ze-op-aside-ref {
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 12px;
}
.ze-orders-page__aside p.hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.4;
}
.ze-orders-page__aside input[type="text"],
.ze-orders-page__aside input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}
.ze-op-h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #0f172a;
}
.ze-op-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ze-op-card {
  text-align: left;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ze-op-card:hover {
  border-color: #f7b825;
}
.ze-op-card.ze-op-card--active {
  border-color: #f7b825;
  box-shadow: 0 0 0 2px #f7b82544;
}
.ze-op-detail {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
}
.ze-orders-page__empty {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}
@media (max-width: 768px) {
  .ze-orders-page__layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .ze-orders-page__left {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .ze-orders-page__aside {
    position: relative;
    border-left: none;
    border-top: 2px solid #fde68a;
  }
}
