/* Age and region gate on Cruise Control pages, and the age gate on the blog.
   The card, heading, text and link styles come from /pages.css (section.card); the filled button copies
   .post-button in comments.css, which uses the cruush button gradient. */
html.cc-gate { overflow: hidden; }

/* Covers the page from the first paint until gate.js shows the card. */
html.cc-gate body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: var(--background);
}

.cc-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  background: var(--background);
}

.cc-gate-overlay section.card { width: 100%; max-width: 28rem; margin: 0; }
.cc-gate-overlay h2:focus { outline: none; }

.cc-gate-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }

.cc-gate-button {
  border: 0;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(90deg, #FF0072 6.08%, #6F00FF 43.11%, #3826FF 58.46%, #004BFF 73.81%, #1181FF 100%);
  box-shadow: none;
  cursor: pointer;
}
.cc-gate-button:disabled { opacity: 0.6; cursor: default; }

.cc-gate-overlay .cc-gate-error { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--foreground); }

/* Country and state pickers: the field style of the former comment form. */
.cc-gate-field { display: grid; gap: 0.375rem; margin: 0 0 1rem; }
.cc-gate-field[hidden] { display: none; }
.cc-gate-field label { font-size: 0.875rem; color: var(--foreground); }
.cc-gate-select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

/* Date of birth: Month, Day and Year pickers in one row, in the same field
   style as the country and state pickers. */
.cc-gate-dob { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.cc-gate-dob legend { padding: 0; margin: 0 0 0.375rem; font-size: 0.875rem; color: var(--foreground); }
.cc-gate-dob-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.5rem; }
@media (max-width: 359px) {
  .cc-gate-dob-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cc-gate-dob-row select:first-child { grid-column: 1 / -1; }
}
