.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 550px;
    background: rgba(255, 250, 243, 0.98);
    color: #333;
    padding: 30px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-height: 95vh;
}

.cookie-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.cookie-banner p {
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.cookie-policy-link {
    color: #6E645B;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: #000;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 40vh;
    overflow-y: auto;
}

.cookie-category {
    background: #F3EDE7;
    padding: 15px;
    border-radius: 12px;
    text-align: left;
}

.category-label {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.cookie-trackers {
    margin-top: 5px;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tracker-label {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.cookie-banner input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid #6E645B;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.cookie-banner input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #6E645B;
    border-color: #6E645B;
}

.cookie-banner input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.cookie-banner input[type="checkbox"]:disabled + .custom-checkbox {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-banner input[type="checkbox"]:disabled + .custom-checkbox::after {
    opacity: 0.7;
}

.cookie-banner input[type="checkbox"]:disabled + .custom-checkbox + strong,
.cookie-banner input[type="checkbox"]:disabled + .custom-checkbox + span {
    color: #999;
    opacity: 0.6;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cookie-banner button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cookie-banner button:hover {
    transform: translateY(-2px);
}

.cookie-banner button#accept-all-cookies {
    background: #6E645B;
    color: white;
}

.cookie-banner button#accept-all-cookies:hover {
    background: #4a433c;
}

.cookie-banner button#reject-all-cookies {
    background: #D9D2CC;
    color: #333;
}

.cookie-banner button#reject-all-cookies:hover {
    background: #c4bdb7;
}

.cookie-banner button#save-cookies {
    background: #6DAA6C;
    color: white;
}

.cookie-banner button#save-cookies:hover {
    background: #4E8C4C;
}

.cookie-info-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #6E645B;
    cursor: pointer;
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cookie-info-btn:hover {
    background: rgba(110, 100, 91, 0.1);
}

.cookie-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    padding: 5px 10px;
    background: #ede7e1;
    border-radius: 5px;
}

.cookie-description.show {
    max-height: 100px;
    opacity: 1;
    transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

@media (max-width: 600px) {
    .cookie-banner {
        width: 90%;
        padding: 15px;
    }
    .cookie-banner h3 {
        font-size: 18px;
    }
    .cookie-banner p {
        font-size: 14px;
    }
    .cookie-banner button {
        font-size: 14px;
        padding: 10px;
    }
}
