.web-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    z-index: 100;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: min(360px, calc(100% - 32px));
    color: #fff;
    background: var(--toast-background, #1e4976);
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.4;
    pointer-events: none;
}

.web-toast[data-type] {
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(18, 61, 43, .25);
}

.web-toast[data-type="success"] {
    --toast-background: #166534;
}

.web-toast[data-type="warning"] {
    --toast-background: #854d0e;
}

.web-toast[data-type="error"] {
    --toast-background: #991b1b;
}

.web-toast-icon:not(:empty) {
    display: grid;
    place-items: center;
    flex: 0 0 1.35rem;
    height: 1.35rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
}

.web-toast-message {
    min-width: 0;
    overflow-wrap: anywhere;
}

[data-theme="dark"] .web-toast[data-type] {
    color: var(--toast-text);
    box-shadow: inset 0 0 0 1px var(--toast-border), 0 8px 24px #0006;
    --toast-background: #d8ebff;
    --toast-text: #1c3248;
    --toast-border: #5279a0;
}

[data-theme="dark"] .web-toast[data-type="success"] {
    --toast-background: #cef5d8;
    --toast-text: #193b2b;
    --toast-border: #508963;
}

[data-theme="dark"] .web-toast[data-type="warning"] {
    --toast-background: #ffe6ae;
    --toast-text: #403019;
    --toast-border: #a7803f;
}

[data-theme="dark"] .web-toast[data-type="error"] {
    --toast-background: #ffd9d5;
    --toast-text: #422728;
    --toast-border: #a56465;
}
