/* Desktop latest-address popup aligned with the mobile lost-notice dialog. */

body.addr-pop-open {
  overflow: hidden;
}

.addr-pop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.addr-pop--open {
  display: flex;
}

.addr-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.addr-pop__panel {
  position: relative;
  z-index: 1;
  width: min(343px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  overflow: auto;
  border-radius: 12px;
  background: #0b0d0e;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .38);
  color: rgba(255, 255, 255, .9);
  scrollbar-width: none;
}

.addr-pop__panel::-webkit-scrollbar {
  display: none;
}

.addr-pop__capture {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px 0;
  background: #0b0d0e;
}

.addr-pop__title {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

.addr-pop__divider {
  width: 100%;
  height: 1px;
  flex: none;
  background: rgba(255, 255, 255, .08);
}

.addr-pop__details {
  min-height: 100px;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  line-height: 20px;
}

.addr-pop__details p,
.addr-pop__warning,
.addr-pop__countdown {
  margin: 0;
}

.addr-pop__details a {
  color: inherit;
  text-decoration: none;
}

.addr-pop__details [data-lost-notice-open-window] {
  color: #e9b54b;
}

.addr-pop__details a:hover,
.addr-pop__links a:hover {
  text-decoration: underline;
}

.addr-pop__warning {
  min-height: 40px;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.addr-pop__warning strong,
.addr-pop__warning span {
  color: #f52c56;
  font-weight: 400;
}

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

.addr-pop__links a {
  display: flex;
  min-width: 0;
  height: 32px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px 12px;
  border: .5px solid #e9b54b;
  border-radius: 999px;
  color: #e9b54b;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.addr-pop__footer {
  display: flex;
  width: 100%;
  min-height: 122px;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.addr-pop__save {
  width: 100%;
  height: 44px;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: #e9b54b;
  color: #191919;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
}

.addr-pop__save:disabled {
  cursor: wait;
  opacity: .7;
}

.addr-pop__countdown {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.addr-pop__countdown strong {
  color: #f52c56;
  font-weight: 400;
}

@media (max-height: 680px) {
  .addr-pop {
    align-items: flex-start;
  }
}
