/*
Theme Name: Recom Native
Version: 0.1.0
Requires PHP: 8.3
Text Domain: recom-native
*/

.page-top-wrapper.color.v3 .sait1-breadcrumbs,
.page-top-wrapper.color.v3 .sait1-breadcrumbs :is(a, [aria-current="page"]) {
    color: #111;
}

.page-top-wrapper.color.v3 .sait1-breadcrumbs a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.page-top-wrapper.color.v3 .sait1-breadcrumbs a:focus-visible {
    /* The imported styles reset outlines with !important. */
    outline: 2px solid currentColor !important;
    outline-offset: 2px;
}

.banners-big.front .maxwidth-banner > .flexslider > .maxwidth-theme {
    pointer-events: none;
}

.banners-big.front .maxwidth-banner > .flexslider > .maxwidth-theme .nav-carousel a {
    pointer-events: auto;
}

.recom-catalog-item {
    position: relative;
}
.recom-catalog-toggle {
    position: absolute;
    z-index: 2;
    top: 0;
    inset-inline-end: 0;
    width: 44px;
    height: 100%;
    max-height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.recom-catalog-toggle::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    transform: translateY(-2px) rotate(45deg);
}
#mobilemenu .recom-catalog-toggle::before {
    transform: rotate(-45deg);
}
.recom-catalog-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}
nav.mega-menu td.menu-item .wrap.recom-catalog-desktop > .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
}
nav.mega-menu td.menu-item .wrap.recom-catalog-desktop.recom-catalog-open > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
@media (max-width: 991px) {
    #mobilemenu .recom-catalog-toggle {
        inset-inline-end: 10px;
        height: 46px;
    }
    #mobilemenu a[data-recom-catalog-link] {
        padding-inline-end: 56px;
    }
}


.recom-ui-ready .menu-row.with-color .menu-only,
.recom-ui-ready #headerfixed .navs.table-menu {
    opacity: 1;
}

.recom-ui-ready .menu-row.with-color .menu-only {
    display: flow-root;
}

.recom-ui-ready #mobilemenu.show + #mobilemenu-overlay:not([hidden]) {
    display: block;
}

@media (max-width: 991px) {
    html body.admin-bar.mfixed_Y > div#mobileheader,
    body.admin-bar #mobilemenu.leftside {
        top: var(--recom-toolbar-edge, 0px);
    }
}

.recom-source-preview > h1 {
    margin-inline: clamp(16px, 2.93vw, 40px);
}

@media (max-width: 767px) {
    .recom-source-preview .main-catalog-wrapper > .section-content-wrapper,
    .recom-native-catalogue .main-catalog-wrapper > .section-content-wrapper {
        flex: 1 1 100%;
        min-width: 0;
    }
}

.recom-ui-ready #slider.flexslider .slides > li.flex-active-slide {
    display: block;
}

.recom-photo-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: min(94vw, 1100px);
    max-height: 92vh;
    max-height: 92dvh;
    padding: 12px;
    overflow: auto;
    border: 0;
    background: #fff;
    color: #222;
}

.recom-photo-dialog::backdrop {
    background: rgb(0 0 0 / 75%);
}

.recom-photo-dialog figure {
    margin: 8px 0;
}

.recom-photo-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    max-height: 70dvh;
    margin-inline: auto;
}

.recom-photo-dialog figcaption {
    text-align: center;
}

