/* Desktop — herda tudo do tema, só centra */
.wd-video-btn {
  position: relative;
  margin-bottom: 10px;
}

.wd-video-btn a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  font-size: 0 !important;
}

.wd-video-btn a svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex-shrink: 0;
  margin: 0 !important;
  stroke: currentColor !important;
}

/* Mobile */
@media (max-width: 768px) {
  .wd-video-btn {
    margin-bottom: 0;
  }

  .wd-video-btn a {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    stroke: #333 !important;
  }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 999999;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.is-open {
  display: flex;
  opacity: 1;
}

.popup-content {
  background: #000;
  max-width: 800px;
  width: 90%;
  border-radius: 10px;
  overflow: hidden;
}

.popup-content iframe {
  width: 100%;
  height: 450px;
}

.wd-video-btn a::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 10px 20px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 9999;
}

.wd-video-btn a:hover::after,
.wd-video-btn a:focus-within::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-6px);
}

/* Esconde a tooltip nativa do Woodmart no botão de vídeo */
.wd-video-btn .wd-tooltip,
.wd-video-btn [class*="tooltip"],
.wd-video-btn::before {
  display: none !important;
}
