/* Single product YouTube video */
.single-product .sumi-single-video {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 0;
}

.single-product .sumi-video-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #ff1f1f;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 31, 31, 0.22);
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.single-product .sumi-video-button:hover,
.single-product .sumi-video-button:focus-visible {
    background: #e51616;
    box-shadow: 0 10px 22px rgba(255, 31, 31, 0.28);
    transform: translateY(-1px);
}

.single-product .sumi-video-button__icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid currentColor;
}

.single-product .sumi-video-button--with-label {
    width: auto;
    min-width: 0;
    max-width: min(260px, 100%);
    gap: 9px;
    padding: 0 14px 0 13px;
}

.single-product .sumi-video-button--with-label .sumi-video-button__icon {
    flex: 0 0 auto;
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 10px;
}

.single-product .sumi-video-button__label {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sumi-video-modal[hidden] {
    display: none !important;
}

.sumi-video-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sumi-video-modal__backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgba(20, 25, 31, 0.76);
}

.sumi-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    background: #000;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.sumi-video-modal__close {
    position: absolute;
    z-index: 2;
    top: -44px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #14191f;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.sumi-video-modal__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.sumi-video-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.sumi-video-modal-is-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .sumi-video-modal {
        padding: 18px;
    }

    .sumi-video-modal__close {
        top: -42px;
    }
}
