.home-bundle-banner {
  --bundle-lime: #caff29;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  margin-bottom: clamp(28px, 4vw, 54px);
  border-radius: 8px;
  background: #080808;
  color: var(--bundle-lime);
}

.storefront[data-route="home"].editing .home-bundle-banner { display: none; }

.home-feature:has(+ .home-bundle-banner:not([hidden])) { margin-bottom: clamp(16px, 2vw, 26px); }

.storefront .home-bundle-link {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
  min-height: 57px;
  border-radius: 8px 0 0 8px;
  color: inherit;
  font: 750 clamp(.93rem, 2.25vw, 1.7rem)/1.2 var(--display);
  letter-spacing: -.018em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-bundle-window {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  padding-inline-start: clamp(11px, 2vw, 26px);
}

.home-bundle-track {
  display: flex;
  width: max-content;
  animation: home-bundle-scroll 29s linear infinite;
}

.home-bundle-cycle {
  display: flex;
  flex: none;
  justify-content: space-between;
  min-width: 100vw;
  column-gap: clamp(17px, 3.2vw, 52px);
  padding-inline-end: clamp(17px, 3.2vw, 52px);
  white-space: nowrap;
}

.home-bundle-cycle > span {
  display: inline-flex;
  align-items: center;
  gap: clamp(17px, 3.2vw, 52px);
}

.home-bundle-cycle > span::after {
  width: .28em;
  height: .28em;
  background: currentColor;
  content: '';
  transform: rotate(45deg);
}

@keyframes home-bundle-scroll { to { transform: translateX(-50%); } }

.home-bundle-static { display: none; }

.home-bundle-arrow {
  display: grid;
  flex: 0 0 clamp(38px, 6vw, 64px);
  place-items: center;
  align-self: stretch;
  background: var(--bundle-lime);
  color: #080808;
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
}

.home-bundle-link:is(:hover, :focus-visible) .home-bundle-track { animation-play-state: paused; }
.home-bundle-link:hover .home-bundle-arrow { background: #e0ff83; }

.home-bundle-link:focus-visible,
.home-bundle-pause:focus-visible + .home-bundle-pause-label {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.home-bundle-pause {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.home-bundle-pause-label {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.home-bundle-pause-label::before {
  box-sizing: border-box;
  width: 10px;
  height: 13px;
  border-inline: 2px solid currentColor;
  content: '';
}

.home-bundle-pause:checked + .home-bundle-pause-label::before {
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-right: 0;
  border-left: 10px solid currentColor;
}

.home-bundle-banner:has(.home-bundle-pause:checked) .home-bundle-track { display: none; }
.home-bundle-banner:has(.home-bundle-pause:checked) .home-bundle-static { display: block; }

@media (prefers-reduced-motion: reduce) {
  .home-bundle-track, .home-bundle-pause, .home-bundle-pause-label { display: none; }
  .home-bundle-static { display: block; }
  .storefront .home-bundle-link, .home-bundle-arrow { border-radius: 0 8px 8px 0; }
}

.bundle-card-badges {
  position: absolute;
  z-index: 1;
  inset: clamp(9px, 4cqw, 17px) clamp(9px, 4cqw, 17px) auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px;
  pointer-events: none;
}

.bundle-pack-badge {
  padding: .5em .78em;
  border-radius: 4px;
  background: #caff29;
  color: #000;
  font: 700 clamp(.8rem, 4.8cqw, 1.15rem)/1.15 var(--display);
  letter-spacing: -.025em;
}

.bundle-card-countdown {
  display: grid;
  margin-inline-start: auto;
  padding: .35em .6em;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font: 700 clamp(.66rem, 3.75cqw, .85rem)/1.2 var(--display);
  text-align: end;
}

.bundle-card-countdown time {
  color: #caff29;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@container (max-width: 138px) {
  .bundle-card-badges {
    inset: 6px 6px auto;
    gap: 3px;
  }

  .bundle-pack-badge {
    padding: .45em .42em;
    font-size: .69rem;
  }

  .bundle-card-countdown {
    padding: .32em .38em;
    font-size: .62rem;
  }
}

.bundle-card-savings {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 10px;
  padding: clamp(7px, 3.5cqw, 14px) clamp(9px, 4cqw, 17px);
  background: #000;
  color: #fff;
  pointer-events: none;
}

.bundle-card-savings strong {
  color: #caff29;
  font: 700 clamp(.8rem, 5cqw, 1.12rem)/1.2 var(--display);
}

.bundle-card-savings small {
  color: inherit;
  font-size: clamp(.67rem, 3.75cqw, .82rem);
  line-height: 1.25;
}

.bundle-directory-empty {
  grid-column: 1 / -1;
}

.storefront[data-route="offer"] .details h1 {
  white-space: normal;
  overflow-wrap: anywhere;
}

.storefront .details .bundle-discount-terms {
  display: none;
}

.storefront[data-route="offer"] .details .bundle-discount-terms {
  display: block;
  margin: 0 0 12px;
  font-size: .875rem;
  font-weight: 600;
}

.storefront .details .bundle-color-charge {
  margin: 4px 0 8px;
  font-size: .875rem;
  font-weight: 650;
}

.bundle-color-controls {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bundle-color-choice {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.bundle-color-choice h2 {
  margin: 0;
}

.bundle-color-controls :is([data-add-bundle-color], [data-remove-bundle-color]),
.bundle-preview-colors button,
.bundle-additional-sizes button {
  min-height: 44px;
}

.bundle-color-choice .shirt-color-palette {
  inline-size: 100%;
  min-inline-size: 0;
}

.storefront .details .bundle-size-rule {
  margin: 0 0 10px;
  font-size: .875rem;
}

.bundle-size-heading {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.bundle-additional-sizes fieldset {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.bundle-additional-sizes fieldset > button {
  margin-top: 8px;
}

.bundle-size-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bundle-size-inputs label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
}

.bundle-size-inputs input {
  min-width: 0;
  min-height: 44px;
}

.bundle-preview-colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0 14px 14px;
}

.storefront #bundleArtworkDialog {
  width: min(700px, calc(100% - 24px));
  max-height: 94dvh;
  padding: clamp(15px, 4vw, 25px);
  overflow: auto;
}

#bundleArtworkDialog header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

#bundleArtworkDialog h2 {
  margin: 0;
  font: 700 clamp(1.5rem, 4vw, 2rem)/1.14 var(--display);
}

#bundleArtworkDialog p {
  margin: 6px 0 0;
  color: var(--muted);
}

#closeBundleArtwork {
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.3rem;
}

.bundle-artwork-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#bundleArtworkPreview .product-proof figcaption {
  margin-top: 6px;
  font-size: .9rem;
}

.bundle-artwork-controls {
  display: grid;
  gap: 11px;
}

.bundle-artwork-controls label {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.bundle-artwork-controls select {
  width: 100%;
  min-height: 44px;
}

#bundleArtworkLogo {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

#bundleArtworkDialog .bundle-artwork-upload-fee {
  font-size: .88rem;
  line-height: 1.45;
}

.bundle-artwork-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.bundle-artwork-actions button,
#resetBundleArtwork,
#applyBundleArtwork {
  min-height: 44px;
}

#resetBundleArtwork {
  justify-self: start;
  padding-inline: 0;
}

