.quick-customer-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.quick-customer-open {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d28b27;
  border-radius: 12px;
  background: #fff8e9;
  color: #8a4b00;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.quick-customer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(15, 28, 20, 0.58);
  backdrop-filter: blur(5px);
}

.quick-customer-backdrop[hidden] {
  display: none;
}

.quick-customer-dialog {
  width: min(100%, 560px);
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow: auto;
  border-radius: 24px 24px 18px 18px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(8, 28, 17, 0.28);
}

.quick-customer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
}

.quick-customer-title {
  margin: 0;
  color: #173c29;
  font-size: 20px;
  font-weight: 950;
}

.quick-customer-subtitle {
  margin: 5px 0 0;
  color: #68736c;
  font-size: 13px;
}

.quick-customer-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #edf1ec;
  color: #294536;
  font: 24px/1 Georgia, serif;
  cursor: pointer;
}

.quick-customer-form {
  display: grid;
  gap: 13px;
  padding: 8px 20px 20px;
}

.quick-customer-field {
  display: grid;
  gap: 6px;
  color: #294536;
  font-size: 13px;
  font-weight: 850;
}

.quick-customer-field input,
.quick-customer-field textarea,
.quick-emap-query {
  box-sizing: border-box;
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #b9c5bb;
  border-radius: 13px;
  background: #fff;
  color: #17261c;
  font: inherit;
  outline: none;
}

.quick-customer-field textarea {
  min-height: 78px;
  resize: vertical;
}

.quick-customer-field input:focus,
.quick-customer-field textarea:focus,
.quick-emap-query:focus {
  border-color: #238552;
  box-shadow: 0 0 0 3px rgba(35, 133, 82, 0.12);
}

.quick-emap-toggle {
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #a9bcae;
  border-radius: 11px;
  background: #eff7f0;
  color: #17673c;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.quick-emap-box {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid #d5dfd7;
  border-radius: 14px;
  background: #f7faf6;
}

.quick-emap-box[hidden] {
  display: none;
}

.quick-emap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.quick-emap-search {
  min-height: 47px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #187a45;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.quick-emap-search:disabled,
.quick-customer-save:disabled {
  cursor: wait;
  opacity: 0.65;
}

.quick-emap-status,
.quick-customer-status {
  min-height: 18px;
  color: #68736c;
  font-size: 12px;
  line-height: 1.4;
}

.quick-emap-status.is-error,
.quick-customer-status.is-error {
  color: #b42318;
}

.quick-emap-results {
  display: grid;
  gap: 7px;
  max-height: 210px;
  overflow: auto;
}

.quick-emap-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid #d6dfd8;
  border-radius: 11px;
  background: #fff;
  color: #1d3527;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quick-emap-result strong {
  font-size: 13px;
}

.quick-emap-result span {
  color: #637068;
  font-size: 12px;
}

.quick-customer-footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 9px;
  margin-top: 2px;
}

.quick-customer-cancel,
.quick-customer-save {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.quick-customer-cancel {
  background: #edf0ec;
  color: #405147;
}

.quick-customer-save {
  background: #d97919;
  color: #fff;
}

body.quick-customer-locked {
  overflow: hidden;
}

@media (min-width: 700px) {
  .quick-customer-backdrop {
    align-items: center;
  }

  .quick-customer-dialog {
    border-radius: 24px;
  }
}

@media (max-width: 430px) {
  .quick-emap-row {
    grid-template-columns: 1fr;
  }
}
