/* Dana - videos (sections/videos.jinja). The template's .cls-video cards
   (styles.css 10529-10620; 19289 from 768px, 19857 from 992px, 20280 from
   1200px, 22870 under 768px), measured on home-skincare.html:2499 at 1440,
   1024, 768 and 390. Sizes in px: the root is 12px. */

/* The design's own spacing: the template's flat-spacing-3 (home-pet-accessories:2277),
   120px, 75px to 1024px, 60px on phones. The skincare page gets its 120px from
   the sections on either side, so its instance sets 00 (the neighbours' own). */
.mt-section.dana-videos {
  padding-block: var(--mt-space-top, 120px) var(--mt-space-bottom, 120px);
}
@media (max-width: 1024px) {
  .mt-section.dana-videos { padding-block: var(--mt-space-top, 75px) var(--mt-space-bottom, 75px); }
}
@media (max-width: 767px) {
  .mt-section.dana-videos {
    padding-block: var(--mt-space-top-mobile, var(--mt-space-top, 60px)) var(--mt-space-bottom-mobile, var(--mt-space-bottom, 60px));
  }
}
/* The template's .flat-title keeps 48px under it from 1200px (styles.css 20327). */
@media (min-width: 1200px) {
  .dana-videos .dana-head { margin-block-end: 48px; }
}

/* A dark ground the merchant chose (the section works it out): white words. */
.dana-videos--on-dark .dana-head { --dana-heading: #ffffff; --dana-muted: rgba(255, 255, 255, .8); }

.dana-videos__slider { position: relative; }
/* Fewer videos than fit sit in the middle: Swiper's centerInsufficientSlides
   once it runs, and the same before it (safe: a row that overflows stays at
   its start, so nothing is cut off). */
.dana-videos .swiper:not(.swiper-initialized) > .swiper-wrapper { justify-content: safe center; }

/* ---- The card ------------------------------------------------------------ */
.dana-videos__card {
  position: relative;
  block-size: 449px;
  overflow: hidden;
  border-radius: var(--dana-radius-image, 16px);
  /* The ground while a video without a cover loads: a dark frame, as a
     player's, never an empty light box; it is also what the pill's .8 grey
     sits on until the first frame arrives, so the white words stay readable
     (a light surface here read 1.09:1 in preview_check, 2026-09-29). */
  background-color: #202020;
}
@media (min-width: 768px) { .dana-videos__card { block-size: 549px; } }
@media (min-width: 992px) { .dana-videos__card { block-size: 649px; } }
.dana-videos__video {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  border-radius: inherit;
}
video.dana-videos__video { cursor: pointer; }

/* Play / pause: waits on the card while the video is paused (autoplay off,
   a shopper who asked for less motion, or a click); hidden while it plays,
   back for the keyboard. */
.dana-videos__toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 64px;
  block-size: 64px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .9);
  color: #000000;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity .3s ease, background-color .3s ease, color .3s ease, transform .3s ease;
}
.dana-videos__card.is-paused .dana-videos__toggle,
.dana-videos__toggle:focus-visible { opacity: 1; pointer-events: auto; }
.dana-videos__toggle:hover, .dana-videos__toggle:focus-visible { background-color: #000000; color: #ffffff; }
.dana-videos__icon { display: block; }
.dana-videos__icon--pause { display: none; }
.dana-videos__card:not(.is-paused) .dana-videos__icon--play { display: none; }
.dana-videos__card:not(.is-paused) .dana-videos__icon--pause { display: block; }
@media (max-width: 767px) {
  .dana-videos__toggle { inline-size: 56px; block-size: 56px; }
}

/* ---- The product pill (.cls-content) -------------------------------------- */
.dana-videos__pill {
  position: absolute;
  left: auto;
  right: auto;
  inset-inline: 10px;
  inset-block-end: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 61px;
  background-color: rgba(63, 63, 63, .8);
  transition: all .3s ease-in-out;
}
@media (min-width: 1200px) {
  .dana-videos__pill { inset-inline: 24px; inset-block-end: 24px; padding: 16px; }
}
.dana-videos__product { display: flex; align-items: center; gap: 12px; min-inline-size: 0; }
.dana-videos__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  inline-size: 78px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  font-size: 24px;
}
.dana-videos__thumb img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dana-videos__info { display: grid; gap: 10px; min-inline-size: 0; }
.dana-videos__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: color .3s ease-in-out;
}
/* The template's .link:hover is its --primary, the coral that is Dana's accent
   (Dana's primary is the button colour: #393939 on skincare, which vanished on
   the dark pill, measured 2026-09-29). The fill, not the ink: the ink is tuned
   for the page ground, and the pill is dark. The underline is the cue that
   holds with any accent: a dark one the merchant picks (#0f766e is about
   1.9:1 on the pill) would otherwise leave the hover nearly invisible. */
