.pdbp-layer {
  --pdbp-poros: #d69528;
  --pdbp-poros-hover: #e2a43d;
  --pdbp-coco: #ad2df5;
  --pdbp-coco-hover: #bd55f7;
  --pdbp-ink: #070707;
  --pdbp-white: #fff;
  position: fixed;
  z-index: 999998;
  right: 22px;
  bottom: 88px;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100vh - 112px);
  color: var(--pdbp-white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.pdbp-layer[hidden] {
  display: none !important;
}

.pdbp-layer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pdbp-dialog {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-height: calc(100vh - 112px);
  padding: 25px 24px 21px;
  overflow: auto;
  color: var(--pdbp-white);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 149, 40, 0.16), transparent 36%),
    linear-gradient(145deg, #121212 0%, var(--pdbp-ink) 82%);
  border: 1px solid rgba(214, 149, 40, 0.68);
  border-radius: 5px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.56);
  font-family: Biryani, Verdana, Geneva, sans-serif;
  pointer-events: auto;
  text-align: left;
}

.pdbp-dialog::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pdbp-poros) 0 50%, var(--pdbp-coco) 50% 100%);
  content: '';
}

.pdbp-dialog:focus {
  outline: none;
}

.pdbp-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  cursor: pointer;
  font: 300 25px/1 Arial, sans-serif;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pdbp-close:hover {
  color: #fff;
  border-color: var(--pdbp-poros);
  transform: rotate(4deg);
}

.pdbp-close:focus-visible,
.pdbp-button:focus-visible,
.pdbp-continue:focus-visible {
  outline: 3px solid rgba(214, 149, 40, 0.42);
  outline-offset: 3px;
}

.pdbp-seal {
  width: 39px;
  height: 39px;
  margin: 0 0 12px;
}

.pdbp-seal svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--pdbp-poros);
}

.pdbp-seal .pdbp-seal__check {
  fill: none;
  stroke: #111;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.pdbp-eyebrow {
  margin: 0 38px 6px 0;
  color: var(--pdbp-poros);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.45;
  text-transform: uppercase;
}

.pdbp-dialog h2 {
  margin: 0 32px 10px 0;
  color: var(--pdbp-white);
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.pdbp-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.pdbp-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 18px 0 13px;
}

.pdbp-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #fff !important;
  font-family: Biryani, Verdana, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pdbp-button--primary {
  background: var(--pdbp-poros);
  border-color: var(--pdbp-poros);
}

.pdbp-button--secondary {
  background: var(--pdbp-coco);
  border-color: var(--pdbp-coco);
}

.pdbp-button--primary:hover {
  color: #fff !important;
  background: var(--pdbp-poros-hover);
  border-color: var(--pdbp-poros-hover);
  box-shadow: 0 9px 24px rgba(214, 149, 40, 0.24);
  transform: translateY(-1px);
}

.pdbp-button--secondary:hover {
  color: #fff !important;
  background: var(--pdbp-coco-hover);
  border-color: var(--pdbp-coco-hover);
  box-shadow: 0 9px 24px rgba(173, 45, 245, 0.24);
  transform: translateY(-1px);
}

.pdbp-continue {
  margin: 0;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  cursor: pointer;
  font-family: Biryani, Verdana, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pdbp-continue:hover {
  color: #fff;
  border-bottom-color: var(--pdbp-poros);
}

.pdbp-note {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .pdbp-layer {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
  }

  .pdbp-dialog {
    max-height: calc(100vh - 96px);
    padding: 22px 20px 18px;
  }

  .pdbp-seal {
    width: 34px;
    height: 34px;
    margin-bottom: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdbp-layer,
  .pdbp-close,
  .pdbp-button {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
