/* Cookie Banner Styles - Advanced */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    width: 90%;
    max-width: 650px;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cookie-content h3 {
    margin-top: 0;
    color: #111;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    color: #555;
}

.cookie-content a {
    color: #ff4500;
    text-decoration: none;
    border-bottom: 1px dotted #ff4500;
}

.cookie-content a:hover {
    border-bottom: 1px solid #ff4500;
}

/* Actions */
.cookie-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-cookie {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-accept {
    background-color: #ff4500;
    /* Primary brand color */
    color: white;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
}

.btn-accept:hover {
    background-color: #e03e00;
    transform: translateY(-1px);
}

.btn-decline {
    background-color: #f1f1f1;
    color: #333;
}

.btn-decline:hover {
    background-color: #e5e5e5;
}

.btn-settings {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #555;
}

.btn-settings:hover {
    border-color: #999;
    color: #333;
}

/* Detailed Options */
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-option:hover {
    background: #f0f0f0;
}

.option-text strong {
    display: block;
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.2rem;
}

.option-text small {
    display: block;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

/* Checkboxes */
.cookie-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 22px;
    width: 22px;
    min-width: 22px;
    background-color: #ddd;
    border-radius: 4px;
    margin-top: 3px;
}

.cookie-option:hover input~.checkmark {
    background-color: #ccc;
}

.cookie-option input:checked~.checkmark {
    background-color: #ff4500;
}

.cookie-option input:checked:disabled~.checkmark {
    background-color: #999;
    opacity: 0.7;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.cookie-option input:checked~.checkmark:after {
    display: block;
}

.cookie-option .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}


/* Settings Icon */
.cookie-settings-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
    color: #555;
    border: 1px solid #eee;
}

.cookie-settings-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #ff4500;
    border-color: #ff4500;
}

/* Mobile */
@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
        animation: slideUpMobile 0.3s ease-out;
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .cookie-actions {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
        text-align: center;
    }
}