/* SerwisWin Welcome Video Widget */

#sw-welcome-video {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99990;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  background: #000;
  width: 280px;
  height: 158px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#sw-welcome-video.sw-wv-visible {
  opacity: 1;
  transform: translateY(0);
}

#sw-welcome-video.sw-wv-hidden {
  display: none;
}

#sw-welcome-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controls overlay */
.sw-wv-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.sw-wv-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.sw-wv-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.sw-wv-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Minimized state — small play button */
#sw-welcome-video-mini {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a7a3a;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0;
}

#sw-welcome-video-mini:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#sw-welcome-video-mini.sw-wv-show {
  display: flex;
}

#sw-welcome-video-mini svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 2px;
}

/* Mobile */
@media (max-width: 400px) {
  #sw-welcome-video {
    width: 240px;
    height: 135px;
    bottom: 16px;
    left: 16px;
  }

  #sw-welcome-video-mini {
    bottom: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
  }
}
