/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ==========================================================================
   Modal de Pré-Checkout — Fase 3
   Motivo do CSS puro (não Tailwind):
   1. `.modal-overlay.hidden` precisa sobrescrever `display: flex` com `display: none`
      — o `hidden` do Tailwind usa `!important`, mas o seletor composto tem especificidade suficiente.
   2. `.cal-country-item:hover` é gerado via JS; o JIT do Tailwind não escaneia strings dinâmicas.
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Country selector — classes geradas via JS (JIT não escaneia) */
.cal-country-item:hover {
  background-color: #F3F4F6;
}

/* iOS Safari: previne auto-zoom ao focar inputs (exige font-size >= 16px) */
.modal-overlay input,
.modal-overlay textarea,
.modal-overlay select {
  font-size: 1rem;
}
