.float-video {
  position: fixed;
  bottom: 16px;
  left: 0;
  transform: translateX(-100%);
  transition: transform 0.5s linear;
  z-index: 999;
}

.float-video--open {
  transform: translateX(0);
  left: 16px;
}

.float-video__container {
  background: black;
  width: 340px;
  border: solid 3px #004a95;
  -webkit-box-shadow: rgba(0, 0, 0, 0.5) 0 13px 21px -8px;
  box-shadow: rgba(0, 0, 0, 0.5) 0 13px 21px -8px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  transition: width 0.2s linear;
  cursor: pointer;
  position: relative;
}

.float-video__container video {
  width: 100%;
  height: auto;
  z-index: 1;
}

.float-video__container:hover {
  width: 340px;
}

.float-video__container--open,
.float-video__container--open:hover {
  width: 400px;
}

.float-video__minimize {
  display: none;
}

.float-video__container--open .float-video__minimize {
  display: block;
  background-image: url('/aa/video/minimize.png');
  height: 32px;
  width: 32px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 8px;
  top: 8px;
  opacity: 0;
  transition: opacity 0.2s linear;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.float-video__container--open .float-video__close {
  display: none;
}

.float-video__container--open:hover .float-video__minimize {
  opacity: 1;
}

.float-video__close {
  background-image: url('/aa/video/close.png');
  height: 32px;
  width: 32px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 8px;
  top: 8px;
  opacity: 0;
  transition: opacity 0.2s linear;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.float-video__unmute.mute {
  background-image: url('/aa/video/sound.png');
}

.float-video__unmute.unmute {
  background-image: url('/aa/video/nosound.png');
}

.float-video__unmute {
  height: 32px;
  width: 32px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 8px;
  top: 45px;
  opacity: 0;
  transition: opacity 0.2s linear;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.float-video__container:hover .float-video__close {
  opacity: 1;
}

.float-video__container:hover .float-video__unmute {
  opacity: 1;
}

.float-video__button-wrapper {
  display: flex;
  margin: 0 8px;
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  transition: transform 0.4s linear;
  z-index: 4;
  height: 50px;
}

.float-video__button {
  position: absolute;
  display: flex;
  width: 100%;
  background-color: white;
  color: rgb(247, 118, 31);
  height: 50px;
  justify-content: center;
  align-items: center;
  z-index: 4;
  border-radius: 4px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.5) 0 13px 21px -8px;
  box-shadow: rgba(0, 0, 0, 0.5) 0 13px 21px -8px;
  text-decoration: none;
  transition: background-color 0.2s linear, color 0.3s linear;
}

.float-video__button:hover {
  background-color: rgb(247, 118, 31);
  color: white;
}

.float-video__container--open:hover .float-video__button-wrapper {
  bottom: 16px;
  transform: translateY(-100%);
}

@media screen and (max-width: 900px) {
  .float-video {
    display: none !important;
  }
  .float-button-vw {
    display: block !important;
  }
}

@media screen and (min-width: 900px) {
  .float-button-vw {
    display: none !important;
  }
}
