/**
 * Works with video_embed_field responsive wrapper (::after 16:9).
 * .mf-youtube-cmp fills the padded box; do not duplicate .video-embed-field-responsive-video.
 */
.mf-youtube-cmp {
  position: relative;
  max-width: 100%;
}

.mf-youtube-cmp.is-blocked {
  min-height: 200px;
}

.mf-youtube-cmp[data-mf-youtube-player] [data-mf-youtube-mount] {
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.mf_video_sponso__iframe_wrapper > .mf-youtube-cmp {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.mf_video_sponso__iframe_wrapper > .mf-youtube-cmp [data-mf-youtube-mount],
.mf_video_sponso__iframe_wrapper > .mf-youtube-cmp [data-mf-youtube-mount] iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-field-responsive-video > .mf-youtube-cmp {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.mf-youtube-cmp.is-consented .mf-youtube-cmp__iframe {
  width: 100%;
  max-width: 100%;
}

.mf-youtube-cmp__iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.mf-youtube-cmp.is-blocked .mf-youtube-cmp__iframe,
.mf-youtube-cmp:not(.is-consented) .mf-youtube-cmp__iframe:not([src]) {
  visibility: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.mf-youtube-cmp__placeholder {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f5f5f5;
  box-sizing: border-box;
}

.mf-youtube-cmp__placeholder[hidden] {
  display: none !important;
}

.mf-youtube-cmp.is-consented .mf-youtube-cmp__placeholder {
  display: none;
}

.mf-youtube-cmp__placeholder-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 16px 18px 14px;
  background: #fff;
  box-sizing: border-box;
}

.mf-youtube-cmp__header h2 {
  margin: 0 0 10px;
  color: #30323b;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.mf-youtube-cmp__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.mf-youtube-cmp__body p {
  margin: 0;
  color: #555761;
  font-size: 13px;
  line-height: 1.45;
}

.mf-youtube-cmp__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 14px;
}

.mf-youtube-cmp__accept,
.mf-youtube-cmp__refuse {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid #123b8f;
  border-radius: 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.mf-youtube-cmp__refuse {
  background: #fff;
  color: #123b8f;
}

.mf-youtube-cmp__accept {
  background: #123b8f;
  color: #fff;
}

.mf-youtube-cmp__accept:focus-visible,
.mf-youtube-cmp__refuse:focus-visible {
  outline: 3px solid #80b5f3;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .mf-youtube-cmp__placeholder-inner {
    padding: 12px 14px 12px;
  }

  .mf-youtube-cmp__header h2 {
    font-size: 16px;
  }

  .mf-youtube-cmp__body p {
    font-size: 12px;
  }
}