/* Notifications look (2026-11-02): new online order cards, the POS bell, and the restyled messages (toastr). */

/* New online order cards: they stay until × is pressed. */
#bv-oa-stack {
    position: fixed;
    top: 70px;
    right: 14px;
    z-index: 99990;
    width: 330px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 2px 8px;
    pointer-events: none;
}
/* In the POS, below the POS header, whose buttons stay free. */
#bv-oa-stack.bv-oa-stack--pos {
    top: 112px;
    max-height: calc(100vh - 126px);
}
[dir="rtl"] #bv-oa-stack {
    right: auto;
    left: 14px;
}
.bv-oa {
    --bv-c: #64748b;
    --bv-bg: #f1f5f9;
    --bv-tx: #475569;
    pointer-events: auto;
    direction: rtl;
    background: #fff;
    border-radius: 12px;
    border-right: 6px solid var(--bv-c);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, .28), 0 4px 8px -4px rgba(15, 23, 42, .14);
    overflow: hidden;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    animation: bv-oa-in .25s ease-out;
    transition: opacity .2s, transform .2s;
}
.bv-oa.bv-oa--express {
    --bv-c: #ea580c;
    --bv-bg: #fff7ed;
    --bv-tx: #c2410c;
}
.bv-oa.bv-oa--bosta {
    --bv-c: #2563eb;
    --bv-bg: #eff6ff;
    --bv-tx: #1d4ed8;
}
.bv-oa.bv-oa--leaving {
    opacity: 0;
    transform: translateX(30px);
}
@keyframes bv-oa-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: none; }
}
.bv-oa-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px 2px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}
.bv-oa-x {
    border: 0;
    background: #f1f5f9;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 28px;
    padding: 0;
    cursor: pointer;
}
.bv-oa-x:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.bv-oa-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 9px;
}
.bv-oa-no {
    direction: ltr;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
}
.bv-oa-badge {
    background: var(--bv-bg);
    color: var(--bv-tx);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}
.bv-oa-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    color: #64748b;
    font-size: 12px;
}
.bv-oa-foot a,
.bv-oa-foot a:hover,
.bv-oa-foot a:focus {
    color: var(--bv-tx);
    font-weight: 700;
    text-decoration: none;
}
.bv-oa-all {
    pointer-events: auto;
    align-self: flex-end;
    border: 0;
    border-radius: 8px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    padding: 6px 12px;
    font: 600 12px Tahoma, Arial, sans-serif;
    cursor: pointer;
}
.bv-oa-all:hover {
    background: #0f172a;
}

/* The bell in the POS tabs bar, with the latest online orders. */
#bv-alerts-bell {
    position: relative;
    font-size: 15px;
    line-height: 1;
}
.bv-bell-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #f97316;
    color: #fff;
    font: 700 11px/18px "Segoe UI", Arial, sans-serif;
}
.bv-bell-count:empty {
    display: none;
}
.bv-bell-panel {
    position: fixed;
    top: 56px;
    right: 12px;
    z-index: 99995;
    width: 320px;
    max-width: calc(100vw - 24px);
    max-height: 65vh;
    overflow-y: auto;
    direction: rtl;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, .45);
    padding: 8px;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.bv-bell-title {
    padding: 4px 8px 8px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}
.bv-bell-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    text-decoration: none;
}
.bv-bell-row:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}
.bv-bell-row.is-open {
    background: #fff7ed;
}
.bv-bell-row b {
    direction: ltr;
}
.bv-bell-row .bv-bell-time {
    margin-right: auto;
    color: #94a3b8;
    font-size: 11.5px;
}
.bv-bell-empty {
    padding: 14px;
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}

/* Messages (toastr): a white card with a coloured edge and icon, dark readable text. "div.toast" outranks toastr's
   own per-type rules, which set their icons with !important. */
#toast-container > div.toast {
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 13px 38px 13px 52px;
    background-color: #fff !important;
    background-image: none !important;
    color: #1e293b !important;
    opacity: 1 !important;
    border-radius: 10px;
    border-left: 5px solid var(--bv-toast, #2563eb);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .08) !important;
    font: 600 13.5px/1.45 "Segoe UI", Tahoma, Arial, sans-serif;
}
#toast-container > div.toast:hover {
    box-shadow: 0 14px 30px -8px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .1) !important;
}
#toast-container > .toast-success { --bv-toast: #16a34a; }
#toast-container > .toast-error { --bv-toast: #dc2626; }
#toast-container > .toast-warning { --bv-toast: #d97706; }
#toast-container > .toast-info { --bv-toast: #2563eb; }
#toast-container > div.toast::before {
    content: 'i';
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bv-toast, #2563eb);
    color: #fff;
    font: 700 13px/24px "Segoe UI", Arial, sans-serif;
    text-align: center;
}
#toast-container > div.toast-success::before { content: '✓'; }
#toast-container > div.toast-error::before { content: '✕'; }
#toast-container > div.toast-warning::before { content: '!'; }
#toast-container .toast-title {
    color: #0f172a;
}
#toast-container .toast-message {
    unicode-bidi: plaintext;
    text-align: start;
}
#toast-container .toast-message a,
#toast-container .toast-message label {
    color: inherit;
}
#toast-container .toast-close-button {
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -12px;
    float: none;
    color: #64748b;
    opacity: .7;
    text-shadow: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}
#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    color: #0f172a;
    opacity: 1;
}
#toast-container .toast-progress {
    background-color: var(--bv-toast, #2563eb);
    opacity: .45;
    height: 3px;
}
