.align-stage[data-band="blue"] .align-message {
  box-sizing: border-box;
  padding-inline: 1.25rem;
}

.align-stage[data-band="blue"] #align-copy.has-align-mark {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem 1.25rem;
}

.align-stage[data-band="blue"] .align-copy-mark {
  max-width: 100% !important;
  object-fit: contain;
}

/* Rain verification is adapted directly from rain-01-verification.html. */
.w2-rain-check-screen.cm-tap-screen.flow-permission-screen {
  flex: 1 1 auto;
  min-height: 100svh;
  height: 100dvh;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding:
    max(12px, env(safe-area-inset-top))
    24px
    0;
  overflow: hidden;
  background: #000;
}

.w2-rain-check-screen .rain-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.w2-rain-check-screen.cm-tap-screen .modal.modal-xs {
  box-sizing: border-box;
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 19rem;
  height: auto;
  min-height: 28rem;
  margin: 0;
  padding: 2.5rem 1.75rem 2.5rem;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.w2-rain-check-screen .icon-rain {
  -webkit-mask-image: url("./assets/icons/icon-rain.svg");
          mask-image: url("./assets/icons/icon-rain.svg");
}

.w2-rain-check-screen .icon-warning-circle {
  -webkit-mask-image: url("./assets/icons/icon-warning-circle.svg");
          mask-image: url("./assets/icons/icon-warning-circle.svg");
}

.w2-rain-check-screen .icon-rain-detected {
  -webkit-mask-image: url("./assets/icons/icon-rain-detected.svg");
          mask-image: url("./assets/icons/icon-rain-detected.svg");
}

.w2-rain-check-screen.cm-tap-screen .modal-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  color: var(--color-light-gold);
  opacity: 1;
}

.w2-rain-check-screen .cm-tap-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  gap: 1rem;
}

.w2-rain-check-screen.cm-tap-screen .cm-tap-content .modal-hl {
  width: 100%;
  margin: 0 0 -4px !important;
  font-family: var(--font-sans) !important;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
  white-space: pre-line;
}

.w2-rain-check-screen .modal-body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  white-space: pre-line;
  margin: 0;
  flex-grow: 0;
  display: block;
}

.w2-rain-check-screen .rain-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  margin: .5rem 0 0;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  text-align: left;
}

.w2-rain-check-screen .rain-notice .icon {
  width: 26px;
  height: 26px;
  color: var(--color-light-gold);
}

.w2-rain-check-screen .rain-notice p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-body);
}

.w2-rain-check-screen .cm-tap-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
}

.w2-rain-check-screen .cm-tap-footer .permission-try-button {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 3.5rem;
  padding: .7rem 1rem .85rem;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  font-size: 18px !important;
}

.w2-rain-check-screen > .error-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  max-width: 19rem;
  padding: 0 1.75rem 56px;
  margin-top: 0;
  gap: 16px;
}

.w2-rain-check-screen > .error-footer .action-primary {
  width: 100%;
  margin-bottom: 0;
  background-color: #000;
  background-image: none;
}

.w2-rain-check-screen > .error-footer .action-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: url("./assets/images/btn-gold.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: .5;
  pointer-events: none;
}

.w2-rain-check-screen > .error-footer .error-help-link {
  margin: 0;
}

.w2-rain-check-screen .sm-home-button {
  font-size: 15px !important;
  width: 12rem !important;
}

/* Exact sizing variants supplied in rain-02-checking.html and rain-03-verified.html. */
.w2-rain-checking-screen.cm-tap-screen .modal.modal-xs {
  min-height: 0;
  padding: 2.5rem 1.75rem;
  gap: 1.5rem;
}

.w2-rain-checking-screen .cm-tap-content {
  flex: 0 0 auto;
}

.w2-rain-checking-screen.cm-tap-screen .cm-tap-content .modal-hl {
  margin: 0 !important;
}

.w2-rain-checking-screen.cm-tap-screen .modal-icon svg {
  display: block;
  width: 64px;
  height: 64px;
}

.w2-rain-verified-screen.cm-tap-screen .modal.modal-xs {
  min-height: 28rem;
}

/* Supplied no-rain result: r1-rain-not-detected (1).html. */
.w2-rain-not-detected-screen .modal-s.modal-error {
  height: auto;
  min-height: 29rem;
}

.w2-rain-not-detected-screen .modal-s.modal-error .error-content {
  flex: 0 0 auto;
  gap: 1rem;
}

.w2-rain-not-detected-screen .modal-s.modal-error .error-content .modal-hl {
  margin: 0 !important;
}

.w2-rain-not-detected-screen .modal-s.modal-error .error-footer {
  margin-top: 40px;
}

.w2-rain-not-detected-screen .modal-s.modal-error .error-footer .divider-xs {
  margin: calc(1rem - 4px) 0 calc(0.85rem - 4px);
}

.w2-rain-not-detected-screen .action-error-home {
  font-size: 15px !important;
}

.w2-rain-not-detected-screen .action-error-home .icon {
  width: 20px;
  height: 20px;
}
