/* KMV Video Popup CTA - v1.0.4 (Fascinare Moda Íntima) */

/* Botão redondo estilo WhatsApp (lado esquerdo, meio da tela) */
.kmv-video-cta-btn{
  position: fixed;
  left: 18px;
  top: 60%;
  z-index: 99998;

  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  background: #B13363;
  color: #fff;

  box-shadow: 0 12px 28px rgba(0,0,0,.26);
  transform: translateY(calc(-50% + 12px));
  opacity: 0;

  transition: opacity .25s ease, transform .25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.kmv-video-cta-btn.is-visible{
  opacity: 1;
  transform: translateY(-50%);
  animation: kmvPulse 1.4s ease-in-out infinite;
}

.kmv-video-cta-icon{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 18px;
  line-height: 1;
}

/* texto escondido (fica acessível via aria-label) */
.kmv-video-cta-text{ display: none; }

@media (min-width: 768px){
  .kmv-video-cta-btn{ left: 22px; }
}

/* Pulse — cor da Fascinare */
@keyframes kmvPulse{
  0%   { box-shadow: 0 12px 28px rgba(0,0,0,.26), 0 0 0 0 rgba(177,51,99,.85); }
  70%  { box-shadow: 0 12px 28px rgba(0,0,0,.26), 0 0 0 28px rgba(177,51,99,0); }
  100% { box-shadow: 0 12px 28px rgba(0,0,0,.26), 0 0 0 0 rgba(177,51,99,0); }
}

/* Bubble estilo WhatsApp (mensagem profissional) */
#kmvVideoCtaBubble.kmv-video-cta-bubble{
  position: fixed;
  left: 95px; /* fica ao lado do botão */
  top: 60%;
  z-index: 99998;

  width: 220px;
  max-width: calc(100vw - 140px);

  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(-50% + 6px));
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;

  -webkit-tap-highlight-color: transparent;
}

#kmvVideoCtaBubble.kmv-video-cta-bubble.is-visible{
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%);
}

#kmvVideoCtaBubble .kmv-video-cta-bubble__inner{
  position: relative;
  background: #fff;
  color: #000;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  box-shadow: 2px 2px 8px rgba(0,0,0,.15);

  font-size: 12px;
  line-height: 14px;

  padding: 10px 38px 10px 12px;
}

#kmvVideoCtaBubble .kmv-video-cta-bubble__text{
  font-weight: 700;
}

#kmvVideoCtaBubble .kmv-video-cta-bubble__close{
  position: absolute;
  top: 6px;
  right: 6px;

  width: 24px;
  height: 24px;

  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  background: #f2f2f2 !important;
  color: #111 !important;
  border-radius: 50% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  cursor: pointer;
}

#kmvVideoCtaBubble .kmv-video-cta-bubble__close:hover{
  background: #e9e9e9 !important;
}

/* "setinha" como balão do WhatsApp */
#kmvVideoCtaBubble .kmv-video-cta-bubble__arrow{
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  transform: translateY(-50%) rotate(45deg);
}

/* Ajuste no celular */
@media (max-width: 480px){
  #kmvVideoCtaBubble.kmv-video-cta-bubble{
    width: 180px;
    left: 85px;
  }
}

/* Modal */
.kmv-video-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.kmv-video-modal.is-open{ display: block; }

.kmv-video-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  /* FIX: prefixo -webkit- adicionado para suporte ao iOS Safari */
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.kmv-video-modal__content{
  position: relative;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  width: min(92vw, 560px);
  border-radius: 18px;
  overflow: hidden;
  background: #0e0e0e;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.kmv-video-modal__close{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.kmv-video-modal__frame{
  width: 100%;
  background: #000;
}

/* Player (MP4) */
.kmv-video-modal__frame video{
  width: 100%;
  height: auto;
  max-height: 75vh;
  display: block;
}

/* Player (YouTube/Vimeo) */
.kmv-video-modal__frame iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* Prevent page scroll when modal open */
body.kmv-video-modal-open{
  overflow: hidden;
}
