.qh-alertas {
    position: fixed;
    left: 50%;
    width: min(1120px, calc(100% - 32px));
    transform: translateX(-50%) translateY(-8px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    font-family: inherit;
}

.qh-alertas[hidden] {
    display: none !important;
}

.qh-alertas--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.qh-alertas--top {
    top: 18px;
}

.qh-alertas--bottom {
    bottom: 18px;
}

.qh-alertas__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px 13px 16px;
    border-radius: 999px;
    color: #314021;
    background: #fbf8ed;
    border: 1px solid rgba(88, 111, 46, 0.28);
    border-left: 5px solid #7d963a;
    box-shadow: 0 12px 32px rgba(32, 42, 20, 0.18);
}

.qh-alertas--warning .qh-alertas__inner {
    color: #513b12;
    background: #fff6de;
    border-color: rgba(190, 132, 22, 0.32);
    border-left-color: #c8942b;
}

.qh-alertas--success .qh-alertas__inner {
    color: #24411f;
    background: #f2f8e8;
    border-color: rgba(81, 127, 52, 0.32);
    border-left-color: #6d9737;
}

.qh-alertas__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(125, 150, 58, 0.13);
    font-size: 16px;
}

.qh-alertas__message {
    font-size: 15px;
    line-height: 1.45;
}

.qh-alertas__message p {
    margin: 0;
}

.qh-alertas__message a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qh-alertas__close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(49, 64, 33, 0.09);
    color: currentColor;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background 160ms ease, transform 160ms ease;
}

.qh-alertas__close:hover,
.qh-alertas__close:focus {
    background: rgba(49, 64, 33, 0.16);
    transform: scale(1.04);
    outline: none;
}

@media (max-width: 640px) {
    .qh-alertas {
        width: calc(100% - 20px);
    }

    .qh-alertas--top {
        top: 10px;
    }

    .qh-alertas--bottom {
        bottom: 10px;
    }

    .qh-alertas__inner {
        border-radius: 18px;
        grid-template-columns: auto 1fr auto;
        padding: 12px;
    }

    .qh-alertas__message {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qh-alertas,
    .qh-alertas__close {
        transition: none;
    }
}
