body.single-product .cw-product-videos {
  border-bottom: 1px solid var(--cw-line);
  border-top: 1px solid var(--cw-line);
  margin: 34px 0 26px;
  padding: 28px 0 32px;
}

body.single-product .cw-product-videos__head {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

body.single-product .cw-product-videos__head h2 {
  color: var(--cw-text);
  font-family: var(--cw-font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

body.single-product .cw-product-videos__head p {
  color: var(--cw-muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  max-width: 430px;
  text-align: right;
}

body.single-product .cw-product-videos__rail {
  display: grid;
  gap: 14px;
  grid-auto-columns: minmax(240px, 310px);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 10px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--cw-orange) var(--cw-panel);
  scrollbar-width: thin;
}

body.single-product .cw-product-video {
  background: var(--cw-panel);
  border: 1px solid var(--cw-line);
  margin: 0;
  scroll-snap-align: start;
}

body.single-product .cw-product-video__player {
  aspect-ratio: 9 / 16;
  background: var(--cw-black);
  border: 0;
  display: block;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  width: 100%;
}

body.single-product .cw-product-video__player:focus-visible {
  outline: 3px solid var(--cw-orange);
  outline-offset: 3px;
}

body.single-product .cw-product-video__caption {
  color: var(--cw-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  min-height: 58px;
  padding: 10px 12px 11px;
}

@media (max-width: 849px) {
  body.single-product .cw-product-videos {
    margin-top: 28px;
    padding-bottom: 28px;
  }

  body.single-product .cw-product-videos__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  body.single-product .cw-product-videos__head p {
    max-width: 60ch;
    text-align: left;
  }

  body.single-product .cw-product-videos__rail {
    grid-auto-columns: minmax(230px, 78vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .cw-product-videos__rail {
    scroll-behavior: auto;
  }
}

body.woocommerce-shop .product.has-cw-product-video .image-tools.top.right,
body.tax-product_cat .product.has-cw-product-video .image-tools.top.right,
body.tax-product_tag .product.has-cw-product-video .image-tools.top.right {
  opacity: 1 !important;
  pointer-events: auto;
  transform: none !important;
}

.product.has-cw-product-video .image-tools.top.right > .cw-catalog-video-link {
  align-items: center;
  background: var(--cw-black, #0D0D0D);
  border: 1px solid var(--cw-line, #333333);
  border-left: 3px solid var(--cw-orange, #E60000);
  color: var(--cw-text, #F3F1EA) !important;
  display: inline-flex !important;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
  height: 44px !important;
  justify-content: center;
  letter-spacing: .06em;
  line-height: 1;
  min-height: 44px;
  padding: 9px 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.product.has-cw-product-video .image-tools.top.right > .cw-catalog-video-link:hover,
.product.has-cw-product-video .image-tools.top.right > .cw-catalog-video-link:focus {
  background: var(--cw-orange, #E60000);
  border-color: var(--cw-orange, #E60000);
  color: var(--cw-text, #F3F1EA) !important;
}

.product.has-cw-product-video .image-tools.top.right > .cw-catalog-video-link:focus-visible {
  outline: 3px solid var(--cw-orange, #E60000);
  outline-offset: 3px;
}

.cw-catalog-video-link__icon {
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  display: block;
  height: 0;
  width: 0;
}

