.infobox-stack {
    display: grid;
    gap: 10px;

    margin: 22px 0 4px;
}

.infobox {
    --infobox-tone: #21C063;
    --infobox-tone-soft: rgba(33, 192, 99, 0.10);
    --infobox-tone-border: rgba(33, 192, 99, 0.18);

    position: relative;

    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: start;

    gap: 12px;

    padding: 13px 12px 13px 14px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);
}

.infobox--success {
    --infobox-tone: #56B782;
    --infobox-tone-soft: rgba(86, 183, 130, 0.09);
    --infobox-tone-border: rgba(86, 183, 130, 0.18);
}

.infobox--warning {
    --infobox-tone: #D9A441;
    --infobox-tone-soft: rgba(217, 164, 65, 0.09);
    --infobox-tone-border: rgba(217, 164, 65, 0.18);
}

.infobox--error {
    --infobox-tone: #DF6D72;
    --infobox-tone-soft: rgba(223, 109, 114, 0.09);
    --infobox-tone-border: rgba(223, 109, 114, 0.18);
}

.infobox-accent {
    position: absolute;

    left: 0;
    top: 11px;
    bottom: 11px;

    width: 2px;

    border-radius: 0 2px 2px 0;

    background: var(--infobox-tone);
}

.infobox-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1px solid var(--infobox-tone-border);
    border-radius: 8px;

    color: var(--infobox-tone);

    background: var(--infobox-tone-soft);
}

.infobox-icon svg {
    width: 15px;
    height: 15px;

    stroke-width: 2;
}

.infobox-content {
    min-width: 0;

    padding-top: 1px;
}

.infobox-title {
    display: block;

    margin-bottom: 2px;

    color: rgba(255, 255, 255, 0.94);

    font-size: 0.82rem;
    font-weight: 700;

    line-height: 1.35;
    letter-spacing: -0.012em;
}

.infobox-message {
    margin: 0;

    color: rgba(255, 255, 255, 0.63);

    font-size: 0.78rem;
    font-weight: 500;

    line-height: 1.5;
}

.infobox-close {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 7px;

    color: rgba(255, 255, 255, 0.40);

    background: transparent;

    cursor: pointer;

    transition:
        color 150ms ease,
        background 150ms ease;
}

.infobox-close:hover {
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.045);
}

.infobox-close:focus-visible {
    outline: 2px solid rgba(33, 192, 99, 0.42);
    outline-offset: 2px;
}

.infobox-close svg {
    width: 16px;
    height: 16px;

    stroke-width: 1.8;
}

.infobox.is-leaving {
    opacity: 0;
    transform: translateY(-4px);

    transition:
        opacity 140ms ease,
        transform 140ms ease;
}

@media (max-width: 560px) {
    .infobox-stack {
        margin-top: 18px;
    }

    .infobox {
        grid-template-columns: 28px minmax(0, 1fr) auto;

        gap: 10px;

        padding:
            12px
            10px
            12px
            13px;

        border-radius: 9px;
    }

    .infobox-icon {
        width: 28px;
        height: 28px;
    }

    .infobox-message {
        font-size: 0.77rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .infobox,
    .infobox-close {
        transition: none !important;
    }
}
