/**
 * RFQ for WooCommerce — Quote List page.
 *
 * Two-column layout: quote table on the left, request form on the
 * right, matching the approved design.
 */

.rfq-wc-quote-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 48px;
	align-items: start;
}

@media ( max-width: 782px ) {
	.rfq-wc-quote-grid {
		grid-template-columns: 1fr;
	}
}

.rfq-wc-quote-list-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.rfq-wc-quote-list-title,
.rfq-wc-quote-form-title {
	font-size: 26px;
	font-weight: 800;
	margin: 0;
}

.rfq-wc-clear-quote-link {
	background: none;
	border: none;
	color: #b3261e;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

.rfq-wc-quote-table {
	width: 100%;
	border-collapse: collapse;
}

.rfq-wc-quote-table thead th {
	text-align: left;
	font-weight: 600;
	color: #444444;
	background: #f7f7f7;
	padding: 12px 10px;
	border-bottom: 1px solid #e2e2e2;
}

.rfq-wc-quote-table td {
	padding: 14px 10px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.rfq-wc-col-remove {
	width: 36px;
}

.rfq-wc-remove-circle {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid #cccccc;
	background: #ffffff;
	color: #888888;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.rfq-wc-remove-circle:hover {
	border-color: #b3261e;
	color: #b3261e;
}

.rfq-wc-col-image img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border: 1px solid #eeeeee;
	border-radius: 4px;
}

.rfq-wc-qty-input {
	width: 60px;
	border: none;
	border-bottom: 1px solid transparent;
	background: transparent;
	text-align: center;
	font-size: 14px;
	-moz-appearance: textfield;
}

.rfq-wc-qty-input:focus {
	border-bottom-color: #14213d;
	outline: none;
}

.rfq-wc-qty-input::-webkit-outer-spin-button,
.rfq-wc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rfq-wc-col-description {
	min-width: 200px;
}

.rfq-wc-description-input {
	width: 100%;
	min-width: 180px;
	min-height: 44px;
	padding: 6px 8px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fafafa;
	font-size: 13px;
	font-family: inherit;
	resize: vertical;
}

.rfq-wc-description-input:focus {
	border-color: #14213d;
	background: #ffffff;
	outline: none;
}

.rfq-wc-btn-primary {
	background: #14213d;
	color: #ffffff;
	border: none;
	padding: 12px 22px;
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 18px;
}

.rfq-wc-btn-primary:hover {
	background: #0d1730;
	color: #ffffff;
}

.rfq-wc-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rfq-wc-quote-form-wrapper .rfq-wc-field {
	margin-bottom: 16px;
}

.rfq-wc-quote-form-wrapper label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
	color: #333333;
}

.rfq-wc-required {
	color: #b3261e;
}

.rfq-wc-quote-form-wrapper input[type='text'],
.rfq-wc-quote-form-wrapper input[type='email'],
.rfq-wc-quote-form-wrapper input[type='tel'],
.rfq-wc-quote-form-wrapper textarea {
	width: 100%;
	border: none;
	border-bottom: 1px solid #cccccc;
	padding: 6px 2px;
	font-size: 14px;
	background: transparent;
	box-sizing: border-box;
}

.rfq-wc-quote-form-wrapper input:focus,
.rfq-wc-quote-form-wrapper textarea:focus {
	border-bottom-color: #14213d;
	outline: none;
}

.rfq-wc-quote-form-feedback.text-success {
	color: #0f7b34;
	margin-bottom: 12px;
}

.rfq-wc-quote-form-feedback.text-danger {
	color: #b3261e;
	margin-bottom: 12px;
}

/* Keep columns legible when the table scrolls horizontally on narrow screens. */
.rfq-wc-quote-table {
	min-width: 640px;
}

@media ( max-width: 782px ) {
	.rfq-wc-quote-list-heading {
		flex-wrap: wrap;
		gap: 8px;
	}

	.rfq-wc-btn-primary {
		width: 100%;
		text-align: center;
	}

	.rfq-wc-remove-circle {
		width: 30px;
		height: 30px;
	}
}
