.tariff-feedback {
  box-sizing: border-box;
  width: min(660px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 22px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  color: #183154;
  background: white;
  font:
    14px/1.5 system-ui,
    sans-serif;
  overflow: auto;
}
.tariff-feedback::backdrop {
  background: rgb(15 23 42 / 45%);
}
.tariff-feedback-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.tariff-feedback-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.tariff-feedback-target {
  font-weight: 650;
  margin: 14px 0 6px;
}
.tariff-feedback-hint {
  color: #64748b;
  margin: 0 0 16px;
}
.tariff-feedback form {
  display: grid;
  gap: 14px;
}
.tariff-feedback label {
  display: grid;
  gap: 6px;
}
.tariff-feedback input,
.tariff-feedback textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #bccce0;
  border-radius: 8px;
  padding: 10px;
  background: white;
  color: #183154;
  font: inherit;
}
.tariff-feedback textarea {
  resize: vertical;
}
.tariff-feedback input:focus,
.tariff-feedback textarea:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.tariff-feedback-context {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.6 system-ui,
    sans-serif;
  color: #64748b;
  margin-top: 10px;
}
.tariff-feedback summary {
  cursor: pointer;
}
.tariff-feedback-primary,
.tariff-feedback-secondary {
  border: 1px solid #bfcee2;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.tariff-feedback-primary {
  background: #2563eb;
  color: white;
}
.tariff-feedback-secondary {
  background: #f1f5f9;
  color: #183154;
}
.tariff-feedback button:disabled {
  opacity: 0.65;
  cursor: default;
}
.tariff-feedback-trigger {
  margin-top: 8px;
}
#tariffErrorStatus {
  margin: 0;
}
@media (max-width: 500px) {
  .tariff-feedback {
    padding: 16px;
  }
  .tariff-feedback-heading h2 {
    font-size: 18px;
  }
}

.tariff-feedback-button {
  display: inline-block;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  color: #284d8a;
  background: #f8faff;
  cursor: pointer;
}
