.ordnt-feedback-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 12000;
    width:
        min(
            360px,
            calc(100vw - 32px)
        );
    display: flex;
    flex-direction: column;
    gap: 9px;
    pointer-events: none;
}


.ordnt-feedback-toast {
    width: 100%;
    display: grid;
    grid-template-columns:
        24px
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #ffffff;
    color: #18304f;
    box-shadow:
        0 12px 30px
        rgba(15, 35, 70, .14);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    animation:
        ordnt-feedback-in
        .18s
        ease-out;
}


.ordnt-feedback-toast.is-leaving {
    opacity: 0;
    transform: translateY(5px);
    transition:
        opacity .18s ease,
        transform .18s ease;
}


.ordnt-feedback-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eaf8f0;
    color: #087a55;
    font-size: 14px;
    font-weight: 900;
}


.ordnt-feedback-copy {
    min-width: 0;
}


@keyframes ordnt-feedback-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

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


html[data-ordnt-device-mode="mobile"]
.ordnt-feedback-stack {
    left: 12px;
    right: 12px;
    bottom:
        calc(
            82px
            + env(safe-area-inset-bottom)
        );
    width: auto;
}


@media (prefers-reduced-motion: reduce) {
    .ordnt-feedback-toast {
        animation: none;
    }

    .ordnt-feedback-toast.is-leaving {
        transition: none;
    }
}


.ordnt-feedback-toast.error {
    border-color: #f0c8ce;
}

.ordnt-feedback-toast.error
.ordnt-feedback-icon {
    background: #fff0f2;
    color: #c0364a;
}

/* Shared warnings are informational and never imply a completed operation. */
.ordnt-feedback-toast.warning {
    border-color: #f0d8a8;
    background: #fffaf0;
    color: #80540c;
}
.ordnt-feedback-toast.warning .ordnt-feedback-icon {
    background: #fff0cd;
    color: #96600b;
}

/* POS: shared feedback portal sits near the bottom, away from the top
   operational filters, with pointer events passing through to controls. */
body.ordnt-pos-live .ordnt-feedback-stack {
    top: auto;
    right: auto;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, calc(100vw - 32px));
    max-height: min(160px, 40dvh);
}
body.ordnt-pos-live .ordnt-feedback-toast {
    box-sizing: border-box;
    height: auto;
    max-height: min(160px, calc(100dvh - 110px));
    overflow-wrap: anywhere;
    align-self: stretch;
    text-align: left;
}
@media (max-width: 650px) {
    body.ordnt-pos-live .ordnt-feedback-stack {
        top: auto;
        right: auto;
        left: 50%;
        /* Above the four POS tabs and the optional blue sale summary. */
        bottom: calc(130px + env(safe-area-inset-bottom, 0px));
        width: min(400px, calc(100vw - 24px));
    }
    body.ordnt-pos-live.ordnt-pos-mobile-checkout .ordnt-feedback-stack {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    /* Ticket confirmation sits in the narrow free strip above the mobile tabs,
       rather than covering Total/Cobrar. Keep it short and nonblocking. */
    body.ordnt-pos-live.ordnt-pos-mobile-ticket-open .ordnt-feedback-stack {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        width: min(340px, calc(100vw - 24px));
    }
    body.ordnt-pos-live.ordnt-pos-mobile-ticket-open .ordnt-feedback-toast{
        max-height: 60px;min-height:0;
        padding:8px 10px;font-size:12px;line-height:1.25;
        pointer-events:none;
    }
    body.ordnt-pos-live .ordnt-feedback-toast {
        align-self: stretch;
        max-height: 140px;
    }
}
