.prod-tabs {
  display: flex;
  flex-direction: column;
  gap: 33px;
}
.prod-tabs .tab-titles {
  display: flex;
  gap: 40px;
  padding-bottom: 9px;
  border-bottom: 1px solid #8ca4ab;
}
.prod-tabs .tab-titles a {
  position: relative;
  text-decoration: none;
}
.prod-tabs .tab-titles a:hover {
  color: inherit;
}
.prod-tabs .tab-titles a.selected::before {
  content: "";
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #02273e;
  position: absolute;
}
.prod-tabs .tab-contents .tab-content {
  font-size: 18px;
  color: #02273e;
  white-space: pre-line;
}
.prod-tabs .tab-contents .tab-content[hidden] {
  display: none;
}

.prod-tabs .tab-contents .tab-content--youtube {
  white-space: normal;
  display: flex;
  justify-content: center;
}

.prod-tabs .mc-youtube-embed {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}

.prod-tabs .mc-youtube-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #dfe8ec 8%, #f2f7f9 18%, #dfe8ec 33%);
  background-size: 220% 100%;
  opacity: 0;
  pointer-events: none;
}

.prod-tabs .mc-youtube-embed--loading::before {
  opacity: 1;
  animation: mc-tabs-shimmer 1.2s linear infinite;
}

.prod-tabs .mc-youtube-embed iframe {
  opacity: 0;
  transition: opacity 220ms ease;
}

.prod-tabs .mc-youtube-embed--ready iframe {
  opacity: 1;
}

.prod-tabs .mc-youtube-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 380px) {
  .prod-tabs .tab-titles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: end;
  }

  .prod-tabs .tab-titles a {
    min-width: 0;
    line-height: 1.2;
    min-height: calc(1.2em * 2);
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

@keyframes mc-tabs-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
