:root {
  --accent: #3E7A52;
  --accent-dark: #2F5F3F;
  --accent-light: #A8D5B8;
  --creme: #F2EDE4;
  --card-bg: #FFFFFF;
  --text-dark: #2B2B28;
  --text-muted: #7A8079;
  --border-warm: #DCE5DE;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--creme);
  color: var(--text-dark);
}

h1, h2, .section-title { font-family: 'Poppins', -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 600; }

.urgency-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
.urgency-bar.sticky { position: sticky; top: 0; z-index: 50; }
.urgency-bar svg { flex-shrink: 0; }
.urgency-bar strong { font-variant-numeric: tabular-nums; }

.banner-wrap { width: 100%; max-width: 720px; margin: 0 auto; }
.banner-wrap img { width: 100%; display: block; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 60px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(20, 30, 22, .06);
  margin-bottom: 16px;
}

.product-head { display: flex; gap: 14px; align-items: center; }
.product-head img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.product-head h1 { font-size: 17px; margin: 0 0 4px; }

.price {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 2px;
}

.price-cash-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.description { white-space: pre-line; font-size: 14px; color: var(--text-dark); margin-top: 16px; line-height: 1.6; opacity: .85; }

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-badge svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-dark); }

.section-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.section-title svg { flex-shrink: 0; color: var(--accent-dark); }

.payment-tabs { display: flex; gap: 10px; }
.payment-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--border-warm);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
}
.payment-tab.active { border-color: var(--accent); color: var(--accent-dark); background: #F1F8F3; }
.payment-tab.disabled { color: #B9BFB9; cursor: not-allowed; }
.payment-tab-soon {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--text-muted);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}

.payment-info {
  margin-top: 14px;
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 14px 16px;
  background: #FBFBF9;
}
.payment-info-list { list-style: none; margin: 0; padding: 0; }
.payment-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark);
  opacity: .85;
  padding: 5px 0;
}
.payment-info-list svg { flex-shrink: 0; margin-top: 1px; color: var(--accent-dark); }
.payment-info-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-warm);
}

.phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  background: #FDFEFD;
  overflow: hidden;
}
.phone-flag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: #F1F8F3;
  border-right: 1px solid var(--border-warm);
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-field input[type=tel] {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.phone-field input[type=tel]:focus { outline: none; }

.ck-footer { text-align: center; margin-top: 24px; padding: 0 12px; }
.ck-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.ck-footer p { font-size: 12px; color: var(--text-muted); margin: 4px 0; line-height: 1.5; }
.ck-footer a { color: var(--text-muted); }
.ck-footer-links a { color: var(--text-muted); text-decoration: underline; }
.ck-footer-links span { margin: 0 4px; }

.field-row { display: flex; gap: 12px; }
.field-row > div { flex: 1; }
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #FDFEFD;
  color: var(--text-dark);
}

.bump-cta {
  display: block;
  border: 1px solid var(--accent-light);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.bump-cta-input { position: absolute; opacity: 0; width: 0; height: 0; }

.bump-cta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #F1F8F3;
  padding: 10px 14px;
  border-bottom: 1px solid var(--accent-light);
}
.bump-cta-headline { font-weight: 700; font-size: 13px; color: var(--text-dark); line-height: 1.35; }
.bump-cta-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: #fff;
  transition: background .15s ease, color .15s ease;
}
.bump-cta-input:checked ~ .bump-cta-header .bump-cta-check { background: var(--accent); color: #fff; }

.bump-cta-body { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.bump-cta-body img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.bump-cta .bump-info { flex: 1; }
.bump-cta .bump-name { font-weight: 600; font-size: 14px; }
.bump-cta .bump-desc { font-size: 12px; color: var(--text-muted); margin: 2px 0; line-height: 1.4; }
.bump-cta .bump-price { color: var(--accent-dark); font-weight: 700; font-size: 14px; margin-top: 2px; }

label { display: block; margin: 12px 0 6px; font-weight: 600; font-size: 14px; color: var(--text-dark); }
input[type=text], input[type=email], input[type=tel] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #FDFEFD;
  transition: border-color .15s ease;
}
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus {
  outline: none;
  border-color: var(--accent);
}

input.input-error {
  border-color: #D64545;
  background: #FEF4F3;
}
.phone-field.input-error {
  border-color: #D64545;
  background: #FEF4F3;
}
.field-error {
  display: none;
  color: #D64545;
  font-size: 13px;
  margin-top: 6px;
}
.field-error.show { display: block; }

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-warm);
}
.summary-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.summary-item-name { flex: 1; font-size: 14px; color: var(--text-dark); }
.summary-item-price { font-size: 14px; font-weight: 600; color: var(--text-dark); flex-shrink: 0; }

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 0;
  border-top: 1px solid var(--border-warm);
  margin-top: 8px;
}

.btn-pay {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none;
  padding: 17px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 4px 14px rgba(47, 95, 63, .35);
  transition: transform .1s ease;
}
.btn-pay:active { transform: scale(.98); }

.btn-already-paid {
  width: 100%;
  background: #E8792E;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(232, 121, 46, .4);
  transition: transform .1s ease;
  animation: ck-pulse 2.2s ease-in-out infinite;
}
.btn-already-paid:active { transform: scale(.98); }
.btn-already-paid:disabled { opacity: .7; cursor: default; animation: none; }
@keyframes ck-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(232, 121, 46, .4); }
  50% { box-shadow: 0 4px 20px rgba(232, 121, 46, .7); }
}

/* ---------- Página de pagamento Pix (pedido.php) ---------- */

.pedido-logo-card {
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 0 auto 14px;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(20, 30, 22, .06);
}
.pedido-logo { display: block; width: 100%; max-width: 180px; height: auto; }

.pix-value-highlight { text-align: center; margin-bottom: 16px; }
.pix-value-highlight .hint { display: block; margin-bottom: 2px; }
.pix-value { font-size: 30px; font-weight: 700; color: var(--accent-dark); }

.pix-qr-wrap { display: flex; justify-content: center; margin: 4px 0 16px; }
.pix-qr {
  width: 150px;
  height: 150px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
}

.pix-copy-row { display: flex; gap: 8px; }
.pix-copy-row input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  text-overflow: ellipsis;
}
.pix-copy-row button {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.pix-howto {
  margin: 20px 0 0;
  padding: 14px 16px 14px 34px;
  background: #FBFBF9;
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dark);
  opacity: .9;
}
.pix-howto li { padding: 3px 0; }

.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; background: #FBE4DC; color: #8A3D1F; }
.hint { color: var(--text-muted); font-size: 12px; }

.order-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-warm); font-size: 14px; }

.status-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-badge.pending { background: #FCE9CE; color: #92400e; }
.status-badge.paid { background: #DCEEE2; color: #1f5c3f; }

.ck-offer-media { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.ck-offer-media img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 2px 10px rgba(0,0,0,.08); }

.ck-purchase-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  max-width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 50;
  pointer-events: none;
}
.ck-purchase-toast.show { transform: translateY(0); opacity: 1; }
.ck-purchase-toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ck-purchase-toast-text { font-size: 14px; color: var(--text-dark); line-height: 1.35; }
.ck-purchase-toast-text strong { font-weight: 700; }

@media (max-width: 480px) {
  .ck-purchase-toast { left: 10px; right: 10px; max-width: none; bottom: 10px; }
}
