/* VM115 review candidate, 04.10.2026. Presentation only. */

/* Compact native smart filter: inputs, links and request semantics stay native. */
body .bx-filter .params-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    align-items: start;
}
body .bx-filter .params-list .bx-filter-parameters-box {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 10px 12px 4px;
    border: 1px solid #d6e0ed;
    border-radius: 4px;
    background: #f8fafc;
}
body .bx-filter .params-list .bx-filter-parameters-box-title {
    padding-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}
body .bx-filter .params-list .checkboxes-list {
    padding: 0;
    gap: 4px 8px;
    align-items: flex-start;
}
body .bx-filter .params-list .bx-filter-parameters-box-container { margin: 0; }
body .bx-filter .params-list .bx-filter-block .checkbox {
    width: calc(50% - 4px);
    margin: 0 0 4px;
    min-width: 0;
}
body .bx-filter .params-list .checkbox label {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 3px 0;
    line-height: 1.4;
    min-height: 28px;
}
/* The native checkbox reserves icon space with padding; include it in its width. */
body .bx-filter .params-list .checkbox label > .radio {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
body .bx-filter .params-list .checkbox .bx-filter-input-checkbox > a {
    display: block;
    max-width: 100%;
    min-width: 0;
}
body .bx-filter .params-list .bx-filter-param-text {
    white-space: normal;
    overflow-wrap: anywhere;
}
body .bx-filter .params-list .hide-elements {
    width: 100%;
    gap: 4px 8px;
}
body .bx-filter .show-elements,
body .bx-filter .hide-elements-btn,
body .bx-filter .show-filter-props,
body .bx-filter .hide-filter-props {
    padding: 5px 0;
    margin: 0 0 4px;
    line-height: 1.4;
}
body .bx-filter .bx-filter-button-box { margin-top: 12px; }
body .bx-filter [role="button"]:focus-visible {
    outline: 2px solid #4573b1;
    outline-offset: 3px;
}

/* Login above both sidebars, independent of the screen width. */
body .login-form.show {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 1200;
    width: min(550px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    opacity: 1;
    border: 1px solid #d6e0ed;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(25, 42, 64, .22);
    padding: 20px;
    box-sizing: border-box;
}
body .login-form .left-block {
    width: calc(52% - 12px);
    margin-right: 24px;
}
body .login-form .right-block { width: calc(48% - 12px); }
body .login-form .right-block .title { font-size: 22px; }
body .login-form .left-block .input-row input {
    min-width: 0;
    flex: 1;
    width: auto;
}

/* A category's image, title and count are all included in its natural height. */
body .group-container.group-container-sect {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin: 0 auto;
    padding-bottom: 24px;
}
body .group-container-sect > .group-block {
    float: none;
    display: flex;
    flex-direction: column;
    width: 185px;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}
body .group-container-sect > .group-block .group-img {
    height: 180px;
    flex-shrink: 0;
    margin-bottom: 8px;
}
body .group-container-sect .group-img a {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}
body .group-container-sect .group-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0;
    object-fit: contain;
}
body .group-container-sect > .group-block .group-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 6px;
    line-height: 1.35;
    box-sizing: border-box;
}
body .group-container-sect .cnt_span {
    display: block;
    margin-top: 8px;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Left navigation: named groups and one persistent current location. */
body .left-sidebar .mactak-site-menu { height: auto; padding: 8px 10px; }
body .mactak-site-menu .mactak-nav-group { margin-bottom: 18px; }
/* Keep the original separators between services, buyer information and company links. */
body .mactak-site-menu .mactak-nav-group:not(:last-child) {
    padding-bottom: 4px;
    border-bottom: 1px solid #ff0000;
}
body .mactak-site-menu .mactak-nav-group-label {
    padding: 4px 10px 6px;
    color: #68768a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-align: left;
}
body .mactak-site-menu ul { height: auto; }
body .left-sidebar .mactak-site-menu li {
    height: auto;
    margin: 0 0 3px;
    text-align: left;
    border: 0;
    border-right: 5px solid #4573b1;
}
body .left-sidebar .mactak-site-menu li a {
    display: block;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    border: 0;
}
body .left-sidebar .mactak-site-menu li:hover { background: #f3f6fa; }
body .left-sidebar .mactak-site-menu li.active {
    background: #eaf0f8;
    border-right-color: #ff0000;
}
body .left-sidebar .mactak-site-menu li:hover { border-right-color: #ff0000; }
body .left-sidebar .mactak-site-menu li.active a { color: #294e80; }
body .left-sidebar .catalog_btn[aria-current] {
    background: #fff;
    color: #4573b1;
    box-shadow: inset 0 0 0 1px #4573b1;
}

/* Right navigation: reveal ancestors of the current page and selected branches. */
body #left_menu li.mactak-menu-open > ul { display: block !important; }
body #left_menu li:not(.mactak-menu-open) > ul { display: none !important; }
body #left_menu li { position: relative; }
body #left_menu a.mactak-menu-parent {
    color: #294e80;
    font-weight: 600;
}
body #left_menu > li > a.mactak-menu-parent { background: #edf2f8 !important; }
body #left_menu a.mactak-menu-current {
    background: #eaf0f8 !important;
    color: #294e80;
    font-weight: 600;
    box-shadow: inset 3px 0 #eb1c2a;
}
body #left_menu a.mactak-menu-current .text,
body #left_menu a.mactak-menu-parent .text { color: #294e80; }
body #left_menu li:has(> .mactak-menu-toggle) > a { padding-right: 32px; }
body #left_menu .mactak-menu-toggle {
    position: absolute;
    right: 2px;
    top: 0;
    width: 28px;
    height: 30px;
    padding: 0;
    background: transparent;
    color: #4573b1;
    border: 0;
    cursor: pointer;
    font: 20px/1 Arial, sans-serif;
}
body #left_menu .mactak-menu-toggle:focus-visible { outline: 2px solid #4573b1; }
body .tabs a.mactak-tab-current {
    background: #fff;
    color: #4573b1;
    box-shadow: inset 0 0 0 1px #4573b1;
}

/* Basket review stays over the current page; native checkout remains a link. */
.mactak-basket-source[hidden] { display: none !important; }
dialog.mactak-basket-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(460px, 100%);
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0;
    border: 0;
    background: #fff;
    color: #323a44;
    box-shadow: -8px 0 32px rgba(25, 42, 64, .2);
    box-sizing: border-box;
}
dialog.mactak-basket-drawer::backdrop { background: rgba(25, 42, 64, .15); }
dialog.mactak-basket-drawer[open] { display: flex; flex-direction: column; }
.mactak-basket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.mactak-basket-header h2 { margin: 0; font-size: 22px; color: #294e80; }
.mactak-basket-close {
    background: transparent;
    color: #4b5b70;
    border: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    font: 28px/1 Arial, sans-serif;
}
.mactak-basket-body { overflow-y: auto; flex: 1; padding: 12px 24px; }
.mactak-basket-item { padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.mactak-basket-item a { color: #294e80; font-size: 15px; line-height: 1.5; }
.mactak-basket-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: #68768a;
    font-size: 14px;
}
.mactak-basket-item-meta strong { color: #323a44; }
.mactak-basket-empty { padding: 24px 0; line-height: 1.6; }
.mactak-basket-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #fff;
}
.mactak-basket-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 17px;
}
.mactak-basket-actions { display: grid; gap: 10px; }
.mactak-basket-actions button,
.mactak-basket-actions a {
    display: block;
    padding: 12px;
    width: 100%;
    font: 15px/1.4 Arial, sans-serif;
    text-align: center;
    border: 1px solid #4573b1;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
}
.mactak-basket-continue { background: #fff; color: #4573b1; }
.mactak-basket-checkout { background: #4573b1; color: #fff; }

@media (max-width: 1100px) {
    body .bx-filter .params-list .bx-filter-block .checkbox { width: 100%; }
}
@media (max-width: 650px) {
    body .bx-filter .params-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    body .bx-filter .params-list .checkbox label { min-height: 32px; }
    body .group-container.group-container-sect { gap: 16px 12px; }
    body .group-container-sect > .group-block { width: calc(50% - 6px); }
    body .group-container-sect > .group-block .group-img { height: 130px; }
    body .login-form.show { top: 12px; right: 16px; padding: 16px; }
    body .login-form .left-block { width: 100%; margin: 0 0 16px; }
    body .login-form .right-block { width: 100%; gap: 8px; }
    body .login-form .right-block .title { font-size: 18px; }
    body .login-form .right-block .login-block { display: none; }
    body .login-form .right-block .register-block,
    body .login-form .right-block .forgot-passwd { margin: 0; width: calc(50% - 14px); }
}

/* 09.10: root catalog alignment and removal of visible stock counts only. */
body .group-container-sect.mactak-main-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px 24px;
    align-items: start;
}
body .mactak-main-catalog-grid > .group-block {
    width: auto;
    margin: 0;
    min-width: 0;
}
body .mactak-main-catalog-grid > .group-block .group-link {
    min-height: 72px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
body .mactak-main-catalog-grid .mactak-section-count,
body .mactak-main-catalog-grid .cnt_span { display: none; }
@media (max-width: 600px) {
    body .group-container-sect.mactak-main-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }
    body .mactak-main-catalog-grid > .group-block .group-link { min-height: 88px; }
}
