.hp-whatsapp-modal[hidden] { display: none; }
.hp-whatsapp-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.hp-whatsapp-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.42); }
.hp-whatsapp-modal__panel {
  position: relative;
  width: fit-content;
  max-width: min(100%, 680px);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.1rem 1rem;
  color: #0f172a;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}
.hp-whatsapp-modal__close { position: absolute; top: .65rem; right: .75rem; width: 2rem; height: 2rem; font-size: 1.2rem; line-height: 1; border-radius: 999px; background: #f8fafc; border: 1px solid #cbd5e1; color: #334155; cursor: pointer; }
.hp-whatsapp-modal__title { font-size: 1.2rem; font-weight: 800; margin-bottom: .4rem; padding-right: 2.5rem; }
.hp-whatsapp-modal__lead { font-size: .9rem; color: #475569; margin-bottom: 1rem; }
.hp-whatsapp-modal__feedback { margin-top: .85rem; border-radius: 10px; padding: .5rem .65rem; font-size: .78rem; }
.hp-whatsapp-modal__feedback--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.hp-whatsapp-modal__feedback--success { background: #ecfdf5; border: 1px solid #86efac; color: #166534; }
.hp-whatsapp-modal__cards {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-bottom: 2.1rem;
}
.hp-whatsapp-modal__option { margin: 0; }
.hp-whatsapp-modal__option-input { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp-whatsapp-modal__option .app-hero-feature-card-inner { padding: 1.15rem; }
.hp-whatsapp-modal__option .app-hero-feature-card-title { font-size: 1rem; }
.hp-whatsapp-modal__option .app-muted { color: #475569; }
.hp-whatsapp-modal__option .app-hero-feature-card { width: 100%; }
.hp-whatsapp-modal__option:hover { transform: none; }
.hp-whatsapp-modal__option:hover::before { transform: translate(0.25rem, 0.25rem); }
.hp-whatsapp-modal__option:has(.hp-whatsapp-modal__option-input:checked) .app-hero-feature-card-inner { box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
.hp-whatsapp-modal__option:has(.hp-whatsapp-modal__option-input:checked).app-hero-feature-card--whatsapp .app-hero-feature-card-inner { box-shadow: 0 0 0 3px rgba(109,191,107,.22); }
/* Uma linha: WhatsApp | Receber | Código | Validar — sem wrap no desktop (wrap quebrava em 2 linhas) */
.hp-whatsapp-modal__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem 0.62rem;
  min-width: 0;
}
.hp-whatsapp-modal__field { display: grid; gap: 0.32rem; min-width: 0; }
.hp-whatsapp-modal__field--phone {
  flex: 1 1 0;
  min-width: 8.75rem;
  max-width: 100%;
}
/* Largura só do rótulo + input; botão “Validar” fica logo ao lado (sem faixa vazia) */
.hp-whatsapp-modal__field--code {
  flex: 0 0 auto;
  min-width: 0;
  max-width: max-content;
  width: auto;
  justify-items: start;
}
.hp-whatsapp-modal__field--code .hp-whatsapp-modal__label {
  white-space: nowrap;
}
.hp-whatsapp-modal__field--code .hp-whatsapp-modal__input {
  width: 5.25rem;
  max-width: 5.25rem;
  box-sizing: border-box;
}
.hp-whatsapp-modal__label { font-size: .8rem; font-weight: 700; color: #334155; }
.hp-whatsapp-modal__input { border: 1px solid #cbd5e1; border-radius: 12px; padding: 0.55rem 0.65rem; background: #ffffff; color: #0f172a; outline: none; width: 100%; box-sizing: border-box; }
.hp-whatsapp-modal__input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.hp-whatsapp-modal__form {
  display: block;
  flex: 0 0 var(--hp-wa-btn, 7.75rem);
  min-width: 6.5rem;
  max-width: 8.5rem;
}
.hp-whatsapp-modal__verify {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
}
.hp-whatsapp-modal__cell-btn {
  flex: 0 0 var(--hp-wa-btn, 7.75rem);
  min-width: 6.5rem;
  max-width: 8.5rem;
}
.hp-whatsapp-modal__submit--line {
  width: 100%;
  min-height: 2.4rem;
  height: 2.4rem;
  box-sizing: border-box;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0 0.5rem;
}
.hp-whatsapp-modal__notice { font-size: .76rem; color: #475569; margin-top: .45rem; line-height: 1.45; }
.hp-whatsapp-modal__community { margin-top: .55rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; color: #16a34a; font-weight: 700; }

/* Modal “Painel” quando só há sessão por WhatsApp */
.hp-wa-panel-gate[hidden] { display: none; }
.hp-wa-panel-gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.hp-wa-panel-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.hp-wa-panel-gate__panel {
  position: relative;
  width: 100%;
  max-width: min(100%, 28rem);
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  color: #0f172a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}
.hp-wa-panel-gate__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
}
.hp-wa-panel-gate__body { padding: 1.25rem 1.1rem 1rem; overflow-y: auto; }
.hp-wa-panel-gate__head { text-align: center; margin-bottom: 1rem; padding: 0 1.75rem 0 0.25rem; }
.hp-wa-panel-gate__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.35rem; }
.hp-wa-panel-gate__lead { margin: 0; font-size: 0.85rem; line-height: 1.45; color: #64748b; }
.hp-wa-panel-gate__cards { display: flex; flex-direction: column; gap: 0.65rem; }
.hp-wa-panel-gate__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hp-wa-panel-gate__card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}
.hp-wa-panel-gate__card--primary:hover { border-color: #93c5fd; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12); }
.hp-wa-panel-gate__card--whatsapp {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.hp-wa-panel-gate__card--whatsapp:hover {
  border-color: #86efac;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
  background: #ecfdf5;
}
.hp-wa-panel-gate__card-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #64748b;
}
.hp-wa-panel-gate__card--whatsapp .hp-wa-panel-gate__card-icon { color: #16a34a; }
.hp-wa-panel-gate__card--primary .hp-wa-panel-gate__card-icon { color: #2563eb; }
.hp-wa-panel-gate__card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; text-align: left; }
.hp-wa-panel-gate__card-title { font-weight: 700; font-size: 0.95rem; }
.hp-wa-panel-gate__card-desc { font-size: 0.78rem; line-height: 1.4; color: #64748b; }
.hp-wa-panel-gate__card-chevron {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
}
.hp-wa-panel-gate__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.hp-wa-panel-gate__footer-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
}
.hp-wa-panel-gate__footer-btn:hover { background: #f1f5f9; }
@media (min-width: 768px) {
  .hp-whatsapp-modal__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Empilha em telas estreitas */
@media (max-width: 639px) {
  .hp-whatsapp-modal__panel {
    width: 100%;
    max-width: min(100%, 680px);
  }
  .hp-whatsapp-modal__row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .hp-whatsapp-modal__field--phone { flex: 1 1 auto; max-width: none; }
  .hp-whatsapp-modal__form,
  .hp-whatsapp-modal__cell-btn { max-width: none; }
  .hp-whatsapp-modal__verify { flex-wrap: wrap; }
  .hp-whatsapp-modal__field--code { flex: 1 1 100%; min-width: 0; max-width: none; }
  .hp-whatsapp-modal__field--code .hp-whatsapp-modal__label { white-space: normal; }
  .hp-whatsapp-modal__field--code .hp-whatsapp-modal__input { max-width: none; width: 100%; }
}
