/* BT Product Video v1.0.15 - mobile Chrome play guard */
.btpv-wrapper {
  clear: both;
  margin: 0.75rem 0;
  max-width: 100%;
}

.btpv-details {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.btpv-summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .85rem;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btpv-summary::-webkit-details-marker { display: none; }
.btpv-play-icon { font-size: .9rem; line-height: 1; }

.btpv-video-box { padding: 0 .85rem .85rem; }
.btpv-footer_product { margin-top: 1rem; margin-bottom: 1rem; }

.btpv-video-facade,
.btpv-player-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  min-height: 220px;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 6px;
  background: #fff !important;
  overflow: hidden;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  touch-action: manipulation;
}

.btpv-native-facade,
.btpv-player-shell-native { aspect-ratio: 1 / 1; }
.btpv-youtube-facade,
.btpv-player-shell-youtube { aspect-ratio: 16 / 9; }

/* No gray overlay is drawn by this module. */
.btpv-video-facade::before,
.btpv-video-facade::after,
.btpv-player-shell::before,
.btpv-player-shell::after,
.btpv-video-facade *::before,
.btpv-video-facade *::after,
.btpv-player-shell *::before,
.btpv-player-shell *::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

.btpv-video-facade,
.btpv-video-facade *,
.btpv-player-shell,
.btpv-player-shell * {
  transition: none !important;
  animation: none !important;
}

.btpv-facade-poster,
.btpv-shell-poster {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff !important;
  pointer-events: none !important;
}

.btpv-shell-poster {
  z-index: 3;
}

.btpv-no-poster {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  background: #f7f7f7 !important;
  color: #222;
  font-weight: 600;
}

.btpv-startbar {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 999px;
  background: #0b63ce !important;
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.btpv-startbar-icon { font-size: .8rem; line-height: 1; }

.btpv-zero-clicked .btpv-startbar,
.btpv-overlay-off .btpv-startbar,
.btpv-activated-visual .btpv-startbar,
.btpv-zero-clicked .btpv-facade-play,
.btpv-overlay-off .btpv-facade-play,
.btpv-activated-visual .btpv-facade-play,
.btpv-zero-clicked .btpv-youtube-play,
.btpv-overlay-off .btpv-youtube-play,
.btpv-activated-visual .btpv-youtube-play,
.btpv-zero-clicked .btpv-facade-text,
.btpv-overlay-off .btpv-facade-text,
.btpv-activated-visual .btpv-facade-text,
.btpv-zero-clicked .btpv-youtube-text,
.btpv-overlay-off .btpv-youtube-text,
.btpv-activated-visual .btpv-youtube-text {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.btpv-player-shell-native .btpv-shell-poster,
.btpv-player-shell-native .btpv-video-live,
.btpv-player-shell-youtube .btpv-shell-poster,
.btpv-player-shell-youtube .btpv-youtube-frame {
  position: absolute;
  inset: 0;
}

.btpv-video,
.btpv-video-live {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  background: #fff !important;
  border-radius: 6px;
}

/* Important: keep the mobile video visible to WebKit so iPad/iPhone can decode and start playback. */
.btpv-video-hidden {
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 1;
}

.btpv-video-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 4;
}

.btpv-poster-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0;
}

.btpv-loading-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 5;
  display: block;
  text-align: center;
  font-size: .78rem;
  line-height: 1.2;
  color: #333;
  background: transparent !important;
  pointer-events: none;
}

.btpv-loading-note-hidden { display: none !important; }

.btpv-mobile-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  z-index: 6;
  display: none;
  text-align: center;
  font-size: .76rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  pointer-events: none;
}

.btpv-touch-player.btpv-player-ready .btpv-mobile-tip { display: block; }
.btpv-touch-player.btpv-tip-hidden .btpv-mobile-tip { display: none !important; }

.btpv-retry-button {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 7;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #0b63ce;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  -webkit-tap-highlight-color: transparent;
}

.btpv-youtube-frame {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 220px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 767px) {
  .btpv-wrapper { margin: .65rem 0; }
  .btpv-summary { padding: .6rem .75rem; }
  .btpv-video-box { padding: 0 .65rem .75rem; }
  .btpv-video-facade,
  .btpv-player-shell,
  .btpv-youtube-frame { min-height: 180px; }
  .btpv-startbar,
  .btpv-retry-button { font-size: .82rem; padding: 6px 10px; bottom: 8px; }
}
