.iws-order-toast-host {
    --mc-toast-top: max(76px, calc(env(safe-area-inset-top, 0px) + 12px));
    --mc-toast-gutter: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    position: fixed;
    z-index: 2147483000;
    /* Toastify sets top inline when it repositions its hosts. */
    top: var(--mc-toast-top) !important;
    inset-inline: 0;
    width: min(520px, calc(100% - 2 * var(--mc-toast-gutter)));
    margin-inline: auto;
    max-height: calc(100vh - var(--mc-toast-top) - 16px);
    max-height: calc(100dvh - var(--mc-toast-top) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 14px;
    box-shadow: 0 8px 30px #12243a38;
}
#mc-order-toasts { display: grid; gap: 6px; }
.mc-order-toast {
    --mc-state-bg: #18498b;
    position: relative;
    overflow: hidden;
    border: 1px solid #bac9d9;
    border-radius: 14px;
    background: #fff;
    color: #172d45;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.mc-order-toast[data-state="success"] { --mc-state-bg: #166347; }
.mc-order-toast[data-state="attention"] { --mc-state-bg: #81480e; }
.mc-order-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 16px 20px;
    color: #fff;
    background: var(--mc-state-bg);
}
.mc-order-toast:is([data-state="attention"], [data-state="success"]) .mc-order-status {
    padding-inline-end: 62px;
}
.mc-order-status strong { color: inherit; font-size: 20px; line-height: 1.35; }
.mc-order-status p { margin: 3px 0 0; color: #fff; font-size: 15px; line-height: 1.5; }
.mc-order-signal {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff26;
}
.mc-order-signal::before {
    content: "";
    box-sizing: border-box;
    width: 17px;
    height: 17px;
    border: 2px solid #ffffff60;
    border-top-color: #fff;
    border-right-color: #fff;
    border-radius: 50%;
    animation: mc-order-spin .9s linear infinite;
}
.mc-order-toast[data-state="success"] .mc-order-signal::before {
    width: 8px;
    height: 15px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-radius: 0;
    transform: translateY(-2px) rotate(45deg);
    animation: none;
}
.mc-order-toast[data-state="attention"] .mc-order-signal::before {
    content: "!";
    width: auto;
    height: auto;
    border: 0;
    font: bold 20px/1 sans-serif;
    animation: none;
}
.mc-order-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
    padding: 5px 20px;
}
.mc-order-meta { min-width: 0; }
.mc-order-meta small {
    display: block;
    color: #405570;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.mc-order-meta small:empty { display: none; }
.mc-order-footer a, .mc-order-toast button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 600;
    font-size: 14px;
}
.mc-order-footer a {
    color: #18498b;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mc-order-toast button {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.mc-order-toast button:hover { background: #ffffff25; }
.mc-order-toast button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.mc-order-footer a:focus-visible { outline: 2px solid #18498b; outline-offset: 2px; }
.mc-order-toast [hidden] { display: none; }
@keyframes mc-order-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mc-order-signal::before { animation: none; } }
@media (max-width: 600px) {
    .iws-order-toast-host { --mc-toast-top: max(68px, calc(env(safe-area-inset-top, 0px) + 8px)); }
    .mc-order-status { padding: 12px 14px; gap: 10px; }
    .mc-order-status strong { font-size: 17px; }
    .mc-order-status p { font-size: 14px; }
    .mc-order-signal { width: 27px; height: 27px; }
    .mc-order-footer { padding: 4px 14px; gap: 0 8px; }
}
