/* Age Gate - Industry-standard verification for firearm/ammunition retailers
   Aligns with PSA, Ammo Depot, Chattanooga-style implementations: 21+, no bypass */

.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.age-gate-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: age-gate-slideUp 0.35s ease-out;
}

@keyframes age-gate-slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.age-gate-header {
  margin-bottom: 1.25rem;
}

.age-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
  background: #b22222;
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.age-gate-icon::before {
  content: "21";
}

.age-gate-content h1 {
  font-size: 1.5rem;
  color: #181a1b;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.age-gate-intro {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.age-gate-intro strong {
  color: #181a1b;
}

.age-gate-question {
  background: #f5f5f5;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.75rem;
  border: 1px solid #e8e8e8;
}

.age-gate-question p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #181a1b;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.age-gate-btn {
  padding: 1rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  text-transform: none;
  letter-spacing: 0.02em;
}

.age-gate-btn-confirm {
  background: #b22222;
  color: #fff;
  border-color: #b22222;
}

.age-gate-btn-confirm:hover {
  background: #8b1a1a;
  border-color: #8b1a1a;
  box-shadow: 0 4px 14px rgba(178, 34, 34, 0.35);
}

.age-gate-btn-deny {
  background: #fff;
  color: #555;
  border-color: #ccc;
}

.age-gate-btn-deny:hover {
  background: #f5f5f5;
  border-color: #999;
}

.age-gate-legal {
  font-size: 0.75rem;
  color: #777;
  line-height: 1.45;
  margin-top: 0;
}

.age-gate-legal p {
  margin: 0;
}

.age-gate-legal a {
  color: #b22222;
  text-decoration: none;
  font-weight: 600;
}

.age-gate-legal a:hover {
  text-decoration: underline;
}

/* Block all page content and scroll when gate is shown */
body.age-gate-shown {
  overflow: hidden;
  height: 100%;
}

body.age-gate-shown > *:not(.age-gate-modal) {
  display: none !important;
}
