.cq-image-compare {
    --cq-height: auto;
    --cq-position: 50%;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.cq-image-compare__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    cursor: ew-resize;
    touch-action: none;
}
.cq-image-compare__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0;
    pointer-events: none;
    object-fit: cover;
}
.cq-image-compare__image--after {
    position: relative;
    width: 100%;
}
.cq-image-compare__before {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}
.cq-image-compare__before .cq-image-compare__image--before {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}
.cq-image-compare[style*="--cq-height"] .cq-image-compare__stage {
    height: var(--cq-height);
}
.cq-image-compare[style*="--cq-height"] .cq-image-compare__image {
    height: var(--cq-height);
    object-fit: cover;
}
.cq-image-compare__handle {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    width: 0;
    transform: translateX(-50%);
    cursor: ew-resize;
    outline: none;
}
.cq-image-compare__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 8px rgba(0, 0, 0, 0.3);
}
.cq-image-compare__button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.cq-image-compare__arrow {
    width: 9px;
    height: 9px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    position: absolute;
}
.cq-image-compare__arrow--left {
    transform: rotate(-45deg);
    left: 13px;
}
.cq-image-compare__arrow--right {
    transform: rotate(135deg);
    right: 13px;
}
.cq-image-compare__handle:focus-visible .cq-image-compare__button {
    outline: 3px solid #2271b1;
    outline-offset: 3px;
}
.cq-image-compare__label {
    position: absolute;
    z-index: 6;
    top: 15px;
    padding: 0 20px;
    border-radius: 4px;
    background: rgba(36, 49, 58, .4);
    color: #fff;
    font-size: 16px;
    letter-spacing: .2px;
    pointer-events: none;
    line-height: 38px;
    text-transform: uppercase;
    border-radius: 16px;
}
.cq-image-compare__label--before {
    left: 15px;
}
.cq-image-compare__label--after {
    right: 15px;
}
.cq-image-compare.is-dragging,
.cq-image-compare.is-dragging * {
    cursor: ew-resize !important;
}
.cq-image-compare-error {
    padding: 12px 15px;
    border-left: 4px solid #d63638;
    background: #fff;
    color: #2c3338;
}
