/* Süti-sáv (SMU-112).

   Nem Blazor-komponens, ezért nem razor-scoped CSS: a jelölés az App.razor-ban,
   szerver-oldalon készül, hogy a statikusan kiszolgált oldalakon is működjön,
   WebAssembly betöltése nélkül.

   A két gomb szándékosan AZONOS méretű és stílusú — az elutasítás nem lehet
   nehezebb, mint az elfogadás. */

.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--rz-base-background-color, #fff);
    color: var(--rz-text-color, inherit);
    border-top: 1px solid var(--rz-border-color, rgba(0, 0, 0, .12));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
    font-size: .875rem;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    flex: 1 1 22rem;
    max-width: 46rem;
}

.cookie-banner__text p {
    margin: 0;
}

.cookie-banner__detail {
    margin-top: .25rem !important;
    font-size: .8125rem;
    opacity: .8;
}

.cookie-banner__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: .5rem;
}

.cookie-banner__button {
    min-width: 14rem;
    padding: .5rem 1rem;
    border: 1px solid var(--rz-primary, #1976d2);
    border-radius: var(--rz-border-radius, 4px);
    background: var(--rz-primary, #1976d2);
    color: var(--rz-on-primary, #fff);
    font: inherit;
    cursor: pointer;
}

.cookie-banner__button:hover {
    filter: brightness(1.08);
}

.cookie-banner__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__button {
        flex: 1 1 100%;
        min-width: 0;
    }
}
