.banner {
  --header-offset: 0px;
}


.banner-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.banner-layout > * {
  grid-area: 1 / 1;
}

.header-sentinel + .shopify-section .banner {
  position: relative;
  margin-top: var(--announcement-height, 0px);
}

.header-sentinel + .shopify-section .banner::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translateX(-50%);
  background-color: var(--announcement-background, transparent);
}


.banner-content {
  max-width: var(--banner-content-width, none);
}

.banner-content--top-left {
  align-self: start;
  justify-self: start;
}

.banner-content--top-center {
  align-self: start;
  justify-self: center;
}

.banner-content--top-right {
  align-self: start;
  justify-self: end;
}

.banner-content--center-left {
  align-self: center;
  justify-self: start;
}

.banner-content--center {
  align-self: center;
  justify-self: center;
}

.banner-content--center-right {
  align-self: center;
  justify-self: end;
}

.banner-content--bottom-left {
  align-self: end;
  justify-self: start;
}

.banner-content--bottom-center {
  align-self: end;
  justify-self: center;
}

.banner-content--bottom-right {
  align-self: end;
  justify-self: end;
}


.banner-product {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-height: 162px;
  padding: var(--s0) var(--s2) var(--s0) var(--s0);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFFFFF;
}

.banner-product-media {
  flex: none;
  min-width: 132px;
  max-width: 50%;
  height: 142px;
}

.banner-product-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
}

.banner-product-details {
  flex: 1;
  min-width: 212px;
}

.banner-product-badges {
  position: absolute;
  top: -5px;
  left: -25px;
  transform: rotate(-6deg);
}

.banner-product-badge {
  padding: 13px 16px;
  border-radius: 90px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: var(--color-5);
  color: var(--color-1);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}


@media (max-width: 767px) {
  .banner-content {
    max-width: var(--banner-content-width-mobile, var(--banner-content-width, none));
  }

  .small--banner-content--top-left { align-self: start; justify-self: start; }
  .small--banner-content--top-center { align-self: start; justify-self: center; }
  .small--banner-content--top-right { align-self: start; justify-self: end; }
  .small--banner-content--center-left { align-self: center; justify-self: start; }
  .small--banner-content--center { align-self: center; justify-self: center; }
  .small--banner-content--center-right { align-self: center; justify-self: end; }
  .small--banner-content--bottom-left { align-self: end; justify-self: start; }
  .small--banner-content--bottom-center { align-self: end; justify-self: center; }
  .small--banner-content--bottom-right { align-self: end; justify-self: end; }

  .banner-layout:has(> :nth-child(2)) {
    grid-template-rows: none;
    grid-auto-rows: max-content;
    align-content: center;
    row-gap: var(--s2);
  }

  .banner-layout:has(> :nth-child(2)) > * {
    grid-area: auto;
  }

  .banner-layout:has(> :nth-child(2)) > [class*="small--banner-content--top"] {
    order: -1;
  }

  .banner-layout:has(> :nth-child(2)) > [class*="small--banner-content--bottom"] {
    order: 1;
  }

  .banner-layout:has(> :nth-child(2)):has(> [class*="small--banner-content--top"]) {
    align-content: start;
  }

  .banner-layout:has(> :nth-child(2)):has(> [class*="small--banner-content--bottom"]) {
    align-content: end;
  }

  .banner-layout:has(> :nth-child(2)):has(> [class*="small--banner-content--top"]):has(> [class*="small--banner-content--bottom"]) {
    align-content: space-between;
  }
}

@media (min-width: 768px) and (max-width: 1023px), (min-width: 768px) and (pointer: coarse) {
  .banner-layout:has(> :nth-child(2)) {
    grid-template-rows: none;
    grid-auto-rows: max-content;
    align-content: center;
    row-gap: var(--s1);
  }

  .banner-layout:has(> :nth-child(2)) > * {
    grid-area: auto;
  }

  .banner-layout:has(> :nth-child(2)) > [class*="banner-content--top"] {
    order: -1;
  }

  .banner-layout:has(> :nth-child(2)) > [class*="banner-content--bottom"] {
    order: 1;
  }

  .banner-layout:has(> :nth-child(2)):has(> [class*="banner-content--top"]) {
    align-content: start;
  }

  .banner-layout:has(> :nth-child(2)):has(> [class*="banner-content--bottom"]) {
    align-content: end;
  }

  .banner-layout:has(> :nth-child(2)):has(> [class*="banner-content--top"]):has(> [class*="banner-content--bottom"]) {
    align-content: space-between;
  }

  .header-sentinel + .shopify-section .banner-layout:has(> :nth-child(2)) {
    padding-top: calc(var(--navigation-height, var(--fixed-header-height)) + var(--s1));
  }
}

@media (max-width: 1023px), (pointer: coarse) {
  .banner-product {
    min-height: 0;
    padding: 16px var(--s1);
    border-width: 0.5px;
    border-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
  }

  .banner-product-media {
    min-width: 64px;
    height: 120px;
  }

  .banner-product-details {
    min-width: 0;
    gap: 15px;
  }

  .banner-product-label {
    font-size: var(--t0);
  }

  .banner-product-heading {
    font-size: var(--t1);
  }

  .banner-product-badges {
    left: -12px;
  }

  .banner-product-badge {
    padding: 8px 10px;
    font-size: var(--t-2);
  }

  .banner-product .button--small {
    padding-inline: 10px;
    font-size: var(--t0);
  }
}

banner-video {
  display: block;
  position: relative;
}

.banner-video-controls {
  position: absolute;
  inset: 0;
  padding: 16px;
}

.banner-video-toggle {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgb(0 0 0 / 0.25);
  color: #fff;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.banner-video-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
}

banner-video:not([paused]) .banner-video-toggle svg:first-child,
banner-video[paused] .banner-video-toggle svg:last-child {
  display: none;
}

.banner-video-toggle:focus-visible {
  opacity: 1;
}

@media (hover: hover) {
  .banner:hover .banner-video-toggle {
    opacity: 0.4;
  }

  .banner:hover .banner-video-toggle:hover {
    opacity: 1;
  }
}

@media (hover: none) {
  .banner-video-toggle {
    opacity: 0.3;
  }
}

@media (max-width: 767px) {
  .banner-video-controls {
    padding: 4px;
  }

  .banner-video-toggle {
    width: 24px;
    height: 24px;
  }
}

.banner-still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .banner-motion {
    display: none;
  }

  .banner-still {
    display: block;
  }
}
