.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 720px;
    width: 92%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    padding: 1rem 1.1rem;
    z-index: 1050;
    display: none;
    animation: slideUp 0.35s ease-out;
    min-height: 90px;
    max-height: 62vh;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-banner h5 {
    color: #0d6efd;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.cookie-banner .inner {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 100%;
}

.cookie-banner .text-col {
    flex: 1 1 auto;
    overflow: hidden;
}

.cookie-banner .buttons-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

.cookie-banner button {
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
    width: 100%;
    text-align: center;
    min-height: 36px;
    box-sizing: border-box;
}

#acceptAllBtn {
    background-color: #286fb7 !important;
    border-color: #286fb7 !important;
    color: white !important;
}

#acceptAllBtn:hover {
    background-color: #1f5a9e !important;
}

#preferencesBtn,
#rejectAllBtn {
    border: 1px solid #286fb7 !important;
    color: #286fb7 !important;
    background: transparent;
}

#preferencesBtn:hover,
#rejectAllBtn:hover {
    background-color: #286fb7 !important;
    color: white !important;
}

.scrollable-text {
    max-height: 130px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 0.7rem;
    font-size: 0.81rem;
    line-height: 1.38;
}

.scrollable-text p {
    margin: 0 0 0.65rem 0;
}

.scrollable-text strong {
    color: #0d6efd;
}

.scrollable-text a {
    color: #0d6efd;
    text-decoration: underline;
}

.scrollable-text::-webkit-scrollbar {
    width: 5px;
}

.scrollable-text::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.scrollable-text::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .cookie-banner {
        width: 94%;
        padding: 0.9rem 1rem;
        bottom: 0.8rem;
        max-height: 68vh;
    }

    .scrollable-text {
        max-height: 110px;
        font-size: 0.79rem;
    }

    .cookie-banner button {
        padding: 0.6rem 1rem;
        font-size: 0.93rem;
    }
}

.modal-content {
    border-radius: 8px !important;
}