/*
 * Spirits of PA overrides for the BMM Popups plugin.
 * The plugin auto-loads this file from the active theme (after its own CSS),
 * so equal-specificity rules here win. Leave the per-popup "Button Color"
 * field empty — a color picked there is inlined and would override these.
 */

#bmm-popup-overlay {
  background: rgba(53, 49, 49, 0.75); /* --color-black at 75% */
}

.bmm-popup {
  background: var(--color-light);
  color: var(--color-black);
  font-family: var(--font-body), sans-serif;
  border-radius: var(--radius);
  padding: 32px;
}

.bmm-popup-title {
  font-family: var(--font-heading), serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1em;
  color: var(--color-black);
  text-wrap: balance;
}

/* No widows — never a lone word on its own line */
.bmm-popup-text,
.bmm-popup-text p {
  text-wrap: pretty;
}

/* Primary buttons match the site's .button style */
.bmm-popup-cta,
.bmm-popup-confirm {
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-body), sans-serif;
  font-weight: 700;
  line-height: 1.3em;
  padding: 1em 2em;
  border-radius: var(--radius);
}

.bmm-popup-cta:hover,
.bmm-popup-confirm:hover {
  filter: brightness(0.85);
  color: var(--color-white);
}

/* Secondary (under-21) button: quiet outline */
.bmm-popup-deny {
  background: transparent;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  font-weight: 700;
  line-height: 1.3em;
  padding: 1em 2em;
  border-radius: var(--radius);
}

.bmm-popup-close {
  color: var(--color-black);
}

/* Age gate: a touch more presence */
.bmm-popup[data-type="age_gate"] .bmm-popup-title {
  font-size: 2.4rem;
}

/* Cookie notice: slim cream banner */
.bmm-popup[data-type="cookie_notice"] {
  background: var(--color-light);
  border-radius: 0;
  padding: 16px 30px;
}

.bmm-popup[data-type="cookie_notice"] .bmm-popup-confirm {
  padding: 0.7em 1.6em;
}

/* Birth-date entry fields */
.bmm-dob-input {
  background: var(--color-white);
  border: 1px solid var(--color-main);
  border-radius: var(--radius);
  font-family: var(--font-body), sans-serif;
  color: var(--color-black);
}

.bmm-dob-error {
  color: var(--color-rye);
}

.bmm-popup-deny-notice {
  color: var(--color-rye);
  font-size: 1.1rem;
}

.bmm-popup:focus-visible,
.bmm-popup-confirm:focus-visible,
.bmm-popup-deny:focus-visible,
.bmm-popup-cta:focus-visible,
.bmm-popup-close:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}
