/* Bannière */

.mcb-banner {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--mcb-banner-bg, #1f2937);
    color: var(--mcb-banner-text, #f9fafb);
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}

.mcb-banner[hidden],
.mcb-revoke[hidden] {
    display: none !important;
}

.mcb-pos-bottom {
    left: 0;
    right: 0;
    bottom: 0;
}

.mcb-pos-top {
    left: 0;
    right: 0;
    top: 0;
}

.mcb-pos-bottom-left,
.mcb-pos-bottom-right {
    bottom: 1rem;
    max-width: 26rem;
    border-radius: 0.625rem;
    flex-direction: column;
    align-items: stretch;
}

.mcb-pos-bottom-left {
    left: 1rem;
}

.mcb-pos-bottom-right {
    right: 1rem;
}

.mcb-message {
    flex: 1 1 20rem;
    margin: 0;
}

.mcb-message p {
    margin: 0;
}

.mcb-message a,
.mcb-privacy {
    color: inherit;
    text-decoration: underline;
}

.mcb-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mcb-pos-bottom-left .mcb-actions,
.mcb-pos-bottom-right .mcb-actions {
    justify-content: flex-end;
}

/* Boutons */

.mcb-btn {
    border: 0;
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.mcb-btn:hover,
.mcb-btn:focus {
    filter: brightness(1.1);
}

.mcb-btn-accept {
    background: var(--mcb-accept-bg, #22c55e);
    color: var(--mcb-accept-text, #052e16);
}

.mcb-btn-refuse {
    background: var(--mcb-refuse-bg, #4b5563);
    color: var(--mcb-refuse-text, #f9fafb);
}

/* Bouton de révocation flottant */

.mcb-revoke {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 99998;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: var(--mcb-banner-bg, #1f2937);
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.mcb-revoke:hover,
.mcb-revoke:focus {
    transform: scale(1.1);
}

.mcb-revoke-link {
    cursor: pointer;
}

/* Contenus bloqués */

iframe[data-mcb-src] {
    display: none !important;
}

.mcb-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    background: var(--mcb-placeholder-bg, #e5e7eb);
    color: var(--mcb-placeholder-text, #1f2937);
    border-radius: 0.375rem;
}

.mcb-placeholder-inner {
    text-align: center;
    padding: 1.5rem;
    max-width: 32rem;
}

.mcb-placeholder-inner p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
}

/* Responsive */

@media (max-width: 600px) {
    .mcb-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .mcb-pos-bottom-left,
    .mcb-pos-bottom-right {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        max-width: none;
    }

    .mcb-actions {
        justify-content: flex-end;
    }
}
