/*!
 * Age Gate (core) — styles
 * By default the gate inherits whatever font-family the page/theme is
 * already using (--age-gate-font: inherit), so it matches every site
 * automatically with zero setup. To force a specific font on one site
 * instead, override the variable in your own stylesheet (loaded AFTER
 * this file), e.g.:
 *
 *   :root {
 *     --age-gate-font: 'Oswald', 'Inter', sans-serif;
 *     --age-gate-accent: #b7862c;
 *     --age-gate-modal-bg: #0c0c10;
 *     --age-gate-text: #f5efe4;
 *   }
 */

:root {
  --age-gate-bg-overlay: rgba(10, 10, 12, 0.92);
  --age-gate-modal-bg: #16181d;
  --age-gate-modal-border: rgba(255, 255, 255, 0.08);
  --age-gate-text: #f2f2f2;
  --age-gate-muted: #a3a3a3;
  --age-gate-accent: #c9a24b;
  --age-gate-accent-text: #16181d;
  --age-gate-decline-bg: transparent;
  --age-gate-decline-text: #a3a3a3;
  --age-gate-font: inherit;
  --age-gate-radius: 12px;
  --age-gate-max-width: 420px;
}

html.age-gate-locked {
  overflow: hidden !important;
}

.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--age-gate-bg-overlay);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--age-gate-font);
}

.age-gate-modal {
  width: 100%;
  max-width: var(--age-gate-max-width);
  background: var(--age-gate-modal-bg);
  border: 1px solid var(--age-gate-modal-border);
  border-radius: var(--age-gate-radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.age-gate-logo {
  display: block;
  max-width: 160px;
  max-height: 64px;
  width: auto;
  height: auto;
  margin: 0 auto 16px;
}

.age-gate-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--age-gate-accent);
  font-weight: 600;
}

.age-gate-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--age-gate-text);
}

.age-gate-message {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--age-gate-muted);
}

.age-gate-checkboxes {
  text-align: left;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-gate-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.age-gate-checkbox {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--age-gate-accent);
  cursor: pointer;
}

.age-gate-checkbox-row label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--age-gate-text);
  cursor: pointer;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-gate-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.age-gate-btn:hover {
  opacity: 0.9;
}

.age-gate-btn:active {
  transform: scale(0.98);
}

.age-gate-btn:focus-visible {
  outline: 2px solid var(--age-gate-accent);
  outline-offset: 2px;
}

.age-gate-btn-confirm {
  background: var(--age-gate-accent);
  color: var(--age-gate-accent-text);
}

.age-gate-btn-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.age-gate-btn-decline {
  background: var(--age-gate-decline-bg);
  color: var(--age-gate-decline-text);
  border: 1px solid var(--age-gate-modal-border);
}

@media (max-width: 480px) {
  .age-gate-modal {
    padding: 24px 20px;
  }
}
