html.dpag-verified .dpag-overlay {
  display: none !important;
}

html.dpag-locked,
body.dpag-locked {
  overflow: hidden !important;
  height: 100% !important;
}

.dpag-overlay {
  --dpag-bg: linear-gradient(135deg, #dfe7f2 0%, #f7f8fb 45%, #cbd8e8 100%);
  --dpag-button: #79b7f3;
  --dpag-button-hover: #5ea9ee;
  --dpag-heading: #2c3555;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  isolation: isolate;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.dpag-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--dpag-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
  transform: none;
}

.dpag-dim {
  display: none;
}

.dpag-card {
  width: min(100%, 435px);
  background: rgba(249, 250, 252, 0.94);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 17px;
  box-shadow: 0 18px 55px rgba(19, 33, 60, 0.12);
  padding: 24px 19px 20px;
  color: #323a4f;
}

.dpag-title {
  margin: 0 0 9px !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: var(--dpag-heading) !important;
  letter-spacing: -0.01em;
}

.dpag-description {
  margin: 0 0 24px !important;
  color: #8e95a5 !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

.dpag-check-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 11px 14px;
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  color: #596173;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

.dpag-check-row input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dpag-custom-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid #c8cfdb;
  border-radius: 5px;
  background: #fff;
  box-sizing: border-box;
  position: relative;
  transition: .18s ease;
}

.dpag-check-row input:focus-visible + .dpag-custom-check {
  outline: 2px solid #8dc4fb;
  outline-offset: 2px;
}

.dpag-check-row input:checked + .dpag-custom-check {
  background: var(--dpag-button);
  border-color: var(--dpag-button);
}

.dpag-check-row input:checked + .dpag-custom-check::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 9px;
  left: 6px;
  top: 3px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dpag-field {
  margin-bottom: 24px;
}

.dpag-role-label {
  display: block;
  margin: 0 0 11px;
  color: #2c3344;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
}

.dpag-required {
  color: #ff3447;
}

.dpag-select-wrap {
  position: relative;
}

.dpag-select-wrap select {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 42px 0 14px;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  background: #fff;
  color: #34405a;
  font-size: 14px;
  line-height: 48px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
}

.dpag-select-wrap select:focus {
  border-color: #1688ff;
  box-shadow: 0 0 0 1px #1688ff;
}

.dpag-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-52%);
  color: #96a8bf;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.dpag-error {
  display: none;
  color: #e23a4e;
  font-size: 12px;
  margin-top: 7px;
}

.dpag-error.is-visible {
  display: block;
}

.dpag-enter {
  width: 100%;
  min-height: 50px;
  border: 0 !important;
  border-radius: 8px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  background: var(--dpag-button) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease, transform .18s ease;
}

.dpag-enter:not(:disabled):hover {
  background: var(--dpag-button-hover) !important;
  transform: translateY(-1px);
}

.dpag-enter:disabled,
.dpag-enter[aria-disabled="true"] {
  opacity: .58;
  cursor: not-allowed;
}

.dpag-enter.is-ready,
.dpag-enter[aria-disabled="false"] {
  opacity: 1;
  cursor: pointer;
}

.dpag-exit-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: #9299aa;
  font-size: 13.5px;
  line-height: 1.35;
}

.dpag-exit-line a {
  color: #ff3247 !important;
  text-decoration: none !important;
  font-weight: 500;
}

.dpag-exit-line a:hover {
  text-decoration: underline !important;
}

@media (max-width: 600px) {
  .dpag-overlay {
    align-items: center;
    padding: 18px;
  }

  .dpag-card {
    width: 100%;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 21px 18px 18px;
    border-radius: 16px;
  }

  .dpag-title {
    font-size: 19px !important;
  }

  .dpag-description {
    font-size: 13px !important;
    margin-bottom: 20px !important;
  }

  .dpag-check-row,
  .dpag-field {
    margin-bottom: 20px;
  }
}

@media (max-height: 650px) {
  .dpag-overlay {
    align-items: flex-start;
    overflow-y: auto;
  }
  .dpag-card {
    margin: 16px 0;
  }
}
