﻿/* Consent Banner Styles */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.consent-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.consent-banner-text {
    flex: 1;
    min-width: 300px;
}

.consent-banner-text h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.consent-banner-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.consent-banner-links {
    margin-top: 10px;
    font-size: 13px;
}

.consent-banner-links a {
    color: #007bff;
    text-decoration: none;
}

.consent-banner-links a:hover {
    text-decoration: underline;
}

.consent-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.consent-banner-actions .btn {
    white-space: nowrap;
    min-width: 100px;
}

/* Override site.css button styles for consent banner buttons to ensure visibility */
.consent-banner-actions .btn-outline-secondary {
    background-color: transparent !important;
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
    border-radius: 4px;
}

.consent-banner-actions .btn-outline-secondary:hover,
.consent-banner-actions .btn-outline-secondary:focus {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}

.consent-banner-actions .btn-outline-primary {
    background-color: transparent !important;
    color: #007bff !important;
    border: 1px solid #007bff !important;
    border-radius: 4px;
}

.consent-banner-actions .btn-outline-primary:hover,
.consent-banner-actions .btn-outline-primary:focus {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff !important;
}

.consent-banner-actions .btn-primary {
    background-color: #007bff !important;
    color: #ffffff !important;
    border: 1px solid #007bff !important;
    border-radius: 4px;
}

.consent-banner-actions .btn-primary:hover,
.consent-banner-actions .btn-primary:focus {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* Consent Modal Styles */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.consent-modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.consent-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consent-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.consent-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consent-modal-close:hover {
    color: #000;
}

.consent-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.consent-modal-body > p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.consent-category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.consent-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.consent-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.consent-category-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.consent-category-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.consent-category-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.consent-category-status.active {
    background-color: #28a745;
    color: #ffffff;
}

.consent-category-status.inactive {
    background-color: #6c757d;
    color: #ffffff;
}

.consent-category-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.consent-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Override site.css button styles for consent modal buttons to ensure visibility */
.consent-modal-footer .btn-outline-secondary {
    background-color: transparent !important;
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
    border-radius: 4px;
}

.consent-modal-footer .btn-outline-secondary:hover,
.consent-modal-footer .btn-outline-secondary:focus {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}

.consent-modal-footer .btn-outline-primary {
    background-color: transparent !important;
    color: #007bff !important;
    border: 1px solid #007bff !important;
    border-radius: 4px;
}

.consent-modal-footer .btn-outline-primary:hover,
.consent-modal-footer .btn-outline-primary:focus {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff !important;
}

.consent-modal-footer .btn-primary {
    background-color: #007bff !important;
    color: #ffffff !important;
    border: 1px solid #007bff !important;
    border-radius: 4px;
}

.consent-modal-footer .btn-primary:hover,
.consent-modal-footer .btn-primary:focus {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .consent-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .consent-banner-actions {
        justify-content: stretch;
    }

    .consent-banner-actions .btn {
        flex: 1;
    }

    .consent-modal-content {
        max-height: 95vh;
    }

    .consent-modal-footer {
        flex-direction: column;
    }

    .consent-modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .consent-banner {
        padding: 15px;
    }

    .consent-banner-text h4 {
        font-size: 16px;
    }

    .consent-banner-text p {
        font-size: 13px;
    }

    .consent-banner-actions {
        flex-direction: column;
    }

    .consent-banner-actions .btn {
        width: 100%;
    }
}

