/* Fondo oscuro detrás del configurador */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    background: rgba(0, 0, 0, 0.55);
}

/* Banner inferior */
.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #cccccc;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.18);
}

.cookie-banner__content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.cookie-banner__title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.cookie-banner__text {
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Panel de configuración */
.cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10000;
    display: none;
    width: calc(100% - 30px);
    max-width: 650px;
    max-height: 85vh;
    padding: 25px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.35);
}

.cookie-category {
    padding: 15px 0;
    border-bottom: 1px solid #dddddd;
}

.cookie-category:last-of-type {
    border-bottom: 0;
}

.cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-category h4 {
    margin: 0;
}

.cookie-category p {
    margin: 8px 0 0;
    line-height: 1.45;
    color: #555555;
}

.cookie-required {
    font-weight: bold;
    color: #357a38;
}

.cookie-settings__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cookie-switch {
    width: 20px;
    height: 20px;
}

@media (max-width: 576px) {
    .cookie-banner__buttons,
    .cookie-settings__buttons {
        flex-direction: column;
    }

    .cookie-banner__buttons .btn,
    .cookie-settings__buttons .btn {
        width: 100%;
    }
}