/* Reference-sized iOS subscription hand-off dialog. */
body > .premium-mobile-only {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1010 !important;
  width: 100vw !important;
  height: var(--lbp-visual-viewport-height, 100dvh) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

body > .premium-mobile-only > .premium-mobile-only-dialog {
  position: relative !important;
  inset: auto !important;
  width: min(420px, calc(100vw - 32px)) !important;
  max-height: calc(var(--lbp-visual-viewport-height, 100dvh) - 32px) !important;
  margin: 0 !important;
  padding: 40px 32px 32px !important;
  overflow-y: auto;
  border-radius: 16px;
}

.premium-mobile-only-close {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: #4b5563;
  background: transparent;
}

.premium-mobile-only-close:hover {
  color: #111827;
  background: #f1f5f9;
}

.premium-mobile-only-close svg {
  width: 20px;
  height: 20px;
}

.premium-mobile-only-icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 20px !important;
}

.premium-mobile-only-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.premium-mobile-only-dialog h2 {
  margin: 0;
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
}

.premium-mobile-only-dialog p {
  max-width: none;
  margin: 12px 0 0 !important;
  color: #64748b;
  font-size: 14px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
}

.premium-mobile-only-store {
  display: flex;
  width: 100%;
  min-height: 52px !important;
  margin-top: 28px !important;
  padding: 12px 20px !important;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px !important;
  background: #f31260;
  color: #fff;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
  text-decoration: none;
}

.premium-mobile-only-dialog small {
  margin-top: 12px !important;
  color: #64748b;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
}

.premium-mobile-only-later {
  min-height: 40px !important;
  margin-top: 8px !important;
  color: #475569;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
}

@media (max-width: 639px) {
  body > .premium-mobile-only {
    padding: 8px !important;
  }

  body > .premium-mobile-only > .premium-mobile-only-dialog {
    width: calc(100vw - 16px) !important;
    max-height: calc(var(--lbp-visual-viewport-height, 100dvh) - 16px) !important;
    padding: 40px 24px 24px !important;
  }
}
