/**
 * Stili per il banner di consenso cookie
 * Compatibili con il design esistente dell'app CityAudioTour
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-top: 2px solid #f89b31;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    max-height: 100vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

#cookie-consent-banner.visible {
    transform: translateY(0);
}

#cookie-consent-banner h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

#cookie-consent-banner p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

#cookie-consent-banner .banner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

#cookie-consent-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

#cookie-consent-banner .button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

#cookie-consent-banner a {
    color: #f89b31;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
}

#cookie-consent-banner button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

#cookie-consent-reject {
    background-color: #f0f0f0;
    color: #333;
}

#cookie-consent-reject:hover {
    background-color: #e0e0e0;
}

#cookie-consent-accept {
    background-color: #f89b31;
    color: white;
}

#cookie-consent-accept:hover {
    background-color: #edc744;
}

/* Responsive design */
@media (max-width: 480px) {
    #cookie-consent-banner {
        padding: 12px 15px;
    }
    
    #cookie-consent-banner h3 {
        font-size: 16px;
    }
    
    #cookie-consent-banner p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    #cookie-consent-banner .button-container {
        flex-direction: column;
        width: 100%;
    }
    
    #cookie-consent-banner button,
    #cookie-consent-banner a {
        width: 100%;
        padding: 10px;
        text-align: center;
        margin: 2px 0;
        font-size: 13px;
    }
}

/* Right to left support for Arabic */
[lang="ar"] #cookie-consent-banner {
    direction: rtl;
    text-align: right;
}

[lang="ar"] #cookie-consent-banner .button-container {
    flex-direction: row-reverse;
}