
.safe-pop {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: calc(100vw - 32px);
  max-width: 460px;
  height: fit-content;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.4);
  color: #0b2b6b;
  text-align: left;
}
.safe-pop:popover-open {
  display: flex;
  flex-direction: column;
}
.safe-pop::backdrop {
  background: rgb(5 20 60 / 0.55);
}
.safe-pop__head {
  position: relative;
  flex: none;
  padding: 1.4rem 1.6rem 1.2rem;
  background: linear-gradient(160deg, #0b3a8f, #0a2a6e);
  color: #fff;
  text-align: center;
}
.safe-pop__shield {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: rgb(74 222 128 / 0.15);
}
.safe-pop__shield svg {
  width: 32px;
  height: 32px;
  color: #4ade80;
}
.safe-pop__head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
}
.safe-pop__head p {
  margin: 0.35rem 0 0;
  color: rgb(255 255 255 / 0.85);
  font-size: 0.92rem;
}
.safe-pop__x {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.safe-pop__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.2rem 1.6rem 1.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.safe-pop__list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.safe-pop__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #1f2d4a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.safe-pop__list li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m7.5 12.5 3 3 6-6.5' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    rgb(22 163 74 / 0.14);
}
.safe-pop__list b {
  color: #0b2b6b;
}
.safe-pop__note {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #f1f5ff;
  color: #2b3a55;
  font-size: 0.88rem;
  line-height: 1.5;
}
.safe-pop__foot {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
}
.safe-pop__foot a {
  color: #1e5fd0;
  font-size: 0.9rem;
  font-weight: 700;
}
.safe-pop__ok {
  flex: none;
  padding: 0.65rem 1.3rem;
  border: 0;
  border-radius: 12px;
  background: #0b3a8f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.safe-pop :is(.safe-pop__x, .safe-pop__ok, a):focus-visible {
  outline: 2px solid #1e5fd0;
  outline-offset: 2px;
}
.safe-pop__x:focus-visible {
  outline-color: #fff;
}
@media (max-width: 700px) {
  .safe-pop__head {
    padding: 0.9rem 1.2rem 0.8rem;
  }
  .safe-pop__shield {
    width: 40px;
    height: 40px;
    margin-bottom: 0.35rem;
  }
  .safe-pop__head h3 {
    font-size: 1.12rem;
  }
  .safe-pop__head :is(h3, p) {
    padding: 0 2.4rem;
  }
  .safe-pop__head p {
    font-size: 0.85rem;
  }
  .safe-pop__foot {
    gap: 0.75rem;
  }
  .safe-pop__foot a {
    flex: 1 1 auto;
    min-width: 0;
  }
  .safe-pop__ok {
    padding-inline: 1.1rem;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .safe-pop__shield {
    display: none;
  }
}
