/* Vendor Nova storefront components, 2026-11-13 */
@media screen {
  :root {
    --vn-ui-text: #172539;
    --vn-ui-muted: #526780;
    --vn-ui-blue: #0869d9;
    --vn-ui-hover: #0757b6;
    --vn-ui-navy: #112e54;
    --vn-ui-border: #dce6f1;
    --vn-ui-pale: #f2f7fd;
    --vn-ui-control-radius: 10px;
    --vn-ui-card-radius: 14px;
    --vn-ui-hero-radius: 16px;
  }

  .content .breadcrumb,
  .content:has(.vn-cat, .vn-pd) .breadcrumb,
  .vn-inner .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 4px;
    margin: 24px 0 0;
    color: var(--vn-ui-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
  }
  .content .breadcrumb > li,
  .vn-inner .breadcrumb > li { min-width: 0; overflow-wrap: anywhere; font-size: inherit; }
  .content .breadcrumb > li > a,
  .vn-inner .breadcrumb > li > a { font-size: inherit; }
  .content .breadcrumb > li > a,
  .vn-inner .breadcrumb > li > a { color: var(--vn-ui-muted); }
  .content .breadcrumb > li > a:hover,
  .vn-inner .breadcrumb > li > a:hover { color: var(--vn-ui-blue); text-decoration: underline; }

  .content .vn-pd .vn-pd-title { font-size: clamp(23px, 2.2vw, 30px); font-weight: 700; }
  .vn-company .vc-hero #vc-title { font-size: clamp(28px, 3vw, 42px) !important; }
  .vn-inner :is(.vc-hero, .vn-ab-hero) { border-radius: var(--vn-ui-hero-radius); }
  .vn-inner .vn-company .vc-hero { background: var(--vn-ui-navy); }

  body :is(.btn.btn--primary, .vn-cat-btn--primary, .vn-pd .vn-pd-price .vn-pd-btn--primary,
    .vn-tender-button:not(.vn-tender-button--light), .vn-ab-btn--grad,
    .vn-company .vc-button:not(.vc-button--secondary), .bx-authform input[type="submit"],
    .bx-authform button[type="submit"]) {
    background: var(--vn-ui-blue);
    border-color: var(--vn-ui-blue);
    color: #fff;
    border-radius: var(--vn-ui-control-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 44px;
  }
  body :is(.btn.btn--primary, .vn-cat-btn--primary, .vn-pd .vn-pd-price .vn-pd-btn--primary,
    .vn-tender-button:not(.vn-tender-button--light), .vn-ab-btn--grad,
    .vn-company .vc-button:not(.vc-button--secondary), .bx-authform input[type="submit"],
    .bx-authform button[type="submit"]):hover:not(:disabled, [aria-disabled="true"], .disabled) {
    background: var(--vn-ui-hover);
    border-color: var(--vn-ui-hover);
    color: #fff;
  }
  body :is(.vn-company .vc-button--secondary, .vn-ab-btn--glass, .vn-tender-button--light, .vn-cat-btn--white, .vn-cat-more) {
    border-radius: var(--vn-ui-control-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
  }
  body :is(.btn.btn--primary, .vn-cat-btn, .vn-pd-btn, .vn-tender-button, .vn-ab-btn, .vc-button, .vn-cat-more):focus-visible {
    outline: 2px solid var(--vn-ui-blue);
    outline-offset: 3px;
  }
  body :is(.vn-pd-price, .vc-hero, .vn-ab-hero, .vn-ab-cta, .vn-cat-promo) :is(a, button):focus-visible {
    outline-color: #8ce8f5;
  }
  body .vn-pd .vn-pd-price .vn-pd-btn--primary {
    background: var(--vn-ui-blue) !important;
    border-color: #66a6ef;
    font-size: 15px !important;
  }
  body .vn-pd .vn-pd-price .vn-pd-btn--primary:hover:not(:disabled, [aria-disabled="true"], .disabled) {
    background: var(--vn-ui-hover) !important;
  }
  body .vn-sv-legacy .btn--primary { color: #fff !important; }
  body .vn-h2-catalog { background-color: var(--vn-ui-blue); }
  body .vn-h2-catalog:hover { background-color: var(--vn-ui-hover); }

  body :is(.vn-tender-field, .bx-soa-section, .bx-authform, .vn-checkout-buyer, #call-form)
    :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
      input[type="url"], input[type="datetime-local"], input:not([type]), textarea, select) {
    background-color: #fff;
    border-color: var(--vn-ui-border);
    border-radius: var(--vn-ui-control-radius);
    color: var(--vn-ui-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    min-height: 44px;
  }
  body :is(.vn-tender-field, .bx-soa-section, .bx-authform, .vn-checkout-buyer, #call-form)
    :is(input, textarea, select):focus-visible {
    outline: 2px solid var(--vn-ui-blue);
    outline-offset: 2px;
  }
  body :is(.vn-tender-field, .bx-soa-section, .bx-authform, .vn-checkout-buyer, #call-form)
    :is([aria-invalid="true"], .bx-soa-tooltip-danger) { border-color: #b5253f; }

  body :is(.vn-buyer-card, .vn-checkout-buyer, .vn-account-tile, .basket-items-list-wrapper,
    .basket-checkout-container, .bx-soa-section, .bx-soa-cart-total, .vn-cat-card,
    .vn-pd-gallery, .vn-pd-summary, .vn-pd-document, .vn-pd-documents,
    .vn-pd-help, .vn-pd-price, .vn-tender-page .vn-tender-form-card,
    .vn-tender-page .vn-tender-card, .vn-tender-page .vn-tender-bottom,
    .vn-company .vc-card, .vn-company .vc-box, .vn-sv-card) {
    border-radius: var(--vn-ui-card-radius);
  }
  body :is(.vn-buyer-card, .vn-cat-card, .vn-pd-gallery, .vn-pd-summary, .vn-pd-document,
    .vn-tender-page .vn-tender-form-card, .vn-company .vc-card, .vn-company .vc-box) {
    border-color: var(--vn-ui-border);
  }
  body .vn-pd .vn-pd-buy .vn-pd-price { background: var(--vn-ui-navy); }

  body .vn-inner :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) details,
  body .vn-inner .vn-sv-v2 .vn-sv-faq__item {
    margin: 0 0 8px;
    padding: 0;
    border: 1px solid var(--vn-ui-border);
    border-radius: var(--vn-ui-card-radius);
    background: #fff;
  }
  body .vn-inner :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) details[open],
  body .vn-inner .vn-sv-v2 .vn-sv-faq__item[open] { border-color: #a8c7eb; }
  body .vn-inner :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) details > summary,
  body .vn-inner .vn-sv-v2 .vn-sv-faq__item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    min-height: 48px;
    color: var(--vn-ui-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
  }
  body :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) summary::-webkit-details-marker { display: none; }
  body :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) summary > .vn-sv-faq__plus { display: none; }
  body :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) details > summary::after {
    content: "";
    display: block;
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 4px 4px;
    border: solid var(--vn-ui-blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  body :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) details[open] > summary::after {
    transform: rotate(225deg);
    margin-bottom: -4px;
  }
  body :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) summary:focus-visible {
    outline: 2px solid var(--vn-ui-blue);
    outline-offset: -4px;
    border-radius: var(--vn-ui-card-radius);
  }
  body .vn-inner :is(.vn-faq, .vn-sv-faq, .vn-tender-faq) details > p,
  body .vn-inner .vn-sv-v2 .vn-sv-faq__item > p {
    margin: 0;
    padding: 0 16px 16px;
    color: var(--vn-ui-muted);
    font-size: 15px;
    line-height: 1.6;
  }
  body .vn-faq-page { padding-bottom: clamp(32px, 5vw, 72px); }
  body .vn-faq-page .vn-faq { width: 100%; max-width: 860px; margin: 24px 0 0; }

  @media (max-width: 767px) {
    .content .breadcrumb,
    .content:has(.vn-cat, .vn-pd) .breadcrumb,
    .vn-inner .breadcrumb {
      flex-wrap: nowrap;
      gap: 0;
      max-width: 100%;
      margin-top: 10px;
      padding-block: 2px 5px;
      overflow-x: auto;
      white-space: nowrap;
      scrollbar-width: none;
      font-size: 12px;
      line-height: 1.4;
    }
    .content .breadcrumb::-webkit-scrollbar,
    .vn-inner .breadcrumb::-webkit-scrollbar { display: none; }
    .content .breadcrumb > li,
    .vn-inner .breadcrumb > li { flex: 0 0 auto; overflow-wrap: normal; }
    .content .breadcrumb > li:not(:last-child),
    .vn-inner .breadcrumb > li:not(:last-child) { padding-right: 16px; }
    .content .breadcrumb > li:not(:last-child)::after,
    .vn-inner .breadcrumb > li:not(:last-child)::after { right: 6px; width: 3px; height: 3px; }
    body .content > .section:has(> .breadcrumb) { margin-bottom: 12px; }
    body :is(.vn-cat-btn--primary, .vn-cat-more) { font-size: 14px; }
  }
}

/* Storefront consistency audit, 2026-11-25. Keep page layouts and native states. */
@media screen {
  /* Rem-based legacy controls become too small at desktop root sizes. */
  body .miar-checkout #bx-soa-order :is(input.form-control, textarea.form-control, select.form-control) {
    font-family: var(--font-sans, Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: 16px;
    line-height: 1.4;
    color: var(--vn-ui-text);
    border-radius: var(--vn-ui-control-radius);
    border-color: #bdcbdc;
    min-height: 48px;
    box-sizing: border-box;
  }
  body .miar-checkout #bx-soa-order .form-control:focus-visible {
    outline: 2px solid var(--vn-ui-blue);
    outline-offset: 2px;
  }
  body .miar-checkout #bx-soa-order :is(.bx-soa-custom-label, .bx-soa-customer-label) {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--vn-ui-muted);
    margin-bottom: 8px;
  }
  body .miar-checkout #bx-soa-order :is(.bx-soa-pp-company-smalltitle, .miar-sdek-toggle) {
    font-size: 14px;
    line-height: 1.5;
  }
  body .miar-checkout #bx-soa-order .miar-delivery-price { font-size: inherit; }
  /* The local service name already includes its price. Avoid a duplicate badge. */
  body .miar-checkout #bx-soa-order .bx-soa-pp-company:has(input[aria-label*="Рязани"][aria-label*="₽"])
    .miar-delivery-price { display: none; }
  body .miar-checkout #bx-soa-order .bx-soa-section-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--vn-ui-text);
  }
  body .miar-checkout #bx-soa-order #bx-soa-total .bx-soa-cart-t {
    color: var(--vn-ui-muted);
    font-size: 14px;
    line-height: 1.5;
  }
  body .miar-checkout #bx-soa-order #bx-soa-total .bx-soa-cart-d {
    color: var(--vn-ui-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
  }
  body .miar-checkout #bx-soa-order #bx-soa-total .bx-soa-cart-total-line-total .bx-soa-cart-d {
    font-size: 26px;
    font-weight: 700;
  }
  body :is(#bx-soa-order, #call-form, .vn-inner) .form__consent {
    font-family: var(--font-sans, Roboto, "Helvetica Neue", Arial, sans-serif);
  }

  body #basket-root :is(.basket-item-price-current-text, .basket-coupon-block-total-price-current) {
    color: var(--vn-ui-blue);
    font-weight: 600;
  }
  body #basket-root .basket-coupon-block-total-price-current {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
  }
  body #basket-root .basket-checkout-block-total-title {
    font-size: 14px;
    line-height: 1.5;
    color: var(--vn-ui-muted);
  }

  body .vn-search-form .search__input {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    min-width: 0;
  }
  body .vn-pd .vn-pd-qty { flex-wrap: wrap; gap: 8px; }
  body .vn-pd :is(.vn-pd-qty__btn, .vn-pd-qty__input) {
    height: 44px;
    flex: 0 0 auto;
    border-radius: var(--vn-ui-control-radius);
    font-family: var(--font-sans, Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
  }
  body .vn-pd .vn-pd-qty__btn { width: 44px; font-size: 20px !important; }
  body .vn-pd .vn-pd-qty__input { width: 56px; min-width: 0; }
  body .vn-pd .vn-pd-qty__sum { font-size: 13px; line-height: 1.5; }

  /* The modal uses the same field and heading treatment as account forms. */
  body #call-form .contact__title { color: var(--vn-ui-text); font-weight: 700; }
  body #call-form input.field__input {
    height: 48px;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.4;
    padding: 11px 13px;
    border-radius: var(--vn-ui-control-radius);
  }
  body #call-form textarea.field__input {
    min-height: 112px;
    resize: vertical;
    border-radius: var(--vn-ui-control-radius);
  }

  body .vn-account {
    --vn-account-ink: var(--vn-ui-text);
    --vn-account-muted: var(--vn-ui-muted);
    --vn-account-line: var(--vn-ui-border);
  }
  body .vn-account :is(.vn-account-nav, .vn-order-card, .vn-orders-empty,
    .vn-account-welcome, .vn-account-tile, .vn-buyer-card, form[name="form1"]) {
    border-radius: var(--vn-ui-card-radius);
  }
  body .vn-account :is(.vn-account-nav a, .vn-order-tabs a,
    .vn-order-actions .btn, .vn-orders-empty .btn,
    .main-profile-block-shown .form-control, form[name="form1"] input[type="submit"],
    .vn-order-cancel .vn-order-cancel__button) {
    border-radius: var(--vn-ui-control-radius);
  }
  body .vn-account .vn-order-actions .btn { min-height: 44px; }
}
