.toastify.on {
    background: var(--theme-mode-bs-200)!important;
    color: #000;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
}

/* The close button must be easy to see and hit: error toasts never time out, so this is the only way to dismiss them. */
.toastify.on {
    position: fixed;
    padding-right: 44px;
}

.toastify.on .toast-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    font-size: 15px;
    line-height: 1;
    opacity: 1;
    font-weight: 600;
    cursor: pointer;
}

.toastify.on .toast-close:hover {
    background: rgba(0, 0, 0, 0.14);
}

.swal2-container .swal2-close {
    font-weight: 600;
}

/* No ".on" in these selectors: Toastify drops "on" when a toast is closed and keeps the element 400ms while it fades; the layout and
   white look must stay for that time, or the toast turns blue and the ✖ falls under the text right after the click. */
body .toastify.pos-toast {
    --notice-ink: #27667a;
    --notice-soft: #edf6f8;
    box-sizing: border-box;
    display: flex;
    width: min(380px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    min-height: 62px;
    align-items: center;
    gap: 8px;
    padding: 9px 9px 9px 14px;
    border: 1px solid #dce2df;
    border-radius: 8px;
    background: #fff !important;
    color: #17211d;
    box-shadow: 0 6px 24px rgb(15 23 42 / 12%);
    font: 500 13px/20px 'Sora', 'Lexend', sans-serif;
    letter-spacing: 0;
}
body .toastify.pos-toast.pos-toast-success { --notice-ink: #24734b; --notice-soft: #eaf5ee; }
body .toastify.pos-toast.pos-toast-warning { --notice-ink: #956513; --notice-soft: #fff5df; }
body .toastify.pos-toast.pos-toast-error { --notice-ink: #b13d4c; --notice-soft: #fceef0; }
body .toastify.pos-toast .pos-toast-content { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
body .toastify.pos-toast .pos-toast-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 6px; background: var(--notice-soft); color: var(--notice-ink); font-size: 16px; }
body .toastify.pos-toast .pos-toast-text { min-width: 0; overflow-wrap: anywhere; }
/* 44px target (touch minimum), the ✖ stays small; ::after extends the hit area a bit past the button so a near miss still closes.
   2026-11-18: the ✖ is a flex item of the toast, not absolute + translateY(-50%): anything that touched transform/top while it was
   pressed (button:active pulse, a page's own button rules) made it drop ~22px under the pointer, so the click missed. Nothing here
   moves it: no transform, no animation, no offsets. */
body .toastify.pos-toast .toast-close { position: relative; top: auto; right: auto; transform: none !important; animation: none !important; transition: background-color .12s; flex: 0 0 44px; margin: 0; padding: 0; width: 44px; height: 44px; border-radius: 6px; background: transparent; color: #3d4a43; font-size: 16px; opacity: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body .toastify.pos-toast .toast-close::after { content: ""; position: absolute; inset: -6px; }
body .toastify.pos-toast .toast-close:hover { background: #eef1ef; }
body .toastify.pos-toast .toast-close:active { background: #e3e8e5; }
body .toastify.pos-toast .toast-close:focus-visible { outline: 2px solid var(--notice-ink); outline-offset: 2px; }