.recom-photo-dialog nav:not([hidden]) {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.recom-mobile-column-label {
    display: none;
}

@media (max-width: 767px) {
    body .right_block table.table thead + tbody tr:not(.nomobile) td[data-recom-column] {
        min-height: 46px;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    body .right_block table.table thead + tbody td[data-recom-column] .recom-mobile-column-label {
        width: calc(50% - 12px);
        padding-right: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.25;
        font-weight: 600;
    }
}

main .goods-block .catalog .items a.btn.btn-default {
    color: #fff !important;
    background-color: #1474ac;
}

main .goods-block .catalog .items a.btn.btn-default:is(:hover, :focus-visible) {
    background-color: #125d8a;
}

/* Category links without a media block need only the space of a tap target. */
.recom-native-catalogue .item-views.catalog.sections .item:not(:has(> .image)):has(> .info > .title:only-child) {
    display: flex;
    padding: 0;
}

.recom-native-catalogue .item-views.catalog.sections .item:not(:has(> .image)) > .info:has(> .title:only-child),
.recom-native-catalogue .item-views.catalog.sections .item:not(:has(> .image)) > .info > .title:only-child {
    display: flex;
    flex: 1;
    margin: 0;
    padding: 0;
}

.recom-native-catalogue .item-views.catalog.sections .item:not(:has(> .image)) > .info > .title:only-child > a:only-child {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px;
    text-align: center;
}

.recom-native-catalogue .item-views.catalog.sections .item:not(:has(> .image)) > .info > .title:only-child > a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.main-catalog-wrapper .catalog.item-views .items > .js-popup-block[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .recom-catalogue-filter-open > .left_block {
        display: block !important;
        float: none;
        width: 100%;
    }

    .recom-catalogue-filter-open > .left_block .bx_filter {
        display: block;
    }

    .main-catalog-wrapper .filter-action[role="button"] {
        cursor: pointer;
    }

    .main-catalog-wrapper .filter-action[role="button"]::after {
        content: "Фильтр";
    }
}

.recom-native-catalogue [data-recom-catalogue-view="list"] .catalog.item-views .items > .js-popup-block,
.recom-native-catalogue [data-recom-catalogue-view="price"] .catalog.item-views .items > .js-popup-block {
    flex: 0 0 100%;
    width: 100%;
}

.recom-native-catalogue [data-recom-catalogue-view] .catalog.item-views .items {
    min-width: 0;
}

.recom-native-catalogue [data-recom-catalogue-view="list"] .catalog.item-views .js-popup-block .item,
.recom-native-catalogue [data-recom-catalogue-view="price"] .catalog.item-views .js-popup-block .item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.recom-native-catalogue [data-recom-catalogue-view] .catalog.item-views .js-popup-block .item > .image {
    flex: 0 0 min(34%, 180px);
    padding: 8px;
}

.recom-native-catalogue [data-recom-catalogue-view="price"] .catalog.item-views .js-popup-block .item > .image {
    flex-basis: min(27%, 100px);
}


.recom-native-catalogue .recom-catalogue-price-list {
    width: 100%;
}

.recom-native-catalogue .recom-catalogue-price-list .js-popup-block {
    float: none;
    width: 100%;
}

.recom-native-catalogue .recom-catalogue-price-range input {
    display: block;
    width: 100%;
}

.recom-native-catalogue .view-button.recom-catalogue-view-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 36px;
    padding: 0 10px;
}

.recom-native-catalogue .view-button.recom-catalogue-view-label.cur {
    color: #fff;
}

.recom-native-catalogue .recom-catalogue-price-list .item .image img {
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .recom-native-catalogue .filter-action[role="button"] {
        width: auto;
        min-width: 72px;
        padding-inline: 8px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    body.page-id-188 .left_block .sidearea > .fill-block.container-block {
        display: block;
    }
}

.recom-search-results > ul {
    padding-inline-start: 1.25rem;
}

.shares-block.recom-share-ready > .text,
.shares-block.recom-share-ready > .ya-share2 {
    display: none;
}
.recom-article-share {
    box-sizing: border-box;
    width: min(27rem, calc(100% - 32px));
    max-width: none;
    padding: 24px;
    border: 0;
    border-radius: 4px;
}
.recom-article-share::backdrop {
    background: rgba(0, 0, 0, 0.48);
}
.recom-article-share label,
.recom-article-share input {
    display: block;
    width: 100%;
}
.recom-article-share input {
    box-sizing: border-box;
    margin: 8px 0 12px;
}
.recom-article-share .recom-share-close {
    display: block;
    margin-inline-start: auto;
    border: 0;
    background: none;
    font-size: 24px;
}
.recom-article-share .recom-share-status {
    margin: 8px 0 0;
}

.share .shares-block.recom-share-ready::before,
.share .shares-block.recom-share-ready::after {
    content: none;
}

#diagnostika-tsifrovogo-fotoapparata,
#diagnostika-sistemnogo-fotoapparata,
#diagnostika-zerkalnogo-fotoapparata,
#diagnostika-obektiva-sistemnogo-fotoapparata,
#diagnostika-obektiva-zerkalnogo-fotoapparata,
#diagnostika-noutbuka {
    scroll-margin-top: 112px;
}

@media (max-width: 767px) {
    #diagnostika-tsifrovogo-fotoapparata,
    #diagnostika-sistemnogo-fotoapparata,
    #diagnostika-zerkalnogo-fotoapparata,
    #diagnostika-obektiva-sistemnogo-fotoapparata,
    #diagnostika-obektiva-zerkalnogo-fotoapparata,
    #diagnostika-noutbuka {
        scroll-margin-top: 204px;
    }
}

