/* Plexido PL — wideo na karcie produktu (lekki lightbox YouTube)
   Kandydat 2026-08-30. Wersjonowanie: ?v=20260830-1
   Wyłącznie własne selektory .plx-video* — nie dotyka stylów motywu PRSADD279_02. */

.plx-video {
  clear: both;
  margin: 18px 0;
}

.plx-video__btn {
  position: relative;
  display: block;
  width: 100%;
  max-width: 640px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  line-height: 0;
}

.plx-video__thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .92;
  transition: opacity .2s ease;
}

.plx-video__btn:hover .plx-video__thumb,
.plx-video__btn:focus-visible .plx-video__thumb {
  opacity: 1;
}

.plx-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(28, 146, 122, .92); /* zieleń Plexido #1c927a */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.plx-video__play::before {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.plx-video__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: #111;
}

/* Lightbox */
.plx-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.plx-video-modal__inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.plx-video-modal__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.plx-video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 34px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .plx-video__btn { max-width: 100%; }
  .plx-video-modal__close { top: -40px; }
}

body.plx-video-open {
  overflow: hidden;
}
