.qb-preorder-purchase,
.qb-preorder-purchase *,
.qb-preorder-dialog,
.qb-preorder-dialog * {
  box-sizing: border-box;
}

.qb-preorder-purchase {
  margin: 22px 0 12px;
}

.qb-preorder-purchase--wishlist {
  min-width: 150px;
  margin: 0;
}

.qb-preorder-purchase .qb-preorder-open {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qb-preorder-purchase > p:not(.qb-preorder-feedback) {
  margin: 10px 0 0;
  color: var(--qb-muted, #76706a);
  font-size: 13px;
  line-height: 1.5;
}

.qb-preorder-feedback {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.45;
}

.qb-preorder-feedback--success {
  border-color: #b9d0bf;
  background: #f3f8f4;
  color: #285337;
}

.qb-preorder-feedback--error {
  border-color: #e1bdb6;
  background: #fff7f5;
  color: #8a3528;
}

.qb-preorder-dialog {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: flex;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.qb-preorder-dialog:target,
.qb-preorder-dialog.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.qb-preorder-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 13 12 / 64%);
}

.qb-preorder-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 48px));
  padding: 32px;
  overflow: auto;
  background: var(--qb-bg, #ffffff);
  color: var(--qb-text, #161616);
  box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
}

.qb-preorder-dialog__close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  border: 0;
  color: inherit;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.qb-preorder-dialog__close:focus-visible,
.qb-preorder-form input:focus-visible,
.qb-preorder-form button:focus-visible,
.qb-preorder-form a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.qb-preorder-dialog h2 {
  margin: 0 42px 8px 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.qb-preorder-dialog__intro {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.qb-preorder-dialog__variant {
  margin: 4px 0 0;
  color: var(--qb-muted, #76706a);
  font-size: 13px;
  line-height: 1.45;
}

.qb-preorder-form {
  margin-top: 24px;
}

.qb-preorder-field {
  margin-bottom: 16px;
}

.qb-preorder-field > label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.qb-preorder-field input[type="text"],
.qb-preorder-field input[type="tel"],
.qb-preorder-field input[type="email"] {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--qb-line, #ded8d0);
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
}

.qb-preorder-field input[aria-invalid="true"] {
  border-color: #a73f30;
}

.qb-preorder-field__hint {
  display: block;
  margin-top: 6px;
  color: var(--qb-muted, #76706a);
  font-size: 12px;
  line-height: 1.4;
}

.qb-preorder-field__error {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: #963629;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.qb-preorder-field__error:empty {
  display: none;
}

.qb-preorder-field--consent > label {
  display: flex;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  align-items: flex-start;
  gap: 9px;
}

.qb-preorder-field--consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 18px;
}

.qb-preorder-field--consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qb-preorder-form__status {
  margin: 0 0 12px;
  color: #285337;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.qb-preorder-form__status:empty {
  display: none;
}

.qb-preorder-field__error--form {
  margin: 0 0 12px;
}

.qb-preorder-form__submit {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
}

.qb-preorder-form.is-loading {
  cursor: progress;
}

.qb-preorder-form.is-loading .qb-preorder-form__submit {
  opacity: 0.65;
  cursor: progress;
}

.qb-preorder-form.is-submitted .qb-preorder-field,
.qb-preorder-form.is-submitted .qb-preorder-field__error--form,
.qb-preorder-form.is-submitted .qb-preorder-form__submit {
  display: none;
}

.qb-preorder-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.qb-preorder-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .cart-row--wishlist > .qb-preorder-purchase--wishlist {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .qb-preorder-dialog {
    padding: 12px;
    align-items: flex-end;
  }

  .qb-preorder-dialog__panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 26px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qb-preorder-dialog {
    transition: none;
  }
}
