

/* Start:/local/templates/dresscodeV2/components/dresscode/catalog.compare/.default/style.css?179484770120429*/
/* =========================================================
   Сравнение — новый дизайн, горизонтальный скролл кнопками
   ========================================================= */
#compare.compare {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #3E4653;
    margin: 24px 0 40px;
    clear: both;
}

/* ---------- Чекбоксы свойств ---------- */
#compare #compareCheck {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
#compare #compareCheck li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #3E4653;
}
#compare #compareCheck input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
#compare #compareCheck label {
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    line-height: 20px;
}
#compare #compareCheck label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 17px;
    height: 17px;
    border: 1px solid #BBC7D8;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
}
#compare #compareCheck input:checked + label:before {
    background: #3E4653;
    border-color: #3E4653;
}
#compare #compareCheck input:checked + label:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 7px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* ---------- Кнопки HIDE / SHOW ---------- */
#compare #compareTools {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
#compare #compareTools a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: #E5EBF6;
    border-radius: 10px;
    color: #3E4653;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
#compare #compareTools a:hover,
#compare #compareTools a:focus {
    background: #6F7C8E;
    color: #fff;
}

#compare .compare__block {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

/* ---------- Левая колонка свойств ---------- */
#compare .compare__left {
    flex: 0 0 260px;
    max-width: 260px;
}

#compare .compare__left .Itemselement {
    position: relative;
    border-radius: 20px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Кнопка скрытия/показа названий */
#compare .compare__toggle-props {
    position: absolute;
    top: 0;
    left:0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #E2E6EF;
    border-radius: 8px;
    background: #fff;
    color: #3E4653;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    white-space: nowrap;
}
#compare .compare__toggle-props:hover { background: #E5EBF6; }
#compare .compare__toggle-props svg { display: block; width: 20px; height: 20px; }
#compare .compare__toggle-props .compare__toggle-label { display: inline-block; }

#compare .compare__block.props-hidden .compare__toggle-props .compare__toggle-label { display: none; }
#compare .compare__block.props-hidden .compare__toggle-props {
    right: 50%;
    transform: translateX(50%);
    padding: 0;
    width: 32px;
    justify-content: center;
}

#compare .compare__block.props-hidden .compare__left {
    flex: 0 0 48px;
    max-width: 48px;
}
#compare .compare__block.props-hidden .compare__left .propList,
#compare .compare__block.props-hidden .compare__left .propList-spacer {
    display: none;
}
#compare .compare__block.props-hidden .compare__left .Itemselement {
    align-items: center;
}

#compare .propList-spacer {
    height: 0;
    flex: 0 0 auto;
}

#compare .propList {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}

/* Строки свойств слева и справа */
#compare .compare__left .propList li,
#compare .compare__item .propList.check li {
    list-style: none;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    display: block;
    margin: 0;
    border-bottom: 1px solid #E2E6EF;
    font-size: 13px;
    color: #3E4653;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#compare .compare__left .propList li { color: #6F7C8E; cursor: default; }
#compare .compare__left .propList li:last-child,
#compare .compare__item .propList.check li:last-child { border-bottom: none; }
#compare .propList li.selected { background: #EDF1F8; }

/* ---------- Правая часть ---------- */
#compare .compare__right {
    flex: 1 1 auto;
    min-width: 0;
}

#compare .compare__right-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

/* Бегунок «Различающиеся» */
#compare .compare__different-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3E4653;
}
#compare .compare__different-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
#compare .compare__different-label { order: 0; white-space: nowrap; }
#compare .compare__different-track {
    position: relative;
    order: 1;
    display: inline-block;
    width: 41px;
    height: 22px;
    border: 2px solid #BBC7D8;
    border-radius: 11px;
    background: #fff;
    box-sizing: border-box;
    transition: background .2s, border-color .2s;
    flex: 0 0 auto;
}
#compare .compare__different-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #BBC7D8;
    transition: transform .2s, background .2s;
}
#compare .compare__different-input:checked + .compare__different-track {
    background: #3E4653;
    border-color: #3E4653;
}
#compare .compare__different-input:checked + .compare__different-track .compare__different-thumb {
    transform: translateX(19px);
    background: #fff;
}
#compare .compare__different-input:focus-visible + .compare__different-track {
    box-shadow: 0 0 0 3px rgba(62, 70, 83, .2);
}

