.gpth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
  transition: background 0.2s;
}

.gpth-modal-window {
  background: #fff;
  color: #212529;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  margin: auto;
  border-radius: .5rem;
  box-shadow: 0 6px 32px rgba(0,0,0,.09), 0 1.5px 5px rgba(0,0,0,.06);
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  position: relative;
  animation: gpth-modal-in .4s;
}

@keyframes gpth-modal-in {
  0% { opacity:0; transform:translateY(60px) scale(.97);}
  100% { opacity:1; transform: none;}
}

.gpth-modal-close {
  position: absolute;
  right: -5px;
  top: 0px;
  font-size: 1.6rem;
  color: #ab134e;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.75;
  line-height: 1;
  padding: 0.1rem 0.65rem;
  transition: color 0.12s;
}
.gpth-modal-close:hover {
  color: #ff0c77;
  opacity: 1;
}

.gpth-modal-window h2 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.gpth-status, .gpth-limits {
  font-size: 1rem;
  margin-bottom: .6rem;
  color: #4b306d;
  border: 0;
  border-left: 3px solid #bdb9ef;
  background: #efedfb;
  padding: 0.35rem 0.8rem;
  border-radius: .3rem;
  line-height: 1.5;
}

.gpth-status:empty {
	display: none;
}

.gpth-error {
  color: #b02a37;
  background: #f8d7da;
  border-left: 3px solid #b02a37;
  padding: .7em 1em;
  border-radius: .35em;
  margin: .6em 0;
  font-size: 1rem;
}

.gpth-loader {
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: 1rem;
  color: #1e3996;
  margin: 1.1em 0;
}
.gpth-spinner {
  display: inline-block;
  width: 1.5em; height: 1.5em;
  border: .18em solid #d6dff7;
  border-top: .18em solid #1e3996;
  border-radius: 50%;
  animation: gpth-spin 1s linear infinite;
  vertical-align: middle;
}
@keyframes gpth-spin {
  0% { transform: rotate(0);}
  100% { transform: rotate(360deg);}
}

.gpth-form label {
  display: inline-block;
  font-size: 1rem;
  margin-bottom:0.23rem;
  font-weight:600;
}
.gpth-form input,
.gpth-form textarea {
  display: block;
  width: 100%;
  padding: .55rem .85rem;
  border: 1px solid #bbbde3;
  border-radius: .37rem;
  margin-bottom: .8rem;
  background: #f7f7fa;
  font-size: 1.02rem;
  box-sizing: border-box;
  transition: border 0.18s;
}
.gpth-form input:focus, .gpth-form textarea:focus {
  border: 1.5px solid #7640f8;
  background: #fff;
  outline: none;
}
.gpth-form textarea {
  min-height:64px; max-height:180px;
}
.gpth-form button[type="submit"] {
  background: linear-gradient(90deg,#6821db,#b055f9 90%);
  border: none;
  color: #fff;
  border-radius: .35em;
  font-weight:500;
  font-size:1.08em;
  margin-right: .7em;
  padding: 0.6em 1.5em;
  box-shadow: 0 1px 6px 0px #e3daff3d;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .13s, box-shadow .13s;
}
.gpth-form button[type="submit"]:hover {
  background: linear-gradient(90deg,#b055f9 5%, #6821db 98%);
  box-shadow: 0 2px 6px 0 #b283f830;
}
.gpth-form button[type="button"] {
  background: #eee;
  color: #3a2255;
  border: 1.2px solid #aaaede7c;
  font-size: 1em;
  padding: 0.6em 1.5em;
  border-radius: .35em;
  cursor: pointer;
  transition: background .13s;
}
.gpth-form button[type="button"]:hover {
  background: #f8f5ff;
}

@media (max-width: 700px) {
  .gpth-modal-window {
    max-width: 97vw;
    padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  }
}
@media (max-width:480px){
  .gpth-modal-window {padding: .7rem .3rem;}
  .gpth-form button, .gpth-form input, .gpth-form textarea {font-size: 1em;}
}