/* Restore the imported home banner controls when the original slider library is absent. */
html body .banners-big.front .flexslider.recom-home-banner-ready > .slides > li {
    display: none !important; visibility: hidden !important; pointer-events: none !important;
}
html body .banners-big.front .flexslider.recom-home-banner-ready > .slides > li.recom-active-banner {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    pointer-events: auto !important; float: none !important; width: 100% !important; position: relative !important;
}
html body .banners-big.front .flexslider.recom-home-banner-ready > .slides > li.recom-active-banner .text .inner {
    opacity: 1 !important;
}
html body .banners-big.front .recom-home-banner-controls {
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
    gap: 18px; padding: 8px 16px; color: #202124;
}
html body .banners-big.front .recom-home-banner-controls button {
    min-width: 44px; min-height: 44px; border: 1px solid #1775ac; border-radius: 3px;
    background: #fff; color: #145f8c; font: 28px/1 Arial, sans-serif; cursor: pointer;
}
html body .banners-big.front .recom-home-banner-controls button:focus-visible {
    outline: 3px solid #145f8c; outline-offset: 2px;
}

html body .banners-big.front .flexslider.recom-home-banner-ready {
    background-image: none !important;
}

html body .banners-big.front .flexslider.recom-home-banner-ready .nav-carousel { display: none !important; }

@media (max-width: 767px) {
    /* The imported narrow layout hides the entire hero and its original artwork. */
    html body .banners-big.front.hidden_narrow {
        display: block !important;
    }

    html body .banners-big.front .flexslider > .slides > li:first-child,
    html body .banners-big.front .flexslider.recom-home-banner-ready > .slides > li.recom-active-banner {
        background-size: cover;
        background-position: center;
    }

    html body .banners-big.front .slides > li > .maxwidth-theme > .row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        margin: 0;
    }

    html body .banners-big.front .slides > li .row > .img {
        display: block !important;
        order: -1;
        float: none;
        width: 100%;
        padding: 16px 20px 0;
    }

    html body .banners-big.front .slides > li .row > .img > .inner {
        width: 100%;
        height: auto;
        transform: none;
    }

    html body .banners-big.front .slides > li .row > .img img {
        display: block;
        width: auto;
        max-width: 100%;
        height: clamp(108px, 34vw, 175px);
        object-fit: contain;
        margin: 0 auto;
        transform: none;
    }
}

@media (min-width: 768px) {
    html body .banners-big.front .flexslider.recom-home-banner-ready { position: relative; }
    html body .banners-big.front .flexslider.recom-home-banner-ready > .recom-home-banner-controls {
        position: absolute; z-index: 5; top: 166px; bottom: auto; left: 50%; transform: translateX(-50%);
        width: auto; background: rgba(255, 255, 255, 0.94); border-radius: 4px;
    }
}

@media (max-width: 991px) {
    .detail.news .row > .col-md-3.hidden-xs.hidden-sm:has(> .ask_a_question_wrapper [data-event="jqm"][data-param-id="25"]),
    .detail.news .ask_a_question:has([data-event="jqm"][data-param-id="25"]) {
        display: block !important;
    }

    .detail.news .ask_a_question_wrapper .ask_a_question:has([data-event="jqm"][data-param-id="25"]) {
        position: static !important;
        width: auto !important;
    }

    .detail.news .ask_a_question_wrapper:has(.ask_a_question [data-param-id="25"]) {
        min-height: 0 !important;
    }
}
