.sn-toast {
    position: fixed;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(340px, calc(100vw - 32px));
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--sf-surface, #fff);
    color: var(--sf-text, #16181d);
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: auto;
}

.sn-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Physical sides on purpose: the corner the merchant picks is the corner the
   visitor sees, in both LTR and RTL storefronts. */
.sn-toast--bottom-left { left: 16px; bottom: 16px; }
.sn-toast--bottom-right { right: 16px; bottom: 16px; }
.sn-toast--top-left { left: 16px; top: 16px; transform: translateY(-14px); }
.sn-toast--top-right { right: 16px; top: 16px; transform: translateY(-14px); }

.sn-toast__image {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0, 0, 0, .05);
}

.sn-toast__body {
    flex: 1 1 auto;
    min-width: 0;
}

.sn-toast__text {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sn-toast__text b {
    font-weight: 700;
}

.sn-toast__meta {
    margin: 3px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: .65;
}

.sn-toast__price {
    font-weight: 700;
    opacity: 1;
    color: var(--sf-primary, #16181d);
}

.sn-toast__close {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    opacity: .4;
    font-size: 15px;
    line-height: 18px;
    cursor: pointer;
}

.sn-toast__close:hover {
    opacity: .9;
}

@media (max-width: 640px) {
    .sn-toast {
        width: auto;
        left: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sn-toast {
        transition: none;
    }
}
