.mobile-lost-notice[hidden] { display: none; }

:is(.mobile-lost-notice, .addr-pop) {
  position: fixed;
  inset: 0;
  z-index: var(--layer-notice);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "PingFang SC", sans-serif;
}

:is(.mobile-lost-notice__backdrop, .addr-pop__backdrop) {
  position: absolute;
  inset: 0;
  background: #000000b2;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

:is(.mobile-lost-notice__inner, .addr-pop__inner) {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(311px, calc(100vw - 32px));
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

:is(.mobile-lost-notice__panel, .addr-pop__panel) {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  overflow: auto;
  border-radius: 12px;
  background: var(--color-surface-modal);
  color: var(--color-text-primary-dark);
  scrollbar-width: none;
}

:is(.mobile-lost-notice__panel, .addr-pop__panel)::-webkit-scrollbar { display: none; }

:is(.mobile-lost-notice__capture, .addr-pop__capture) {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px 0;
}

:is(.mobile-lost-notice__title, .addr-pop__title) {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

:is(.mobile-lost-notice__divider, .addr-pop__divider) {
  position: relative;
  width: 100%;
  height: 0;
  flex: none;
}

:is(.mobile-lost-notice__divider, .addr-pop__divider)::after {
  position: absolute;
  top: -.25px;
  left: 0;
  width: 100%;
  height: .5px;
  background: var(--color-divider-dark);
  content: "";
}

:is(.mobile-lost-notice__details, .addr-pop__details) {
  min-height: 100px;
  overflow-wrap: anywhere;
  color: var(--color-text-secondary-dark);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

:is(.mobile-lost-notice__details, .addr-pop__details) p,
:is(.mobile-lost-notice__warning, .addr-pop__warning),
:is(.mobile-lost-notice__countdown, .addr-pop__countdown) { margin: 0; }

.mobile-lost-notice__details a,
.addr-pop__details [data-lost-notice-open-window] {
  color: var(--color-brand-primary);
  text-decoration: none;
}

.addr-pop__details a,
.mobile-lost-notice__details :is([data-lost-notice-field="newUrlAddr"], [data-lost-notice-field="foreverUrlAddr"], [data-lost-notice-field="gmailAddr"]) a {
  color: inherit;
  text-decoration: none;
}

.addr-pop__details [data-lost-notice-open-window] { color: var(--color-brand-primary); }

:is(.mobile-lost-notice__warning, .addr-pop__warning) {
  min-height: 40px;
  color: var(--color-text-secondary-dark);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

:is(.mobile-lost-notice__warning, .addr-pop__warning) :is(strong, span),
:is(.mobile-lost-notice__countdown, .addr-pop__countdown) strong {
  color: var(--color-status-warning);
  font-weight: 400;
}

:is(.mobile-lost-notice__links, .addr-pop__links) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

:is(.mobile-lost-notice__links, .addr-pop__links) a {
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  height: 32px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px 12px;
  border: 0;
  box-shadow: inset 0 0 0 .5px var(--color-brand-primary);
  border-radius: 999px;
  color: var(--color-brand-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.mobile-lost-notice__links, .addr-pop__links) a[hidden] { display: none; }

:is(.mobile-lost-notice__footer, .addr-pop__footer) {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 122px;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

:is(.mobile-lost-notice__save, .addr-pop__save) {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  flex: none;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--color-brand-primary);
  color: #fff;
  cursor: pointer;
  font: 700 16px/22px "PingFang SC", sans-serif;
  text-align: center;
}

:is(.mobile-lost-notice__save, .addr-pop__save):disabled { cursor: wait; opacity: .7; }
:is(.mobile-lost-notice__save, .addr-pop__save):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

:is(.mobile-lost-notice__countdown, .addr-pop__countdown) {
  color: var(--color-text-secondary-dark);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

:is(.mobile-lost-notice__close, .addr-pop__close) {
  display: none;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

:is(.mobile-lost-notice__close, .addr-pop__close) img { display: block; width: 36px; height: 36px; }
:is(.mobile-lost-notice__close, .addr-pop__close):focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 50%; }

@media (min-width: 769px) {
  :is(.mobile-lost-notice__backdrop, .addr-pop__backdrop) {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  :is(.mobile-lost-notice__inner, .addr-pop__inner) { width: 400px; }

  :is(.mobile-lost-notice__panel, .addr-pop__panel) {
    display: flex;
    max-height: calc(100vh - 92px);
    max-height: calc(100svh - 92px);
    flex-direction: column;
    gap: 18px;
    padding: 24px 12px;
    border-radius: 20px;
    outline: 1px solid #ffffff33;
  }

  :is(.mobile-lost-notice__divider--mobile, .addr-pop__divider--mobile) { display: none; }

  :is(.mobile-lost-notice__details, .addr-pop__details) {
    min-height: 110px;
    font-size: 16px;
    line-height: 22px;
  }

  :is(.mobile-lost-notice__warning, .addr-pop__warning) {
    min-height: 44px;
    font-size: 16px;
    line-height: 22px;
  }

  :is(.mobile-lost-notice__links, .addr-pop__links) a {
    height: 36px;
    font-size: 14px;
    line-height: 20px;
  }

  :is(.mobile-lost-notice__footer, .addr-pop__footer) { min-height: 124px; }
  :is(.mobile-lost-notice__save, .addr-pop__save) { font-weight: 500; }
  :is(.mobile-lost-notice__countdown, .addr-pop__countdown) { font-size: 14px; line-height: 20px; }
  :is(.mobile-lost-notice__close, .addr-pop__close) { display: block; }
}
