/* C2C System Styles (Header Buttons, Badges, Sell Landing, Auth, Form, Chat) */
.header-action.c2c-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
}
.header-action.c2c-login-link:hover {
    background: #fff5f0;
    border-color: #f26d21;
    color: #f26d21;
}
.header-action.c2c-login-link.is-logged-in {
    border-color: #16a34a;
    color: #15803d;
    background: #f0fdf4;
}
.header-action.c2c-sell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f26d21 0%, #e65100 100%) !important;
    color: #ffffff !important;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(242, 109, 33, 0.32);
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}
.header-action.c2c-sell-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(242, 109, 33, 0.42);
    opacity: 0.96;
    color: #ffffff !important;
}

/* SP upper row above existing header row (logo / search / fav / menu) */
.sp-c2c-top-row {
    display: none;
}
.sp-c2c-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 0.92rem;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}
.sp-c2c-icon-btn.is-logged-in {
    color: #15803d;
}
.sp-c2c-sell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f26d21 0%, #e65100 100%) !important;
    color: #ffffff !important;
    font-size: 0.73rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(242, 109, 33, 0.28);
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 4px 10px 4px !important;
        align-content: space-between !important;
        box-sizing: border-box !important;
    }
    header .logo {
        height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    header .mobile-header-actions {
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
    }
    header .mobile-header-actions .sp-action-btn {
        height: 32px !important;
        padding: 0 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .sp-c2c-top-row {
        display: flex !important;
        width: 100% !important;
        height: 22px !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 0 2px 0 !important;
        padding: 0 !important;
        border-bottom: none !important;
    }
    .sp-action-header {
        flex-wrap: wrap !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 4px 10px 4px !important;
        align-content: space-between !important;
        box-sizing: border-box !important;
    }
    .sp-action-header .sp-c2c-top-row {
        margin: 0 0 2px 0 !important;
        padding: 0 !important;
    }
    .sp-action-header > .sp-action-btn {
        height: 32px !important;
        padding: 0 8px !important;
        font-size: 1.18rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    header .mobile-header-actions .sp-action-btn.fav-link,
    .sp-action-header > .sp-action-btn.fav-link {
        padding-right: 20px !important;
    }
    header .mobile-header-actions .sp-action-btn.fav-link .fav-badge,
    .sp-action-header > .sp-action-btn.fav-link .fav-badge,
    .fav-badge.overlap {
        top: 1px !important;
        right: -2px !important;
    }
}

/* Prevent fixed header from covering focused/invalid form fields or error alerts */
html {
    scroll-padding-top: 95px;
}
.c2c-alert,
.c2c-form-table tr,
.c2c-form-table th,
.c2c-form-table td,
.c2c-input,
.c2c-select,
.c2c-textarea,
input[type="radio"],
input[type="checkbox"] {
    scroll-margin-top: 95px;
}

/* Individual C2C Badge */
.badge-c2c-personal {
    background: #7c3aed !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* C2C Layout Containers */
.c2c-container {
    max-width: 960px;
    width: 100%;
    margin: 28px auto 60px;
    padding: 0 16px;
}
.c2c-page-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.c2c-page-subtitle {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Sell.php Simple Entry Selector Links */
.c2c-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 26px;
}
@media (max-width: 640px) {
    .c2c-selector-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.c2c-selector-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.c2c-selector-link:hover {
    border-color: #f26d21;
    background: #fffaf5;
    transform: translateY(-1px);
}
.c2c-selector-link.active {
    border-color: #f26d21;
    background: #fff5f0;
    color: #d95a16;
    box-shadow: 0 4px 12px rgba(242, 109, 33, 0.16);
}

.c2c-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .c2c-grid-2 {
        grid-template-columns: 1fr;
    }
}
.c2c-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.c2c-card-header {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.c2c-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.c2c-feature-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #1e293b;
}
.c2c-feature-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 1px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bike-Passion Style 3-Step Selector (メーカー > 排気量 > 車種) */
.bp-selector-box {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}
.bp-selector-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 768px) {
    .bp-selector-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
.bp-step-col label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 6px;
}
.bp-select {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.96rem;
    font-weight: 700;
    border: 2px solid #94a3b8;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0f172a;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.bp-select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
}
.bp-select.bp-selected {
    background-color: #F2FFDD !important;
    border-color: #65a30d !important;
}

/* C2C Form Table */
.c2c-form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.c2c-form-table th,
.c2c-form-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}
.c2c-form-table th {
    width: 240px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
}
@media (max-width: 640px) {
    .c2c-form-table th,
    .c2c-form-table td {
        display: block;
        width: 100%;
    }
    .c2c-form-table th {
        border-bottom: none;
        padding-bottom: 6px;
    }
}
.c2c-req-badge {
    display: inline-block;
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.c2c-form-table th .c2c-req-badge {
    float: right;
    margin-top: 1px;
}
.c2c-input,
.c2c-textarea,
.c2c-select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
}
.c2c-input:focus,
.c2c-textarea:focus,
.c2c-select:focus {
    outline: none;
    border-color: #f26d21;
    box-shadow: 0 0 0 3px rgba(242, 109, 33, 0.12);
}
.c2c-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.c2c-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}
.c2c-radio-pill:has(input:checked) {
    background: #F2FFDD;
    border-color: #65a30d;
    color: #1e293b;
}
.c2c-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f26d21 0%, #e65100 100%);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(242, 109, 33, 0.3);
    transition: all 0.2s;
}
.c2c-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(242, 109, 33, 0.4);
}
.c2c-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.c2c-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.c2c-alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}
.c2c-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.c2c-alert-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* 4-Tab Dashboard Navigation (車両出品 | 車両一覧と追加 | 受けた質問 | 発した質問) */
.c2c-dash-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 22px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.c2c-dash-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 10px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
    line-height: 1.25;
}
.c2c-dash-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
}
.c2c-dash-tab.active {
    background: #ffffff;
    color: #f26d21;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.c2c-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 800;
}
.c2c-dash-tab.active .c2c-tab-badge {
    background: #ffedd5;
    color: #c2410c;
}
.c2c-tab-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
}
@media (max-width: 768px) {
    .c2c-dash-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .c2c-dash-tab {
        padding: 10px 8px;
        font-size: 0.84rem;
    }
}

