/*
 * GRC Home Competition Layout v0.9.0
 * Homepage lottery grid only.
 * Uses the existing Gasoline/WooCommerce markup without duplicating or hiding
 * the timer/progress wrapper. No product-page, basket or checkout styling.
 */

/* ============================================================
   BASE GRID
   ============================================================ */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products::before,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products::after {
    display: none !important;
    content: none !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product {
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Legacy homepage Quick Entry is suppressed during preview/live layout.
   After approval, deactivate:
   #21 - GRC Main Card Quick Entry CSS
   #22 - GRC Main Card Quick Entry JS */
body.home.grc-home-layout-active .grc-main-card-quick-entry {
    display: none !important;
}

/* Keep the boilerplate's real structure intact:
   .product-title = timer + progress + title
   .flex...       = price/status/remaining/button */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product > .product-info {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product > .product-info > .product-title {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product > .product-info > .flex.items-center.justify-between {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0 !important;
}

/* ============================================================
   PROGRESS BAR - PTM STYLE
   0 | LIVE TICKETS SOLD | MAX, then the fill bar.
   No percentage badge and no remaining-ticket sentence.
   ============================================================ */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-lottery-progress-bar-loop {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-count-loop {
    display: grid !important;
    grid-template-columns: minmax(20px, 32px) minmax(0, 1fr) minmax(62px, 78px) !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 6px !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    font-variant-numeric: tabular-nums !important;
}

/* Lottery for WooCommerce gives these three children 25% / 50% / 25% widths.
   Once the parent becomes CSS grid those inherited widths shrink the contents
   a second time and clip values such as 1500 / 250000. Reset them completely. */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-count-loop > .lty-progress-bar-start,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-count-loop > .lty-progress-bar-notice,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-count-loop > .lty-progress-bar-end {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.home.grc-home-layout-active .grc-sold-label-short {
    display: none !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-bar-start {
    justify-self: start !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-bar-notice {
    display: block !important;
    justify-self: stretch !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: center !important;
    text-overflow: clip !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-bar-end {
    justify-self: end !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    font-size: 12px !important;
    line-height: 1 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Percentage wording is intentionally removed from the homepage.
   The visual fill remains, so customers still see progress at a glance. */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-bar-percentage,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-inner-percentage {
    display: none !important;
    visibility: hidden !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-bar {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 10px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-bar > span,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-fill {
    display: block !important;
    height: 100% !important;
    min-height: 100% !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .lty-progress-remaining-count {
    display: none !important;
}

/* ============================================================
   STANDARD CARDS
   Existing visual order: timer -> progress -> title -> price -> CTA
   ============================================================ */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .product-title .lty-shop-timer-wrapper {
    order: 10 !important;
    width: 100% !important;
    margin: 0 0 10px !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .product-title .lty-lottery-progress-bar-loop {
    order: 20 !important;
    margin: 0 0 10px !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .product-title .woocommerce-loop-product__title {
    order: 30 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 2px 0 10px !important;
    font-size: 18px !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

/* Anything else in the action wrapper sits above the anchored price/CTA. */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .lty-lottery-status-loop {
    order: 10 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .lty-loop-remaining-tickets-message {
    order: 20 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .lty-lottery-short-description,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .lty-lottery-short-description-loop {
    order: 30 !important;
}

/* Price and CTA form a fixed bottom stack, so all prices/buttons align by row. */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .price {
    order: 90 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: auto 0 10px !important;
    line-height: 1.05 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .button,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between a.button {
    order: 100 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Standard timer spacing */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-shop-timer-container {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-top: 28px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-shop-timer-section {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 9px 4px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* ============================================================
   FEATURED / HEADLINE - DESKTOP
   Image left. Right: title -> timer -> progress -> price -> CTA
   ============================================================ */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition {
    grid-column: 1 / -1 !important;
    order: -100000 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.38fr) minmax(360px, .82fr) !important;
    align-items: stretch !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    overflow: hidden !important;
    border: 3px solid #d8ad43 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(8,61,151,.98), rgba(0,35,102,.99)) !important;
    box-shadow: 0 0 0 2px rgba(255,220,121,.16), 0 12px 30px rgba(0,0,0,.24), 0 0 22px rgba(216,173,67,.16) !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .lty-loop-product-image-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .lty-loop-product-image-wrapper img,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .lty-loop-product-image-wrapper .attachment-woocommerce_thumbnail {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 680px !important;
    margin: 0 !important;
    object-fit: contain !important;
    image-rendering: auto !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 28px 24px !important;
    border-left: 2px solid rgba(216,173,67,.82) !important;
    box-sizing: border-box !important;
    background: radial-gradient(circle at 50% 15%, rgba(62,143,255,.24), transparent 48%), linear-gradient(180deg, rgba(19,92,202,.92), rgba(0,42,116,.98)) !important;
}

/* Headline label gives the featured information panel a clear visual anchor. */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .product-title::before {
    content: "HEADLINE COMPETITION" !important;
    order: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 0 18px !important;
    padding: 10px 14px !important;
    border: 1px solid #ffe09a !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, #ffe08b 0%, #e5b84a 48%, #bd861c 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 5px 14px rgba(70,43,0,.24) !important;
    color: #09245a !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    letter-spacing: .09em !important;
    text-align: center !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.32) !important;
    text-transform: uppercase !important;
}

/* Featured product-title wrapper: title first, then timer, then progress. */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .product-title .woocommerce-loop-product__title {
    order: 10 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 20px !important;
    font-size: clamp(25px, 2vw, 34px) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .product-title .lty-shop-timer-wrapper {
    order: 20 !important;
    width: 100% !important;
    margin: 0 0 18px !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .product-title .lty-lottery-progress-bar-loop {
    order: 30 !important;
    margin: 0 0 18px !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition .lty-shop-timer-container {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-top: 28px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition .lty-shop-timer-section {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 10px 4px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition .lty-progress-count-loop {
    grid-template-columns: minmax(18px, 30px) minmax(0, 1fr) minmax(64px, 78px) !important;
    margin-bottom: 8px !important;
    padding-inline: 7px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition .lty-progress-bar-notice {
    font-size: 13px !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition .lty-progress-bar {
    height: 12px !important;
}

/* Featured lower/action wrapper: keep price and CTA together at the bottom. */
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .lty-lottery-status-loop {
    order: 10 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .lty-loop-remaining-tickets-message {
    order: 20 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .lty-lottery-short-description,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .lty-lottery-short-description-loop {
    order: 30 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between {
    flex: 0 0 auto !important;
    margin-top: 18px !important;
    padding: 16px !important;
    border: 1px solid rgba(227,187,82,.58) !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, rgba(3,45,118,.58), rgba(1,28,82,.72)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .price {
    order: 90 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    font-size: clamp(26px, 2.1vw, 36px) !important;
    line-height: 1.02 !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .price::after {
    content: "PER TICKET" !important;
    display: block !important;
    margin-top: 5px !important;
    color: #f2d27b !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
}

body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .button,
body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between a.button {
    order: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 1100px) {
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition {
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr) !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info {
        padding: 22px 18px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .product-title .woocommerce-loop-product__title {
        font-size: 16px !important;
    }
}

/* ============================================================
   MOBILE: FEATURED FULL WIDTH + TWO-COLUMN STANDARD GRID
   ============================================================ */
@media (max-width: 767px) {
    /* The boilerplate gives every competition section py-16. On a phone that
       creates an oversized gap after an odd final card before the next section. */
    body.home.grc-home-layout-active section:has(.woocommerce.lty_lottery_products) > .container {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products[class*="columns-"] > li.product,
    body.home.grc-home-layout-active.woocommerce-page .woocommerce.lty_lottery_products ul.products[class*="columns-"] > li.product {
        width: auto !important;
        min-width: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 7px !important;
        border-radius: 12px !important;
    }

    /* Featured stays full width and stacks image over information. */
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 0 !important;
        padding: 9px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .lty-loop-product-image-wrapper {
        height: auto !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .lty-loop-product-image-wrapper img,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .lty-loop-product-image-wrapper .attachment-woocommerce_thumbnail {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info {
        height: auto !important;
        padding: 14px 5px 5px !important;
        border-top: 2px solid rgba(216,173,67,.82) !important;
        border-left: 0 !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .product-title .woocommerce-loop-product__title {
        margin: 0 0 11px !important;
        font-size: 18px !important;
        line-height: 1.18 !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .product-title .lty-shop-timer-wrapper {
        margin-bottom: 10px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .product-title .lty-lottery-progress-bar-loop {
        margin-bottom: 11px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition .lty-shop-timer-container {
        gap: 6px !important;
        padding-top: 23px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition .lty-shop-timer-section {
        padding: 8px 2px !important;
        border-radius: 7px !important;
    }


    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition .lty-progress-count-loop {
        grid-template-columns: minmax(14px, 20px) minmax(0, 1fr) minmax(42px, 54px) !important;
        gap: 4px !important;
        padding-inline: 2px !important;
        overflow: visible !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between {
        margin-top: 10px !important;
        padding: 10px !important;
        border-radius: 9px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .price {
        margin: 0 0 8px !important;
        font-size: 20px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .price::after {
        margin-top: 3px !important;
        font-size: 8px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between .button,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product.grc-home-featured-competition > .product-info > .flex.items-center.justify-between a.button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 9px 8px !important;
        font-size: 12px !important;
    }

    /* Standard mobile image - uncropped. */
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-loop-product-image-wrapper,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-loop-product-image-wrapper img {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-loop-product-image-wrapper img {
        height: auto !important;
        margin: 0 !important;
        border-radius: 8px !important;
        object-fit: contain !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info {
        padding: 8px 1px 2px !important;
    }

    /* Mobile timer: readable four-cell row without squeezing labels. */
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-shop-timer-container {
        gap: 4px !important;
        padding-top: 23px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-shop-timer-section {
        min-width: 0 !important;
        padding: 6px 1px !important;
        border-radius: 6px !important;
        font-size: 7px !important;
        line-height: 1.05 !important;
        overflow: hidden !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-shop-timer-section .lty-shop-timer-content:first-child {
        display: block !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-shop-timer-section .lty-shop-timer-content:last-child {
        display: block !important;
        margin-top: 2px !important;
        font-size: 6px !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-lottery-progress-bar-loop {
        margin-bottom: 8px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-progress-count-loop {
        grid-template-columns: minmax(10px, 14px) minmax(0, 1fr) minmax(30px, 42px) !important;
        gap: 2px !important;
        margin: 0 0 3px !important;
        padding: 0 1px !important;
        font-size: 7px !important;
        line-height: 1.05 !important;
        overflow: visible !important;
    }

    body.home.grc-home-layout-active .grc-sold-label-long {
        display: none !important;
    }

    body.home.grc-home-layout-active .grc-sold-label-short {
        display: inline !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-progress-bar-start,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-progress-bar-notice,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-progress-bar-end {
        font-size: 7px !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) .lty-progress-bar {
        height: 7px !important;
    }

    /* Long current titles can wrap; future shorter names naturally use less space. */
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .product-title .woocommerce-loop-product__title {
        margin: 2px 0 7px !important;
        font-size: 11px !important;
        line-height: 1.18 !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .price {
        margin: auto 0 6px !important;
        font-size: 12px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .button,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between a.button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 7px 4px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        font-size: 10px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 360px) {
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products {
        gap: 8px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) {
        padding: 6px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .product-title .woocommerce-loop-product__title {
        font-size: 10px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .price {
        font-size: 11px !important;
    }

    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between .button,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product:not(.grc-home-featured-competition) > .product-info > .flex.items-center.justify-between a.button {
        font-size: 9px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product::after,
    body.home.grc-home-layout-active .woocommerce.lty_lottery_products ul.products > li.product .button {
        animation: none !important;
        transition: none !important;
    }
}
