:root {
  --pmup-navy: #062f50;
  --pmup-navy-deep: #031f36;
  --pmup-blue: #1168c9;
  --pmup-blue-hover: #0a58b2;
  --pmup-radius: 10px;
  --pmup-glass-background: rgba(255, 255, 255, 0.10);
  --pmup-glass-background-hover: rgba(255, 255, 255, 0.16);
  --pmup-glass-border: rgba(255, 255, 255, 0.30);
  --pmup-glass-border-hover: rgba(255, 255, 255, 0.56);
  --pmup-glass-filter: blur(12px) saturate(118%);
  --pmup-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 28px rgba(1, 18, 32, 0.10);
  --pmup-glass-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 12px 30px rgba(1, 18, 32, 0.14);
}

[data-pmup-collection-toggle][aria-busy="true"] {
  cursor: progress !important;
  opacity: 0.58;
}


/*
 * Canonical Material Symbols state for every PMUP client. This is deliberately
 * independent of page wrappers, so taxonomy, homepage, search and Header use
 * the same outlined/inactive and filled/active state.
 */
[data-pmup-collection-toggle] {
  --pmup-collection-icon-fill: 0;
}

[data-pmup-collection-toggle].is-active,
[data-pmup-collection-toggle][aria-pressed="true"] {
  --pmup-collection-icon-fill: 1;
}

[data-pmup-collection-toggle] .material-symbols-outlined,
[data-pmup-collection-toggle] .material-symbols-rounded,
[data-pmup-collection-toggle] .material-symbols-sharp,
[data-pmup-collection-toggle] .pmup-material-symbol,
[data-pmup-collection-toggle] .pmdh-material-symbol {
  font-variation-settings:
    "FILL" var(--pmup-collection-icon-fill),
    "wght" var(--pmup-collection-icon-weight, 400),
    "GRAD" 0,
    "opsz" var(--pmup-collection-icon-optical-size, 24) !important;
}

.pmup-material-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Outlined", "Material Icons", sans-serif;
  font-size: 42px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  font-feature-settings: "liga" 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
  -webkit-font-smoothing: antialiased;
}

.pmup-auth-modal,
.pmup-auth-modal * {
  box-sizing: border-box;
}

.pmup-auth-modal {
  position: fixed;
  inset: 0;
  width: min(840px, calc(100vw - 32px));
  max-width: none;
  max-height: min(560px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--pmup-glass-border);
  border-radius: var(--pmup-radius);
  background: var(--pmup-glass-background);
  color: #fff;
  -webkit-backdrop-filter: var(--pmup-glass-filter);
  backdrop-filter: var(--pmup-glass-filter);
  box-shadow: var(--pmup-glass-shadow);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  z-index: 2147483647;
}

.pmup-auth-modal:not([open]) {
  display: none;
}

.pmup-auth-modal::backdrop {
  background: rgba(3, 24, 39, 0.66);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.pmup-auth-modal.is-fallback-open {
  z-index: 2147483647;
}

.pmup-auth-modal__shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  grid-template-areas: "media content";
  grid-template-rows: auto;
  align-items: stretch;
  gap: 0 clamp(1.25rem, 3vw, 2rem);
  min-height: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: inherit;
}

.pmup-auth-modal__shell.has-kicker {
  grid-template-areas:
    ". kicker"
    "media content";
  grid-template-rows: auto auto;
  row-gap: 0.65rem;
}

.pmup-auth-modal__media {
  position: relative;
  isolation: isolate;
  grid-area: media;
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--pmup-radius);
  background:
    radial-gradient(circle at 72% 18%, rgba(227, 201, 148, 0.28), transparent 34%),
    linear-gradient(145deg, var(--pmup-navy), var(--pmup-navy-deep));
}

.pmup-auth-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4, 28, 43, 0.55), rgba(4, 28, 43, 0.03) 58%);
}

.pmup-auth-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.pmup-auth-modal__placeholder {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid var(--pmup-glass-border);
  border-radius: 50%;
  background: var(--pmup-glass-background);
  color: #fff;
  -webkit-backdrop-filter: var(--pmup-glass-filter);
  backdrop-filter: var(--pmup-glass-filter);
  box-shadow: var(--pmup-glass-shadow);
}

.pmup-auth-modal__kicker {
  grid-area: kicker;
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pmup-auth-modal__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pmup-auth-modal__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.375rem, 1.2rem + 0.55vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

.pmup-auth-modal__text {
  flex: 1 1 auto;
  min-height: 0;
  margin: 1rem 0 0;
  overflow: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.pmup-auth-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.pmup-auth-modal .pmup-auth-modal__button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.82rem;
  border-radius: var(--pmup-radius);
  font: inherit !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.pmup-auth-modal__button--back {
  border: 1px solid var(--pmup-glass-border) !important;
  background: var(--pmup-glass-background) !important;
  color: #fff !important;
  -webkit-backdrop-filter: var(--pmup-glass-filter);
  backdrop-filter: var(--pmup-glass-filter);
  box-shadow: var(--pmup-glass-shadow) !important;
}

.pmup-auth-modal__button--back:hover {
  transform: translateY(-1px);
  border-color: var(--pmup-glass-border-hover) !important;
  background: var(--pmup-glass-background-hover) !important;
  box-shadow: var(--pmup-glass-shadow-hover) !important;
}

.pmup-auth-modal__button--login {
  border: 1px solid var(--pmup-blue) !important;
  background: var(--pmup-blue) !important;
  color: #fff !important;
  box-shadow: var(--pmup-glass-shadow) !important;
}

.pmup-auth-modal__button--login:hover {
  transform: translateY(-1px);
  border-color: var(--pmup-blue-hover) !important;
  background: var(--pmup-blue-hover) !important;
  color: #fff !important;
  box-shadow: var(--pmup-glass-shadow-hover) !important;
}

.pmup-auth-modal__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

.pmup-screen-reader-status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 680px) {
  .pmup-auth-modal {
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
  }

  .pmup-auth-modal__shell,
  .pmup-auth-modal__shell.has-kicker {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "kicker"
      "media"
      "content";
    grid-template-rows: auto auto auto;
    gap: 1rem;
    padding: 1rem;
  }

  .pmup-auth-modal__shell:not(.has-kicker) {
    grid-template-areas:
      "media"
      "content";
  }

  .pmup-auth-modal__content,
  .pmup-auth-modal__text {
    overflow: visible;
  }

  .pmup-auth-modal__text {
    flex: none;
  }

  .pmup-auth-modal__actions {
    margin-top: 0;
    padding-top: 0.5rem;
  }
}

@media (max-width: 420px) {
  .pmup-auth-modal__actions {
    grid-template-columns: 1fr;
  }
}
