/* ============================================================
   Butsugu Marketplace Core – Inquiry Styles
   ============================================================ */

/* ----------------------------------------------------------
   見積もりフォーム
   ---------------------------------------------------------- */
.butsugu-inquiry-wrap {
	margin-top: 32px;
	padding: 24px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
}

.butsugu-inquiry-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #212529;
	padding-bottom: 10px;
	border-bottom: 2px solid #0073aa;
}

.butsugu-inquiry-notice {
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 14px;
	margin-bottom: 16px;
}

.butsugu-inquiry-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.butsugu-inquiry-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.butsugu-inquiry-field {
	margin-bottom: 16px;
}

.butsugu-inquiry-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #495057;
	margin-bottom: 6px;
}

.butsugu-required {
	color: #dc3545;
	margin-left: 2px;
}

.butsugu-inquiry-input,
.butsugu-inquiry-textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #212529;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.butsugu-inquiry-input:focus,
.butsugu-inquiry-textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.butsugu-inquiry-input[type="number"] {
	max-width: 160px;
}

.butsugu-inquiry-textarea {
	resize: vertical;
	min-height: 96px;
}

.butsugu-inquiry-submit {
	display: inline-block;
	padding: 10px 24px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}

.butsugu-inquiry-submit:hover {
	background: #005a87;
}

/* ----------------------------------------------------------
   見積もり一覧（ショートコード）
   ---------------------------------------------------------- */
.butsugu-inquiry-list {
	overflow-x: auto;
	margin: 24px 0;
}

.butsugu-inquiry-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	overflow: hidden;
}

.butsugu-inquiry-table thead {
	background: #f1f3f5;
}

.butsugu-inquiry-table th {
	padding: 10px 14px;
	text-align: left;
	font-weight: 700;
	color: #495057;
	white-space: nowrap;
	border-bottom: 2px solid #dee2e6;
}

.butsugu-inquiry-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #f1f3f5;
	color: #212529;
	vertical-align: top;
}

.butsugu-inquiry-table tr:last-child td {
	border-bottom: none;
}

.butsugu-inquiry-table tr:hover td {
	background: #f8f9fa;
}

.butsugu-inquiry-table a {
	color: #0073aa;
	text-decoration: none;
}

.butsugu-inquiry-table a:hover {
	text-decoration: underline;
}

.butsugu-col-date     { white-space: nowrap; }
.butsugu-col-qty      { text-align: right; white-space: nowrap; }
.butsugu-col-delivery { white-space: nowrap; }
.butsugu-col-message  { max-width: 240px; word-break: break-word; }
.butsugu-col-status   { white-space: nowrap; }

.butsugu-deleted {
	color: #6c757d;
	font-style: italic;
}

/* ステータスバッジ */
.butsugu-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

.butsugu-status-open    { background: #cce5ff; color: #004085; }
.butsugu-status-replied { background: #d4edda; color: #155724; }
.butsugu-status-closed  { background: #e2e3e5; color: #383d41; }

/* ログイン誘導・権限なし・空 */
.butsugu-inquiry-login,
.butsugu-inquiry-no-perm,
.butsugu-inquiry-empty {
	color: #6c757d;
	font-size: 14px;
	padding: 24px 16px;
	text-align: center;
}

/* レスポンシブ */
@media (max-width: 600px) {
	.butsugu-inquiry-wrap {
		padding: 16px;
	}
	.butsugu-inquiry-input[type="number"] {
		max-width: 100%;
	}
}
