.quick-add-modal {
  --qa-ink: #484848;
  --qa-primary: #370d3b;
  --qa-accent: #ed2f59;
  --qa-line: #e2e2e2;
  --qa-soft: #f5f5f5;
}

.quick-add-modal .modal-dialog { max-width: 880px; }
.quick-add-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(55, 13, 59, .22);
  overflow: hidden;
}

.quick-add-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--qa-line);
  display: flex;
  justify-content: space-between;
  padding: 20px 24px 17px;
}
.quick-add-header > div { min-width: 0; text-align: start; }
.quick-add-header h4 { color: var(--qa-ink); font-size: 22px; line-height: 1.35; margin: 2px 0 0; text-align: start; }
.quick-add-eyebrow {
  color: var(--qa-accent);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.quick-add-close {
  align-items: center;
  background: var(--qa-soft);
  border: 1px solid var(--qa-line);
  border-radius: 50%;
  color: var(--qa-primary);
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
  width: 40px;
}
.quick-add-close:hover { background: #f3e8f2; }

.quick-add-loading,
.quick-add-load-error {
  align-items: center;
  color: #6b5d6c;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 390px;
  padding: 40px;
  text-align: center;
}
.quick-add-spinner {
  animation: quick-add-spin .75s linear infinite;
  border: 3px solid #eadfe9;
  border-top-color: var(--qa-accent);
  border-radius: 50%;
  height: 28px;
  width: 28px;
}
@keyframes quick-add-spin { to { transform: rotate(360deg); } }

.quick-add-product { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; min-height: 440px; }
.quick-add-visual {
  background: #fff;
  border-inline-end: 1px solid var(--qa-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}
.quick-add-image-frame {
  align-items: center;
  background: #fff;
  /* border: 1px solid #d4d4d4; */
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 300px;
  padding: 20px;
}
.quick-add-image { max-height: 285px; max-width: 100%; object-fit: contain; transition: opacity .18s ease; }
.quick-add-image.is-changing { opacity: .35; }
.quick-add-stock {
  color: #ed2f59;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
  padding: 0;
  text-align: start;
}
.quick-add-stock-dot { display: none; }

.quick-add-details { min-width: 0; padding: 30px 32px 32px; text-align: start; }
.quick-add-details h3 { color: #484848; font-size: 22px; line-height: 1.45; margin: 0 0 5px; text-align: start !important; }
.quick-add-product-link {
  border-bottom: 1px solid transparent;
  color: inherit;
  outline: 0;
  text-decoration: none;
  /* transition: border-color .18s ease, color .18s ease; */
}
.quick-add-product-link:hover,
.quick-add-product-link:focus,
.quick-add-product-link:focus-visible {
  /* border-bottom-color: rgba(55, 13, 59, .42); */
  color: var(--qa-primary);
  outline: 0;
  text-decoration: none;
}
.quick-add-price { align-items: baseline; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-bottom: 12px; text-align: start; }
.quick-add-price strong { color: #484848; font-size: 30px; font-weight: 900; }
.quick-add-price del { color: #adadad; font-size: 15px; }
.quick-add-description { color: #828282; font-size: 14px; line-height: 1.8; margin: 0 0 22px; max-width: 100%; text-align: start; unicode-bidi: plaintext; }

.quick-add-form { text-align: start; }
.quick-add-field { align-items: center; border: 0; display: flex; gap: 16px; margin: 0 0 14px; min-width: 0; padding: 0; text-align: start; }
.quick-add-field legend,
.quick-add-label { color: #484848; display: block; flex: 0 0 108px; float: none; font-size: 14px; font-weight: 600; margin: 0; text-align: start !important; width: 108px; }
.quick-add-field > select.form-control,
.quick-add-field > .quick-add-colors { flex: 1 1 auto; min-width: 0; }
.quick-add-field select.form-control {
  background-color: #fff;
  border: 1px solid #dccccf;
  border-radius: 5px;
  color: #49364a;
  height: 46px;
  padding-inline: 13px 36px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.quick-add-field select.form-control:focus { border-color: var(--qa-primary); box-shadow: 0 0 0 3px rgba(55, 13, 59, .09); }
html[dir="rtl"] .quick-add-field select.form-control {
  background-position: left 13px center;
  direction: rtl;
  text-align: right;
}
html[dir="ltr"] .quick-add-field select.form-control {
  background-position: right 13px center;
  direction: ltr;
  text-align: left;
}
.quick-add-colors { display: flex; flex-wrap: wrap; gap: 9px; }
.quick-add-color { cursor: pointer; margin: 0; position: relative; }
.quick-add-color input { opacity: 0; pointer-events: none; position: absolute; }
.quick-add-color span {
  background: var(--quick-add-color);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cdbfce;
  display: block;
  height: 31px;
  transition: box-shadow .18s ease, transform .18s ease;
  width: 31px;
}
.quick-add-color input:checked + span { box-shadow: 0 0 0 2px var(--qa-primary); transform: scale(1.07); }
.quick-add-color input:focus-visible + span { box-shadow: 0 0 0 3px rgba(237, 47, 89, .3); }

.quick-add-quantity-field { margin-top: 0; min-height: 44px; }
.quick-add-quantity-field .quick-add-label { flex: 0 0 108px; margin: 0; }
.quick-add-counter {
  background: #fff;
  border: 1px solid #dccccf;
  border-radius: 5px;
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  height: 42px;
  min-width: 0;
  overflow: hidden;
  width: auto;
}
.quick-add-counter button {
  align-items: center;
  background: var(--qa-soft);
  border: 0;
  color: var(--qa-primary);
  cursor: pointer;
  display: flex;
  flex: 0 0 40px;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background .18s ease, color .18s ease;
  width: 40px;
}
.quick-add-counter:focus-within {
  border-color: var(--qa-primary);
  box-shadow: 0 0 0 3px rgba(55, 13, 59, .1);
}
.quick-add-counter button:hover:not(:disabled) { background: #f0e5f0; }
.quick-add-counter button:focus,
.quick-add-counter button:focus-visible,
.quick-add-counter button:active { border: 0 !important; box-shadow: none !important; outline: 0 !important; }
.quick-add-counter button:disabled { background: #faf8fa; color: #c8bec8; cursor: not-allowed; }
.quick-add-counter input {
  appearance: textfield;
  background: #fff;
  border: 0;
  border-inline: 1px solid #e6dae5;
  color: var(--qa-ink);
  flex: 1 1 auto;
  font-weight: 700;
  height: 40px;
  min-width: 0;
  padding: 0;
  text-align: center;
  width: auto;
}
.quick-add-counter input:focus { box-shadow: none; outline: 0; }
.quick-add-counter input::-webkit-inner-spin-button { appearance: none; }
.quick-add-error { color: #bd284a; font-size: 13px; min-height: 20px; margin: 7px 0; }
.quick-add-submit {
  align-items: center;
  background: #ededed;
  border: 0;
  border-radius: 5px;
  color: #370d3b;
  display: flex;
  font-size: 16px;
  gap: 9px;
  justify-content: center;
  min-height: 50px;
  transition: background .2s ease, transform .2s ease;
  width: 100%;
}
.quick-add-submit i { font-size: 24px; }
.quick-add-submit:hover, .quick-add-submit:focus { background: #e2e2e2; color: #370d3b; transform: translateY(-1px); }
.quick-add-submit:disabled { background: #ededed; color: #aaa2aa; cursor: not-allowed; opacity: .9; transform: none; }

@media (max-width: 767.98px) {
  .quick-add-modal { padding: 0 !important; }
  .quick-add-modal .modal-dialog {
    margin: 12px auto;
    max-width: none;
    min-height: calc(100% - 24px);
    width: calc(100% - 24px);
  }
  .quick-add-modal .modal-content {
    margin: 0;
    max-height: 82vh;
    max-height: 82dvh;
    max-width: none;
    width: 100%;
  }
  .quick-add-content { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .quick-add-header { flex: 0 0 auto; padding: 16px 18px; }
  .quick-add-header h4 { font-size: 19px; }
  .quick-add-product {
    display: block;
    max-height: calc(82vh - 84px);
    max-height: calc(65dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .quick-add-visual { border-bottom: 1px solid var(--qa-line); border-inline-end: 0; padding: 16px 22px; }
  .quick-add-image-frame { min-height: 180px; padding: 14px; }
  .quick-add-image { max-height: 190px; }
  .quick-add-details { padding: 20px; }
  .quick-add-details h3 { font-size: 20px; }
}
@media (max-width: 575.98px) {
  .quick-add-field { align-items: stretch; display: block; }
  .quick-add-field legend,
  .quick-add-label,
  .quick-add-quantity-field .quick-add-label { margin-bottom: 8px; width: 100%; }
  .quick-add-counter { width: 100%; }
}
