.td-modal-open {
  overflow: hidden;
}

.td-waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 21, 50, 0.38);
  backdrop-filter: blur(8px);
}

.td-waitlist-modal.is-open {
  display: flex;
}

.td-waitlist-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(239, 229, 216, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 70px rgba(38, 42, 62, 0.24);
}

.td-waitlist-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #f0e6dc;
  border-radius: 999px;
  background: #fffaf2;
  color: #4d5a72;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.td-waitlist-panel p {
  margin: 15px 0 0;
  color: #4d5a72;
  font-size: 16px;
  line-height: 1.48;
  font-weight: 500;
}

.td-waitlist-panel .td-waitlist-intro {
  max-width: 300px;
  margin: 2px 52px 0 0;
  color: #596780;
  font-size: 14px;
  line-height: 1.4;
}

.td-waitlist-panel .td-waitlist-interest {
  max-width: none;
  color: #102750;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
}

.td-waitlist-panel .td-waitlist-intro + .td-waitlist-intro {
  margin-top: 7px;
}

.td-waitlist-form {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.td-waitlist-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.td-waitlist-input {
  width: 100%;
  min-height: 56px;
  padding: 0 17px;
  border: 1px solid #ecdccc;
  border-radius: 10px;
  background: #fffdfa;
  color: #071532;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  outline: none;
}

.td-waitlist-input::placeholder {
  color: #8a94a6;
}

.td-waitlist-input:focus {
  border-color: #ff9b63;
  box-shadow: 0 0 0 4px rgba(255, 103, 22, 0.13);
}

.td-waitlist-select-field {
  display: grid;
  gap: 6px;
}

.td-waitlist-select-label {
  color: #657184;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
}

.td-waitlist-select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid #ecdccc;
  border-radius: 10px;
  appearance: none;
  background-color: #fffdfa;
  background-image:
    linear-gradient(45deg, transparent 50%, #657184 50%),
    linear-gradient(135deg, #657184 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 21px,
    calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  color: #24334d;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  outline: none;
}

.td-waitlist-select:focus {
  border-color: #ff9b63;
  box-shadow: 0 0 0 4px rgba(255, 103, 22, 0.13);
}

.td-waitlist-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 0 29px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff741c 0%, #f25b0c 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 0 rgba(194, 67, 0, 0.1), 0 14px 24px rgba(255, 98, 18, 0.18);
  cursor: pointer;
}

.td-waitlist-submit:disabled {
  cursor: wait;
  opacity: 0.76;
}

.td-waitlist-status {
  min-height: 22px;
  color: #b54113;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
}

.td-waitlist-status:empty {
  display: none;
}

.td-waitlist-fine-print {
  margin-top: 18px;
  color: #657184;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.td-waitlist-thanks {
  display: none;
  margin: 0;
  padding: 42px 26px 34px;
  border: 1px solid #c6ead8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f1fff8 0%, #fbfffd 100%);
  color: #15583f;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.td-waitlist-thanks::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #1fa86a;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(31, 168, 106, 0.22);
}

.td-waitlist-panel .td-waitlist-success {
  max-width: 270px;
  margin: 0 auto;
  color: #104b38;
  font-size: 21px;
  line-height: 1.32;
  font-weight: 850;
}

.td-waitlist-panel.is-signed-up .td-waitlist-intro,
.td-waitlist-panel.is-signed-up .td-waitlist-form,
.td-waitlist-panel.is-signed-up .td-waitlist-fine-print {
  display: none;
}

.td-waitlist-panel.is-signed-up .td-waitlist-thanks {
  display: block;
}

@media (max-width: 440px) {
  .td-waitlist-modal {
    padding: 18px;
  }

  .td-waitlist-panel {
    padding: 22px;
  }

  .td-waitlist-panel .td-waitlist-interest {
    white-space: normal;
  }

  .td-waitlist-submit {
    min-height: 62px;
    font-size: 19px;
  }
}
