/* v1.5.56 — Toast "เพิ่มลงตะกร้าแล้ว" แถบบางกลางล่างจอ
   position:fixed → เนื้อหาหน้าไม่ขยับแม้แต่พิกเซลเดียว */

.kcrm-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(16px);
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 11px 8px 11px 18px;
    border-radius: 999px;
    background: #04342C;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.kcrm-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.kcrm-toast-ico {
    flex: none;
    display: inline-flex;
    color: #5DCAA5;
}

.kcrm-toast-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kcrm-toast-text strong {
    font-weight: 600;
}

.kcrm-toast-link {
    flex: none;
    padding-left: 12px;
    margin-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, .25);
    color: #9FE1CB !important;
    font-size: 13px;
    text-decoration: none !important;
    white-space: nowrap;
}

.kcrm-toast-link:hover {
    color: #ffffff !important;
}

.kcrm-toast-x {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
    border-radius: 50%;
}

.kcrm-toast-x:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
}

/* มือถือ: ชิดขอบมากขึ้น ตัวหนังสือเล็กลงเล็กน้อย */
@media (max-width: 480px) {
    .kcrm-toast {
        left: 12px;
        right: 12px;
        bottom: 14px;
        max-width: none;
        transform: translateY(16px);
        font-size: 13px;
        padding: 10px 6px 10px 14px;
    }
    .kcrm-toast.is-show {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kcrm-toast { transition: opacity .01s; }
}
