/* ==============================
   Modo Férias — Popup + avisos
   ============================== */

/* ── Popup ── */
.vacation-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
  overflow-y: auto;
}

.vacation-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.vacation-modal {
  background: #0f0f0f;
  border: 1px solid #7c5c1e;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 34px 28px 26px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  margin: auto;
}

.vacation-overlay.is-open .vacation-modal {
  transform: translateY(0);
}

.vacation-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.vacation-close:hover {
  color: #fff;
  background: #222;
}

.vacation-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.vacation-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  text-align: center;
  color: #FBBF24;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

.vacation-message {
  text-align: center;
  font-size: 14.5px;
  color: #cfcfcf;
  margin: 0 0 22px;
  line-height: 1.65;
  white-space: pre-line;
}

.vacation-message strong {
  color: #fff;
}

.vacation-label {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: 0 0 10px;
}

.vacation-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vacation-input {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px 16px;
  /* 16px: mínimo que evita o zoom automático do Safari iOS ao tocar no campo. */
  font-size: 16px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.vacation-input::placeholder {
  color: #555;
}

.vacation-input:focus {
  border-color: #F59E0B;
}

.vacation-btn {
  background: linear-gradient(135deg, #d97706, #F59E0B);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s, transform 0.05s;
}

.vacation-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.vacation-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.vacation-error {
  display: none;
  text-align: center;
  font-size: 13px;
  color: #f87171;
  margin: 0;
}

.vacation-error.is-showing {
  display: block;
}

.vacation-skip {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  font-family: inherit;
}

.vacation-skip:hover {
  color: #fff;
}

/* ── Sucesso (dentro do popup) ── */
.vacation-success {
  display: none;
  text-align: center;
  padding: 10px 4px 4px;
}

.vacation-success.is-showing {
  display: block;
}

.vacation-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10B98122;
  border: 1px solid #10B98155;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.vacation-success-title {
  font-size: 18px;
  color: #fff;
  margin: 0 0 6px;
  font-weight: 700;
}

.vacation-success-text {
  font-size: 14px;
  color: #999;
  margin: 0 0 20px;
  line-height: 1.5;
}

.vacation-success-btn {
  background: #222;
  border: 1px solid #333;
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.vacation-success-btn:hover {
  background: #2a2a2a;
}

/* ── Aviso renderizado no servidor (carrinho em modo férias) ── */
.vacation-page {
  max-width: 560px;
  margin: 40px auto 80px;
  text-align: center;
  padding: 0 20px;
}

.vacation-page-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 34px;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.vacation-page h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: #fff;
  margin: 0 0 6px;
}

.vacation-page-flag {
  font-size: 13px;
  color: #F59E0B;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 0 0 20px;
}

.vacation-page-message {
  font-size: 15.5px;
  color: #cfcfcf;
  line-height: 1.7;
  white-space: pre-line;
  margin: 0 0 26px;
}

.vacation-page-message strong {
  color: #fff;
}

.vacation-page .vacation-label {
  margin-bottom: 10px;
}

.vacation-page-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.vacation-page-note {
  font-size: 13px;
  color: #666;
  margin-top: 20px;
}

.vacation-page-note a {
  color: #F59E0B;
}
/* ─── Mobile (≤ 600px) ──────────────────────────────────────────────────────
   Sem este bloco, o modal cresce conforme o conteúdo da mensagem e estourou
   718px de altura no iPhone SE (667px) — botões "Quero ser avisado" e "Agora
   não" saíam da tela. max-height em dvh + overflow interno deixa tudo acessível
   em qualquer aparelho. A font-size 16px (regra base) evita o auto-zoom iOS
   no input de e-mail — regra idêntica ao que M4 já guarda nos inputs do
   .form-group do checkout. */
@media (max-width: 600px) {
  .vacation-modal {
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 24px 20px 20px;
  }

  .vacation-overlay {
    padding: 20px 14px;
    align-items: flex-start;
  }
}
