.nparts-order-is-open {
  overflow: hidden;
}

.nparts-order-modal[hidden] {
  display: none !important;
}

.nparts-order-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 20px;
  overflow: auto;
  background: rgba(10, 18, 28, 0.72);
  -webkit-overflow-scrolling: touch;
}

.nparts-order-dialog {
  position: relative;
  width: min(100%, 540px);
  box-sizing: border-box;
  border-radius: 12px;
  padding: 28px;
  color: #18212b;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  font: 400 16px/1.45 Arial, Helvetica, sans-serif;
}

.nparts-order-dialog *,
.nparts-order-dialog *::before,
.nparts-order-dialog *::after {
  box-sizing: border-box;
}

.nparts-order-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #52606d;
  background: transparent;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.nparts-order-close:hover,
.nparts-order-close:focus-visible {
  color: #17212b;
  background: #edf1f5;
  outline: none;
}

.nparts-order-title {
  margin: 0 42px 8px 0;
  color: #17212b;
  font-size: 25px;
  line-height: 1.2;
}

.nparts-order-product {
  margin: 0;
  color: #202d3a;
  font-weight: 700;
}

.nparts-order-details {
  margin: 3px 0 20px;
  color: #687684;
  font-size: 14px;
}

.nparts-order-field {
  display: block;
  margin: 0 0 15px;
  color: #263544;
  font-weight: 700;
}

.nparts-order-field > span {
  display: block;
  margin-bottom: 6px;
}

.nparts-order-field input,
.nparts-order-field textarea {
  display: block;
  width: 100%;
  border: 1px solid #b8c2cc;
  border-radius: 7px;
  padding: 11px 12px;
  color: #17212b;
  background: #fff;
  font: 400 16px/1.35 Arial, Helvetica, sans-serif;
}

.nparts-order-field textarea {
  min-height: 96px;
  resize: vertical;
}

.nparts-order-field input:focus,
.nparts-order-field textarea:focus {
  border-color: #1769aa;
  outline: 3px solid rgba(23, 105, 170, 0.18);
}

.nparts-order-required {
  color: #b42318;
}

.nparts-order-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.nparts-order-turnstile {
  min-height: 65px;
  margin: 3px 0 14px;
}

.nparts-order-status {
  min-height: 24px;
  margin: 0 0 10px;
  font-size: 14px;
}

.nparts-order-status[data-state="error"] {
  color: #b42318;
}

.nparts-order-status[data-state="success"] {
  color: #16743b;
  font-weight: 700;
}

.nparts-order-status[data-state="info"] {
  color: #425466;
}

.nparts-order-submit,
.nparts-order-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 10px 22px;
  color: #fff;
  background: #1769aa;
  font: 700 16px/1.2 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.nparts-order-submit:hover,
.nparts-order-submit:focus-visible,
.nparts-order-button:hover,
.nparts-order-button:focus-visible {
  background: #0f568e;
  outline: 3px solid rgba(23, 105, 170, 0.25);
  outline-offset: 2px;
}

.nparts-order-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 560px) {
  .nparts-order-modal {
    align-items: end;
    padding: 10px;
  }

  .nparts-order-dialog {
    max-height: calc(100vh - 20px);
    overflow: auto;
    border-radius: 12px 12px 8px 8px;
    padding: 24px 18px;
  }

  .nparts-order-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nparts-order-dialog {
    animation: nparts-order-enter 150ms ease-out;
  }

  @keyframes nparts-order-enter {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.985);
    }
  }
}

