.customer-notification-popover {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(28rem, calc(100vw - 2rem));
    max-height: 34rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
    z-index: 60;
}

.customer-notification-popover.hidden {
    display: none;
}

.customer-ticket-message {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    padding: 1rem;
}

.customer-ticket-message.customer {
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: rgba(129, 140, 248, 0.22);
}

.customer-ticket-message.superadmin {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.customer-ticket-message.system {
    background: #f8fafc;
    border-style: dashed;
}

.customer-ticket-thread {
    max-height: 34rem;
    overflow: auto;
    scroll-behavior: smooth;
}

.customer-ticket-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 600;
}

.customer-ticket-attachment-chip button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.75rem;
}

.customer-ticket-empty {
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 1rem;
    background: #fff;
    color: #64748b;
}

.customer-ticket-list-item.active {
    border-color: rgba(99, 102, 241, 0.32);
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.08);
}

.customer-ticket-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    padding: 0 0.35rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}