#compare .compare__scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

#compare .compare__scroll {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    cursor: grab;
}
#compare .compare__scroll::-webkit-scrollbar { display: none; }
#compare .compare__scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

/* ---------- Карточки ---------- */
#compare .compare__items {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
}

#compare .compare__item {
    flex: 0 0 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    list-style: none;
    height: auto;
}

#compare .compare__item .scrollElement.Itemselement {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid #E2E6EF;
    border-radius: 20px;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
}

/* ---------- Картинка ---------- */
#compare .compare__item .imgBlock {
    width: 100%;
    max-width: 255px;
    height: 255px;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    transition: opacity .2s;
    margin: 0 auto;
}
#compare .compare__item .imgBlock:hover { opacity: .8; }
#compare .compare__item .imgBlock img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

#compare .compare__item .name {
    color: #3E4653;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
#compare .compare__item .name:hover { color: #6F7C8E; }

#compare .compare__item .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
#compare .compare__item .price {
    font-weight: 700;
    font-size: 16px;
    color: #3E4653;
    text-align: left;
    margin: 0;
    white-space: nowrap;
}

#compare .compare__item .addCart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: #E5EBF6;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 15px;
    color: #3E4653;
    text-decoration: none;
    transition: background .2s, color .2s;
    margin: 0;
    white-space: nowrap;
}
#compare .compare__item .addCart:hover {
    background: #6F7C8E;
    color: #fff;
}
#compare .compare__item .addCart .icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
#compare .compare__item .addCart.disabled {
    opacity: .5;
    pointer-events: none;
}
#compare .compare__item .addCart.added,
#compare .compare__item .addCart.added:hover {
    background: #6F7C8E;
    color: #fff;
}

/* ---------- Блок характеристик без фона ---------- */
#compare .compare__item .propList.check {
    flex: 0 0 auto;
    margin-top: 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}
#compare .compare__item .propList.check li {
    padding: 0 0 0 4px;
    border-bottom: 1px solid #E2E6EF;
}
#compare .compare__item .propList.check li:last-child { border-bottom: none; }
#compare .compare__item .propList.check li.selected { background: #EDF1F8; }

/* ---------- Кнопка удаления (SVG-крестик) ---------- */
#compare .scrollElement ins {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    display: block !important;
    text-decoration: none;
    cursor: pointer;
    z-index: 10;
    border: none;
    background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.00049 1.00009L19.0007 19.0001' stroke-width='2' stroke-linecap='round' stroke='%23ED1A3B'/%3E%3Cpath d='M19 1L1 19' stroke-width='2' stroke-linecap='round' stroke='%23ED1A3B'/%3E%3C/svg%3E") 50% 50% / 20px 20px no-repeat;
    transition: opacity .2s;
}
#compare .scrollElement ins:hover { opacity: .7; }
#compare .scrollElement ins:active { opacity: .5; }
#compare .scrollElement ins.delete {
    background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='8' stroke='%23BBC7D8' stroke-width='2'/%3E%3Cpath d='M10 6v4l3 2' stroke='%236F7C8E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 50% 50% / 20px 20px no-repeat !important;
    pointer-events: none;
}
#compare .scrollElement ins.delete + .imgBlock { opacity: .5; }

/* ---------- Кнопки навигации ---------- */
#compare .compare__scroll-wrap .compare__nav {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
#compare .compare__scroll-wrap:hover .compare__nav {
    opacity: .55;
    pointer-events: auto;
}
#compare .compare__scroll-wrap .compare__nav:hover { opacity: 1; }
#compare .compare__scroll-wrap .compare__nav:disabled {
    opacity: 0;
    pointer-events: none;
}
#compare .compare__nav svg { display: block; width: 46px; height: 46px; }

/* ---------- Инструменты снизу ---------- */
#compare .headingTools {
    margin-top: 24px;
    padding: 16px 20px;
    background: #FAFCFF;
    border: 1px solid #E2E6EF;
    border-radius: 20px;
}
#compare .leftTools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
#compare .leftTools .sysLinks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: #E5EBF6;
    border-radius: 10px;
    color: #3E4653;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
#compare .leftTools .sysLinks:hover,
#compare .leftTools .sysLinks:focus,
#compare .leftTools .sysLinks.active {
    background: #6F7C8E;
    color: #fff;
}
#compare .compareClear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #3E4653;
    border-radius: 10px;
    background: #fff;
    color: #3E4653;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, color .2s;
}
#compare .compareClear:hover {
    background: #6F7C8E;
    border-color: #6F7C8E;
    color: #fff;
}

