/* PaintWiki Bono Quick View — фиксированный попап и плавная Dock-анимация превью */
.pwbqv-enhanced .quick-view__container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: 90vh;
    margin-top: 5vh;
    margin-bottom: 5vh;
    padding-bottom: 176px;
    overflow: hidden;
    box-sizing: border-box;
}

.pwbqv-enhanced .js-quick-view-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.pwbqv-enhanced .js-quick-view-container::-webkit-scrollbar {
    width: 8px;
}

.pwbqv-enhanced .js-quick-view-container::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.22);
}

.pwbqv-enhanced .js-quick-view-container {
    transition: opacity 0.2s ease, transform 0.2s ease;
    will-change: opacity, transform;
}

.pwbqv-enhanced.pwbqv-switching.pwbqv-slide-next .js-quick-view-container {
    opacity: 0;
    transform: translateX(-26px);
}

.pwbqv-enhanced.pwbqv-switching.pwbqv-slide-prev .js-quick-view-container {
    opacity: 0;
    transform: translateX(26px);
}

.pwbqv-enhanced.pwbqv-switching.pwbqv-slide-thumb .js-quick-view-container {
    opacity: 0;
    transform: scale(0.985);
}

.pwbqv-enhanced.pwbqv-enter-next .js-quick-view-container {
    animation: pwbqvQvEnterNext 0.26s ease both;
}

.pwbqv-enhanced.pwbqv-enter-prev .js-quick-view-container {
    animation: pwbqvQvEnterPrev 0.26s ease both;
}

.pwbqv-enhanced.pwbqv-enter-thumb .js-quick-view-container {
    animation: pwbqvQvEnterThumb 0.24s ease both;
}

@keyframes pwbqvQvEnterNext {
    from { opacity: 0; transform: translateX(26px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pwbqvQvEnterPrev {
    from { opacity: 0; transform: translateX(-26px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pwbqvQvEnterThumb {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

.pwbqv-gallery__arrow {
    position: fixed;
    top: 50%;
    z-index: 1095;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(20, 33, 61, 0.20);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pwbqv-gallery__arrow:hover,
.pwbqv-gallery__arrow:focus {
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 33, 61, 0.28);
    transform: translateY(-50%) scale(1.07);
    outline: none;
}

.pwbqv-gallery__arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #1f2937;
    border-left: 2px solid #1f2937;
}

.pwbqv-gallery__arrow--prev {
    left: 18px;
}

.pwbqv-gallery__arrow--prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.pwbqv-gallery__arrow--next {
    right: 18px;
}

.pwbqv-gallery__arrow--next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.pwbqv-gallery__caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 142px;
    z-index: 14;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    pointer-events: none;
}

.pwbqv-gallery__count,
.pwbqv-gallery__link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(20, 33, 61, 0.10);
    color: #1f2937;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.pwbqv-gallery__count {
    padding: 0 12px;
    font-weight: 700;
}

.pwbqv-gallery__link {
    padding: 0 15px;
    font-weight: 600;
}

.pwbqv-gallery__link:hover {
    color: #1f5eff;
    text-decoration: none;
}

.pwbqv-gallery__thumbs {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    z-index: 14;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    min-height: 108px;
    padding: 22px 14px 12px;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(20, 33, 61, 0.08);
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
}

.pwbqv-gallery__thumb {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 3px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(244, 246, 248, 0.96);
    box-shadow: 0 4px 14px rgba(20, 33, 61, 0.08);
    cursor: pointer;
    transform-origin: center bottom;
    transition:
        width 0.22s cubic-bezier(.2,.8,.2,1),
        height 0.22s cubic-bezier(.2,.8,.2,1),
        transform 0.22s cubic-bezier(.2,.8,.2,1),
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.pwbqv-gallery__thumb:hover,
.pwbqv-gallery__thumb:focus,
.pwbqv-gallery__thumb.is-hovered {
    width: 78px;
    height: 78px;
    transform: translateY(-16px);
    box-shadow: 0 16px 36px rgba(20, 33, 61, 0.24);
    outline: none;
}

.pwbqv-gallery__thumb.is-near-hover {
    width: 62px;
    height: 62px;
    transform: translateY(-8px);
    box-shadow: 0 10px 28px rgba(20, 33, 61, 0.16);
}

.pwbqv-gallery__thumbs.is-dock-active .pwbqv-gallery__thumb:not(.is-hovered):not(.is-near-hover) {
    opacity: 0.76;
    transform: translateY(0) scale(0.96);
}

.pwbqv-gallery__thumb.is-active {
    border-color: #1f5eff;
}

.pwbqv-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.pwbqv-gallery__thumb span {
    color: #1f2937;
    font-weight: 700;
}

.pwbqv-gallery-loading .pwbqv-gallery__thumb,
.pwbqv-gallery-loading .pwbqv-gallery__arrow {
    pointer-events: none;
    opacity: 0.62;
}

@media (max-width: 780px) {
    .pwbqv-enhanced .quick-view__container {
        width: calc(100% - 20px);
        height: 90vh;
        max-height: 90vh;
        margin-top: 5vh;
        margin-bottom: 5vh;
        padding-bottom: 136px;
    }

    .pwbqv-gallery__arrow {
        width: 42px;
        height: 42px;
    }

    .pwbqv-gallery__arrow--prev {
        left: 10px;
    }

    .pwbqv-gallery__arrow--next {
        right: 10px;
    }

    .pwbqv-gallery__caption {
        left: 12px;
        right: 12px;
        bottom: 102px;
    }

    .pwbqv-gallery__link {
        display: none;
    }

    .pwbqv-gallery__thumbs {
        left: 12px;
        right: 12px;
        bottom: 12px;
        min-height: 88px;
        justify-content: flex-start;
        border-radius: 16px;
        padding-top: 18px;
    }

    .pwbqv-gallery__thumb {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .pwbqv-gallery__thumb:hover,
    .pwbqv-gallery__thumb:focus,
    .pwbqv-gallery__thumb.is-hovered {
        width: 64px;
        height: 64px;
        transform: translateY(-10px);
    }

    .pwbqv-gallery__thumb.is-near-hover {
        width: 52px;
        height: 52px;
        transform: translateY(-5px);
    }
}


@media (max-height: 640px) {
    .pwbqv-enhanced .quick-view__container {
        padding-bottom: 124px;
    }

    .pwbqv-gallery__caption {
        bottom: 94px;
    }

    .pwbqv-gallery__thumbs {
        min-height: 82px;
        padding-top: 16px;
    }

    .pwbqv-gallery__thumb:hover,
    .pwbqv-gallery__thumb:focus,
    .pwbqv-gallery__thumb.is-hovered {
        width: 62px;
        height: 62px;
        transform: translateY(-8px);
    }

    .pwbqv-gallery__thumb.is-near-hover {
        width: 52px;
        height: 52px;
        transform: translateY(-4px);
    }
}
