  /* ========================= */
  /* SELF-HOSTED FONTS         */
  /* ========================= */

  @font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
  }
  @font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  /* ========================= */
  /* RESET FIELDSET MIN WIDTH  */
  /* ========================= */
  /* Browsers default fieldset to min-inline-size:min-content which causes
     overflow on mobile when child selects have wide options. */
  fieldset {
    min-inline-size: 0;
    min-width: 0;
  }

  /* Constrain the phone country selector so it never pushes the wrapper wider */
  .phone-country-selector {
    flex-shrink: 0;
    max-width: 130px;
    overflow: hidden;
  }
body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

/* =========================================================
   V2 LOGIN — OAuth circles
   ========================================================= */

.v2-oauth-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.v2-oauth-row .v2-oauth-cap {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.v2-oauth-circles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Base button — only <a> and <button>, never divs/containers */
.v2-oauth-circles > a,
.v2-oauth-circles > button,
.v2-oauth-circles a.oauth-btn,
.v2-oauth-circles button.oauth-btn,
.v2-oauth-circles a.oauth-button,
.v2-oauth-circles button.oauth-button {
  width: 46px !important;
  height: 46px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
}

.v2-oauth-circles > a:hover,
.v2-oauth-circles > button:hover,
.v2-oauth-circles a.oauth-btn:hover,
.v2-oauth-circles button.oauth-btn:hover,
.v2-oauth-circles a.oauth-button:hover,
.v2-oauth-circles button.oauth-button:hover {
  transform: translateY(-2px);
  border-color: #007bff;
  box-shadow: 0 8px 20px rgba(0, 123, 255, .18);
}

.v2-oauth-circles > a:focus-visible,
.v2-oauth-circles > button:focus-visible,
.v2-oauth-circles a.oauth-btn:focus-visible,
.v2-oauth-circles button.oauth-btn:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 3px;
}

.v2-oauth-circles > a:active,
.v2-oauth-circles > button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

/* Hide label text — keep only SVG/IMG */
.v2-oauth-circles a > span:not(.sr-only):not([class*="icon"]),
.v2-oauth-circles button > span:not(.sr-only):not([class*="icon"]) {
  display: none !important;
}

/* Icon size */
.v2-oauth-circles svg,
.v2-oauth-circles img {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

/* Per-provider hover colors */
.v2-oauth-circles [data-provider="google"]:hover,
.v2-oauth-circles .oauth-google:hover { border-color: #4285F4; box-shadow: 0 8px 20px rgba(66, 133, 244, .22); }

.v2-oauth-circles [data-provider="apple"]:hover,
.v2-oauth-circles .oauth-apple:hover { border-color: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

.v2-oauth-circles [data-provider="microsoft"]:hover,
.v2-oauth-circles .oauth-microsoft:hover { border-color: #00A4EF; box-shadow: 0 8px 20px rgba(0, 164, 239, .22); }

.v2-oauth-circles [data-provider="itsme"]:hover,
.v2-oauth-circles .oauth-itsme:hover { border-color: #ff5a3c; box-shadow: 0 8px 20px rgba(255, 90, 60, .22); }

.v2-oauth-circles [data-provider="facebook"]:hover,
.v2-oauth-circles .oauth-facebook:hover { border-color: #1877F2; box-shadow: 0 8px 20px rgba(24, 119, 242, .22); }

/* Native tooltip */
.v2-oauth-circles [title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  text-transform: capitalize;
  letter-spacing: .02em;
  z-index: 10;
}

/* Disabled */
.v2-oauth-circles > a[aria-disabled="true"],
.v2-oauth-circles > button:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── oauth-buttons-container overrides (for oauth-buttons.php full-width layout) ── */

/* Collapse wrapper divs so buttons flow into .v2-oauth-circles directly */
.v2-oauth-row .oauth-buttons-container {
  display: contents;
}

.v2-oauth-row .oauth-buttons-container > div:not([data-oauth-spinner]) {
  display: contents;
}

/* The innermost div that wraps the two buttons — make it a row */
.v2-oauth-row .oauth-buttons-container > div > div {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap;
}

.v2-oauth-row .oauth-buttons-container button {
  flex: 0 0 auto !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
}

.v2-oauth-row .oauth-buttons-container button[data-oauth-provider="google"] {
  background: #fff !important;
  border: 1.5px solid #e2e8f0 !important;
}
.v2-oauth-row .oauth-buttons-container button[data-oauth-provider="google"]:hover {
  border-color: #4285F4 !important;
  background: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(66, 133, 244, .22);
}

.v2-oauth-row .oauth-buttons-container button[aria-label*="Apple"] {
  background: #000 !important;
  border: 1.5px solid #000 !important;
  color: #fff !important;
}
.v2-oauth-row .oauth-buttons-container button[aria-label*="Apple"]:hover {
  background: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.v2-oauth-row .oauth-buttons-container button > span {
  display: none !important;
}

.v2-oauth-row .oauth-buttons-container button > svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
  flex-shrink: 0;
}

.v2-oauth-row .oauth-buttons-container button:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 3px;
}

.v2-oauth-row .oauth-buttons-container button:active {
  transform: translateY(0);
}

.v2-oauth-row .oauth-buttons-container button:hover::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.v2-oauth-row .oauth-buttons-container button:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1e293b;
  pointer-events: none;
  z-index: 10;
}

/* OAuth spinner overlay */
.v2-oauth-row .oauth-buttons-container [data-oauth-spinner]:not(.hidden) {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 100;
}