/* SLP Messaging & Notifications public styles */
.slp-messaging-thread-wrap,
.slp-thread-list-wrap,
.slp-notification-center-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.slp-messaging-thread-head,
.slp-thread-card__head,
.slp-notification-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.slp-messaging-thread-meta,
.slp-notification-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.slp-messaging-sub,
.slp-notification-count {
    color: #64748b;
}

.slp-messaging-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
}

.slp-messaging-chip--open {
    background: #dbeafe;
    color: #1d4ed8;
}

.slp-messaging-chip--pending {
    background: #fef3c7;
    color: #b45309;
}

.slp-messaging-chip--closed,
.slp-messaging-chip--archived {
    background: #e5e7eb;
    color: #374151;
}

.slp-messaging-thread-box,
.slp-thread-list,
.slp-notification-list {
    display: grid;
    gap: 14px;
}

.slp-message-card,
.slp-thread-card,
.slp-notification-card,
.slp-thread-compose-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 16px;
}

.slp-message-card--customer {
    border-left: 4px solid #2563eb;
}

.slp-message-card--provider {
    border-left: 4px solid #059669;
}

.slp-message-card--operator,
.slp-message-card--system,
.slp-message-card--guest {
    border-left: 4px solid #7c3aed;
}

.slp-message-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #64748b;
}

.slp-message-card__body {
    line-height: 1.7;
}

.slp-messaging-form textarea,
.slp-thread-compose-box input[type="text"],
.slp-thread-compose-box select,
.slp-thread-compose-box textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.slp-messaging-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
}

.slp-inline-link {
    color: #2563eb;
    text-decoration: none;
}

.slp-inline-link:hover {
    text-decoration: underline;
}

.slp-messaging-notice,
.slp-messaging-empty {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.slp-messaging-notice--success {
    background: #dcfce7;
    color: #166534;
}

.slp-messaging-notice--error {
    background: #fee2e2;
    color: #991b1b;
}

.slp-messaging-empty {
    background: #f8fafc;
    color: #475569;
}

.slp-notification-card.is-unread {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

@media (max-width: 767px) {
    .slp-messaging-thread-head,
    .slp-thread-card__head,
    .slp-notification-card__head {
        flex-direction: column;
        align-items: flex-start;
    }
}
