/**
 * Patch legacy search tirage BE — extrait de belgique_searchTirage_Ajax.php (bloc body.be-mvp).
 * Actif quand $be_card_v2=false (fallback) ; card v2 = be-result-card.css.
 * Slider nav legacy : styles statiques (plus de gate PHP quand card v2).
 */

/* Slider nav legacy (span.slidernavbox) — hors card v2 */
body.be-mvp [id^="search_"][id$="_tirage"] span.slidernavbox {
    width: 100%;
    background: #f4f5fa;
    border-top: 1px solid #e8e8ef;
    display: block;
    padding: 18px 2% 14px;
    border-radius: 0 0 12px 12px;
}

body.be-mvp .slidernavbox form:nth-child(1) {
    margin-left: 20%;
}

body.be-mvp .slidernavbox form:nth-child(1),
body.be-mvp .slidernavbox form:nth-child(3) {
    width: 6%;
    float: left;
}

body.be-mvp .slidernavbox form:nth-child(2) {
    width: 45%;
    float: left;
}

body.be-mvp .slidernavbox form select {
    background-color: #fbfbfb;
    float: left;
    height: 30px;
    display: inline-block;
    text-align: center;
    border-radius: 8px;
    border: #ffffff solid 1px;
    margin: 0 auto 5px auto;
    font-weight: 500;
    font-size: 15px;
}

body.be-mvp .slidernavbox form select#years {
    width: 20%;
}

body.be-mvp .slidernavbox form select#date_tirage {
    width: 78%;
    margin-left: 2%;
}

body.be-mvp .slidernavbox form input.next {
    float: right;
}

body.be-mvp input.previous,
body.be-mvp input.next {
    border-radius: 50%;
    border: #dedede solid 1px;
    width: 30px;
    height: 30px;
    background-color: #fbfbfb;
    background-size: 32px;
    background-repeat: no-repeat;
    background-position: 10px 8px;
    padding: 10px;
}

body.be-mvp input.previous {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23233439'><path d='M25 0 L15 0 L0 20 L15 40 L25 40 L10 20 Z'></path></svg>");
}

body.be-mvp input.next {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23233439'><path d='M0 0 L10 0 L25 20 L10 40 L0 40 L15 20 Z'></path></svg>");
}

body.be-mvp .slidernavbox form input.next.null,
body.be-mvp .slidernavbox form input.previous.null {
    pointer-events: none;
    opacity: 0.4;
}

/* Legacy resultatbox (sans .be-result-card-wrap) */
body.be-mvp [id^="search_"][id$="_tirage"] div.resultatbox:not(.be-result-card-wrap) {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 0 18px;
}

body.be-mvp [id^="search_"][id$="_tirage"] div.resultatbox:not(.be-result-card-wrap) p.date {
    font-size: 18px;
    font-weight: 500;
    color: #3d3e42;
    margin: 0 auto 8px;
    text-align: center;
}

body.be-mvp [id^="search_"][id$="_tirage"] div.resultatbox:not(.be-result-card-wrap) p.jackpot {
    font-size: 22px;
    font-weight: 600;
    margin: 8px auto 14px;
    line-height: 1.25;
    text-align: center;
}

body.be-mvp #search_euro_tirage div.resultatbox:not(.be-result-card-wrap) p.jackpot,
body.be-mvp #search_euromillions_tirage div.resultatbox:not(.be-result-card-wrap) p.jackpot { color: #001367; }

body.be-mvp #search_lotto_tirage div.resultatbox:not(.be-result-card-wrap) p.jackpot { color: rgb(238, 49, 36); }

body.be-mvp #search_keno_tirage div.resultatbox:not(.be-result-card-wrap) p.jackpot { color: rgb(202, 110, 221); }

body.be-mvp #search_joker_tirage div.resultatbox:not(.be-result-card-wrap) p.jackpot { color: rgb(254, 77, 7); }

body.be-mvp #search_vikinglotto_tirage div.resultatbox:not(.be-result-card-wrap) p.jackpot { color: #1a1a1a; }

body.be-mvp #search_pick3_tirage div.resultatbox:not(.be-result-card-wrap) p.jackpot { color: #c98600; }

body.be-mvp [id^="search_"][id$="_tirage"] a.tirage_complet.mybonus,
body.be-mvp [id^="search_"][id$="_tirage"] button.tirage_complet.mybonus {
    background: linear-gradient(180deg, #fbb94f 0%, #f1cf64 100%);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 185, 79, 0.45);
    width: min(280px, 90%);
    float: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 45px;
    text-align: center;
    padding: 10px;
    font-size: 17px;
}

@media (max-width: 1140px) {
    body.be-mvp span.slidernavbox form:nth-child(2) { width: 60%; }
    body.be-mvp span.slidernavbox form:nth-child(1) { margin-left: 13%; }
}

@media only screen and (max-width: 1024px) {
    body.be-mvp [id^="search_"][id$="_tirage"] div.resultatbox:not(.be-result-card-wrap),
    body.be-mvp [id^="search_"][id$="_tirage"] span.slidernavbox { width: 100%; }
}

@media only screen and (max-width: 600px) {
    body.be-mvp main [id^="search_"][id$="_tirage"] span.slidernavbox {
        padding: 12px 2% 7px 2%;
        height: auto;
    }
    body.be-mvp [id^="search_"][id$="_tirage"] span.slidernavbox form select#date_tirage {
        width: 72%;
        margin-right: 2%;
    }
    body.be-mvp [id^="search_"][id$="_tirage"] span.slidernavbox form select#years {
        width: 20%;
        margin-left: 4%;
        font-size: 14px;
    }
}

@media only screen and (max-width: 400px) {
    body.be-mvp span.slidernavbox form select#date_tirage { width: 60%; }
    body.be-mvp [id^="search_"][id$="_tirage"] span.slidernavbox form select#years {
        width: 29%;
        margin-left: 6%;
    }
    body.be-mvp .slidernavbox form:nth-child(3) { float: right; }
}
