/* One toast style for the whole platform: brand red, white text, a close button at the
   end. Used by showNotification (.notification), the info pages, the developer panel
   and the virtual try-on. */
.notification,
.info-page-toast,
.api-panel-toast,
.vto-toast {
    position: fixed;
    left: 50%;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    min-width: min(280px, calc(100vw - 32px));
    max-width: min(440px, calc(100vw - 32px));
    min-height: 52px;
    margin: 0;
    padding: 12px 14px 12px 18px;
    font-family: Estedad, Vazirmatn, Tahoma, sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.8;
    color: #fff;
    text-align: start;
    white-space: normal;
    direction: rtl;
    background: #b42318;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(180, 35, 24, .28), 0 2px 6px rgba(16, 24, 40, .12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s ease;
}

.notification.is-visible,
.info-page-toast.show,
.api-panel-toast.is-visible,
.vto-toast:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.notification-text,
.toast-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.notification-close,
.toast-close,
.vto-toast-close {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, .82);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: color .15s, background-color .15s;
}

.notification-close:hover,
.toast-close:hover,
.vto-toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.notification-close:focus-visible,
.toast-close:focus-visible,
.vto-toast-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.notification-close svg,
.toast-close svg,
.vto-toast-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* The try-on counter sits over the camera, above its controls. */
.vto-toast {
    position: absolute;
    bottom: calc(132px + var(--vto-safe-bottom, 0px));
    z-index: 21;
}

/* Above the bottom navigation on phones. */
@media (max-width: 768px) {
    .notification,
    .info-page-toast,
    .api-panel-toast {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification,
    .info-page-toast,
    .api-panel-toast,
    .vto-toast {
        transition: none;
    }
}
