/**
 * PRORD Contacts List Styles
 *
 * @package RedPro
 */

/* ─── Container ────────────────────────────────────────── */
.prord-contacts-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    font-family: sans-serif;
}

.prord-contacts-items {
    display: flex;
    flex-direction: column;
}

/* ─── Contact Item ─────────────────────────────────────── */
.prord-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.prord-contact-item:last-child {
    border-bottom: none;
}

.prord-contact-item:hover {
    background-color: #e0e6eb;
    border-radius: 10px;
}

/* ─── Avatar + Online Dot ──────────────────────────────── */
.prord-contact-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
}

.prord-contact-avatar {
    width: 42px;
    height: 42px;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    border-radius: 50% !important;
    object-fit: cover;
    background: #f0f0f0;
}

.prord-contact-online-dot {
    position: absolute;
    bottom: 1px;
    left: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid #fff;
}

/* ─── Name ─────────────────────────────────────────────── */
.prord-contact-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Empty State ──────────────────────────────────────── */
.prord-contacts-empty {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ─── Search ───────────────────────────────────────────── */
.prord-contacts-search-wrap {
    margin-bottom: 20px;
}

.prord-contacts-search-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    color: #334155;
    transition: border-color 0.2s;
}

.prord-contacts-search-input:focus {
    border-color: #94a3b8;
    outline: none;
}

/* ─── Loader / Load More ───────────────────────────── */
.prord-contacts-loader {
    display: none;
    text-align: center;
    padding: 10px 0;
}

.prord-contacts-loader .spinner {
    float: none;
    margin: 0 auto;
}

.prord-contacts-load-more {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.prord-contacts-load-more:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.prord-contacts-load-more:active {
    background-color: #cbd5e1;
}