/* ============================================================
   WooCommerce Request a Quote – Frontend Styles
   ============================================================ */

/* ── Add to Quote button wrapper ── */
.wrq-add-to-quote {
	display: inline-block;
	margin-top: 8px;
}

/* ── Button style ── */
.wrq-add-button.button {
	display: inline-block;
	padding: 8px 18px;
	background-color: #0066b4;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.2s ease;
}

.wrq-add-button.button:hover {
	background-color: #004d8a;
	color: #fff;
}

/* ── Link style ── */
.wrq-add-button.wrq-link {
	display: inline-block;
	color: #0066b4;
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
}

.wrq-add-button.wrq-link:hover {
	color: #004d8a;
}

/* ── Loading state ── */
.wrq-add-button.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ── Feedback message ── */
.wrq-feedback {
	display: block;
	margin-top: 6px;
	font-size: 13px;
}

.wrq-feedback.success { color: #388038; }
.wrq-feedback.error   { color: #c02b2b; }
.wrq-feedback.notice  { color: #555; }

.wrq-feedback a {
	margin-left: 4px;
	text-decoration: underline;
}

/* ── Already in list message ── */
.wrq-already-in-list {
	display: inline-block;
	font-size: 13px;
	color: #555;
}

.wrq-already-in-list a {
	margin-left: 4px;
	text-decoration: underline;
}

/* ── Quote list table ── */
.wrq-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.wrq-table th,
.wrq-table td {
	padding: 10px 12px;
	border: 1px solid #e0e0e0;
	vertical-align: middle;
}

.wrq-table thead th {
	background: #f5f5f5;
	font-weight: 600;
	text-align: left;
}

.wrq-table .product-thumbnail img {
	max-width: 60px;
	height: auto;
	display: block;
}

.wrq-table .product-remove a {
	color: #c02b2b;
	font-size: 18px;
	text-decoration: none;
	font-weight: bold;
	line-height: 1;
}

.wrq-table .product-remove a:hover {
	color: #900;
}

/* Removing row animation */
.wrq-table tr.wrq-removing {
	opacity: 0.4;
	pointer-events: none;
}

/* ── SKU ── */
.wrq-sku {
	color: #888;
}

/* ── Update button ── */
.wrq-update-btn {
	margin-top: 8px;
}

/* ── Quote form ── */
.wrq-form-wrapper {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e0e0e0;
}

.wrq-form .form-row {
	margin-bottom: 16px;
}

.wrq-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.wrq-form .input-text {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
	box-sizing: border-box;
}

.wrq-form textarea.input-text {
	min-height: 100px;
	resize: vertical;
}

.wrq-submit-btn {
	padding: 10px 24px;
	background-color: #0066b4;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 15px;
	transition: background-color 0.2s ease;
}

.wrq-submit-btn:hover {
	background-color: #004d8a;
}

/* ── Privacy row ── */
.wrq-privacy-row label {
	font-weight: normal;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.wrq-privacy-row input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

/* ── Notices ── */
.wrq-success,
.wrq-sent {
	background: #d7edda;
	border-left: 4px solid #388038;
	padding: 12px 16px;
	margin-bottom: 20px;
	color: #1e4620;
}

.wrq-errors {
	background: #fde8e8;
	border-left: 4px solid #c02b2b;
	padding: 12px 16px;
	margin-bottom: 20px;
	color: #6c1212;
}

.wrq-errors p {
	margin: 0 0 4px;
}

/* ── Empty list ── */
.wrq-empty {
	color: #888;
	font-style: italic;
}

/* ── Responsive ── */
@media ( max-width: 640px ) {
	.wrq-form .input-text {
		max-width: 100%;
	}

	.wrq-table thead {
		display: none;
	}

	.wrq-table tr {
		display: block;
		border: 1px solid #e0e0e0;
		margin-bottom: 12px;
	}

	.wrq-table td {
		display: block;
		border: none;
		border-bottom: 1px solid #f0f0f0;
		text-align: right;
		padding: 8px 12px;
	}

	.wrq-table td::before {
		content: attr( data-title );
		float: left;
		font-weight: 600;
	}

	.wrq-table .product-thumbnail {
		display: none;
	}
}