/* ---------- Модальное окно подтверждения очистки ---------- */
.compare-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 16px;
    font-family: 'Inter', Arial, sans-serif;
}
.compare-modal-overlay.is-open { display: flex; }

.compare-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: compareModalIn .25s ease;
}
@keyframes compareModalIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.compare-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s;
}
.compare-modal__close:hover { background: #f1f3f6; }
.compare-modal__close svg { display: block; width: 20px; height: 20px; }

.compare-modal__body {
    padding: 28px 24px 12px;
    color: #3E4653;
}
.compare-modal__title {
    margin: 0 0 10px;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: #3E4653;
}
.compare-modal__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #6F7C8E;
}

.compare-modal__footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.compare-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.compare-modal__btn--ghost {
    background: #fff;
    border-color: #BBC7D8;
    color: #3E4653;
}
.compare-modal__btn--ghost:hover,
.compare-modal__btn--ghost:focus {
    background: #E5EBF6;
    border-color: #3E4653;
    color: #3E4653;
}
.compare-modal__btn--primary {
    background: #3E4653;
    border-color: #3E4653;
    color: #fff;
}
.compare-modal__btn--primary:hover,
.compare-modal__btn--primary:focus {
    background: #6F7C8E;
    border-color: #6F7C8E;
    color: #fff;
}
.compare-modal__btn:active { transform: translateY(1px); }

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
    #compare .compare__block { flex-direction: column; }
    #compare .compare__left { flex: 1 1 auto; max-width: 100%; }
    #compare .compare__left .Itemselement { height: auto; }
    #compare .propList-spacer { display: none; }
}
@media (max-width: 768px) {
    #compare .compare__nav { width: 38px; height: 38px; flex-basis: 38px; }
    #compare .compare__nav svg { width: 38px; height: 38px; }
    #compare .compare__item { flex-basis: 240px; max-width: 240px; }
    #compare .leftTools { gap: 10px; }
}

/* ---------- Тултип характеристики ---------- */
.compare__tooltip {
    position: absolute;
    z-index: 1200;
    max-width: 320px;
    padding: 8px 12px;
    background: #3E4653;
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
    white-space: normal;
    word-break: break-word;
}
.compare__tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Хвостик тултипа */
.compare__tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: #3E4653;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* ---------- Мобильные: скрыть названия и кнопки, карточки на всю ширину ---------- */
/* =========================================================
   Мобильные: скрыть кнопки навигации и левую колонку,
   ширину карточек НЕ увеличиваем, отступы сохраняем
   ========================================================= */
@media (max-width: 991px) {
    /* Кнопки влево/вправо — скрыть */
    #compare .compare__nav {
        display: none !important;
    }

    /* Обёртка скролла — без gap от кнопок, но с прежними отступами */
    #compare .compare__scroll-wrap {
        gap: 0;
    }

    /* Левая колонка с названиями и кнопка её скрытия — не нужны */
    #compare .compare__left,
    #compare .compare__toggle-props {
        display: none !important;
    }

    /* Правая часть — на всю ширину, чтобы область скролла была широкой */
    #compare .compare__right {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Карточки — прежняя ширина, НЕ растягиваем */
    #compare .compare__item {
        flex: 0 0 280px;
        max-width: 280px;
        width: 280px;
    }

    /* Список карточек — прежний gap, ширина по содержимому */
    #compare .compare__items {
        gap: 16px;
        width: max-content;
    }

    /* Внутренние отступы карточки сохраняем */
    #compare .compare__item .scrollElement.Itemselement {
        padding: 16px;
    }

    /* Область скролла — сохраняем верхний/нижний отступ */
    #compare .compare__scroll {
        padding: 4px 0;
    }
}

@media (max-width: 480px) {
    /* На узких экранах — карточка 240px, отступы сохраняем */
    #compare .compare__item {
        flex: 0 0 240px;
        max-width: 240px;
        width: 240px;
    }

    #compare .compare__item .scrollElement.Itemselement {
        padding: 16px;
    }
}
/* End */
/* /local/templates/dresscodeV2/components/dresscode/catalog.compare/.default/style.css?179484770120429 */