.dana-videos__name:hover, .dana-videos__name:focus-visible { color: var(--dana-accent); text-decoration: underline; text-underline-offset: 3px; }
.dana-videos__price.dana-price { gap: 6px; margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #ffffff; }
.dana-videos__price .dana-price__now { color: #ffffff; }
.dana-videos__price .dana-price__old { font-weight: 500; color: rgba(158, 158, 147, .6); text-decoration-thickness: 1px; }

/* The quick-view eye (.icon.hover-tooltip) and its tooltip. */
.dana-videos__view {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  inline-size: 45px;
  block-size: 45px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  font-size: 17px;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
.dana-videos__view:hover, .dana-videos__view:focus-visible { background-color: #000000; color: #ffffff; text-decoration: none; }
.dana-videos__tip {
  position: absolute;
  inset-block-end: calc(100% + 8px);
  left: 50%;
  z-index: 4;
  block-size: 23px;
  padding: 0 10px;
  border-radius: 4px;
  background-color: #000000;
  color: #ffffff;
  font-size: 10px;
  line-height: 23px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s cubic-bezier(.71, 1.7, .77, 1.24);
}
.dana-videos__tip::before {
  content: "";
  position: absolute;
  inset-block-start: 18px;
  left: 50%;
  z-index: -1;
  inline-size: 8px;
  block-size: 8px;
  background-color: #000000;
  transform: translateX(-50%) rotate(45deg);
}
@media (hover: hover) {
  .dana-videos__view:hover .dana-videos__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: .1s; }
}
.dana-videos__view:focus-visible .dana-videos__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 767px) {
  .dana-videos__thumb { inline-size: 68px; }
  .dana-videos__view { inline-size: 35px; block-size: 35px; }
  .dana-videos__name, .dana-videos__price.dana-price { font-size: 14px; line-height: 22px; }
}

/* ---- Arrows: 1200px and up, on hover, only on a running slider with more
   videos than fit (the template's hover-sw-nav; Swiper locks them when all
   fit, and before it runs, or with scripts off, they would do nothing).
   Under 1200px the dots (d-xl-none). A wide screen with no hover (a tablet
   in landscape, a touch laptop) shows them at rest: the dots are gone there,
   so they are the only sign that more videos follow. -------------------------- */
.dana-videos__nav {
  position: absolute;
  inset-block-start: 50%;
  z-index: 5;
  display: none;
  margin-block-start: -22px;
  opacity: 0;
}
.dana-videos__nav.dana-sw-nav--prev { left: auto; right: auto; inset-inline-start: 10px; }
.dana-videos__nav.dana-sw-nav--next { left: auto; right: auto; inset-inline-end: 10px; }
@media (min-width: 1200px) {
  .dana-videos__slider:has(> .swiper.swiper-initialized) .dana-videos__nav:not(.swiper-button-lock) { display: inline-flex; }
  .dana-videos__slider:hover .dana-videos__nav, .dana-videos__nav:focus-visible { opacity: 1; }
  .dana-videos__nav.swiper-button-lock { display: none; }
}
@media (min-width: 1200px) and (hover: none) {
  .dana-videos__nav { opacity: 1; }
}
