/* Modern Cookie Consent Styles - Isolated from Main CSS */
.modern-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08); 
    z-index: 999999; /* High enough but not insane */
    padding: 12px 0; 
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    border-top: 1px solid #e5e5e5;
    display: none; 
    font-size: 13px;
    margin: 0;
    line-height: normal; /* Reset line height */
    box-sizing: border-box; /* Ensure padding doesn't break width */
}

/* Ensure it interacts correctly with JS logic */
.modern-cookie-banner.show {
    display: block;
}

.modern-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: nowrap; /* Keep single line on desktop */
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-sizing: border-box;
}

.modern-cookie-content p {
    flex: 1;
    margin: 0;
    color: #444; 
    font-size: 13px; 
    line-height: 1.5; 
    background: none !important; /* Prevent yellow override */
}

.modern-cookie-content p a {
    color: #AB1F2C; 
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modern-cookie-content p a:hover {
    color: #8a1923;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.modern-cookie-content button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    line-height: normal;
    white-space: nowrap;
}

/* Primary Button: Accept All */
#btn-cookie-accept {
    background-color: #AB1F2C; 
    color: #ffffff;
    border: 1px solid #AB1F2C;
}

#btn-cookie-accept:hover {
    background-color: #8a1923;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(171, 31, 44, 0.2);
}

/* Secondary Button: Reject All */
#btn-cookie-reject {
    background-color: transparent;
    color: #555555;
    border: 1px solid #d0d0d0;
}

#btn-cookie-reject:hover {
    background-color: #f5f5f5;
    color: #333333;
    border-color: #bbbbbb;
}

/* Tertiary/Link Button: Settings */
#btn-cookie-settings {
    background-color: transparent;
    color: #555555;
    text-decoration: underline;
    padding: 8px 12px;
}

#btn-cookie-settings:hover {
    color: #AB1F2C;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modern-cookie-content {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 15px;
    }
    
    .modern-cookie-content p {
        width: 100%;
        text-align: center;
        margin-bottom: 0px;
    }
    
    .button-group {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .modern-cookie-content button {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    /* Order buttons for better mobile UX */
    #btn-cookie-accept { order: 1; }
    #btn-cookie-reject { order: 2; }
    #btn-cookie-settings { order: 3; text-decoration: none; border: 1px solid transparent; }
}
