/* ============ Espace Communauté : fil des demandes de produits ============ */

.cbzpr-com-section {
    padding-bottom: 0 !important;
}

.cbzpr-community {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 22px;
}

.cbzpr-com-title {
    margin: 0 0 6px;
    font-size: 22px;
    color: #222;
}

.cbzpr-com-sub {
    margin: 0 0 14px;
    color: #667085;
    max-width: 780px;
    line-height: 1.6;
}

/* ---------------- Barre de recherche --------------- */

.cbzpr-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
}

.cbzpr-search-wrap {
    position: relative;
    flex: 1 1 280px;
    max-width: 100%;
}

.cbzpr-search-ic {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    line-height: 1;
    opacity: .7;
    pointer-events: none;
}

.cbzpr-search-wrap input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #222;
}

.cbzpr-search-wrap input:focus {
    outline: none;
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, .12);
}

.cbzpr-search-btn,
.cbzpr-search-reset {
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cbzpr-search-btn {
    background: #4338ca;
    color: #fff;
    border: 1px solid #4338ca;
}

.cbzpr-search-reset {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e5e7eb;
}

.cbzpr-results-note {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #667085;
}

.cbzpr-results-more {
    margin: 10px 0 0;
    font-size: 13px;
    color: #98a2b3;
}

.cbzpr-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #eceef2;
    margin: 0 0 18px;
    padding-bottom: 12px;
}

.cbzpr-tab {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.cbzpr-tab:hover,
.cbzpr-tab:focus {
    color: #fff6ca;
    background: #4338ca;
    color: #fff;
    text-decoration: none;
}

.cbzpr-tab.is-active {
    background: #4338ca;
    color: #fff;
}

.cbzpr-com-empty {
    color: #888;
    margin: 0;
}

/* ---------------- Une demande --------------- */

.cbzpr-item {
    border: 1px solid #eceef2;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #fff;
}

.cbzpr-item-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cbzpr-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2ff;
}

.cbzpr-avatar img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.cbzpr-item-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.cbzpr-item-author {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.cbzpr-item-want {
    font-weight: 400;
    color: #667085;
    font-size: 13px;
}

.cbzpr-item-keyword {
    font-size: 16px;
    font-weight: 600;
    color: #4338ca;
    margin-top: 2px;
    word-break: break-word;
}

.cbzpr-item-date {
    color: #98a2b3;
    font-size: 12px;
    margin-top: 2px;
}

.cbzpr-item-status {
    flex: 0 0 auto;
    text-align: right;
}

.cbzpr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    margin-right: 6px;
}

.cbzpr-badge.is-pending {
    background: #fff7ed;
    color: #b45309;
}

.cbzpr-badge.is-available {
    background: #ecfdf5;
    color: #047857;
}

.cbzpr-prod-link {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4338ca;
    text-decoration: underline;
}

/* Photo du produit recherché */

.cbzpr-item-photo {
    display: block;
    margin: 12px 0 0 52px;
    max-width: 220px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.cbzpr-item-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
}

/* Actions */

.cbzpr-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.cbzpr-like-btn,
.cbzpr-comments-toggle,
.cbzpr-check-toggle,
.cbzpr-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}

.cbzpr-like-btn:hover,
.cbzpr-comments-toggle:hover,
.cbzpr-check-toggle:hover,
.cbzpr-save-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.cbzpr-like-btn.is-liked {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}

.cbzpr-save-btn.is-saved {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.cbzpr-like-count,
.cbzpr-comment-count,
.cbzpr-save-count {
    min-width: 16px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cbzpr-like-label,
.cbzpr-comment-label,
.cbzpr-save-label {
    display: inline-block;
}

.cbzpr-busy {
    opacity: .55;
    cursor: progress;
}

/* ---------------- Bloc « checks » vendeurs --------------- */

.cbzpr-claims {
    margin-top: 10px;
}

.cbzpr-claims-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #047857;
    margin-bottom: 2px;
}

.cbzpr-claims-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.cbzpr-claims-list li {
    font-size: 13px;
    color: #374151;
}

.cbzpr-claim-vendor {
    font-weight: 600;
    color: #047857;
}

.cbzpr-claims-list a,
.cbzpr-claims-list .cbzpr-claim-nolink {
    margin-left: 4px;
    color: #4338ca;
    font-size: 12px;
}

.cbzpr-claim-nolink {
    color: #98a2b3 !important;
    font-style: italic;
}

.cbzpr-check-toggle.is-checked {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.cbzpr-check-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 0;
}

.cbzpr-check-form[hidden] {
    display: none;
}

.cbzpr-check-form input[type="url"] {
    flex: 1 1 240px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}

.cbzpr-check-form button {
    padding: 8px 16px;
    background: #047857;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cbzpr-check-form .cbzpr-check-remove {
    background: transparent;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.cbzpr-create-box {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
    margin-top: 4px;
    border: 1px dashed #c7d2fe;
    border-radius: 8px;
    background: #fbfcff;
}

.cbzpr-create-label {
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #3730a3;
}

.cbzpr-create-box input[type="text"] {
    flex: 1 1 220px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}

.cbzpr-create-btn {
    padding: 8px 16px;
    background: #4338ca;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cbzpr-create-hint {
    flex-basis: 100%;
    font-size: 12px;
    color: #98a2b3;
}

.cbzpr-edit-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #4338ca;
    text-decoration: underline;
}

/* ---------------- Commentaires --------------- */

.cbzpr-comments {
    margin-top: 12px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 12px;
}

.cbzpr-com-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.cbzpr-com-note {
    color: #98a2b3;
    font-size: 13px;
    margin: 0;
}

.cbzpr-com-entry {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.cbzpr-com-avatar {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.cbzpr-com-body {
    flex: 1 1 auto;
    min-width: 0;
}

.cbzpr-com-headline {
    font-size: 13px;
    color: #222;
}

.cbzpr-com-date {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 400;
}

.cbzpr-com-text {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
    margin-top: 2px;
    word-break: break-word;
}

.cbzpr-com-del {
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    color: #b91c1c;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.cbzpr-comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.cbzpr-comment-form textarea {
    flex: 1 1 100%;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    resize: vertical;
}

.cbzpr-comment-form button {
    padding: 8px 18px;
    background: #4338ca;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cbzpr-com-login {
    font-size: 13px;
    color: #667085;
    margin: 0;
}

.cbzpr-com-login a {
    color: #4338ca;
    font-weight: 600;
}

/* ---------------- Pager + flash --------------- */

.cbzpr-com-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.cbzpr-pager-link {
    color: #4338ca;
    font-weight: 600;
    font-size: 13px;
}

.cbzpr-flash {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    background: #4338ca;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.cbzpr-blog-title {
    margin: 0 0 14px;
    font-size: 20px;
}

@media (max-width: 600px) {
    .cbzpr-item-head {
        flex-wrap: wrap;
    }
    .cbzpr-item-status {
        text-align: left;
        width: 100%;
        margin-left: 52px;
    }
    .cbzpr-item-photo {
        margin-left: 0;
    }
    .cbzpr-like-label,
    .cbzpr-comment-label,
    .cbzpr-save-label {
        display: none;
    }
}