.video-sound-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    vertical-align: top;
}

.video-sound-wrap video {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
}

.product-img .video-sound-wrap {
    width: 100%;
}

.product-img .video-sound-wrap video {
    width: 100%;
}

.video-sound-controls {
    position: absolute;
    bottom: 6px;
    inset-inline-end: 6px;
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    direction: ltr;
    padding: 3px 4px 3px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.video-sound-controls.is-muted .video-sound-volume-label {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.video-sound-volume-label {
    display: flex;
    align-items: center;
    width: 42px;
    margin: 0;
    opacity: 1;
    overflow: hidden;
    transition: width 0.18s ease, opacity 0.18s ease;
}

.video-sound-volume {
    width: 42px;
    height: 9px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.video-sound-volume:focus {
    outline: none;
}

.video-sound-volume:focus-visible {
    outline: 2px solid #ff0283;
    outline-offset: 2px;
}

.video-sound-volume::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.video-sound-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 7px;
    height: 7px;
    margin-top: -2.5px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 2, 131, 0.9);
}

.video-sound-volume::-moz-range-track {
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.video-sound-volume::-moz-range-thumb {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 2, 131, 0.9);
}

.video-sound-btn {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    appearance: none;
    -webkit-appearance: none;
}

.video-sound-btn:hover,
.video-sound-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.video-sound-btn:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff0283;
}

.video-sound-btn svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    pointer-events: none;
}

.video-sound-wrap .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .video-sound-controls {
        bottom: 4px;
        inset-inline-end: 4px;
        gap: 3px;
        padding: 2px 3px 2px 5px;
    }

    .video-sound-controls:not(.is-muted) .video-sound-volume-label,
    .video-sound-volume {
        width: 36px;
    }
}
