/* ======================================================
   ONPAL WEB — UI Feedback Toast
   File: /web/assets/ui_feedback.css
====================================================== */

.op-ui-toast-root {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99999;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.op-ui-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 38px 1fr 28px;
    gap: 10px;
    align-items: start;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dceee2;
    border-left: 5px solid #0b8f3a;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    animation: opToastIn 0.18s ease-out;
}

.op-ui-toast__icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: #eaf7ee;
    color: #0b7a31;
}

.op-ui-toast__title {
    margin: 0;
    color: #14251a;
    font-size: 14px;
    font-weight: 900;
}

.op-ui-toast__message {
    margin: 3px 0 0;
    color: #51645a;
    font-size: 13px;
    line-height: 1.35;
}

.op-ui-toast__close {
    border: 0;
    background: transparent;
    color: #6b7b72;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.op-ui-toast.is-success .op-ui-toast__icon {
    background: #eaf7ee;
    color: #0b7a31;
}

.op-ui-toast.is-error .op-ui-toast__icon {
    background: #fff0ee;
    color: #b42318;
}

.op-ui-toast.is-warning .op-ui-toast__icon {
    background: #fff7e6;
    color: #b76b00;
}

.op-ui-toast.is-info .op-ui-toast__icon {
    background: #edf4ff;
    color: #175cd3;
}

@keyframes opToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media screen and (max-width: 720px) {
    .op-ui-toast-root {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .op-ui-toast {
        grid-template-columns: 34px 1fr 26px;
        border-radius: 14px;
    }

    .op-ui-toast__icon {
        width: 34px;
        height: 34px;
    }
}