/**
 * Cookie consent banner
 * Design: fond bleu uni, lignes blanches, deux boutons égaux.
 * Taille et emplacement: vignette en bas à droite.
 *
 * @package MM_Theme
 */

.mm-cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 90%;
    max-width: 380px;
    z-index: 10000;
    background: #0066FF;
    color: #fff;
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    display: none;
}

.mm-cookie-banner.is-visible {
    display: block;
}

.mm-cookie-banner[aria-hidden="false"] {
    display: block;
}

.mm-cookie-banner-inner {
    width: 100%;
}

/* Zone texte (environ 2/3) */
.mm-cookie-banner-text {
    padding: 24px 24px 20px;
    text-align: left;
    border-bottom: 1px solid #fff;
}

/* Zone boutons (environ 1/3), deux moitiés séparées par une ligne blanche */
.mm-cookie-banner-actions {
    display: flex;
}

.mm-cookie-banner-actions button {
    flex: 1;
    background: #0066FF;
    border: none;
    border-right: 1px solid #fff;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 18px 16px;
    cursor: pointer;
    transition: background 0.05s ease;
}

.mm-cookie-banner-actions button:last-child {
    border-right: none;
}

.mm-cookie-banner-actions button:hover {
    background: #0052e6;
}

.mm-cookie-banner-actions button:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

@media (max-width: 480px) {
    .mm-cookie-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }

    .mm-cookie-banner-text {
        padding: 20px 20px 16px;
        font-size: 13px;
    }

    .mm-cookie-banner-actions {
        flex-direction: column;
    }

    .mm-cookie-banner-actions button {
        border-right: none;
        border-bottom: 1px solid #fff;
        padding: 16px;
    }

    .mm-cookie-banner-actions button:last-child {
        border-bottom: none;
    }
}
