:root {
    --app-alert-bottom-offset: 16px;
}

#app-alert-container {
    position: fixed;
    right: 16px;
    bottom: calc(var(--app-alert-bottom-offset) + 16px);
    width: min(380px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3000;
    pointer-events: none;
}

.app-alert {
    pointer-events: auto;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.app-alert.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-alert-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.app-alert-message {
    font-size: 0.93rem;
    line-height: 1.35;
}

.app-alert-ok {
    border: 0;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.app-alert-error {
    background: linear-gradient(135deg, #ff6a3d 0%, #ff3f2f 100%);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff7f2;
}

.app-alert-error .app-alert-ok {
    background: rgba(255, 255, 255, 0.92);
    color: #ff4d27;
}

.app-alert-success {
    background: #123a21;
    border-color: #2f855a;
    color: #e8fff3;
}

.app-alert-success .app-alert-ok {
    background: #b8f5d5;
    color: #104327;
}

.app-alert-info {
    background: #102e4c;
    border-color: #3182ce;
    color: #e8f4ff;
}

.app-alert-info .app-alert-ok {
    background: #bfddff;
    color: #123e6d;
}

@media (max-width: 768px) {
    #app-alert-container {
        right: 10px;
        width: calc(100vw - 20px);
    }
}
