:root {
    --aneb-height: 0px;
}

body.aneb-has-fixed-bar {
    padding-bottom: var(--aneb-height);
}

.aneb-hidden-amelia-host {
    position: fixed;
    top: 0;
    left: -10000px;
    width: 1200px;
    max-width: 100vw;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.aneb-bar {
    background: #0b7f31;
    color: #ffffff;
    font-family: inherit;
    box-shadow: 0 -10px 28px rgba(9, 38, 20, 0.22);
}

.aneb-bar--fixed {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99998;
}

.aneb-bar__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
}

.aneb-bar--dismissible .aneb-bar__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-right: 44px;
}

.aneb-bar__label {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.aneb-bar__content {
    min-width: 0;
}

.aneb-bar__title {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aneb-bar__meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
}

.aneb-bar__meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aneb-bar__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.aneb-bar__status-link {
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.aneb-bar__status-link:hover,
.aneb-bar__status-link:focus {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}

.aneb-bar__status-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.aneb-status--open {
    background: #ffffff;
    color: #0b7f31;
}

.aneb-status--closed {
    background: #ffd54a;
    color: #2d2500;
}

.aneb-bar__dismiss {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.aneb-bar__dismiss:hover,
.aneb-bar__dismiss:focus {
    background: #ffffff;
    color: #0b7f31;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}

.aneb-bar__dismiss:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .aneb-bar__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        width: min(100% - 24px, 520px);
        padding: 12px 0;
    }

    .aneb-bar--dismissible .aneb-bar__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding-right: 38px;
    }

    .aneb-bar:not(.aneb-bar--dismissible) .aneb-bar__inner {
        grid-template-columns: 1fr;
    }

    .aneb-bar__label,
    .aneb-bar__status {
        width: max-content;
        max-width: 100%;
    }

    .aneb-bar__label {
        padding: 6px 8px;
        font-size: 10px;
    }

    .aneb-bar__title {
        margin-bottom: 3px;
        font-size: 15px;
    }

    .aneb-bar__meta {
        gap: 8px;
        font-size: 12px;
    }

    .aneb-bar__status {
        padding: 8px 10px;
        font-size: 12px;
    }

    .aneb-bar__dismiss {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}
