/* Challenger Suite – grouped shop and sales-start presentation
 * Consolidates the Suite-owned inline block and the matching component rules
 * from Challenger Theme 1.0.12. Astra-only legacy selectors were omitted.
 */

.shop-card-sales-start,
.challenger-sales-start-notice {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 7px 11px;
    background: var(--challenger-surface-alt, rgba(255, 255, 255, .07));
    color: var(--challenger-text, #fff);
    border: 1px solid var(--challenger-border, rgba(255, 255, 255, .22));
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}


.challenger-sales-start-notice {
    padding: 10px 13px;
    font-size: 14px;
}

.challenger-sales-start-button {
    pointer-events: none !important;
    cursor: default !important;
    opacity: .72;
}

.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

html.challenger-shop-grid-pending .challenger-release-shop,
html.challenger-shop-grid-pending .woocommerce ul.products,
html.challenger-shop-grid-pending #primary ul.products {
    visibility: hidden !important;
    pointer-events: none !important;
}

body.woocommerce-shop #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.challenger-game-shop {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    margin: 0 0 36px;
    color: var(--challenger-text, #f7f7f7);
}

.challenger-game-filter-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto 4px;
    text-align: center;
}

.challenger-game-shop .challenger-game-filter {
    display: block;
    min-width: 190px;
    max-width: 280px;
    margin: 0 auto;
    padding: 10px 34px 10px 13px;
    background: var(--challenger-surface-alt, #171717) !important;
    color: var(--challenger-text, #f7f7f7) !important;
    border: 1px solid var(--challenger-border, #333) !important;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
}

.challenger-game-section {
    width: 100%;
}

.challenger-game-section[hidden] {
    display: none !important;
}

.challenger-release-day[hidden] {
    display: none !important;
}

.challenger-game-shop .challenger-release-day-header {
    margin: 0 0 18px;
    padding: 0;
    text-align: center;
}

.challenger-game-shop .challenger-release-day-header h2 {
    margin: 0;
    color: var(--challenger-text, #f7f7f7);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.challenger-release-day-games {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.challenger-game-shop .challenger-release-game {
    box-sizing: border-box;
    min-width: 0;
    padding: 16px;
    background: var(--challenger-surface-alt, #242424);
    color: var(--challenger-text, #f7f7f7);
    border: 1px solid var(--challenger-border, #333);
    border-radius: var(--challenger-radius, 14px);
    box-shadow: none;
}

@media (max-width: 600px) {
    .challenger-game-shop .challenger-release-card.challenger-release-day { padding: 12px; }
    .challenger-game-shop .challenger-release-game { padding: 10px; }
    .challenger-release-day-games { gap: 12px; }
}

.challenger-game-shop .challenger-game-header {
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 2px solid var(--challenger-border, #333) !important;
    text-align: center;
}

.challenger-game-shop .challenger-game-header h2 {
    margin: 0;
    color: var(--challenger-text, #f7f7f7) !important;
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
}

.challenger-game-releases {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.challenger-game-shop .challenger-release-card {
    width: 100%;
    padding: 20px;
    background: var(--challenger-surface, #181818) !important;
    color: var(--challenger-text, #f7f7f7) !important;
    border: 1px solid var(--challenger-border, #333) !important;
    border-radius: 16px;
}

.challenger-game-shop .challenger-release-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 16px;
    padding: 0 0 11px;
    border-bottom: 1px solid var(--challenger-border, #333) !important;
}

.challenger-game-shop .challenger-release-card-header h3 {
    display: flex;
    flex: 1 1 280px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--challenger-text, #f7f7f7) !important;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.challenger-release-reminder {
    display: grid;
    flex: 0 1 310px;
    gap: 4px;
    min-width: 220px;
    margin-left: auto;
    justify-items: end;
}

.challenger-release-reminder-toggle {
    display: inline-flex !important;
    width: auto !important;
    min-height: 34px;
    margin: 0 !important;
    padding: 7px 11px !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--challenger-surface-alt, #111) !important;
    color: var(--challenger-text, #f7f7f7) !important;
    border: 1px solid var(--challenger-border, #333) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    cursor: pointer;
    font: inherit;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center;
}

.challenger-release-reminder-toggle:hover,
.challenger-release-reminder-toggle:focus-visible {
    border-color: color-mix(in srgb, var(--challenger-text, #fff) 45%, var(--challenger-border, #333)) !important;
}

.challenger-release-reminder-toggle:focus-visible {
    outline: 2px solid var(--challenger-text, #fff);
    outline-offset: 2px;
}

.challenger-release-reminder-check {
    position: relative;
    display: inline-block;
    width: 15px;
    min-width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
}

.challenger-release-reminder-toggle.is-active {
    background: #164b25 !important;
    color: #c9f8d3 !important;
    border-color: #2e8a47 !important;
}

.challenger-release-reminder-toggle.is-active .challenger-release-reminder-check::after {
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.challenger-release-reminder-toggle.is-review {
    background: #3c2b0d !important;
    color: #ffdda0 !important;
    border-color: #80602a !important;
}

.challenger-release-reminder-toggle:disabled {
    cursor: default;
    opacity: .88;
}

.challenger-release-reminder.is-loading {
    opacity: .68;
    pointer-events: none;
}

.challenger-release-reminder-description,
.challenger-release-reminder-error {
    display: block;
    max-width: 310px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: right;
}

.challenger-release-reminder-description {
    color: var(--challenger-on-surface, var(--challenger-text, #f7f7f7));
    -webkit-text-fill-color: currentColor;
}

.challenger-release-reminder-error {
    color: #ffb4b4;
    -webkit-text-fill-color: currentColor;
    font-weight: 800;
}

.challenger-release-reminder-error[hidden] {
    display: none !important;
}

.challenger-release-date-pill,
.challenger-release-sales-start-inline {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--challenger-border, #333);
    border-radius: 999px;
    background: var(--challenger-surface-alt, #111);
    color: var(--challenger-on-surface-alt, var(--challenger-text, #f7f7f7));
    -webkit-text-fill-color: currentColor;
    font-size: clamp(14px, 1.55vw, 17px);
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.challenger-release-sales-start-inline {
    background: var(--challenger-surface-alt, #111);
    color: var(--challenger-on-surface-alt, var(--challenger-text, #f7f7f7));
    font-size: clamp(13px, 1.35vw, 15px);
}

.shop-card-sales-start[hidden] {
    display: none !important;
}

.challenger-game-shop ul.products.challenger-release-products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.challenger-game-shop ul.products::before,
.challenger-game-shop ul.products::after {
    display: none !important;
}

.challenger-game-shop ul.products.challenger-release-products > li.product {
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    background: var(--challenger-inner-surface, #111) !important;
    color: var(--challenger-text, #f7f7f7) !important;
    border: 1px solid var(--challenger-border, #333) !important;
    border-radius: calc(var(--challenger-radius, 14px) + 2px) !important;
    box-shadow: none !important;
}

.challenger-game-shop ul.products.challenger-release-products > li.product > a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    color: var(--challenger-text, #f7f7f7) !important;
    text-decoration: none !important;
}

.challenger-game-shop li.product .shop-card-dates {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin: 0 0 10px !important;
}

.challenger-game-shop li.product .shop-card-release,
.challenger-game-shop li.product .shop-card-deadline,
.challenger-game-shop li.product .shop-card-sales-start,
.challenger-game-shop li.product .shop-card-ordered {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 0 7px !important;
    min-height: 34px !important;
    padding: 7px 11px !important;
    background: var(--challenger-surface-alt, #111) !important;
    color: var(--challenger-text, #f7f7f7) !important;
    border: 1px solid var(--challenger-border, #333) !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
}

.challenger-game-shop li.product .shop-card-dates .shop-card-release,
.challenger-game-shop li.product .shop-card-dates .shop-card-deadline {
    margin: 0 !important;
}

.challenger-game-shop li.product .shop-card-deadline {
    background: var(--challenger-accent, #d92d2d) !important;
    color: var(--challenger-accent-text, #fff) !important;
    border-color: var(--challenger-accent, #d92d2d) !important;
}

.challenger-game-shop li.product a img,
.challenger-game-shop li.product img.attachment-woocommerce_thumbnail {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin: 2px 0 12px !important;
    background: #fff !important;
    object-fit: contain !important;
}

.challenger-game-shop li.product .woocommerce-loop-product__title {
    min-height: 2.7em !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--challenger-text, #f7f7f7) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.challenger-game-shop li.product .price {
    display: block !important;
    margin: 0 0 10px !important;
    color: var(--challenger-text, #f7f7f7) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.challenger-game-shop li.product .price * {
    color: inherit !important;
}

.challenger-game-shop li.product .shop-card-tax-custom {
    display: block !important;
    margin: 3px 0 0 !important;
    color: var(--challenger-muted, #aaa) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.challenger-game-shop li.product .woocommerce-price-suffix,
.challenger-game-shop li.product .wc-gzd-additional-info,
.challenger-game-shop li.product .wgm-info,
.challenger-game-shop li.product .tax-info,
.challenger-game-shop li.product .shipping-costs-info,
.challenger-game-shop li.product .shipping_de {
    display: none !important;
}

.challenger-game-shop li.product > a.button,
.challenger-game-shop li.product .add_to_cart_button,
.challenger-game-shop li.product .product_type_simple {
    width: 100% !important;
    margin: auto 0 0 !important;
    padding: 11px 12px !important;
    background: var(--challenger-surface-alt, #111) !important;
    color: var(--challenger-text, #f7f7f7) !important;
    border: 1px solid var(--challenger-border, #333) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

.challenger-game-shop li.product > a.button:hover,
.challenger-game-shop li.product .add_to_cart_button:hover,
.challenger-game-shop li.product .product_type_simple:hover {
    background: var(--challenger-accent, #d92d2d) !important;
    color: var(--challenger-accent-text, #fff) !important;
    border-color: var(--challenger-accent, #d92d2d) !important;
}

@media (max-width: 900px) {
    .challenger-game-shop ul.products.challenger-release-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .challenger-game-shop {
        gap: 24px;
        margin-top: 0;
    }

    .challenger-game-filter-wrap {
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    .challenger-game-shop .challenger-game-filter {
        min-width: 180px;
        max-width: 100%;
    }

    .challenger-game-shop .challenger-game-header {
        margin-bottom: 12px;
    }

    .challenger-game-shop .challenger-release-card {
        padding: 14px;
        border-radius: 13px;
    }

    .challenger-game-shop .challenger-release-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .challenger-game-shop .challenger-release-card-header h3 {
        flex-basis: auto;
    }

    .challenger-game-shop .challenger-release-card-header > .challenger-release-reminder {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        margin-left: 0;
        grid-auto-rows: max-content;
        align-content: start;
        justify-items: start;
    }

    .challenger-game-shop .challenger-release-card-header > .challenger-release-reminder > .challenger-release-reminder-toggle {
        align-self: start;
        justify-self: start;
        width: auto !important;
        max-width: 100%;
        min-height: 34px !important;
        height: auto !important;
    }

    .challenger-release-reminder-description,
    .challenger-release-reminder-error {
        max-width: none;
        text-align: left;
    }

    .challenger-release-sales-start-inline {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .challenger-game-shop ul.products.challenger-release-products {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .challenger-game-shop ul.products.challenger-release-products > li.product {
        padding: 16px !important;
    }

    .challenger-game-shop li.product .woocommerce-loop-product__title {
        min-height: 0 !important;
        font-size: 18px !important;
    }

    .challenger-game-shop li.product .price {
        font-size: 20px !important;
    }

    .challenger-game-shop li.product .shop-card-release,
    .challenger-game-shop li.product .shop-card-deadline,
    .challenger-game-shop li.product .shop-card-sales-start,
    .challenger-game-shop li.product .shop-card-ordered {
        padding: 7px 10px !important;
        font-size: 13px !important;
    }
}

/* 1.3.246: release headings belong to the outside card, games to the dark/alt inset. */
.challenger-game-shop .challenger-release-card{color:var(--challenger-on-surface,var(--challenger-text,#fff))!important;-webkit-text-fill-color:currentColor!important}
.challenger-game-shop .challenger-release-day-header h2{color:var(--challenger-on-surface,var(--challenger-text,#fff))!important;-webkit-text-fill-color:currentColor!important}
.challenger-game-shop .challenger-release-game{color:var(--challenger-on-surface-alt,var(--challenger-text,#fff))!important;-webkit-text-fill-color:currentColor!important}
.challenger-game-shop .challenger-release-card-header h3{color:inherit!important;-webkit-text-fill-color:currentColor!important}
.challenger-game-shop .challenger-game-filter,.shop-card-sales-start,.challenger-sales-start-notice{color:var(--challenger-on-surface-alt,var(--challenger-text,#fff))!important;-webkit-text-fill-color:currentColor!important}
