/* ============================================================
   SHOPINS TOAST NOTIFICATIONS — light modern style
   ============================================================ */
#shopins-toast-wrap {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: min(380px, calc(100vw - 56px));
}

.shopins-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 18px 16px;
    border-radius: 16px;
    font-size: .875rem;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.5;
    background: #ffffff;
    color: #1a2240;
    box-shadow:
        0 4px 6px rgba(15, 23, 60, .06),
        0 12px 32px rgba(15, 23, 60, .12),
        0 1px 2px rgba(15, 23, 60, .04);
    border: 1px solid rgba(200, 210, 240, .6);
    pointer-events: all;
    cursor: default;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-24px) scale(.97);
    transition: opacity .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1);
    word-break: break-word;
}
.shopins-toast--in  { opacity: 1; transform: translateX(0) scale(1); }
.shopins-toast--out { opacity: 0; transform: translateX(-24px) scale(.97); transition-duration: .22s; }

/* barevný pruh nahoře */
.shopins-toast::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}
.shopins-toast--success::before { background: #22c55e; }
.shopins-toast--error::before   { background: #ef4444; }
.shopins-toast--warning::before { background: #f59e0b; }
.shopins-toast--info::before    { background: #3b6bfa; }

/* ikona */
.shopins-toast__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.shopins-toast--success .shopins-toast__icon { background: #dcfce7; color: #16a34a; }
.shopins-toast--error   .shopins-toast__icon { background: #fee2e2; color: #dc2626; }
.shopins-toast--warning .shopins-toast__icon { background: #fef9c3; color: #d97706; }
.shopins-toast--info    .shopins-toast__icon { background: #eff6ff; color: #2563eb; }
.shopins-toast__icon svg { display: block; }

/* obsah */
.shopins-toast__body { flex: 1 1 auto; padding-top: 2px; }

.shopins-toast__title {
    font-weight: 700;
    font-size: .88rem;
    margin: 0 0 2px;
    color: #111c50;
    line-height: 1.3;
}
.shopins-toast__msg {
    color: #5a6282;
    font-size: .82rem;
    line-height: 1.45;
}
.shopins-toast__msg:empty { display: none; }

/* zavírací tlačítko */
.shopins-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #b0bacf;
    padding: 2px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    display: flex;
    align-items: center;
}
.shopins-toast__close:hover {
    color: #111c50;
    background: #f0f3fa;
}

/* progress bar */
.shopins-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 16px 16px;
    transform-origin: left center;
    animation: toast-progress linear forwards;
    opacity: .35;
}
.shopins-toast--success .shopins-toast__progress { background: #22c55e; }
.shopins-toast--error   .shopins-toast__progress { background: #ef4444; }
.shopins-toast--warning .shopins-toast__progress { background: #f59e0b; }
.shopins-toast--info    .shopins-toast__progress { background: #3b6bfa; }

@keyframes toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

@media (max-width: 600px) {
    #shopins-toast-wrap { bottom: 14px; left: 12px; right: 12px; max-width: none; }
}
