@charset "utf-8";

@media only screen and (min-width: 1025px) {
    div.zoomDiv {
        z-index: 1000;
        background: #fff;
        border: 0.1rem solid #e5e5e5;
        box-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.08);
        border-radius: var(--border-radius);
    }

    div.zoomDiv img {
        max-width: none;
    }

    div.zoomMask {
        background: rgba(255, 247, 230, 0.55);
        border: 0.1rem solid #f5b544;
        cursor: move;
    }

    .tb-booth.goods-image-preview-ready {
        cursor: crosshair;
    }
}

.goods-image-preview-modal {
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    background: #000;
    color: #fff;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.goods-image-preview-modal.goods-image-preview-open {
    display: block;
}

.goods-image-preview-stage {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-image-preview-image {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    will-change: transform;
}

.goods-image-preview-close {
    position: absolute;
    z-index: 2;
    top: 1.2rem;
    right: 1.2rem;
    width: 3.6rem;
    height: 3.6rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 2.6rem;
    line-height: 3.2rem;
    text-align: center;
}

.goods-image-preview-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 4.8rem;
    height: 6.4rem;
    margin-top: -3.2rem;
    border: 0;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.38);
    text-align: center;
    cursor: pointer;
}

.goods-image-preview-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.6rem;
    height: 1.6rem;
    border-top: 0.25rem solid #fff;
    border-left: 0.25rem solid #fff;
}

.goods-image-preview-nav:hover,
.goods-image-preview-nav:focus {
    background: rgba(0, 0, 0, 0.58);
    outline: none;
}

.goods-image-preview-prev {
    left: 2rem;
}

.goods-image-preview-prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.goods-image-preview-next {
    right: 2rem;
}

.goods-image-preview-next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.goods-image-preview-single .goods-image-preview-nav {
    display: none;
}

.goods-image-preview-counter {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 2rem;
    min-width: 5.6rem;
    padding: 0.4rem 1rem;
    transform: translateX(-50%);
    border-radius: 10rem;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.8rem;
    text-align: center;
}

body.goods-image-preview-lock {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

#goods-middle-tabs-nav-detail .detail-content img {
    cursor: zoom-in;
}

@media only screen and (max-width: 640px) {
    .goods-image-preview-nav {
        width: 3.8rem;
        height: 5.2rem;
        margin-top: -2.6rem;
    }

    .goods-image-preview-nav::before {
        width: 1.3rem;
        height: 1.3rem;
    }

    .goods-image-preview-prev {
        left: 0.8rem;
    }

    .goods-image-preview-next {
        right: 0.8rem;
    }
}
