/* POS3 Online Order Chat-Style Push Notification Banner */
.pos-chat-notification-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(94vw, 450px);
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pos-chat-notif-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(25, 135, 84, 0.35);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(25, 135, 84, 0.12);
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.25s ease;
    animation: posChatSlideDown 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-bs-theme="dark"] .pos-chat-notif-card {
    background: rgba(30, 36, 46, 0.96);
    border-color: rgba(25, 135, 84, 0.5);
    color: #f8f9fa;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pos-chat-notif-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.pos-chat-notif-card.dismissing {
    animation: posChatSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes posChatSlideDown {
    0% {
        transform: translateY(-130%) scale(0.92);
        opacity: 0;
    }
    70% {
        transform: translateY(6px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes posChatSlideUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-140%) scale(0.9);
        opacity: 0;
    }
}

.pos-chat-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pos-chat-notif-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-chat-notif-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17594a 0%, #198754 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(23, 89, 74, 0.35);
}

.pos-chat-notif-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: posPulseGlow 1.8s infinite;
}

@keyframes posPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.pos-chat-notif-title-group {
    display: flex;
    flex-direction: column;
}

.pos-chat-notif-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #17594a;
    line-height: 1.2;
}

[data-bs-theme="dark"] .pos-chat-notif-title {
    color: #2ecc71;
}

.pos-chat-notif-time {
    font-size: 0.72rem;
    color: #6c757d;
}

[data-bs-theme="dark"] .pos-chat-notif-time {
    color: #a0aec0;
}

.pos-chat-notif-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pos-chat-notif-close-btn:hover {
    background: rgba(0,0,0,0.08);
    color: #dc3545;
}

[data-bs-theme="dark"] .pos-chat-notif-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #ff6b6b;
}

.pos-chat-notif-body {
    padding-left: 46px;
}

.pos-chat-customer-row {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pos-chat-customer-name {
    color: #212529;
}

[data-bs-theme="dark"] .pos-chat-customer-name {
    color: #ffffff;
}

.pos-chat-customer-phone {
    font-weight: 600;
    font-size: 0.8rem;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
    padding: 1px 7px;
    border-radius: 12px;
}

[data-bs-theme="dark"] .pos-chat-customer-phone {
    color: #6ea8fe;
    background: rgba(13, 110, 253, 0.2);
}

.pos-chat-summary-row {
    font-size: 0.84rem;
    color: #495057;
    margin-bottom: 6px;
    line-height: 1.35;
}

[data-bs-theme="dark"] .pos-chat-summary-row {
    color: #ced4da;
}

.pos-chat-amount-badge {
    font-weight: 700;
    color: #198754;
    font-size: 0.9rem;
}

[data-bs-theme="dark"] .pos-chat-amount-badge {
    color: #2ecc71;
}

.pos-chat-note-box {
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #856404;
    margin-bottom: 8px;
    font-style: italic;
}

[data-bs-theme="dark"] .pos-chat-note-box {
    background: rgba(255, 193, 7, 0.2);
    color: #ffe082;
}

.pos-chat-notif-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.pos-chat-btn-action {
    font-size: 0.82rem;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(25, 135, 84, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease;
}

.pos-chat-btn-action:active {
    transform: scale(0.96);
}

.pos-chat-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

[data-bs-theme="dark"] .pos-chat-progress-wrap {
    background: rgba(255, 255, 255, 0.1);
}

.pos-chat-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #198754, #20c997);
    transform-origin: left center;
}

@keyframes posChatProgressTimer {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}
