.cookie-banner,
.cookie-preferences {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    font-family: sans-serif;
    z-index: 1000;
}

.cookie-banner .title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
    text-align: center;
    max-width: 1200px;
    margin: auto;
}

.cookie-banner .cookie-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 0px;
    border-bottom: 1px solid #f7f7f7;
    border-top: 1px solid #f7f7f7;
    max-width: 1200px;
    margin: auto;
}

.cookie-preferences .cookie-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #f7f7f7;
    border-top: 1px solid #f7f7f7;
    max-width: 1200px;
    margin: auto;
}

.cookie-banner .cookie-content p {
    margin: 0px;
    font-size: 12px;
    max-width: 60%;
    text-align: justify;
}

.cookie-banner .cookie-links {
    height: 40px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 10px;
    margin: 10px auto 0px;
    max-width: 1200px;
}

.cookie-banner .cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-banner .btn,
.cookie-preferences .btn {
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    max-width: 200px;
    max-height: 50px;
}

.cookie-banner .link_page {
    background: #e84e47;
    color: white;
    border-color: #e84e47;
    text-decoration: none;
    cursor: pointer;
    max-width: 200px;
    max-height: 50px;
    padding: 10px;
    border-radius: 6px;
    margin-right: 10px;
}
.cookie-banner .link_page:hover,
.cookie-preferences .link_page:hover {
    background-color: white;
    border: 1px solid #e84e47 !important;
    color: #e84e47 !important;
    transition: all 0.3s ease;
}

.cookie-banner .btn:hover,
.cookie-preferences .btn:hover {
    background: #eaeaea;
    border: 1px solid #e84e47 !important;
    color: #e84e47 !important;
    transition: all 0.3s ease;
}

.cookie-banner .btn.primary,
.cookie-preferences .btn.primary {
    background: #e84e47;
    color: white;
    border-color: #e84e47;
}

.cookie-banner .btn.primary:hover,
.cookie-preferences .btn.primary:hover {
    background-color: white;
}

.cookie-banner .hidden {
    display: none;
}

.cookie-preferences .preference {
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
}

.cookie-preferences .preference > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-preferences .preference p {
    max-width: 90%;
}

.cookie-preferences .status.green {
    color: green;
    font-size: 0.9rem;
}

/* Toggle switch style */
.cookie-preferences .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.cookie-preferences .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-preferences .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 22px;
    transition: 0.4s;
}

.cookie-preferences .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.cookie-preferences input:checked + .slider {
    background-color: #ff6600;
}

.cookie-preferences .all-preferences {
    max-width: 60%;
}

.cookie-preferences input:checked + .slider:before {
    transform: translateX(18px);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .cookie-preferences .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
