.calsys-alert {
    /* em padding so the banner grows with the chosen text size */
    padding: 0.7em 1.1em;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    /* front-page hero headers often overlap the top of the body, so paint above them */
    position: relative;
    z-index: 99990;
}

.calsys-alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.calsys-alert-sticky {
    position: sticky;
    top: 0;
}

/* leave room for the admin bar when staff are logged in */
body.admin-bar .calsys-alert-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .calsys-alert-sticky {
        top: 46px;
    }
}

/* admin page preview + preset pickers */
.calsys-alert-preview {
    margin: 12px 0;
    max-width: 800px;
}

.calsys-alert-preview .calsys-alert {
    position: static;
}

.calsys-alert-preset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 16px;
}

.calsys-alert-preset input[type="color"] {
    width: 48px;
    height: 32px;
    padding: 2px;
    cursor: pointer;
}
