.video-widget {
    position: fixed;
    left: 0;
    z-index: 999999;
    bottom: 0;
}
.video-widget.hidden {
    visibility: hidden!important;
}
.video-widget__container {
    font-family: Helvetica;
    z-index: 999999;
    overflow: hidden;
    border-style: solid;
    background: #eee;
    -webkit-transition: width 0.3s ease-in-out 0s, height 0.3s ease-in-out 0s,
    bottom 0.3s ease-in-out 0s, border-color 0.2s ease-in-out 0s,
    opacity 1s ease-in-out 0s, -webkit-transform 0.2s ease-in-out 0s;
    transition: width 0.3s ease-in-out 0s, height 0.3s ease-in-out 0s,
    bottom 0.3s ease-in-out 0s, border-color 0.2s ease-in-out 0s,
    opacity 1s ease-in-out 0s, -webkit-transform 0.2s ease-in-out 0s;
    -o-transition: width 0.3s ease-in-out 0s, height 0.3s ease-in-out 0s,
    bottom 0.3s ease-in-out 0s, border-color 0.2s ease-in-out 0s,
    opacity 1s ease-in-out 0s, -o-transform 0.2s ease-in-out 0s;
    -moz-transition: transform 0.2s ease-in-out 0s, width 0.3s ease-in-out 0s,
    height 0.3s ease-in-out 0s, bottom 0.3s ease-in-out 0s,
    border-color 0.2s ease-in-out 0s, opacity 1s ease-in-out 0s,
    -moz-transform 0.2s ease-in-out 0s;
    transition: transform 0.2s ease-in-out 0s, width 0.3s ease-in-out 0s,
    height 0.3s ease-in-out 0s, bottom 0.3s ease-in-out 0s,
    border-color 0.2s ease-in-out 0s, opacity 1s ease-in-out 0s;
    transition: transform 0.2s ease-in-out 0s, width 0.3s ease-in-out 0s,
    height 0.3s ease-in-out 0s, bottom 0.3s ease-in-out 0s,
    border-color 0.2s ease-in-out 0s, opacity 1s ease-in-out 0s,
    -webkit-transform 0.2s ease-in-out 0s, -moz-transform 0.2s ease-in-out 0s,
    -o-transform 0.2s ease-in-out 0s;
    outline: 0;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 10px 20px;
    box-shadow: rgba(0, 0, 0, 0.2) 0 10px 20px;
    position: absolute;
    left: 20px;
    bottom: 50px;
    border-radius: 20px;
    border-width: 5px;
    width: 116px;
    height: 193px;
    border-color: #fff;
}

.video-widget__container:hover {
    -webkit-transform: scale(1.05) translate(5px, -5px);
    -moz-transform: scale(1.05) translate(5px, -5px);
    -ms-transform: scale(1.05) translate(5px, -5px);
    -o-transform: scale(1.05) translate(5px, -5px);
    transform: scale(1.05) translate(5px, -5px);
    border-color: #0039a6;
}
.video-widget__video {
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    z-index: 200;
    -webkit-transition: opacity 0.4s ease-in-out 0s;
    -o-transition: opacity 0.4s ease-in-out 0s;
    -moz-transition: opacity 0.4s ease-in-out 0s;
    transition: opacity 0.4s ease-in-out 0s;
    opacity: 0.9;
}
.video-widget__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    z-index: 250;
    -webkit-transition: opacity 0.2s ease-in-out 0s,
    -webkit-transform 0.3s ease-in-out 0s;
    transition: opacity 0.2s ease-in-out 0s, -webkit-transform 0.3s ease-in-out 0s;
    -o-transition: opacity 0.2s ease-in-out 0s, -o-transform 0.3s ease-in-out 0s;
    -moz-transition: transform 0.3s ease-in-out 0s, opacity 0.2s ease-in-out 0s,
    -moz-transform 0.3s ease-in-out 0s;
    transition: transform 0.3s ease-in-out 0s, opacity 0.2s ease-in-out 0s;
    transition: transform 0.3s ease-in-out 0s, opacity 0.2s ease-in-out 0s,
    -webkit-transform 0.3s ease-in-out 0s, -moz-transform 0.3s ease-in-out 0s,
    -o-transform 0.3s ease-in-out 0s;
}
.video-widget__close:after,
.video-widget__close:before {
    position: absolute;
    left: 9px;
    top: 1px;
    content: " ";
    height: 18px;
    width: 2px;
    background: #fff;
    -webkit-box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 10px;
    box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 10px;
}
.video-widget__close:before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.video-widget__close:after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.video-widget__container:hover .video-widget__close {
    opacity: 0.5;
}
.video-widget.video-widget[data-state="opened"] .video-widget__container {
    width: 280px;
    height: 490px;
    border-radius: 20px;
    border-color: #fff;
}
.video-widget.video-widget[data-state="opened"] .video-widget__close {
    opacity: 0.5;
}
.video-widget.video-widget[data-state="opened"] .video-widget__close:before {
    display: none;
}
.video-widget.video-widget[data-state="opened"] .video-widget__close:after {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}
.video-widget.video-widget[data-state="opened"] .video-widget__close:hover {
    opacity: 1;
}
.video-widget__button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: 20px;
    height: 65px;
    border-radius: 10px;
    z-index: 300;
    -webkit-box-shadow: rgba(0, 0, 0, 0.25) 0 4px 15px;
    box-shadow: rgba(0, 0, 0, 0.25) 0 4px 15px;
    text-align: center;
    -webkit-transition: opacity 0.3s ease-in-out 0s,
    background-color 0.2s ease-in-out 0s, -webkit-transform 0.2s ease-in-out 0s;
    transition: opacity 0.3s ease-in-out 0s, background-color 0.2s ease-in-out 0s,
    -webkit-transform 0.2s ease-in-out 0s;
    -o-transition: opacity 0.3s ease-in-out 0s,
    background-color 0.2s ease-in-out 0s, -o-transform 0.2s ease-in-out 0s;
    -moz-transition: transform 0.2s ease-in-out 0s, opacity 0.3s ease-in-out 0s,
    background-color 0.2s ease-in-out 0s, -moz-transform 0.2s ease-in-out 0s;
    transition: transform 0.2s ease-in-out 0s, opacity 0.3s ease-in-out 0s,
    background-color 0.2s ease-in-out 0s;
    transition: transform 0.2s ease-in-out 0s, opacity 0.3s ease-in-out 0s,
    background-color 0.2s ease-in-out 0s, -webkit-transform 0.2s ease-in-out 0s,
    -moz-transform 0.2s ease-in-out 0s, -o-transform 0.2s ease-in-out 0s;
    visibility: hidden;
    background-image: -webkit-gradient(linear, left top, right top, from(#0039a6), to(#a0ca4c));
    background-image: -o-linear-gradient(left,#0039a6 0,#a0ca4c 100%);
    background-image: linear-gradient(to right, #0039a6 0, #a0ca4c 100%);
    font-size: 14px;
    font-family: Helvetica;
    text-align: center;
    vertical-align: middle;
    line-height: 65px;
    text-transform: uppercase;
    opacity: 0;
}

.video-widget__button:hover {
    background-color: #ffe257;
    text-decoration: none;
}
.video-widget.video-widget[data-state="opened"] .video-widget__button {
    opacity: 1;
    visibility: visible;
}
@media only screen and (max-width: 1023px) {
    .video-widget__close {
        opacity: 0.5;
    }
}
@media only screen and (max-width: 479px) {
    .video-widget__container {
        left: 15px;
        bottom: 15px;
    }
}
.video-widget__button {
    color: #fff !important;
    font-weight: 500;
    text-decoration: none;
}