/* Delivery R9: clear text actions and mobile navigation, scoped to this page. */
.mzd { --mzd-scroll-offset: 74px; }
.mzd [id], .mzd .mzd-model, .mzd .mzd-objects {
  scroll-margin-top: var(--mzd-scroll-offset);
}
.mzd :is(a, button, summary):focus-visible {
  outline: 2px solid #b94c25;
  outline-offset: 3px;
}
body[data-current-view="delivery"] .mzd details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 0;
  list-style: none;
}
body[data-current-view="delivery"] .mzd details > summary::marker { content: ''; }
body[data-current-view="delivery"] .mzd details > summary::-webkit-details-marker { display: none; }
body[data-current-view="delivery"] .mzd details > summary::after {
  content: 'Открыть' !important;
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  color: #194b3e;
  font: 500 12px/1.4 Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body[data-current-view="delivery"] .mzd details[open] > summary::after { content: 'Скрыть' !important; }
.mzd .mzd-model-notes summary { font-size: 13px; }
.mzd .mzd-results { align-items: center; gap: 12px; }
.mzd .mzd-reset {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #bac8b9;
  border-radius: 6px;
  background: #f9faf5;
  color: #194b3e;
  text-decoration: none;
}
.mzd [data-links] { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mzd [data-links] a, .mzd .mzd-reference article a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #bac8b9;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.mzd [data-links] a { margin: 0; }
.mzd .mzd-reference article a { margin-right: 6px; }
@media (hover: hover) {
  .mzd [data-links] a:hover, .mzd .mzd-reference article a:hover,
  .mzd .mzd-reset:hover, .mzd .mzd-back-top:hover { background: #edf1e7; }
  .mzd [data-links] a:hover { color: #173f45; }
}
/* Chromium ignores custom scrollbar buttons when the standard thin style wins. */
@supports selector(::-webkit-scrollbar) {
  html:has(body[data-current-view="delivery"]), body[data-current-view="delivery"] * {
    scrollbar-width: auto !important;
    scrollbar-color: auto !important;
  }
  html:has(body[data-current-view="delivery"])::-webkit-scrollbar,
  body[data-current-view="delivery"] *::-webkit-scrollbar { width: 7px; height: 7px; }
  html:has(body[data-current-view="delivery"])::-webkit-scrollbar-track,
  body[data-current-view="delivery"] *::-webkit-scrollbar-track { background: #f6f8f0; }
  html:has(body[data-current-view="delivery"])::-webkit-scrollbar-thumb,
  body[data-current-view="delivery"] *::-webkit-scrollbar-thumb { background: #aebdad; border-radius: 8px; }
  html:has(body[data-current-view="delivery"])::-webkit-scrollbar-button,
  body[data-current-view="delivery"] *::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}
@media (max-width: 900px) {
  .mzd .mzd-hero { gap: 16px; padding: 8px 0 20px; }
  .mzd .mzd-hero p:not(.mzd-eyebrow) { font-size: 16px; line-height: 1.5; }
  .mzd .mzd-hero .mzd-cta, .mzd .mzd-detail > .mzd-cta {
    width: 100%; margin-right: 0; text-align: center; justify-content: center;
  }
  .mzd .mzd-object-picker button { width: 100%; justify-self: stretch; }
  .mzd .mzd-tools > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mzd .mzd-tools button { min-width: 0; padding: 8px 3px; font-size: 11px; white-space: normal; }
  .mzd [data-links] { display: grid; grid-template-columns: 1fr; }
  .mzd .mzd-model-notes { padding: 4px 16px; }
}
