/*
    Copyright (c) DeltaFramework
    Author: Thiruvarasamurthy G, IT Architect and Core Developer
    https://www.thirufactory.com
*/
/* Consent Banner Styles */
#consent-banner {
    display: none;
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(20, 30, 48, 0.95);
    color: white;
    padding: 15px 20px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: bottom 0.3s ease-out;
    transform: none !important;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.consent-text {
    flex: 1;
    margin-right: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.consent-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

    .consent-btn.accept {
        background: #4CAF50;
        color: white;
    }

        .consent-btn.accept:hover {
            background: #45a049;
        }

    .consent-btn.reject {
        background: #757575;
        color: white;
    }

        .consent-btn.reject:hover {
            background: #666;
        }

.consent-link {
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
}

    .consent-link:hover {
        text-decoration: none;
    }

/* Reset Consent Link */
.reset-consent {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
    margin-left: 10px;
}

    .reset-consent:hover {
        text-decoration: none;
    }

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #consent-banner {
        background: rgba(0, 0, 0, 0.95);
    }

    .consent-link {
        color: #66bb6a;
    }

    .reset-consent {
        color: #64b5f6;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    #consent-banner {
        padding: 12px 15px;
    }

    .consent-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .consent-text {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for banner appearance */
@keyframes slideUp {
    from {
        bottom: -100%;
    }
    to {
        bottom: 0;
    }
}

#consent-banner.show {
    display: block;
    bottom: 0;
    animation: slideUp 0.3s ease-out;
    transform: none !important;
}