/* Базовые стили для виджета */
.video-widget {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.video-widget__container {
  position: absolute;
  left: 50px;
  bottom: 50px;
  z-index: 999999;
  overflow: hidden;
  outline: 0;
  border-radius: 20px;
  width: 130px;
  height: 180px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 10px 20px;
  box-shadow: rgba(0, 0, 0, 0.2) 0 10px 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: Helvetica;
  -webkit-tap-highlight-color: transparent;
  background: #eee;
  -webkit-transition: width 0.3s ease-in-out, height 0.3s ease-in-out, bottom 0.3s ease-in-out, border-color 0.2s ease-in-out, opacity 1s ease-in-out, -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out, bottom 0.3s ease-in-out, border-color 0.2s ease-in-out, opacity 1s ease-in-out, -webkit-transform 0.2s ease-in-out;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 5px solid #fff;
}

.video-widget__container:hover {
  border-color: #131344;
  -webkit-transform: scale(1.05) translate(5px, -5px);
  -ms-transform: scale(1.05) translate(5px, -5px);
  transform: scale(1.05) translate(5px, -5px);
}

.video-widget__video {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 200;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  opacity: 0.8;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

.video-widget__close {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 250;
  width: 20px;
  height: 20px;
  opacity: 0;
  -webkit-transition: opacity 0.2s ease-in-out, -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out, -webkit-transform 0.3s ease-in-out;
  background: none;
  border: none;
  cursor: pointer;
}

.video-widget__close::after,
.video-widget__close::before {
  content: " ";
  position: absolute;
  left: 9px;
  top: 1px;
  width: 2px;
  height: 18px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 10px;
  box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 10px;
  background: #fff;
}

.video-widget__close::before {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.video-widget__close::after {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.video-widget__container:hover .video-widget__close {
  opacity: 0.5;
}

.video-widget__button {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  vertical-align: middle;
  border-radius: 10px;
  height: 65px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.25) 0 4px 15px;
  box-shadow: rgba(0, 0, 0, 0.25) 0 4px 15px;
  font-family: Helvetica;
  font-size: 14px;
  line-height: 65px;
  text-align: center;
  text-transform: uppercase;
  color: #000;
  background-color: #fdd82a;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease-in-out, background-color 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, opacity 0.3s ease-in-out, background-color 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
  text-decoration: none;
  display: block;
}

.video-widget__button:hover {
  text-decoration: none;
  background-color: #ffe257;
}

.video-widget[data-state="opened"] .video-widget__container {
  border-color: #fff;
  border-radius: 20px;
  width: 280px;
  height: 500px;
}

.video-widget[data-state="opened"] .video-widget__close {
  opacity: 0.5;
}

.video-widget[data-state="opened"] .video-widget__close::before {
  display: none;
}

.video-widget[data-state="opened"] .video-widget__close::after {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.video-widget[data-state="opened"] .video-widget__close:hover {
  opacity: 1;
}

.video-widget[data-state="opened"] .video-widget__button {
  opacity: 1;
  visibility: visible;
}

@media only screen and (width <= 1023px) {
  .video-widget__close {
    opacity: 0.5;
  }

  .video-widget.svw-hide-mobile {
    display: none !important;
  }
}

/* Стили для мобильных устройств (до 768px) */
@media only screen and (width <= 768px) {
  .video-widget__container {
    left: 15px;
    bottom: 15px;
    width: 90px;
    height: 125px;
  }
  
  /* Развернутое состояние на мобильных - как у конкурентов */
  .video-widget[data-state="opened"] .video-widget__container {
    width: 280px;
    height: 500px;
    left: 15px;
    bottom: 15px;
  }
}

/* Стили для страницы настроек */
.wrap {
  margin: 20px;
}

.fv-banner {
  margin-bottom: 20px;
}

.fv-banner img {
  max-width: 100%;
  height: auto;
}
