/* WP Community Pro Advanced 共通スタイル例 */

.wpc-user-list { display: flex; flex-wrap: wrap; gap: 16px; }
.wpc-user-item { border: 1px solid #ddd; padding: 12px; border-radius: 8px; width: 260px; background: #fafafa; }
.wpc-avatar { margin-bottom: 8px; }
.wpc-user-meta { font-size: 14px; }
.wpc-name { font-weight: bold; margin-bottom: 6px; }
.wpc-chip { display: inline-block; background: #eee; border-radius: 12px; padding: 2px 8px; margin-left: 4px; font-size: 12px; }
.wpc-actions { margin-top: 8px; }
.wpc-btn { background: #0073aa; color: #fff; border: none; border-radius: 4px; padding: 6px 12px; cursor: pointer; }
.wpc-btn-small { font-size: 12px; padding: 4px 8px; }
.wpc-error { color: #c00; margin: 8px 0; }
.wpc-ok { color: #090; margin: 8px 0; }
.wpc-form { margin-bottom: 16px; }
.wpc-chat { border: 1px solid #ccc; border-radius: 8px; padding: 12px; background: #fff; max-width: 500px; margin: 0 auto; }
.wpc-chat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wpc-chat-title { font-weight: bold; }
.wpc-chat-tools { margin-left: auto; }
.wpc-chat-body { min-height: 120px; max-height: 300px; overflow-y: auto; background: #f9f9f9; margin-bottom: 8px; padding: 8px; }
.wpc-chat-input { display: flex; gap: 8px; }
.wpc-chat-input textarea { flex: 1; resize: vertical; }
.wpc-chat-tools { margin-left: auto; }
.wpc-warning { background: #fffbe5; color: #a00; padding: 8px; border-radius: 4px; margin: 8px 0; }
.wpc-badge-total { background: #0073aa; color: #fff; border-radius: 50%; padding: 2px 8px; font-size: 12px; margin-left: 4px; }
.wpc-profile-view { max-width: 500px; margin: 0 auto; background: #fafafa; border-radius: 8px; padding: 16px; }
.wpc-avatar-large { margin-bottom: 12px; }
.wpc-profile-list { list-style: none; padding: 0; }
.wpc-profile-list li { margin-bottom: 6px; }
.wpc-profile-chat { margin-top: 16px; }
.wpc-form .wpc-grid { display: flex; gap: 12px; }
.wpc-form .wpc-grid p { flex: 1; }
.wpc-muted { color: #888; font-size: 13px; }

/* プロフィール：受信メッセージ一覧 */
.wpc-profile-inbox { margin-top: 16px; }
.wpc-inbox-list { display: flex; flex-direction: column; gap: 10px; }
.wpc-inbox-item { border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 10px 12px; }
.wpc-inbox-link { display: inline-block; font-weight: 600; color: #0073aa; text-decoration: none; }
.wpc-inbox-link:hover { text-decoration: underline; }
.wpc-inbox-title { font-weight: 600; }
.wpc-inbox-meta { margin-top: 2px; }
.wpc-inbox-snippet { margin-top: 6px; color: #333; font-size: 14px; line-height: 1.5; }
.wpc-unread-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #d63638; color: #fff; font-size: 12px; line-height: 1.4; vertical-align: middle; }

/* myページ：メッセージ一覧のページング */
.wpc-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wpc-page-link { display: inline-block; padding: 4px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #0073aa; text-decoration: none; font-size: 13px; }
.wpc-page-link:hover { background: #f3f4f5; }
.wpc-page-link.is-current { background: #0073aa; color: #fff; border-color: #0073aa; }
.wpc-page-prev, .wpc-page-next { font-weight: 600; }

.wpc-profile-image-preview { margin: 8px 0 16px; }
.wpc-profile-image-preview img { display: block; max-width: 240px; height: auto; }

/* myページ：上部アクション */
.wpc-profile-top-actions { margin: 8px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* myページ：最下部アクション */
.wpc-profile-bottom-actions { margin-top: 16px; padding-top: 12px; border-top: 1px solid #eee; }
.wpc-profile-bottom-actions-primary { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wpc-profile-bottom-actions-secondary { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* myページ：クレジットカード登録状況 */
.wpc-card-status { margin-top: 12px; padding: 10px 12px; border: 1px solid #eee; background: #fff; border-radius: 8px; }
.wpc-card-status-title { font-weight: 700; margin-bottom: 6px; }
.wpc-card-status.is-registered { border-color: #cfe7cf; background: #f4fbf4; }
.wpc-card-status.is-unregistered { border-color: #f1c7c7; background: #fff7f7; }
.wpc-card-status-actions { margin-top: 8px; }

/* myページ編集：最上部アクション */
.wpc-profile-edit-top-actions { margin: 0 0 10px; }

/* 1対1 DM */
.wpc-chat-msg { margin: 6px 0; padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px; background: #fff; }
.wpc-chat-msg-me { margin-left: 18%; }
.wpc-chat-msg-other { margin-right: 18%; background: #fafafa; }
.wpc-chat-msg-text { white-space: pre-wrap; word-break: break-word; }
.wpc-chat-msg-meta { margin-top: 4px; font-size: 12px; color: #888; }
.wpc-chat-msg-from, .wpc-chat-msg-time { font-size: inherit; }

/* 1対1 DM：相手プロフィール（送信フォーム下） */
.wpc-dm-back { margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.wpc-dm-back-profile { display: inline-block; background: #6c757d; }
.wpc-dm-back-profile:hover { opacity: 0.9; }
.wpc-dm-back-users { display: inline-block; background: #2271b1; }
.wpc-dm-back-users:hover { opacity: 0.9; }
.wpc-dm-profile { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.wpc-dm-profile-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wpc-dm-profile-title { font-weight: 700; }
.wpc-dm-profile-body { display: flex; gap: 12px; align-items: flex-start; }
.wpc-dm-profile-avatar img,
.wpc-dm-profile-avatar .avatar { border-radius: 50%; }
.wpc-dm-profile-name { font-weight: 600; margin-bottom: 4px; }
.wpc-dm-profile-bio { color: #555; font-size: 13px; margin-bottom: 6px; }
.wpc-dm-profile-list { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #333; }
.wpc-dm-profile-list li { margin: 2px 0; }
.wpc-dm-profile-intro { margin-top: 8px; background: #f9f9f9; border: 1px solid #eee; padding: 8px; border-radius: 6px; font-size: 13px; line-height: 1.5; }

@media (max-width: 560px) {
	.wpc-user-item { width: 100%; }
	.wpc-chat { max-width: 100%; }
	.wpc-profile-view { max-width: 100%; }
	.wpc-chat-msg-me { margin-left: 8%; }
	.wpc-chat-msg-other { margin-right: 8%; }
	.wpc-dm-profile-body { flex-direction: column; }
}