/* Shared by the hourly offer carousels. Standalone listing cards keep their own layout. */
.lio-daily-offers[data-surface] .product-track {
  --card-gap: 12px;
  gap: var(--card-gap);
  grid-auto-columns: calc((100% - 2 * var(--card-gap)) / 3);
}

@media screen {
  .lio-daily-offers[data-surface] .product-track {
    --card-gap: 4px;
  }

  .lio-daily-offers[data-surface] .product-track .offer-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "image image" "name name" "badge old" "amount amount" "timer timer";
    grid-template-rows: auto auto 22px minmax(24px, auto) auto;
    align-content: start;
    column-gap: 2px;
    padding: 7px 5px;
    border-radius: 7px;
    min-width: 0;
  }

  .lio-daily-offers[data-surface] .product-track .product-image {
    grid-area: image;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .lio-daily-offers[data-surface] .product-track .product-name {
    grid-area: name;
    height: 3.6em;
    min-height: 0;
    line-height: 1.8;
    font-size: 12px;
    margin: 7px 0;
    -webkit-line-clamp: 2;
  }

  .lio-daily-offers[data-surface] .product-track :is(.offer-label,.product-detail,.variant-colors,.offer-window,.price-caption,.time-progress) { display: none; }
  .lio-daily-offers[data-surface] .product-track .offer-price { display: contents; }
  .lio-daily-offers[data-surface] .product-track .discount {
    grid-area: badge;
    justify-self: start;
    align-self: center;
    min-width: 0;
    min-height: 18px;
    padding: 1px 4px;
    font-size: 10px;
  }
  .lio-daily-offers[data-surface] .product-track .original-price {
    grid-area: old;
    align-self: center;
    margin: 0;
    min-height: 0;
    font-size: 9px;
    color: #6d6570;
    text-align: left;
  }
  .lio-daily-offers[data-surface] .product-track .amount {
    grid-area: amount;
    align-self: center;
    justify-content: start;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    line-height: 1.5;
  }
  .lio-daily-offers[data-surface] .product-track .amount b { font-size: 12px; }
  .lio-daily-offers[data-surface] .product-track .amount small { font-size: 9px; }

  .lio-daily-offers[data-surface] .product-track .offer-timer {
    grid-area: timer;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    align-items: start;
    margin: 3px 0 0;
    padding-top: 3px;
    border-top: 1px solid #eee8eb;
    min-height: 29px;
  }
  .lio-daily-offers[data-surface] .product-track .clock-label { font-size: 9px; line-height: 1.4; }
  .lio-daily-offers[data-surface] .product-track .countdown { font-size: 10px; line-height: 1.6; letter-spacing: 0; font-variant-numeric: tabular-nums; }

  .lio-daily-offers[data-surface] .product-track :is(.offer-video-link,.offer-reel-open) {
    grid-area: image;
    z-index: 1;
    align-self: end;
    justify-self: end;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    font-size: 0;
    color: #710f31;
    background: radial-gradient(circle, white 0 36%, #f3edf0 38% 43%, transparent 45%);
    box-shadow: none;
  }
  .lio-daily-offers[data-surface] .product-track :is(.offer-video-link,.offer-reel-open)::before {
    content: "";
    border-block: 5px solid transparent;
    border-left: 8px solid currentColor;
  }
  .lio-daily-offers[data-surface] .product-track .offer-reel-open + .offer-video-link { display: none; }
}

@media (min-width: 768px) {
  .lio-daily-offers[data-surface] .product-track { --card-gap: 12px; }
  .lio-daily-offers[data-surface] .product-track .offer-card { padding: 14px 12px; }
  .lio-daily-offers[data-surface] .product-track .product-name { font-size: 15px; }
  .lio-daily-offers[data-surface] .product-track .discount { font-size: 12px; }
  .lio-daily-offers[data-surface] .product-track .amount b { font-size: 17px; }
  .lio-daily-offers[data-surface] .product-track .original-price,
  .lio-daily-offers[data-surface] .product-track .amount small { font-size: 11px; }
  .lio-daily-offers[data-surface] .product-track .offer-timer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

