/* Cookie Notice - Doubleriff Design System */

/* Base container - fixed bottom banner */
#cookie-notice {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    padding: 1rem 1.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    pointer-events: auto !important;
}

/* Hide banner when cookie is set */
#cookie-notice.cookie-notice-hidden,
#cookie-notice.cn-close {
    display: none !important;
}

#cn-notice-text {
    text-align: start;
}

/* Glass card container */
#cookie-notice .cookie-notice-container {
    max-width: 64rem !important;
    margin: 0 auto !important;
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(245, 245, 240, 0.16) !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 0 0 1px rgba(138, 65, 230, 0.1),
                0 20px 50px rgba(0, 0, 0, 0.5) !important;
    pointer-events: auto !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 1rem !important;
    align-items: start !important;
}

/* Logo area */
#cookie-notice .cookie-notice-container::before {
    content: '' !important;
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 48px !important;
    height: 48px !important;
    background-image: url('/wp-content/themes/doubleriff-theme/assets/images/icon.avif') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
}

/* Text container */
#cookie-notice #cn-notice-text,
#cookie-notice .cn-text-container {
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: rgba(245, 245, 240, 0.72) !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

/* Title before text */
#cookie-notice #cn-notice-text::before {
    content: 'Cookie Preferences' !important;
    display: block !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #fafafa !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.02em !important;
    font-family: 'Outfit', system-ui, sans-serif !important;
}

/* Links styling */
#cookie-notice #cn-notice-text a,
#cookie-notice .cn-text-container a {
    color: #C596FF !important;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: color 0.2s ease !important;
}

#cookie-notice #cn-notice-text a:hover,
#cookie-notice .cn-text-container a:hover {
    color: #8A41E6 !important;
}

/* Buttons container */
#cookie-notice #cn-notice-buttons,
#cookie-notice .cn-buttons-container {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}

/* Base button styling */
#cookie-notice .cn-button,
#cookie-notice a.cn-button,
#cookie-notice button,
#cookie-notice #cn-accept-cookie,
#cookie-notice #cn-refuse-cookie,
#cookie-notice #cn-more-info {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1.5 !important;
    pointer-events: auto !important;
    font-family: 'Outfit', system-ui, sans-serif !important;
}

/* Accept button - Primary purple */
#cookie-notice #cn-accept-cookie,
#cookie-notice .cn-button-custom-accept {
    background-color: #8A41E6 !important;
    color: #FFFFFF !important;
    border: none !important;
}

#cookie-notice #cn-accept-cookie:hover {
    background-color: #F5F5F5 !important;
    color: #0A0A0A !important;
}

/* Refuse/Deny button - Glass outline */
#cookie-notice #cn-refuse-cookie,
#cookie-notice .cn-button-custom-refuse {
    background-color: transparent !important;
    color: #F5F5F5 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#cookie-notice #cn-refuse-cookie:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* More info / Settings button - Glass outline */
#cookie-notice #cn-more-info,
#cookie-notice .cn-button-custom-settings {
    background-color: transparent !important;
    color: #F5F5F5 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#cookie-notice #cn-more-info:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    #cookie-notice {
        padding: 1rem !important;
    }
    
    #cookie-notice .cookie-notice-container {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        padding: 1.25rem !important;
        gap: 0.75rem !important;
    }
    
    #cookie-notice .cookie-notice-container::before {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0.25rem !important;
    }
    
    #cookie-notice #cn-notice-text,
    #cookie-notice .cn-text-container {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    #cookie-notice #cn-notice-text::before {
        font-size: 1.1rem !important;
    }
    
    #cookie-notice #cn-notice-buttons,
    #cookie-notice .cn-buttons-container {
        grid-column: 1 !important;
        grid-row: 3 !important;
        flex-direction: column !important;
    }
    
    #cookie-notice .cn-button,
    #cookie-notice #cn-accept-cookie,
    #cookie-notice #cn-refuse-cookie,
    #cookie-notice #cn-more-info {
        width: 100% !important;
    }
}
