﻿.popUpVideo {
    position: fixed;
    z-index: 10;
    right: 20px;
    bottom: 60px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.1s ease 0.48s, visibility 0s linear 0.55s;
}

    .popUpVideo.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.1s ease, visibility 0s;
    }

    .popUpVideo .popUpVideo__card {
        position: relative;
        width: 178px;
        min-height: 138px;
        cursor: pointer;
        padding: 13px 16px;
        display: grid;
        justify-content: center;
        grid-row-gap: 10px;
        overflow: hidden;
        transform-origin: bottom center;
        will-change: transform;
        transform: scaleY(0);
    }

    .popUpVideo .title-containerV2 {
        gap: 8px;
    }

    .popUpVideo .popUpVideo__close {
        width: 13px;
        height: 13px;
        margin-left: auto;
        z-index: 11;
    }

        .popUpVideo .popUpVideo__close svg {
            width: 100%;
            height: 100%;
            display: block;
        }

    .popUpVideo .popUpVideo__card-text {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        height: 100%;
        justify-content: center;
    }

        .popUpVideo .popUpVideo__card-text .txt-title {
            font-size: 24px;
            line-height: 24px;
        }

        .popUpVideo .popUpVideo__card-text .title-containerV2 .txt-body,
        .popUpVideo .popUpVideo__card-text .title-containerV2 .txt-body p {
            font-size: 14px;
            line-height: 16px;
        }

    .popUpVideo .popUpVideo__arrow {
        margin-top: auto;
    }

        .popUpVideo .popUpVideo__arrow svg {
            width: 13px;
            height: 13px;
        }

    .popUpVideo.is-visible .popUpVideo__card {
        animation: popUpVideoSpringIn 0.8s both;
    }

@keyframes popUpVideoSpringIn {

    0% {
        transform: scaleY(0);
    }

    35% {
        transform: scaleY(1.06);
    }

    55% {
        transform: scaleY(0.98);
    }

    72% {
        transform: scaleY(1.015);
    }

    86% {
        transform: scaleY(0.995);
    }

    100% {
        transform: scaleY(1);
    }
}

.popUpVideo:not(.is-visible) .popUpVideo__card-text,
.popUpVideo:not(.is-visible) .popUpVideo__arrow,
.popUpVideo:not(.is-visible) .popUpVideo__close {
    animation: popUpVideoContentOut 0.16s ease-out forwards;
}

@keyframes popUpVideoContentOut {

    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.popUpVideo:not(.is-visible) .popUpVideo__card {
    animation: popUpVideoCollapseOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes popUpVideoCollapseOut {

    0% {
        transform: scaleY(1);
    }

    10% {
        transform: scaleY(1.02);
    }

    24% {
        transform: scaleY(0.96);
    }

    42% {
        transform: scaleY(0.82);
    }

    62% {
        transform: scaleY(0.58);
    }

    80% {
        transform: scaleY(0.30);
    }

    92% {
        transform: scaleY(0.10);
    }

    100% {
        transform: scaleY(0);
    }
}


.hh-video-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
}

    .hh-video-modal[hidden] {
        display: none;
    }

    .hh-video-modal .hh-video-modal__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
    }

    .hh-video-modal .hh-video-modal__container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        aspect-ratio: 16 / 9;
        height: 345px;
        max-width: 100%;
    }

    .hh-video-modal .hh-video-modal__close {
        position: absolute;
        top: -56px;
        right: 0;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        cursor: pointer;
        background: transparent;
        color: var(--title-inverse, #fff);
    }

        .hh-video-modal .hh-video-modal__close svg {
            width: 24px;
            height: 24px;
            display: block;
        }

    .hh-video-modal .hh-video-modal__player {
        width: 100%;
        height: 100%;
    }

        .hh-video-modal .hh-video-modal__player .tp-video-media,
        .hh-video-modal .hh-video-modal__player .tp-carousel-video-carousel {
            width: 100%;
            height: 100%;
        }

@media (min-width: 768px) {

    .popUpVideo .popUpVideo__close {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 992px) {

    .popUpVideo {
        right: 32px;
    }
}
