/* dd-request.css: «Заявка по деталям» (js/dd-request.js). Tokens come from dd-site.css (--dd-*), fallbacks are the site values. */
.dd-req-bar, .dd-req, .dd-req-btn, .dd-req-ov {
  --rq-orange: var(--dd-orange, #FE5006);
  --rq-orange-hover: var(--dd-orange-hover, #E84700);
  --rq-ink: var(--dd-ink, #171A1F);
  --rq-steel: var(--dd-steel, #59616B);
  --rq-line: var(--dd-line, #E3E6E9);
  --rq-grey: var(--dd-grey, #F4F5F7);
  --rq-btn-grey: var(--dd-btn-grey, #F1F2F4);
  --rq-btn-grey-hover: var(--dd-btn-grey-hover, #E8EAED);
  --rq-control: var(--dd-control, #8A929B);
  --rq-err: #C62828;
  font-family: var(--dd-font, "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
  box-sizing: border-box;
}
.dd-req-bar *, .dd-req *, .dd-req-btn * { box-sizing: border-box; }
.dd-req-sr, .dd-req-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.dd-req [hidden], .dd-req-bar[hidden], .dd-req-ov[hidden], .dd-req[hidden] { display: none !important; }
html.dd-req-lock { overflow: hidden; }

/* «+ В заявку» buttons (table row, part page). Secondary: white/grey, ink text. */
.dd-req-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 6px 12px; min-height: 36px;
  border: 1px solid var(--rq-line); border-radius: 4px; background: #fff; color: var(--rq-ink); cursor: pointer;
  font: 600 14px/1.2 var(--dd-font, "Onest", system-ui, Arial, sans-serif); text-align: center; white-space: nowrap; max-width: 100%;
}
.dd-req-btn:hover { background: var(--rq-btn-grey); border-color: var(--rq-control); color: var(--rq-ink); }
.dd-req-btn:focus-visible { outline: 3px solid var(--rq-ink); outline-offset: 2px; }
.dd-req-btn svg { flex: 0 0 auto; width: 16px; height: 16px; }
.dd-req-btn.is-added { background: var(--rq-grey); border-color: var(--rq-ink); }
.dd-req-btn--row { padding: 4px 10px; }
.dd-req-btn--part, .dd-req-btn--card { min-height: 48px; padding: 10px 18px; font-size: 17px; background: var(--rq-btn-grey); border-color: transparent; white-space: normal; }
.dd-req-btn--part:hover, .dd-req-btn--card:hover { background: var(--rq-btn-grey-hover); border-color: transparent; }
.dd-req-btn--part svg, .dd-req-btn--card svg { width: 20px; height: 20px; }
.dd-req-btn--card { width: 100%; }

/* Table cell. */
.dd-pg-on #tab-description td.dd-req-cell { width: 1% !important; white-space: nowrap; text-align: right !important; padding-left: 6px; padding-right: 8px; }
@media (max-width: 600px), (pointer: coarse) { .dd-req-btn--row { min-height: 40px; min-width: 44px; } }
/* Narrow phones: icon only (the table needs the width for the part number); the label stays for screen readers, a tick shows the added state. */
@media (max-width: 480px) {
  .dd-req-btn--row { width: 44px; min-width: 44px; min-height: 44px; padding: 0; }
  .dd-req-btn--row .dd-req-btn__t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dd-req-btn--row.is-added svg { display: none; }
  .dd-req-btn--row.is-added::before { content: "\2713"; font-size: 18px; font-weight: 700; line-height: 1; }
  .dd-pg-on #tab-description td.dd-req-cell { padding-left: 2px; padding-right: 4px; }
}

/* Floating bar: ink pill in the bottom corner. The footer launcher «Подобрать запчасти» is hidden while the list has items (rule at the end), so they never overlap. */
.dd-req-bar {
  position: fixed; right: 24px; bottom: 24px; z-index: 99980; display: flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 20px; background: var(--rq-ink); color: #fff; border-radius: 999px;
  box-shadow: 0 8px 28px rgba(23, 26, 31, .28); max-width: calc(100vw - 32px);
}
.dd-req-bar__t { font-size: 16px; font-weight: 600; line-height: 1.2; }
.dd-req-bar__go {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--rq-orange); color: #fff; cursor: pointer;
  font: 700 16px/1 var(--dd-font, "Onest", system-ui, Arial, sans-serif);
}
.dd-req-bar__go:hover { background: var(--rq-orange-hover); }
.dd-req-bar__go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
  .dd-req-bar { left: 16px; right: 16px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; }
}

/* Drawer: right side 440px on desktop, full-screen sheet below 600px. */
.dd-req-ov { position: fixed; inset: 0; z-index: 100010; background: rgba(23, 26, 31, .5); animation: dd-req-fade 200ms ease-out; }
.dd-req {
  position: fixed; z-index: 100011; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column;
  container-type: inline-size;
  background: #fff; color: var(--rq-ink); box-shadow: -10px 0 40px rgba(23, 26, 31, .25); outline: none;
  animation: dd-req-in 200ms ease-out;
}
@keyframes dd-req-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dd-req-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dd-req-fade { from { opacity: 0; } to { opacity: 1; } }
.dd-req *:focus-visible { outline: 2px solid var(--rq-orange); outline-offset: 2px; }
.dd-req__submit:focus-visible { outline-color: var(--rq-ink); }
.dd-req .dd-req__done:focus-visible { outline: 0; }

.dd-req__head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 8px 20px; }
.dd-req__title { margin: 0; font: 600 22px/28px var(--dd-font-head, "Onest", system-ui, Arial, sans-serif); color: var(--rq-ink); }
.dd-req__x { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--rq-ink); cursor: pointer; }
.dd-req__x:hover { background: var(--rq-grey); }
.dd-req__form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; }
.dd-req__sub { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 10px 20px; border-bottom: 1px solid var(--rq-line); }
.dd-req__count { margin: 0; font-size: 14px; line-height: 1.3; color: var(--rq-steel); }
.dd-req__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 20px 20px; }
.dd-req__hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.dd-req__link { min-height: 44px; padding: 0 8px; margin: 0; border: 0; border-radius: 8px; background: none; color: var(--rq-ink); font: 600 15px/1.2 var(--dd-font, "Onest", system-ui, Arial, sans-serif); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rq-control); cursor: pointer; }
.dd-req__link:hover { text-decoration-color: var(--rq-ink); }
.dd-req__link--small { font-size: 14px; font-weight: 500; color: var(--rq-steel); }
.dd-req__link--small:hover { color: var(--rq-ink); }
.dd-req__more, .dd-req__cmt-t { display: inline-flex; align-items: center; margin-left: -8px; }
.dd-req__more { margin-bottom: 8px; }
.dd-req__cmt-t { margin-bottom: 8px; }

.dd-req__items { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 10px; }
.dd-req__items:empty { display: none; }
.dd-req__it { padding: 14px 14px 12px 16px; background: #F6F7F8; border: 0; border-radius: 12px; min-width: 0; }
.dd-req__it-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dd-req__it-n { min-width: 0; overflow-wrap: anywhere; font: 600 18px/1.25 var(--dd-font-head, "Onest", system-ui, Arial, sans-serif); letter-spacing: .01em; color: var(--rq-ink); }
.dd-req__it-n--none { font-size: 16px; font-weight: 400; font-style: italic; letter-spacing: 0; color: var(--rq-steel); }
.dd-req__it-ctl { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; margin-right: -6px; }
.dd-req__it-nm { margin: 6px 0 0; font-size: 15px; line-height: 1.35; color: var(--rq-ink); overflow-wrap: anywhere; }
.dd-req__it-meta { margin: 3px 0 0; font-size: 13px; line-height: 18px; max-height: 18px; color: var(--rq-steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-req__step { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: #fff; }
.dd-req__sb { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--rq-ink); cursor: pointer; }
.dd-req__sb:hover { background: var(--rq-btn-grey); }
.dd-req__sb[aria-disabled="true"] { color: #A2A9B1; cursor: default; background: transparent; }
.dd-req__sb svg { width: 16px; height: 16px; }
.dd-req__it-qi { width: 34px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--rq-ink); text-align: center; font: 600 16px/1 var(--dd-font-head, "Onest", system-ui, Arial, sans-serif); box-shadow: none; -moz-appearance: textfield; }
.dd-req__rm { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--rq-steel); cursor: pointer; }
.dd-req__rm:hover { background: #FBEAEA; color: var(--rq-err); }
.dd-req__empty { margin: 0 0 8px; padding: 14px 16px; background: var(--rq-grey); border-radius: 12px; color: var(--rq-steel); font-size: 15px; line-height: 1.4; }

.dd-req__grp { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.dd-req__legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; border: 0; font: 600 15px/1.3 var(--dd-font-head, "Onest", system-ui, Arial, sans-serif); color: var(--rq-ink); }
.dd-req__legend + * { clear: both; }
.dd-req__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dd-req__grp > .dd-req__f { margin-top: 12px; }
@container (min-width: 400px) {
  .dd-req__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dd-req__row--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
.dd-req__f { min-width: 0; display: flex; flex-direction: column; }
.dd-req__f label { display: flex; flex-wrap: wrap; align-content: flex-end; column-gap: 4px; flex: 1 0 auto; margin: 0 0 6px; font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--rq-steel); }
.dd-req__opt { color: #7B838D; }
.dd-req__req { color: var(--rq-steel); }
.dd-req__in { display: block; width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--rq-grey); color: var(--rq-ink); font: 400 16px/1.3 var(--dd-font, "Onest", system-ui, Arial, sans-serif); box-shadow: none; outline: 2px solid transparent; -webkit-appearance: none; appearance: none; }
.dd-req__in::placeholder { color: #8A929B; }
.dd-req__in:focus, .dd-req__in:focus-visible { background: #fff; outline: 0; box-shadow: 0 0 0 2px var(--rq-orange); }
.dd-req__in.is-invalid { box-shadow: 0 0 0 2px var(--rq-err); background: #fff; }
.dd-req__in.is-invalid:focus { box-shadow: 0 0 0 2px var(--rq-err); }
.dd-req__ta { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.dd-req__err { margin: 6px 0 0; font-size: 13px; line-height: 1.35; color: var(--rq-err); }
.dd-req__cmt { margin: 0 0 8px; }

.dd-req__cs { margin: 14px 0 0; }
.dd-req__consent { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--rq-ink); cursor: pointer; }
.dd-req__consent input { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.dd-req__box { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--rq-ink); border-radius: 5px; background: #fff; color: transparent; }
.dd-req__box svg { width: 14px; height: 14px; }
.dd-req__consent input:checked + .dd-req__box { color: var(--rq-orange); }
.dd-req__consent input:focus-visible + .dd-req__box { outline: 2px solid var(--rq-orange); outline-offset: 2px; }
.dd-req__consent input[aria-invalid="true"] + .dd-req__box { border-color: var(--rq-err); }
.dd-req__consent a, .dd-req__note a { color: var(--rq-ink); text-decoration: underline; text-underline-offset: 3px; }
.dd-req__note { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--rq-steel); }

.dd-req__foot { flex: 0 0 auto; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rq-line); background: #fff; }
.dd-req__hint { margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: var(--rq-steel); }
.dd-req__status { min-height: 0; margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.dd-req__status:empty { display: none; }
.dd-req__status.is-error { color: var(--rq-err); font-weight: 600; }
.dd-req__status.is-success { color: var(--rq-ink); font-weight: 600; }
.dd-req__submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--rq-orange); color: #fff; cursor: pointer; font: 700 19px/1.2 var(--dd-font, "Onest", system-ui, Arial, sans-serif);
}
.dd-req__submit:hover { background: #E64800; color: #fff; }
.dd-req__submit:disabled { background: #E64800; cursor: progress; }
.dd-req__spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: dd-req-spin .8s linear infinite; }
@keyframes dd-req-spin { to { transform: rotate(360deg); } }

.dd-req__done { flex: 1 1 auto; padding: 48px 24px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; overflow-y: auto; }
.dd-req__done-ic { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rq-ink); color: #fff; }
.dd-req__done-ic svg { width: 30px; height: 30px; }
.dd-req__done-h { margin: 6px 0 0; font: 600 22px/28px var(--dd-font-head, "Onest", system-ui, Arial, sans-serif); color: var(--rq-ink); }
.dd-req__done-t { margin: 0; max-width: 320px; font-size: 16px; line-height: 1.45; color: var(--rq-steel); }
.dd-req__done-l { list-style: none; margin: 0; padding: 12px 16px; width: 100%; max-width: 320px; background: #F6F7F8; border-radius: 12px; display: grid; gap: 6px; text-align: left; font-size: 15px; line-height: 1.35; color: var(--rq-ink); }
.dd-req__done-l:empty { display: none; }
.dd-req__done-li { overflow-wrap: anywhere; }
.dd-req__btn { min-height: 48px; margin-top: 10px; padding: 10px 24px; border: 0; border-radius: 12px; cursor: pointer; font: 600 16px/1.2 var(--dd-font, "Onest", system-ui, Arial, sans-serif); }
.dd-req__btn--sec { background: var(--rq-btn-grey); color: var(--rq-ink); }
.dd-req__btn--sec:hover { background: var(--rq-btn-grey-hover); }

@media (max-width: 599px) {
  .dd-req { left: 0; width: 100%; height: 100vh; height: 100dvh; box-shadow: none; animation-name: dd-req-up; }
  .dd-req__it-ctl { margin-right: -4px; }
  .dd-req__step, .dd-req__sb, .dd-req__it-qi, .dd-req__rm { height: 44px; }
  .dd-req__sb, .dd-req__rm { width: 44px; }
  .dd-req__it-qi { width: 36px; }
  .dd-req__step { height: 44px; }
}
@media (max-width: 380px) {
  .dd-req__body { padding: 14px 14px 18px; }
  .dd-req__head { padding-left: 14px; }
  .dd-req__sub, .dd-req__foot { padding-left: 14px; padding-right: 14px; }
  .dd-req__it { padding: 12px 8px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .dd-req-bar, .dd-req, .dd-req-ov, .dd-req-btn { transition: none !important; animation: none !important; } .dd-req__spin { animation-duration: 2s !important; } }
@media print { .dd-req-bar, .dd-req, .dd-req-ov, .dd-req-btn { display: none !important; } }

/* While the request list has items the general lead launcher is hidden: one floating action at a time. */
body.dd-req-has-items .dd-lead-launcher { display: none; }

/* «Оформить заявку» on diagram pages (replaces the buyoneclick button) and the «Узел целиком» card */
.dd-req-open, .dd-req-open:focus { background-color: #FE5006; border-color: #FE5006; color: #fff; font-weight: 700; font-size: 19px; }
.dd-req-open:hover, .dd-req-open:active { background-color: #E84700; border-color: #E84700; color: #fff; }
.dd-req-open:focus-visible { outline: 3px solid #171A1F; outline-offset: 2px; }
.dd-req__it-n--w { font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--rq-ink); }

/* beat theme .btn-primary colours on the diagram order button */
body .dd-req-open.btn,body .dd-req-open.btn:focus{background-color:#FE5006!important;border-color:#FE5006!important;background-image:none!important;color:#fff!important;opacity:1!important}
body .dd-req-open.btn:hover,body .dd-req-open.btn:active{background-color:#E84700!important;border-color:#E84700!important}