#bundleArtworkStatus:empty {
  display: none;
}

#bundleArtworkStatus[data-error] {
  color: #a52722;
}

#bundleArtworkDialog footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 17px;
}

@media (max-width: 550px) {
  .bundle-artwork-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #bundleArtworkPreview {
    width: min(100%, 235px);
    justify-self: center;
  }
}

.bundle-offer-timing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #000;
  color: #fff;
}

.storefront .details .bundle-offer-timing h2 {
  margin: 0 0 3px;
  color: inherit;
  font: 700 1rem/1.2 var(--display);
}

.storefront .details .bundle-offer-timing :is(time, p) {
  margin: 0;
  color: #d6d6d6;
  font-size: .82rem;
  line-height: 1.4;
}

.bundle-offer-countdown {
  color: #caff29;
  font: 700 clamp(1.12rem, 5.4cqw, 1.6rem)/1.2 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.storefront[data-bundle-ended] .studio-shell {
  max-width: 48rem;
  margin-inline: auto;
  min-height: 34vh;
}

.storefront[data-bundle-ended] #designer {
  display: block;
}

.storefront[data-bundle-ended] :is(#designer .visual, #designer .details > .block, #designer .product-pricing,
  #deliveryEstimate, #summary, #companions) {
  display: none;
}

.storefront[data-bundle-ended] .bundle-offer-timing {
  margin: 16px 0;
}

.bundle-offer-browse {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 4px;
  background: #007cc3;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
