.hsp-domain-popup-open {
  overflow: hidden;
}

.hsp-domain-popup-backdrop {
  align-items: center;
  background: rgba(17, 23, 34, 0.52);
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 999999;
}

.hsp-domain-popup-backdrop[hidden] {
  display: none;
}

.hsp-domain-popup {
  background: #fff;
  border: 1px solid #efd4d1;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(17, 23, 34, 0.28);
  box-sizing: border-box;
  color: #111722;
  font-family: inherit;
  max-height: min(760px, calc(100vh - 48px));
  max-width: 980px;
  overflow: auto;
  padding: 34px 38px;
  position: relative;
  width: min(980px, 100%);
}

.hsp-popup-close {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 50%;
  color: #596273;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
}

.hsp-popup-close:hover,
.hsp-popup-close:focus-visible {
  border-color: #c8382d;
  color: #c8382d;
  outline: none;
}

.hsp-popup-copy {
  display: grid;
  gap: 8px;
  margin: 0 42px 22px 0;
}

.hsp-popup-copy h2 {
  color: #081425;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.hsp-popup-copy p {
  color: #596273;
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
}

.hsp-popup-options {
  display: grid;
  gap: 18px;
}

.hsp-popup-option {
  border: 0;
}

.hsp-popup-option summary {
  align-items: flex-start;
  color: #071426;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  font-weight: 800;
  gap: 14px;
  line-height: 1.35;
  list-style: none;
  margin: 0;
}

.hsp-popup-option summary::-webkit-details-marker {
  display: none;
}

.hsp-popup-option summary::before {
  background: #fff;
  border: 2px solid #d8d2cc;
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 22px;
  margin-top: 2px;
  width: 22px;
}

.hsp-popup-option[open] summary::before {
  background: radial-gradient(circle at center, #fff 0 34%, #df2b19 36% 100%);
  border-color: #df2b19;
}

.hsp-popup-panel {
  background: #fffafa;
  border: 1px solid #f0dada;
  border-radius: 8px;
  box-sizing: border-box;
  margin: 12px 0 4px 38px;
  padding: 20px;
}

.hsp-new-domain-row {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.hsp-transfer-grid,
.hsp-point-grid {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.hsp-point-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hsp-transfer-note {
  color: #c8382d;
  font-size: 16px;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.35;
  margin: 0;
}

.hsp-popup-panel label {
  color: #596273;
  display: grid;
  font-size: 15px;
  font-weight: 500;
  gap: 9px;
  margin: 0;
}

.hsp-popup-panel input {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  box-shadow: none;
  box-sizing: border-box;
  color: #111722;
  font-family: inherit;
  font-size: 20px;
  height: 58px;
  min-width: 0;
  padding: 0 18px;
  width: 100%;
}

.hsp-popup-panel input:focus-visible {
  border-color: #c8382d;
  box-shadow: 0 0 0 3px rgba(200, 56, 45, 0.14);
  outline: none;
}

.hsp-green-btn,
.hsp-inline-add {
  align-items: center;
  background: #2bae62;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  min-width: 112px;
  padding: 0 22px;
  text-decoration: none;
}

.hsp-green-btn:hover,
.hsp-green-btn:focus-visible,
.hsp-inline-add:hover,
.hsp-inline-add:focus-visible {
  background: #229955;
  color: #fff;
  outline: none;
}

.hsp-green-btn:disabled,
.hsp-inline-add:disabled {
  cursor: wait;
  opacity: 0.7;
}

.hsp-popup-feedback {
  color: #596273;
  font-size: 16px;
  line-height: 1.45;
  margin: 14px 0 0;
}

.hsp-popup-feedback.is-error {
  color: #c8382d;
}

.hsp-popup-feedback.is-success {
  color: #168146;
}

.hsp-inline-add {
  font-size: 15px;
  height: 36px;
  margin-left: 8px;
  min-width: 82px;
  padding: 0 14px;
}

.hsp-submit-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  z-index: 2;
}

.hsp-submit-overlay[hidden] {
  display: none;
}

.hsp-submit-box {
  align-items: center;
  background: #fff;
  border: 1px solid #efd4d1;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 23, 34, 0.18);
  color: #111722;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  gap: 14px;
  justify-content: center;
  line-height: 1.35;
  max-width: 460px;
  padding: 22px 26px;
  text-align: left;
}

.hsp-submit-spinner {
  animation: hsp-submit-spin 0.8s linear infinite;
  border: 4px solid #f0dada;
  border-top-color: #df2b19;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 32px;
  width: 32px;
}

@keyframes hsp-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .hsp-domain-popup-backdrop {
    align-items: flex-start;
    padding: 12px;
  }

  .hsp-domain-popup {
    max-height: calc(100vh - 24px);
    padding: 24px 16px;
  }

  .hsp-popup-copy {
    margin-right: 36px;
  }

  .hsp-popup-copy h2 {
    font-size: 22px;
  }

  .hsp-popup-copy p,
  .hsp-popup-option summary {
    font-size: 17px;
  }

  .hsp-popup-panel {
    margin-left: 0;
    padding: 16px;
  }

  .hsp-new-domain-row,
  .hsp-transfer-grid,
  .hsp-point-grid {
    grid-template-columns: 1fr;
  }

  .hsp-green-btn {
    width: 100%;
  }

  .hsp-submit-box {
    align-items: flex-start;
    font-size: 16px;
    width: 100%;
  }
}
