﻿/* Strona porównania — tabela, pasek, kafelek listingu w kolumnie */

main.bootstrap:has(.comparator-shell) {
    padding-bottom: 0.5em;
}

.comparator-page {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 20px;
    box-sizing: border-box;
}

.comparator-toolbar {
    display: flex;
    width: 100%;
    gap: 16px;
    padding: 8px 16px 12px;
    margin: 0;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.comparator-toolbar .generic-button {
    gap: 0.5em;
    flex-shrink: 0;
}

.comparator-empty {
    margin: 0 16px;
    padding: 32px 16px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 12px;
    color: #606060;
    font-size: 13px;
}

.comparator-hint {
    margin: 0;
    margin-left: auto;
    flex: 0 1 auto;
    color: #606060;
    font-size: 13px;
    line-height: 1.35;
    text-align: right;
}

.comparator-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.comparator-table-wrap::-webkit-scrollbar {
    display: none;
}

.comparator-hscroll {
    position: fixed;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 140;
    height: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #d8d8d8;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.comparator-hscroll.is-visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.comparator-hscroll-spacer {
    height: 1px;
    pointer-events: none;
}

.comparator-table {
    border-collapse: separate;
    border-spacing: 20px 0;
    width: auto;
    table-layout: fixed;
    min-width: 0;
}

.comparator-table th,
.comparator-table td {
    padding: 8px 5px;
    vertical-align: middle;
    background: #fff;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    border: 0;
    border-bottom: 1px dotted #909090;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: #222;
    box-sizing: border-box;
}

.comparator-attr-col,
.comparator-table tbody th {
    width: 70px;
    min-width: 70px;
    max-width: 80px;
    background: transparent;
    font-weight: 700;
    text-align: right;
    color: #909090;
    font-size: 10px;
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
}

.comparator-product-col,
.comparator-product-photo-col,
.comparator-add-col,
.comparator-table tbody td {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
}

.comparator-product-col,
.comparator-product-photo-col,
.comparator-table tbody td {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.comparator-product-col {
    position: relative;
    color: #909090;
    font-size: 16px;
    font-weight: 700;
}

.comparator-product-col,
.comparator-product-photo-col.js-comparator-drag {
    cursor: grab;
    touch-action: manipulation;
}

.comparator-product-col:active,
.comparator-product-photo-col.js-comparator-drag:active {
    cursor: grabbing;
}

.comparator-product-photo-col {
    vertical-align: top;
    position: relative;
}

.comparator-drag-ghost {
    position: fixed;
    top: -9999px;
    left: -9999px;
    z-index: 140;
    pointer-events: none;
    opacity: 0.92;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.comparator-drag-ghost-cell {
    box-sizing: border-box;
    padding: 8px 5px;
    text-align: center;
    background: #fff;
    border-bottom: 1px dotted #909090;
    font-size: 12px;
    line-height: 1.35;
    color: #222;
    overflow: hidden;
}

.comparator-drag-ghost-cell:last-child {
    border-bottom: 0;
}

.comparator-table .comparator-add-col {
    background: #f3f3f3;
    box-shadow: none;
    border-bottom: 0;
    cursor: default;
    vertical-align: middle;
    text-align: center;
}

.comparator-table thead tr.comparator-head-photos th.comparator-add-col--photo {
    padding: 0 16px;
    position: relative;
}

.comparator-add-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    position: absolute;
    inset: 0;
    padding: 0 16px;
    text-decoration: none;
    color: #a0a0a0;
    box-sizing: border-box;
}

.comparator-add-tile:hover,
.comparator-add-tile:hover .comparator-add-tile-plus {
    color: #606060;
}

.comparator-add-tile-plus {
    display: block;
    color: #c0c0c0;
}

.comparator-add-tile-plus svg {
    display: block;
    width: 72px;
    height: 72px;
}

.comparator-add-tile-label {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.comparator-table tbody td.is-same {
    background: #f5f5f5;
}

.comparator-table tbody tr.comparator-row-brand td,
.comparator-table tbody tr.comparator-row-packing td,
.comparator-table tbody tr.comparator-row-packaging td,
.comparator-table tbody tr.comparator-row-norms td {
    background: #f5f5f5;
}

.comparator-table tbody tr.comparator-row-description td,
.comparator-table tbody tr.comparator-row-branches td,
.comparator-table tbody tr.comparator-row-features td,
.comparator-table tbody tr.comparator-row-norms td {
    text-align: left;
    vertical-align: top;
}

.comparator-table tbody tr.comparator-row-norms td {
    padding-left: 10px;
}

.comparator-table tbody tr.comparator-row-norms .comparator-value-list {
    list-style: none;
    padding-left: 0;
    padding-right: 20px;
}

.comparator-table tbody tr.comparator-row-price td {
    text-align: right;
    vertical-align: top;
}

.comparator-product-photo-wrap.product-list {
    z-index: 1;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 0;
}

.comparator-product-photo-wrap.product-list > nav {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
}

.comparator-product-photo-wrap.product-list nav .item-product,
.comparator-product-photo-wrap.product-list nav .item-product:hover {
    display: block;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
}

.comparator-product-photo-wrap.product-list nav .item-product .photo-container,
.comparator-product-photo-wrap.product-list nav .item-product:hover .photo-container {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.comparator-product-photo-wrap.product-list nav .item-product .photo-container .photo {
    display: block;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.comparator-product-photo-wrap.product-list nav .item-product .photo-container .photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.comparator-product-photo-wrap .product-favourites-icon .tooltip {
    white-space: nowrap;
    width: auto;
    min-width: max-content;
}

.comparator-product-symbol-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 28px;
}

.comparator-product-symbol-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.comparator-move-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.comparator-move-btn .icon {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.comparator-move-btn[data-icon="arrow-right-black"] .icon {
    background-image: url(../skins/20/img/icon-arrow-right-black.svg);
}

.comparator-move-btn:hover:not(:disabled),
.comparator-move-btn:focus-visible:not(:disabled) {
    background-color: var(--color-brand-red);
    border-color: var(--color-brand-red);
}

.comparator-move-btn:hover:not(:disabled)[data-icon="arrow-left-black"] .icon,
.comparator-move-btn:focus-visible:not(:disabled)[data-icon="arrow-left-black"] .icon {
    background-image: url(../skins/20/img/icon-arrow-left.svg);
}

.comparator-move-btn:hover:not(:disabled)[data-icon="arrow-right-black"] .icon,
.comparator-move-btn:focus-visible:not(:disabled)[data-icon="arrow-right-black"] .icon {
    background-image: url(../skins/20/img/icon-arrow-right.svg);
}

.comparator-move-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.comparator-product-symbol {
    color: var(--color-brand-red);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    line-height: 28px;
    word-break: break-word;
}

.comparator-product-symbol:hover {
    text-decoration: underline;
}

.comparator-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 28px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #909090;
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 2px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.comparator-remove:hover {
    color: #fff;
    background: var(--color-brand-red);
}

.comparator-price-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: right;
}

.comparator-price-block > .legend,
.comparator-price-block .price-gross {
    color: #909090;
    font-size: 11px;
}

.comparator-price-block .price-net .value {
    display: block;
    color: #606060;
    font-size: 150%;
    font-weight: 700;
}

.comparator-add-to-cart.generic-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 4px 0 0;
    box-sizing: border-box;
    text-decoration: none;
}

.comparator-add-to-cart.generic-button.is-unavailable {
    background-color: #606060;
}

.comparator-add-to-cart.generic-button.is-unavailable:hover {
    background-color: #000000;
}

.comparator-logo {
    display: block;
    width: 100px;
    height: 40px;
    margin: 0 auto;
    object-fit: contain;
}

.comparator-swatch-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
}

.comparator-soi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comparator-soi-icon {
    display: block;
    width: 28px;
    height: auto;
}

.comparator-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid #d0d0d0;
    object-fit: contain;
    background-color: #fff;
    vertical-align: middle;
}

.comparator-swatch-label {
    font-size: 12px;
    color: #606060;
    line-height: 20px;
}

.comparator-value-list {
    margin: 0;
    padding: 0 0 0 15px;
    list-style: disc;
    text-align: left;
}

.comparator-value-list li {
    margin: 0 0 5px;
    padding: 0;
}

.comparator-value-list li:last-child {
    margin-bottom: 0;
}

.comparator-value-list--icons {
    list-style: none;
    padding-left: 0;
}

.comparator-value-list--icons li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comparator-item-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 767px) {

    .comparator-toolbar {
        justify-content: center;
        padding: 8px;
        gap: 8px;
    }

    .comparator-hint {
        display: none;
    }

    .comparator-empty {
        margin-left: 8px;
        margin-right: 8px;
        padding-left: 0;
        padding-right: 0;
    }

    .comparator-product-col,
    .comparator-product-photo-col,
    .comparator-add-col,
    .comparator-table tbody td {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }

    .comparator-attr-col,
    .comparator-table tbody th {
        width: 60px;
        min-width: 60px;
        max-width: 70px;
    }

    .comparator-product-col.js-comparator-drag,
    .comparator-product-photo-col.js-comparator-drag {
        cursor: default;
    }
}