/* Section Heading Icon & Header Add Button */
.c2c-sec-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.c2c-sec-heading i {
    color: #475569;
    font-size: 1.02em;
}
.c2c-header-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.16s ease;
    white-space: nowrap;
}
.c2c-header-add-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* 出品車両の管理カード（落ち着いた色調＋枠内収まり保証） */
.c2c-manage-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.c2c-manage-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
}
.c2c-manage-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.c2c-manage-thumb-wrap {
    position: relative;
    width: 108px;
    height: 81px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: block;
}
.c2c-manage-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.c2c-manage-photo-cnt {
    position: absolute;
    right: 5px;
    bottom: 5px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1.2;
}
.c2c-manage-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.c2c-manage-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.c2c-st-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}
.c2c-st-pill.is-active i {
    color: #16a34a;
    font-size: 0.55rem;
}
.c2c-st-pill.is-sold,
.c2c-st-pill.is-cancelled {
    background: #f1f5f9;
    color: #64748b;
}
.c2c-manage-date {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}
.c2c-manage-title {
    font-weight: 800;
    font-size: 0.98rem;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}
.c2c-manage-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.c2c-manage-price {
    font-weight: 800;
    font-size: 1.06rem;
    color: #0f172a;
    line-height: 1.2;
}
.c2c-manage-price-unit {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-left: 2px;
}
.c2c-manage-stats {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}
.c2c-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.c2c-manage-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}
.c2c-manage-btn-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.c2c-mbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.16s ease;
    white-space: nowrap;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
.c2c-mbtn-view {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.c2c-mbtn-view:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #0f172a;
}
.c2c-mbtn-edit {
    background: #334155;
    border: 1px solid #334155;
    color: #ffffff;
}
.c2c-mbtn-edit:hover {
    background: #1e293b;
    border-color: #1e293b;
}
.c2c-manage-status-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin: 0;
    box-sizing: border-box;
    max-width: 100%;
}
.c2c-manage-status-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.c2c-manage-status-select {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    padding: 7px 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    min-width: 130px;
    box-sizing: border-box;
}
.c2c-mbtn-apply {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.16s ease;
    box-sizing: border-box;
}
.c2c-mbtn-apply:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}
@media (max-width: 640px) {
    .c2c-manage-thumb-wrap {
        width: 92px;
        height: 70px;
    }
    .c2c-manage-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .c2c-manage-btn-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }
    .c2c-mbtn {
        width: 100%;
        padding: 8px 6px;
        font-size: 0.76rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .c2c-manage-status-form {
        width: 100%;
    }
    .c2c-manage-status-select {
        flex: 1;
        min-width: 0;
    }
}

/* =========================================================
   Dedicated Chat Page (`c2c_chat.php`) Navigation & Bubbles
   ========================================================= */
.c2c-chat-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.c2c-chat-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.c2c-chat-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    transition: all 0.16s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.c2c-chat-back-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}
.c2c-chat-back-btn.is-primary {
    background: #334155;
    color: #ffffff;
    border-color: #334155;
}
.c2c-chat-back-btn.is-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.c2c-chat-vehicle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.c2c-chat-vehicle-thumb {
    width: 84px;
    height: 63px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
    background: #f1f5f9;
}

.c2c-chat-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}
.c2c-chat-box-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.c2c-chat-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c2c-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 88%;
}
.c2c-msg-row.is-other {
    align-self: flex-start;
    flex-direction: row;
}
.c2c-msg-row.is-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.c2c-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 4px;
}
.c2c-msg-avatar.is-seller {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}
.c2c-msg-avatar.is-buyer {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.c2c-msg-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.c2c-msg-row.is-mine .c2c-msg-col {
    align-items: flex-end;
}
.c2c-msg-row.is-other .c2c-msg-col {
    align-items: flex-start;
}

.c2c-msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 4px;
    padding: 0 2px;
}
.c2c-msg-sender {
    font-weight: 800;
    color: #334155;
}
.c2c-msg-row.is-mine .c2c-msg-sender {
    color: #0369a1;
}
.c2c-msg-pub-badge {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 999px;
}

.c2c-msg-bubble {
    padding: 12px 15px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #0f172a;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.c2c-msg-row.is-other .c2c-msg-bubble {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top-left-radius: 4px;
}
.c2c-msg-row.is-mine .c2c-msg-bubble {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-top-right-radius: 4px;
}
.c2c-msg-text {
    white-space: pre-wrap;
}

.c2c-public-qa-box {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #93c5fd;
}

.c2c-chat-reply-form {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
}

@media (max-width: 640px) {
    .c2c-msg-row {
        max-width: 96%;
    }
    .c2c-chat-back-btn {
        font-size: 0.78rem;
        padding: 7px 11px;
    }
}


