/* ===== TIER PROGRESS (principal only) ===== */
.tier-progress {
  padding: 4px 0 0;
  display: none;
  font-family: 'Work Sans', sans-serif;
  grid-column: 1 / -1;
}

.tier-progress.visible {
  display: block;
}

.tier-progress .progress-track {
  position: relative;
  height: 2px;
  background: rgba(60, 60, 59, 0.15);
  margin: 0;
}

.tier-progress .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #9B020D 0%, #C4122F 60%, #C7A352 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tier-progress #tierMs0 {
  left: 0%;
}

.tier-progress #tierMs1 {
  left: 50%;
}

.tier-progress #tierMs2 {
  left: 100%;
}

.tier-progress .tick {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 1px;
  background: #3C3C3B;
  opacity: 0.35;
  transition: all 0.3s;
}

.tier-progress .tick.reached {
  background: #9B020D;
  opacity: 1;
  top: -6px;
  bottom: -6px;
}

.tier-progress .tick.peak {
  background: #C7A352;
  opacity: 1;
}

.tier-progress .labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0;
}

.tier-progress .label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  text-align: center;
}

.tier-progress .label .pct {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: #3C3C3B;
  line-height: 1;
  transition: color 0.3s;
}

.tier-progress .label .amt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3C3C3B;
  opacity: 0.7;
  font-weight: 500;
}

.tier-progress .label.reached .pct {
  color: #9B020D;
}

.tier-progress .msg {
  text-align: center;
  margin-top: 4px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: #C7A352;
  letter-spacing: 0.01em;
}

.tier-progress .msg strong {
  font-weight: 500;
  color: #9B020D;
}

.tier-progress .msg .star {
  margin-right: 4px;
}

/* Maxed state — everything gold */
.tier-progress.maxed .progress-fill {
  background: #C7A352;
}

.tier-progress.maxed .tick {
  background: #C7A352 !important;
  opacity: 1;
}

.tier-progress.maxed .label .pct {
  color: #C7A352;
}

.tier-progress.maxed .label .amt {
  color: #C7A352;
  opacity: 1;
}

.tier-progress.maxed .msg {
  color: #C7A352;
  font-weight: 500;
}

/* ===== Panini logo in hero badge ===== */
.hero-badge .panini-logo {
  height: 18px;
  width: auto;
  border-radius: 2px;
}

/* ===== FLOATER — Page layout ===== */
.floater-inner {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .floater-inner {
    grid-template-columns: 1fr auto;
  }

  .floater-payment {
    grid-column: 1;
  }

  .floater-totals {
    grid-column: 2;
  }

  .tier-progress {
    margin-top: 10px;
  }
}

@media (min-width: 1024px) {
  .floater-inner {
    grid-template-columns: 1fr auto;
  }
}

/* === Floater quando há apenas uma forma de pagamento === */
@media (min-width: 768px) {
  .floater-inner:has(.floater-select option:only-of-type) {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .floater-inner:has(.floater-select option:only-of-type) .floater-totals {
    grid-column: 1;
    grid-row: 1;
  }

  .floater-inner:has(.floater-select option:only-of-type) .floater-btn {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    min-width: 240px;
    align-self: center;
  }
}

@media (max-width: 767px) {
  .tier-progress .label .pct {
    font-size: 13px;
  }

  .tier-progress .label .amt {
    font-size: 9px;
  }

  .tier-progress .msg {
    font-size: 14px;
  }
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 18px;
  background: #1a1a1a;
  color: #f4f4f4;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__text {
  flex: 1 1 320px;
}

.cookie-banner__text a {
  color: #7FC7D3;
  text-decoration: underline;
}

.cookie-banner__btn {
  flex: 0 0 auto;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: #005F6B;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}

.cookie-banner__btn:hover {
  background: #004B55;
}

@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner__text {
    flex: 0 1 auto;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}

/* ===== PIX Gateway — Spinner & Polling Status ===== */

/* Spinner de carregamento enquanto cria a cobrança */
.pix-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border: 4px solid rgba(155, 2, 13, 0.15);
  border-top-color: #9B020D;
  border-radius: 50%;
  animation: pix-spin 0.8s linear infinite;
}

@keyframes pix-spin {
  to { transform: rotate(360deg); }
}

/* Indicador de status do polling */
.pix-polling-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 8px;
  padding: 8px 20px;
  background: #fff8e1;
  border: 1px solid #f0c040;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #7a5000;
  font-family: 'Work Sans', sans-serif;
}

.pix-polling-status.pix-status--paid {
  background: #e8f5e9;
  border-color: #66bb6a;
  color: #1b5e20;
}

/* Ponto pulsante de "aguardando" */
.pix-poll-dot {
  width: 10px;
  height: 10px;
  background: #f0a000;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pix-pulse 1.4s ease-in-out infinite;
}

@keyframes pix-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}