body.sst-wow-modal-open {
  overflow: hidden;
}

.sst-wow-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 18px;
  background: rgba(17, 24, 39, 0.62);
}

.sst-wow-modal *,
.sst-wow-modal *::before,
.sst-wow-modal *::after {
  box-sizing: border-box;
}

.sst-wow-modal__dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  font-family: inherit;
}

.sst-wow-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.sst-wow-modal__head h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.sst-wow-modal__close {
  min-width: 72px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.sst-wow-modal__body {
  padding: 20px 24px 8px;
}

.sst-wow-modal__body p {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}

.sst-wow-modal__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.sst-wow-modal__check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.sst-wow-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 22px;
  border-top: 1px solid #e5e7eb;
}

.sst-wow-modal__actions button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
}

.sst-wow-modal__primary {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
}

.sst-wow-modal__primary:disabled {
  border-color: #cbd5e1;
  background: #d1d5db;
  color: #64748b;
  cursor: not-allowed;
}

.sst-wow-modal__secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #111827;
}

.sst-wow-checkout-ack {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
}

.sst-wow-checkout-ack label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.sst-wow-checkout-ack input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.sst-wow-checkout-ack .required {
  color: #b91c1c;
}

@media (max-width: 520px) {
  .sst-wow-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .sst-wow-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .sst-wow-modal__head,
  .sst-wow-modal__body,
  .sst-wow-modal__actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sst-wow-modal__head h2 {
    font-size: 19px;
  }

  .sst-wow-modal__body p {
    font-size: 15px;
  }

  .sst-wow-modal__actions {
    flex-direction: column;
  }

  .sst-wow-modal__actions button {
    width: 100%;
  }
}
