.nspqr-block {
  margin-top: 15px;
}

.nspqr-trigger {
  background-color: #d32f2e !important;
}

.nspqr-trigger:hover,
.nspqr-trigger:focus {
    background-color: #a52a29 !important;
}

.nspqr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(17, 17, 17, .6);
}

.nspqr-modal.is-visible {
  display: flex;
}

body.nspqr-modal-open {
  overflow: hidden;
}

.nspqr-dialog {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  margin: auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.nspqr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #ececec;
}

.nspqr-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.nspqr-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #555;
  cursor: pointer;
}

.nspqr-body {
  max-height: calc(100vh - 140px);
  padding: 22px;
  overflow-y: auto;
}

.nspqr-product-line {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fafafa;
  font-size: 14px;
}

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

.nspqr-field {
  margin-bottom: 14px;
}

.nspqr-field.is-full {
  grid-column: 1 / -1;
}

.nspqr-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.nspqr-field input,
.nspqr-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}

.nspqr-field textarea {
  min-height: 140px;
  resize: vertical;
}

.nspqr-note {
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.nspqr-feedback {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.nspqr-feedback.is-success {
  background: #e9f7ef;
  border: 1px solid #b9e2c8;
  color: #1f6d3b;
}

.nspqr-feedback.is-error {
  background: #feeeee;
  border: 1px solid #f2c6c6;
  color: #9f2d2d;
}

.nspqr-submit {
  min-width: 180px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.nspqr-submit[disabled] {
  opacity: .7;
  cursor: not-allowed;
}

.nspqr-login-box {
  padding: 18px;
  border: 1px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.nspqr-login-box a {
  font-weight: 600;
}

.nspqr-hidden-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.nspqr-history-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
}

.nspqr-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
  font-size: 14px;
}

.nspqr-status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f1f1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .nspqr-modal {
    padding: 10px;
  }

  .nspqr-dialog {
    max-height: calc(100vh - 20px);
    margin: 0;
    border-radius: 10px;
  }

  .nspqr-grid {
    grid-template-columns: 1fr;
  }

  .nspqr-body,
  .nspqr-header {
    padding: 16px;
  }

  .nspqr-body {
    max-height: calc(100vh - 110px);
  }

  .nspqr-title {
    font-size: 18px;
    padding-right: 10px;
  }
}
