/* ── Ragnarock Marketplace — My Account ── */

.rmp-wrap { margin-bottom: 2em; }
.rmp-desc { color: #666; margin-bottom: 1.5em; }
#rmp-submit-form { display: flex; flex-direction: column; gap: 1rem;}

/* Price field */
.rmp-price-wrap { display: inline-flex; align-items: center; gap: 5px; }
.rmp-currency    { font-weight: 700; }

/* Image picker */
.rmp-image-picker { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#rmp-image-preview img { display: block; max-width: 120px; max-height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }

/* Status badge */
.rmp-badge { display: inline-block; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; }

/* Table */
.rmp-table { width: 100%; border-collapse: collapse; }
.rmp-table th, .rmp-table td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: middle; text-align: left; }
.rmp-table th { background: #fafafa; font-weight: 600; font-size: 13px; }
.rmp-table img { object-fit: cover; border-radius: 3px; }
.rmp-reject-reason { color: #c0392b; display: block; margin-top: 4px; margin-left: 4px;}
.rmp-empty { color: #999; font-style: italic; padding: 1em 0; }
#rmp-products-list-approved .action-row, #rmp-products-list-rejected .action-row {display: none !important;}
#rmp-products-list-approved, #rmp-products-list-rejected , #rmp-submissions-list {max-width: 98vw; overflow: auto;}

/* Tabs */
.rmp-tabs { display: flex; border-bottom: 2px solid #ddd; margin-bottom: 1.2em; }
.rmp-tab-btn { background: none; border: none; border-bottom: 3px solid transparent; padding: 8px 20px; margin-bottom: -2px; cursor: pointer; color: #555; font-size: 14px; transition: color .15s, border-color .15s; }
.rmp-tab-btn:hover { color: #222; }
.rmp-tab-btn.active { color: #0073aa; border-bottom-color: #0073aa; font-weight: 600; }

/* Loading */
.rmp-loading { color: #999; font-style: italic; }

/* Responsive */
@media ( max-width: 600px ) {
	.rmp-table thead { display: none; }
	.rmp-table tr  { display: block; border: 1px solid #eee; border-radius: 4px; margin-bottom: 10px; padding: 8px; }
	.rmp-table td  { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px dashed #f0f0f0; }
}


/* Product file uploader */
.rmp-file-uploader {
    margin-top: 6px;
}
#rmp-file-list {
    margin-bottom: 10px;
}
.rmp-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 13px;
}
.rmp-file-item .rmp-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rmp-remove-file {
    background: none;
    border: none;
    color: #a00;
    cursor: pointer;
    font-size: 15px;
    padding: 0 4px;
    line-height: 1;
}
.rmp-remove-file:hover { color: #d00; }

/* Withdraw block */
.rmp-withdraw-block {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8e8e8;
}
.rmp-withdraw-block h6 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.rmp-withdraw-field {
    margin-bottom: 16px;
}
.rmp-withdraw-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}
.rmp-withdraw-field .input-text,
.rmp-withdraw-field textarea {
    width: 100%;
    max-width: 480px;
}
#rmp-withdraw-balance-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}
#rmp-withdraw-messages {
    margin-bottom: 16px;
    max-width: 520px;
}