/* Production-only refinements prepared from the current remote snapshot. */
@media (max-width: 767px) {
  .rt-instructions-screen {
    height: auto !important;
    min-height: calc(100dvh - var(--rt-header-height, 66px)) !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding-bottom: calc(50dvh - 21px) !important;
  }

  .rt-instructions-steps {
    display: grid !important;
    gap: 0 !important;
  }

  .rt-instruction-card,
  .rt-instruction-card:nth-child(n) {
    min-height: 0 !important;
    display: block !important;
    padding: 1.35rem 1.65rem !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }

  .rt-instruction-card:first-child { padding-top: 2.25rem !important; }
  .rt-instruction-card:last-child { padding-bottom: 2.25rem !important; }

  .rt-instructions-screen .rt-instructions-back {
    min-width: 9rem !important;
    margin: 1.5rem auto 0 !important;
  }
}

.account-access-card.account-choice-ready {
  width: min(100%, 1040px) !important;
  min-height: min(680px, calc(100dvh - 4rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden;
}

.account-access-choice-title {
  margin: 0 0 clamp(2.5rem, 8vh, 5.25rem);
  color: #fff;
  font-family: var(--font-heading, "ElmsSans", Georgia, serif) !important;
  font-size: clamp(1.65rem, 2.4vw, 1.92rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.045em;
  text-align: center;
  text-wrap: balance;
}

.account-access-choices {
  width: min(100%, 900px);
  min-height: 230px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  transition: opacity .28s ease, transform .34s cubic-bezier(.22, 1, .36, 1);
}

.account-provider-choice,
.account-phone-choice-panel {
  display: grid;
  grid-template-rows: 70px;
  align-content: center;
  justify-items: center;
  gap: 1.15rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  text-align: center;
  font-family: "Open Sans", var(--font-sans, sans-serif);
}

.account-choice-label {
  display: none !important;
  margin: 0;
  color: #fff;
  font: 500 clamp(1.05rem, 1.8vw, 1.35rem)/1.25 "Open Sans", var(--font-sans, sans-serif);
}

.account-choice-separator {
  width: 1px;
  height: 100%;
  background: rgb(255 255 255 / .82);
}

.account-social-icons {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 70px;
}

.account-access-choices .gsi-material-button {
  position: relative;
  flex: 0 0 70px !important;
  width: 70px !important;
  min-width: 70px !important;
  height: 70px !important;
  min-height: 70px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgb(0 0 0 / .3) !important;
  overflow: hidden;
}

.gsi-material-button-state {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
}

.gsi-material-button:hover .gsi-material-button-state {
  background: #303030;
  opacity: .08;
}

.gsi-material-button-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.gsi-material-button-icon {
  width: 42px;
  height: 42px;
}

.gsi-material-button-icon svg {
  display: block !important;
  width: 100%;
  height: 100%;
}

.account-access-screen .account-access-choices .gsi-material-button .gsi-material-button-icon,
.account-access-screen .account-access-choices .gsi-material-button .gsi-material-button-icon svg {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}

.account-phone-choice {
  position: relative;
  width: min(100%, 285px);
  min-height: 52px;
  padding: .8rem 1.35rem;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #bd3741;
  font: 500 1rem/1.15 "Open Sans", var(--font-sans, sans-serif);
  box-shadow: 0 1px 3px rgb(0 0 0 / .3);
  align-self: center;
  overflow: hidden;
  cursor: pointer;
}

.account-phone-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #303030;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.account-phone-choice:hover::before,
.account-phone-choice:focus-visible::before {
  opacity: .08;
}

.account-phone-choice:focus-visible {
  outline: 2px solid rgb(255 255 255 / .9);
  outline-offset: 3px;
}

.account-access-choice-footer {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 2;
  transform: translateX(-50%);
  text-align: center;
}

.account-access-choice-footer .account-privacy-trigger {
  width: auto !important;
  min-width: 220px;
  margin: 0 !important;
}

.account-access-card.account-choice-ready:not(.account-phone-expanded) .account-access-step {
  display: none !important;
}

.account-access-card.step-code {
  position: relative;
  width: min(100%, 760px) !important;
  min-height: min(680px, calc(100dvh - 4rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(4.5rem, 9vh, 6rem) clamp(1.5rem, 6vw, 4rem) 4rem !important;
  overflow: hidden !important;
}

.account-access-card.step-code .account-access-choice-title,
.account-access-card.step-code .account-access-choices,
.account-access-card.step-code .account-access-choice-footer {
  display: none !important;
}

.account-access-card.step-code .account-access-step {
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  margin: auto !important;
}

.account-access-card.step-code .account-access-step[hidden],
.account-access-card.step-code .account-phone-demo-extra [hidden] {
  display: none !important;
}

.account-access-card.step-code.account-email-mode .account-phone-demo-extra {
  display: block !important;
}

.account-access-card.step-code.account-email-mode
  .account-phone-demo-extra
  input[type="email"] {
  border-radius: 0 !important;
}

.account-access-card.step-code .account-access-back {
  position: absolute !important;
  top: max(1.2rem, env(safe-area-inset-top)) !important;
  left: max(1.2rem, env(safe-area-inset-left)) !important;
  z-index: 5;
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  min-width: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.account-access-card.step-code .account-code-footer {
  width: 100%;
}

.account-access-card.step-code .account-privacy-trigger {
  display: none !important;
}

.account-code-privacy-link {
  position: fixed !important;
  z-index: 4;
  left: 50% !important;
  bottom: max(1.4rem, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: .35rem .15rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  font: 600 .88rem/1.25 "Open Sans", var(--font-sans, sans-serif) !important;
  text-decoration: underline;
  text-underline-offset: .2em;
  transform: translateX(-50%);
}

.account-access-card.step-code
  .account-resend-area:has(button:not(:disabled))
  strong {
  display: none !important;
}

.account-access-screen:has(.account-email-mode),
.account-access-screen.account-email-screen,
.account-access-card.step-code.account-email-mode {
  background: #6f8ba7 !important;
}

/* Email and newsletter are full-screen colour stages: no lighter inner panel. */
.account-access-screen:has(.account-email-mode),
.account-access-screen.account-email-screen,
.account-access-screen:has(.account-email-mode) .account-access-card,
.account-access-screen.account-email-screen .account-access-card,
.account-access-card.step-code.account-email-mode {
  background-color: #6f8ba7 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.account-access-card.step-code.account-email-mode
  .account-phone-demo-extra {
  color: #fff !important;
}

.account-access-card.step-code.account-email-mode
  .account-phone-demo-extra
  h2,
.account-access-card.step-code.account-email-mode
  .account-phone-demo-extra
  p {
  color: #fff !important;
}

.account-access-card.step-code.account-email-mode
  .account-phone-demo-extra
  input[type="email"],
.account-access-card.step-code.account-email-mode
  .account-phone-demo-extra
  > .account-access-submit {
  width: min(100%, 520px) !important;
}

.account-access-card.step-code.account-email-mode
  .account-phone-demo-extra
  > .account-access-submit {
  display: block;
  margin: 1.35rem auto 0 !important;
  color: #343a40 !important;
}

.account-access-card.account-phone-expanded {
  align-items: center !important;
}

.account-access-card.account-phone-expanded .account-access-choice-title,
.account-access-card.account-phone-expanded .account-access-choices {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-22px);
}

.account-access-card.account-phone-expanded .account-access-step {
  width: min(100%, 620px);
  display: block !important;
  margin: auto !important;
  animation: accountPhoneExpand .46s cubic-bezier(.22, 1, .36, 1) both;
}

.account-access-card.account-phone-expanded .account-access-divider,
.account-access-card.account-phone-expanded .account-google-button {
  display: none !important;
}

.account-access-back {
  position: absolute;
  top: max(1.2rem, env(safe-area-inset-top));
  left: max(1.2rem, env(safe-area-inset-left));
  z-index: 4;
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 500 .95rem/1 "Open Sans", var(--font-sans, sans-serif);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity .25s ease, transform .3s ease;
}

.account-access-card.account-phone-expanded .account-access-back {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.account-access-card.account-phone-expanded .account-access-step,
.account-access-card.account-phone-expanded .account-access-step p,
.account-access-card.account-phone-expanded .account-access-step label,
.account-access-card.account-phone-expanded .account-access-step button,
.account-access-choice-footer button {
  font-family: "Open Sans", var(--font-sans, sans-serif) !important;
  font-weight: 500 !important;
}

.account-access-screen .account-access-choice-title,
.account-access-screen .account-access-step h1,
.account-access-screen .account-access-step h2,
.account-access-screen .account-access-step h3 {
  font-family: var(--font-heading, "ElmsSans", Georgia, serif) !important;
  font-weight: 800 !important;
}

.account-access-screen .account-access-choice-title,
.account-access-screen .account-access-step h2 {
  font-size: clamp(1.65rem, 2.4vw, 1.92rem) !important;
  line-height: 1.15 !important;
}

.account-access-card.account-phone-expanded .account-phone-entry {
  width: min(100%, 580px) !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  margin-inline: auto !important;
}

.account-access-card.account-phone-expanded .account-phone-entry > :last-child {
  min-width: 0 !important;
  width: 100% !important;
}

.account-access-card.account-phone-expanded .account-phone-entry input[type="tel"] {
  min-width: 13ch !important;
  width: 100% !important;
  font-size: 1.1rem !important;
}

.account-access-card .account-auth-error {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: .75rem auto 0;
  padding: .55rem .8rem;
  border-radius: .55rem;
  background: #fff4f4 !important;
  color: #7d1720 !important;
  font: 600 .9rem/1.35 "Open Sans", var(--font-sans, sans-serif) !important;
}

@keyframes accountPhoneExpand {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.tapa-page-actions { display: none !important; }

.account-phone-demo-extra {
  width: min(100%, 620px);
  margin: auto;
  text-align: center;
}

.account-phone-demo-extra input[type="email"] {
  width: min(100%, 520px);
  min-height: 56px;
  margin: 1.25rem auto;
  padding: .8rem 1rem;
  border: 1px solid rgb(255 255 255 / .75);
  border-radius: .65rem;
  background: #fff;
  color: #2b2021;
  font: 500 1rem/1.2 "Open Sans", var(--font-sans, sans-serif);
}

.account-phone-demo-extra .account-newsletter-actions {
  width: min(100%, 520px);
  margin: 1.5rem auto 0;
}

.account-access-screen:has(.account-newsletter-mode),
.account-access-screen.account-newsletter-screen,
.account-access-card.account-newsletter-mode {
  background: #debe18 !important;
}

.account-access-screen:has(.account-newsletter-mode),
.account-access-screen.account-newsletter-screen,
.account-access-screen:has(.account-newsletter-mode) .account-access-card,
.account-access-screen.account-newsletter-screen .account-access-card,
.account-access-card.account-newsletter-mode {
  background-color: #debe18 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.account-access-screen:has(.account-email-mode)::before,
.account-access-screen:has(.account-email-mode)::after,
.account-access-screen:has(.account-newsletter-mode)::before,
.account-access-screen:has(.account-newsletter-mode)::after,
.account-email-mode::before,
.account-email-mode::after,
.account-newsletter-mode::before,
.account-newsletter-mode::after {
  background: transparent !important;
  box-shadow: none !important;
}

.account-access-card.account-newsletter-mode {
  color: #241c15 !important;
}

.account-newsletter-mode .account-phone-demo-extra {
  position: static;
  width: min(calc(100vw - 4rem), 960px) !important;
  max-width: none !important;
  flex: 0 0 auto;
  color: #241c15;
  background: transparent !important;
}

.account-newsletter-mode .account-access-back {
  border-color: #241c15;
  color: #241c15;
}

.account-newsletter-mode .account-phone-demo-extra h2 {
  max-width: 820px;
  margin: 0 auto;
  color: #241c15 !important;
  font-family: var(--font-heading, "ElmsSans", Georgia, serif) !important;
  font-size: clamp(1.65rem, 2.4vw, 1.92rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -.035em;
  text-align: center;
  text-wrap: balance;
}

.account-newsletter-mode .account-newsletter-intro {
  max-width: 650px;
  margin: 1rem auto 0 !important;
  color: #241c15 !important;
  font: 500 1rem/1.5 "Open Sans", var(--font-sans, sans-serif) !important;
}

.account-newsletter-mode .account-phone-demo-extra,
.account-newsletter-mode .account-phone-demo-extra h2,
.account-newsletter-mode .account-phone-demo-extra p,
.account-newsletter-mode .account-newsletter-intro,
.account-newsletter-mode .account-newsletter-legal {
  color: #111 !important;
}

.account-newsletter-mode .account-newsletter-actions {
  width: min(100%, 900px);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-newsletter-mode .account-newsletter-actions button {
  width: 100% !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: .9rem 1.25rem !important;
  border: 2px solid #241c15 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #241c15 !important;
  font: 600 1rem/1.3 "Open Sans", var(--font-sans, sans-serif) !important;
}

.account-newsletter-mode
  .account-newsletter-actions
  button[data-consent="false"] {
  border-color: transparent !important;
  background: #fff !important;
  color: #111 !important;
}

.account-newsletter-mode .account-newsletter-actions button:hover,
.account-newsletter-mode .account-newsletter-actions button:focus-visible {
  background: #241c15 !important;
  color: #fff !important;
}

.account-newsletter-mode .account-newsletter-legal {
  max-width: 780px;
  margin: 2rem auto 0 !important;
  color: #241c15 !important;
  font: 500 .78rem/1.5 "Open Sans", var(--font-sans, sans-serif) !important;
}

.account-newsletter-mode .account-newsletter-privacy,
.account-access-screen > .account-newsletter-privacy {
  position: fixed !important;
  z-index: 5;
  left: 50% !important;
  bottom: max(1.4rem, env(safe-area-inset-bottom)) !important;
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #241c15 !important;
  font: inherit !important;
  text-decoration: underline;
  text-underline-offset: .15em;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .account-access-card.account-choice-ready {
    padding: clamp(3rem, 7vh, 5.5rem) clamp(2.5rem, 6vw, 5rem) 5.5rem !important;
  }
}

@media (max-width: 767px) {
  .account-access-screen {
    padding: 0 !important;
    background: var(--account-access-bg, #cf3f4d) !important;
    overflow-x: hidden !important;
  }

  .account-access-card.account-choice-ready {
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: max(4.5rem, env(safe-area-inset-top)) 1.4rem 5.5rem !important;
    border-radius: 0 !important;
    background: var(--account-access-bg, #cf3f4d) !important;
    transform: none !important;
  }

  .account-access-card.step-code {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: max(4.75rem, calc(env(safe-area-inset-top) + 4rem)) 1rem
      max(2rem, calc(env(safe-area-inset-bottom) + 1rem)) !important;
    border-radius: 0 !important;
    background: var(--account-access-bg, #cf3f4d) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .account-access-card.step-code .account-access-step {
    width: min(100%, 570px) !important;
    max-width: 570px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .account-access-choice-title {
    order: 1;
    position: absolute;
    top: max(6.75rem, calc(env(safe-area-inset-top) + 5rem));
    left: 1.4rem;
    right: 1.4rem;
    z-index: 2;
    margin: 0 auto;
    font-size: clamp(1.65rem, 2.4vw, 1.92rem);
  }

  .account-access-choices {
    order: 2;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(106px, auto) 1px minmax(106px, auto);
    transform: translateY(2vh);
  }

  .account-provider-choice,
  .account-phone-choice-panel {
    grid-template-rows: 50px;
    gap: 0;
    padding: .85rem .35rem;
  }

  .account-access-choices .gsi-material-button {
    flex-basis: 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
  }

  .account-social-icons {
    height: 50px;
  }

  .account-access-screen .account-access-choices .gsi-material-button .gsi-material-button-icon,
  .account-access-screen .account-access-choices .gsi-material-button .gsi-material-button-icon svg {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .account-choice-separator {
    width: min(100%, 300px);
    height: 1px;
    margin: auto;
  }

  .account-access-choice-footer {
    left: 0 !important;
    right: 0 !important;
    position: fixed;
    width: min(calc(100% - 3rem), 570px);
    margin-inline: auto;
    bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1.25rem));
    transform: none;
    display: flex;
    justify-content: center;
  }

  .account-access-card.account-phone-expanded {
    justify-content: center !important;
    padding: 4.5rem 1rem 5.5rem !important;
  }

  .account-access-card.account-phone-expanded .account-access-step {
    max-height: calc(100dvh - 9rem);
    overflow-y: auto;
  }

  .account-access-card.account-phone-expanded .account-phone-entry {
    width: 100% !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: .65rem !important;
  }

  .account-access-card.account-phone-expanded .account-phone-entry input[type="tel"] {
    min-width: 12ch !important;
  }

  .account-access-back {
    position: fixed;
  }

  .account-newsletter-mode .account-phone-demo-extra {
    width: calc(100vw - 2rem) !important;
    max-height: none !important;
    margin: auto !important;
    overflow: visible !important;
  }

  .account-access-screen:has(.account-newsletter-mode) {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .account-access-card.account-newsletter-mode {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 5rem 1rem 1.5rem !important;
    justify-content: center !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .account-newsletter-mode .account-newsletter-actions {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .account-newsletter-mode .account-newsletter-actions button {
    min-height: 58px !important;
  }

  .account-newsletter-mode .account-newsletter-legal {
    margin-top: 1.4rem !important;
    padding-inline: .25rem;
  }
}
