/* ИНВЕНТРЕЙД. Запрос скидки с карточки товара. */
#ivd-wizard {
  position: fixed;
  inset: 0;
  z-index: 2147482001;
  display: grid;
  place-items: center;
  padding: 14px;
  box-sizing: border-box;
  background: rgba(15, 25, 38, .68);
  color: #17283e;
  font: 400 16px/1.45 Arial, sans-serif;
}
#ivd-wizard[hidden], #ivd-wizard [hidden] { display: none !important; }
#ivd-wizard *, #ivd-wizard *::before, #ivd-wizard *::after { box-sizing: border-box; }
#ivd-wizard .ivd-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 590px);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(8, 24, 45, .28);
}
#ivd-wizard .ivd-scroll { overflow: auto; overscroll-behavior: contain; padding: 24px 28px; }
#ivd-wizard header { position: relative; margin-bottom: 20px; border-bottom: 1px solid #dce3ed; padding-bottom: 16px; }
#ivd-wizard h2, #ivd-wizard h3, #ivd-wizard p { margin: 0; color: inherit; }
#ivd-wizard h2 { padding-right: 36px; font: 600 16px/1.4 Arial, sans-serif; color: #44566d; }
#ivd-wizard .ivd-product { margin-top: 6px; padding-right: 32px; font: 700 22px/1.27 Arial, sans-serif; overflow-wrap: anywhere; }
#ivd-wizard .ivd-price { margin-top: 10px; }
#ivd-wizard .ivd-order { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 3px; font-weight: 600; }
#ivd-wizard .ivd-step { margin-bottom: 6px; color: #51667d; font-size: 13px; font-weight: 600; }
#ivd-wizard h3 { margin-bottom: 14px; font: 700 21px/1.32 Arial, sans-serif; }
#ivd-wizard .ivd-hint { margin: -7px 0 14px; color: #526275; font-size: 15px; }
#ivd-wizard fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#ivd-wizard label { color: inherit; font: inherit; text-align: left; }
#ivd-wizard .ivd-choice {
  display: flex; align-items: flex-start; gap: 10px; margin: 7px 0; padding: 9px 13px;
  border: 1px solid #d4dfeb; border-radius: 8px; cursor: pointer; overflow-wrap: anywhere;
}
#ivd-wizard .ivd-choice:has(:checked) { border-color: #20649c; background: #edf5fc; }
#ivd-wizard .ivd-choice input { flex: 0 0 auto; margin: 3px 0 0; width: 17px; height: 17px; accent-color: #114b8f; }
#ivd-wizard .ivd-field { display: block; margin-top: 12px; }
#ivd-wizard .ivd-field > span:first-child { display: block; margin-bottom: 5px; font-weight: 600; }
#ivd-wizard .ivd-control {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 9px 11px;
  border: 1px solid #9cadbe; border-radius: 7px; background: #fff; color: #17283e;
  font: 400 16px/1.4 Arial, sans-serif;
}
#ivd-wizard textarea { resize: vertical; }
#ivd-wizard .ivd-qty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#ivd-wizard .ivd-qty input { width: 112px; text-align: center; appearance: textfield; -moz-appearance: textfield; }
#ivd-wizard .ivd-qty input::-webkit-inner-spin-button { appearance: none; }
#ivd-wizard button { min-height: 44px; padding: 9px 18px; border: 1px solid #b9c9d9; border-radius: 7px; background: #fff; color: #163f6c; font: 600 16px/1.25 Arial, sans-serif; cursor: pointer; }
#ivd-wizard .ivd-qty button { width: 44px; padding: 0; font-size: 23px; }
#ivd-wizard .ivd-close { position: absolute; right: -5px; top: -9px; width: 42px; padding: 0; border: 0; font: 400 30px/1 Arial, sans-serif; }
#ivd-wizard .ivd-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 28px; border-top: 1px solid #dce3ed; }
#ivd-wizard .ivd-actions [data-back] { margin-right: auto; }
#ivd-wizard .ivd-primary { border-color: #114b8f; background: #114b8f; color: #fff; }
#ivd-wizard .ivd-primary:hover:enabled { background: #0c3c75; }
#ivd-wizard button:disabled { opacity: .58; cursor: wait; }
#ivd-wizard :focus-visible { outline: 3px solid #4181b8; outline-offset: 2px; }
#ivd-wizard [tabindex="-1"]:focus { outline: none; }
#ivd-wizard .ivd-error { margin-top: 12px; color: #a12429; }
#ivd-wizard .ivd-error:empty { display: none; }
@media (max-width: 560px) {
  #ivd-wizard { padding: 8px; }
  #ivd-wizard .ivd-panel { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  #ivd-wizard .ivd-scroll { padding: 18px 16px; }
  #ivd-wizard .ivd-actions { padding: 12px 16px; }
  #ivd-wizard .ivd-product, #ivd-wizard h3 { font-size: 19px; }
}
@media print { #ivd-wizard { display: none !important; } }
