/* Cookie Consent Banner & Modal Styles */

#cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
}

#cookie-consent-banner.position-bottom {
    bottom: 0;
}

#cookie-consent-banner.position-top {
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.cookie-banner-text a {
    color: inherit;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-primary {
    color: white;
}

.cookie-btn-secondary {
    background: rgba(0,0,0,0.1);
    color: inherit;
}

.cookie-btn-secondary:hover {
    background: rgba(0,0,0,0.15);
}

/* Modal */
#cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 2rem;
    height: 2rem;
}

.cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-header h3 {
    margin: 0;
    font-size: 1rem;
}

.cookie-category-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-toggle input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.cookie-category-toggle input[type="checkbox"]:disabled {
    opacity: 0.5;
}

.cookie-category p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.cookie-category-required {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.cookie-modal-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Settings Link */
.cookie-settings-link {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9998;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.cookie-settings-link:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}
