.discount-directory-modal {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.discount-directory-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9e1dd;
}

.discount-directory-table {
  width: 100%;
  border-collapse: collapse;
}

.discount-directory-table th,
.discount-directory-table td {
  padding: 12px;
  border-bottom: 1px solid #e4e9e6;
  text-align: left;
  white-space: nowrap;
}

.discount-directory-table th {
  background: #f5f8f6;
  color: #52615a;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.discount-directory-message,
.discount-editor-message {
  min-height: 24px;
  margin: 8px 0;
}

.discount-empty {
  color: #6b7771;
  text-align: center !important;
}

.discount-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(21, 30, 26, 0.48);
}

.discount-editor-modal {
  width: min(640px, calc(100vw - 32px));
}

.discount-editor-grid {
  margin-top: 20px;
}

.system-promo-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c9d7d0;
  background: #f3f7f5;
  color: #43534b;
  font-size: 13px;
  line-height: 1.45;
}

.discount-editor-grid select:disabled,
.discount-editor-grid input:disabled {
  cursor: not-allowed;
  background: #eef2f0;
  color: #66736d;
}

.discount-preview-panel {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 14px;
  border: 1px solid #cddbd4;
  background: #f5f9f7;
  color: #3e4c45;
  font-size: 13px;
}

.discount-preview-panel span:last-child strong {
  color: #086b4e;
}

.discount-preview-error {
  border-color: #e3b9b5;
  background: #fff7f6;
  color: #a6372d;
}

.additional-services-field {
  min-width: 0;
}

.selected-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.selected-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #cddbd4;
  border-radius: 4px;
  background: #f5f9f7;
  font-size: 13px;
}

.selected-service-tag button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f3029;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.service-type-control {
  width: fit-content;
}

.chip-set-toolbar {
  margin-bottom: 12px;
}

.chip-set-toolbar .field-stack {
  width: min(320px, 100%);
}

.chip-option-row {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 170px)) auto;
}

@media (max-width: 900px) {
  .chip-option-row {
    grid-template-columns: 1fr 1fr;
  }

  .chip-option-row > strong,
  .chip-option-row > button {
    grid-column: 1 / -1;
  }
}

.car-search-field {
  position: relative;
  z-index: 20;
}

.car-search-dropdown {
  position: absolute;
  top: 66px;
  right: 0;
  left: 0;
  z-index: 30;
  max-height: min(320px, 42vh);
  overflow-y: auto;
  border: 1px solid #b9c9c1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 43, 35, 0.16);
}

.car-search-dropdown button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e4ebe7;
  background: #fff;
  color: #17221d;
  text-align: left;
  cursor: pointer;
}

.car-search-dropdown button:last-child {
  border-bottom: 0;
}

.car-search-dropdown button:hover,
.car-search-dropdown button:focus-visible {
  background: #eef6f2;
  outline: none;
}

.car-search-dropdown button span {
  color: #65736c;
  font-size: 12px;
}

.car-search-empty {
  padding: 12px;
  color: #8b4039;
  font-size: 13px;
}

@media (max-width: 700px) {
  .discount-directory-modal,
  .discount-editor-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .discount-preview-panel {
    display: grid;
    gap: 6px;
  }

  .car-search-dropdown {
    max-height: 36vh;
  }
}
