.pp-overlay,
.pp-overlay * {
  box-sizing: border-box;
}

.pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.pp-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pp-dialog {
  position: relative;
  width: min(100%, 460px);
  padding: 36px 32px 28px;
  border-radius: 22px;
  background: #fff;
  color: #1a1a1a;
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

.pp-overlay.is-open .pp-dialog {
  transform: none;
}

.pp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
}

.pp-close:hover,
.pp-close:focus-visible {
  background: #f3f3f3;
  color: #111;
  outline: none;
}

.pp-icon {
  width: 64px;
  height: 64px;
  margin: 4px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d2d2d2;
  color: #8a8a8a;
  overflow: hidden;
}

.pp-icon img,
.pp-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.pp-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-title {
  margin: 0 0 12px;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
}

.pp-message {
  margin: 0 auto 28px;
  max-width: 380px;
  color: #4c4c4c;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.pp-primary {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid #d7d7d7;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pp-primary:hover,
.pp-primary:focus-visible {
  border-color: #bdbdbd;
  background: #fafafa;
  outline: none;
}

.pp-primary-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
}

.pp-primary-icon svg,
.pp-primary-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.pp-primary > span {
  font-size: 1.2rem;
}

.pp-secondary {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #6f6f6f;
  font: inherit;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
}

.pp-secondary:hover,
.pp-secondary:focus-visible {
  color: #222;
  outline: none;
}

.pp-hidden {
  display: none !important;
}

body.pp-locked {
  overflow: hidden;
}

@media (max-width: 480px) {
  .pp-dialog {
    padding: 32px 20px 22px;
  }
}
