/*
 * Cookie-consent banner. Shared by www and the nine hubs, same as consent.js.
 *
 * Loaded as a normal stylesheet rather than deferred: the banner is appended as
 * soon as the DOM is ready, and a deferred sheet lets it paint unstyled first.
 */

.slatech-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 2147483000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    background: #1B2566;
    color: #fff;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .25);
    font-size: .9375rem;
    line-height: 1.5;
}

.slatech-consent__text {
    margin: 0;
    max-width: 62ch;
}

.slatech-consent__text a {
    color: #fff;
    text-decoration: underline;
}

.slatech-consent__actions {
    display: flex;
    gap: .75rem;
    flex-shrink: 0;
}

/* Equal weight on both buttons on purpose: a decline styled as an afterthought
   is the pattern regulators read as consent that was not freely given. */
.slatech-consent__btn {
    min-width: 7.5rem;
    padding: .625rem 1.25rem;
    border-radius: .375rem;
    border: 1px solid #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.slatech-consent__btn--accept {
    background: #fff;
    color: #1B2566;
}

.slatech-consent__btn--reject {
    background: transparent;
    color: #fff;
}

.slatech-consent__btn:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

@media (max-width: 36rem) {
    .slatech-consent {
        justify-content: stretch;
    }

    .slatech-consent__actions {
        width: 100%;
    }

    .slatech-consent__btn {
        flex: 1;
    }
}
