/**
 * Cookie Consent Banner Styles
 * GDPR-compliant cookie consent banner
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem 0;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

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

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #0066a4;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #004d7a;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-buttons button {
    white-space: nowrap;
    padding: 0.625rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cookie-consent-buttons .btn-primary {
    background-color: #0066a4;
    color: #fff;
    border-color: #0066a4;
}

.cookie-consent-buttons .btn-primary:hover {
    background-color: #004d7a;
    border-color: #004d7a;
}

.cookie-consent-buttons .btn-outline-secondary {
    background-color: #fff;
    color: #6c757d;
    border-color: #6c757d;
}

.cookie-consent-buttons .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

/* Responsiv design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-consent-buttons button {
        width: 100%;
    }
}

/* Säkerställ att bannern inte täcker viktigt innehåll */
body.cookie-consent-active {
    padding-bottom: 150px;
}

@media (max-width: 768px) {
    body.cookie-consent-active {
        padding-bottom: 200px;
    }
}
