:root.baso-modal-open {
  overflow: hidden;
}

.baso-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  color: #151313;
  font-family: "Montserrat", Arial, sans-serif;
}

.baso-modal[aria-hidden="false"] {
  display: block;
}

.baso-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 19, .58);
}

.baso-modal__dialog {
  position: relative;
  width: min(94vw, 980px);
  max-height: min(92vh, 900px);
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  margin: 4vh auto;
  overflow: auto;
  background: #f6eedf;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.baso-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(189, 142, 0, .45);
  background: #fff;
  color: #151313;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.baso-modal__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 44px 28px;
  background: #fbf7ee;
}

.baso-modal__visual img {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: block;
}

.baso-form {
  padding: 42px 42px 34px;
}

.baso-form__head {
  margin: 0 0 24px;
}

.baso-form__eyebrow {
  margin: 0 0 8px;
  color: #d5a000;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.baso-form h2 {
  margin: 0 0 10px;
  color: #151313;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.baso-form__price {
  margin: 0;
  color: #d5a000;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.baso-form__price span {
  margin-left: 8px;
  color: #151313;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.baso-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 26px;
  padding: 14px 0;
  border-top: 1px solid rgba(189, 142, 0, .3);
  border-bottom: 1px solid rgba(189, 142, 0, .3);
}

.baso-quantity label {
  margin: 0;
  color: #151313;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.baso-total {
  margin: 0;
  color: #151313;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-align: right;
}

.baso-total strong {
  display: block;
  margin-top: 2px;
  color: #d5a000;
  font-size: 19px;
  font-weight: 600;
}

.baso-stepper {
  display: grid;
  grid-template-columns: 38px 64px 38px;
  height: 38px;
  border: 1px solid #d5a000;
}

.baso-stepper button,
.baso-stepper input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #151313;
  text-align: center;
  font: inherit;
}

.baso-stepper button {
  color: #d5a000;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.baso-stepper input {
  border-right: 1px solid #d5a000;
  border-left: 1px solid #d5a000;
  font-weight: 800;
  appearance: textfield;
}

.baso-stepper input::-webkit-inner-spin-button,
.baso-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.baso-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.baso-fieldset legend {
  margin: 0 0 14px;
  padding: 0;
  color: #151313;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 700;
}

.baso-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.baso-grid label {
  display: block;
  margin: 0;
  color: #151313;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
}

.baso-grid__wide {
  grid-column: 1 / -1;
}

.baso-grid input,
.baso-grid textarea {
  width: 100%;
  display: block;
  margin: 6px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(21, 19, 19, .2);
  border-radius: 0;
  background: #fff;
  color: #151313;
  font: 400 15px/1.25 "Montserrat", Arial, sans-serif;
}

.baso-grid textarea {
  resize: vertical;
}

.baso-grid input:focus,
.baso-grid textarea:focus,
.baso-stepper button:focus,
.baso-stepper input:focus,
.baso-modal__close:focus,
.baso-submit:focus {
  border: 2px solid #d5a000;

}

.baso-form__notice {
  min-height: 22px;
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.baso-form__notice.is-success {
  color: #276c36;
}

.baso-form__notice.is-error {
  color: #9c0f42;
}

.baso-submit {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d5a000;
  border-radius: 0;
  background: #d5a000;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.baso-submit:disabled {
  cursor: wait;
  opacity: .68;
}

@media (max-width: 820px) {
  .baso-modal__dialog {
    grid-template-columns: 1fr;
    margin: 2vh auto;
    max-height: 96vh;
  }

  .baso-modal__visual {
    min-height: 0;
    padding: 34px 58px 10px;
  }

  .baso-modal__visual img {
    max-width: 430px;
  }

  .baso-form {
    padding: 24px 22px 28px;
  }
}

@media (max-width: 560px) {
  .baso-grid {
    grid-template-columns: 1fr;
  }

  .baso-form h2 {
    font-size: 30px;
  }

  .baso-quantity {
    align-items: flex-start;
    flex-direction: column;
  }
}
