/*
 * Shared cookie banner for rymdlagesbild.se.
 */

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;

    max-width: 760px;
    margin: 0 auto;
    padding: 1rem;

    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-banner__text {
    flex: 1;
    margin: 0;

    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner__button {
    min-width: 5rem;
    padding: 0.7rem 1rem;

    color: #ffffff;
    background: #0f4c81;
    border: 0;
    border-radius: 0.5rem;

    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-banner__button:hover {
    background: #0b3b64;
}

.cookie-banner__button:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .cookie-banner {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .cookie-banner__content {
        align-items: stretch;
        flex-direction: column;
    }

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