/* ========== Base Styles ========== */
.ets_cookie_banber_block {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px 30px;
    z-index: 10000;
    border-radius: 0;
    max-width: calc(100vw - 40px);
    max-width: -webkit-calc(100vw - 40px);
    box-sizing: border-box;
}

.ets_cookie_banber_block.left_bottom {
    left: 20px;
    bottom: 20px;
    right: auto;
}

.ets_cookie_banber_block.bottom {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.ets_cookie_banber_block.bottom > div {
    padding: 0 15px;
}

.ets_cookie_banner_content {
    line-height: 1.6;
}

.ets_cookie_banner_content img,
.ets_cookie_banber_block iframe {
    max-width: 100%;
    height: auto;
}

.ets_cookie_banner_content p {
    margin-bottom: 9px;
}

.ets_cookie_banner_content p:not(:first-child):last-child {
    margin-bottom: 0;
}

.ets_cookie_banner_footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding-top: 10px;
    margin-top: 10px;
}

/* Boutons */
button.ets-cb-btn-ok,
a.btn.ets-cb-btn-ok {
    font-weight: normal;
    text-transform: none;
    border-radius: 25px;
}

.btn.btn-primary.full-left.ets-cb-btn-not-ok {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc;
    text-transform: none;
    font-weight: normal;
    border-radius: 25px;
}

.btn.btn-primary.full-left.ets-cb-btn-not-ok:hover {
    background: #a60a0a !important;
    color: #fff !important;
    border-color: #a60a0a !important;
}

/* Croix de fermeture */
span.close_cookie {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
    cursor: pointer;
}
span.close_cookie:before,
span.close_cookie:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: #999;
    top: 50%;
    left: 50%;
    transform-origin: center;
    margin-left: -8px;
    margin-top: -1px;
}
span.close_cookie:before { transform: rotate(45deg); }
span.close_cookie:after  { transform: rotate(-45deg); }
span.close_cookie:hover:before,
span.close_cookie:hover:after {
    background: #555;
}

/* ========== Responsive : Tablette (≤ 767px) ========== */
@media screen and (max-width: 767px) {
    .ets_cookie_banber_block {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: 15px 20px;
        max-width: none;
    }
    .ets_cookie_banber_block.bottom {
        align-items: center;
        padding-bottom: 10px;
    }
    .ets_cookie_banner_footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    /* Boutons pleine largeur en tablette */
    .ets_cookie_banner_footer button,
    .ets_cookie_banner_footer a.btn {
        flex: 1 1 45%;
        margin: 4px 0;
    }
}

/* ========== Responsive : Mobile (≤ 480px) ========== */
@media screen and (max-width: 480px) {
    .ets_cookie_banber_block {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 12px 15px;
    }
    .ets_cookie_banber_block.bottom,
    .ets_cookie_banber_block.bottom > div {
        padding: 0 10px;
    }
    .ets_cookie_banner_content p {
        margin-bottom: 6px;
        font-size: 14px;
    }
    .ets_cookie_banner_footer {
        flex-direction: column-reverse;
        align-items: stretch;
        padding-top: 8px;
        margin-top: 8px;
    }
    /* Boutons full-width en mobile */
    .ets_cookie_banner_footer button,
    .ets_cookie_banner_footer a.btn {
        width: 100%;
        margin: 4px 0;
        box-sizing: border-box;
        text-align: center;
    }
    span.close_cookie {
        width: 24px;
        height: 24px;
    }
    span.close_cookie:before,
    span.close_cookie:after {
        width: 12px;
        height: 2px;
        margin-left: -6px;
    }
}
