/*
 * YITH Request a Quote: brand styling for the "Request a Quote" button (price-on-enquiry products)
 * and the quote list page. YITH prints its blue button colours inline with !important, so the
 * button rules need !important too.
 */

/* ---------- Product page: "Request a Quote" button in place of "Add to cart" ---------- */

/* YITH's inline CSS sets this to inline-block with a more specific selector */
.pk-enquiry .yith-ywraq-add-to-quote {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0 !important;
}

.pk-enquiry .yith-ywraq-add-button {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pk-enquiry a.add-request-quote-button.button,
.pk-enquiry .yith_ywraq_add_item_browse_message a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 2.8em;
	margin: 0 !important;
	padding: 0 1.8em;
	border: 2px solid #f7aa9c;
	border-radius: 2em;
	background: #fff !important;
	color: #d67f6f !important;
	font-family: var(--font-family);
	font-size: 1rem !important;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.pk-enquiry a.add-request-quote-button.button:hover,
.pk-enquiry a.add-request-quote-button.button:focus-visible,
.pk-enquiry .yith_ywraq_add_item_browse_message a:hover,
.pk-enquiry .yith_ywraq_add_item_browse_message a:focus-visible {
	border-color: #f7aa9c;
	background: #f7aa9c !important;
	color: #fff !important;
}

/* After adding: "Browse the list" takes the button's place, the confirmation sits below it */
.pk-enquiry .yith_ywraq_add_item_browse_message {
	order: 1;
}

.pk-enquiry .yith_ywraq_add_item_response_message {
	order: 2;
	color: #d67f6f;
	font-size: 13px;
	line-height: 1.3;
}

/* ---------- Quote Cart and checkout: price-on-enquiry items ---------- */

.pk-price-on-enquiry {
	color: #d67f6f;
	white-space: nowrap;
}

.pk-enquiry-note td {
	padding-top: 8px;
	color: #777;
	font-size: 0.85em;
	line-height: 1.4;
}

/* ---------- Quote list page ---------- */

/* Thank-you message after sending */
.yith-request-a-quote-page .woocommerce-message {
	margin: 0 0 24px;
	padding: 48px 24px;
	border: 0;
	border-radius: 24px;
	background: #fff5f2;
	color: #333;
	font-size: 1.2rem;
	text-align: center;
}

.yith-request-a-quote-page .woocommerce-message a {
	display: block;
	margin-top: 12px;
	color: #d67f6f;
	font-size: 1rem;
	font-weight: 600;
}

.ywraq-form-table-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 40px;
	align-items: start;
}

/* Empty list: "No products in list" on load, "Your list is empty" after removing the last item */
.ywraq-form-table-wrapper > p:only-child,
.ywraq-wrapper #yith-ywraq-message:not(:empty) {
	grid-column: 1 / -1;
	margin: 0;
	padding: 48px 24px;
	border-radius: 24px;
	background: #fff5f2;
	font-size: 1.2rem;
	text-align: center;
}

.ywraq-form-table-wrapper #yith-ywraq-form,
.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
	min-width: 0;
	margin: 0;
}

.ywraq-form-table-wrapper #yith-ywrq-table-list {
	float: none;
	width: 100%;
	margin: 0;
}

.ywraq-form-table-wrapper #yith-ywrq-table-list .product-thumbnail img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 12px;
}

.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
	padding: 32px;
	border-radius: 24px;
	background: #fff5f2;
}

.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper h3 {
	margin: 0 0 20px;
	font-size: 1.6rem;
}

.ywraq-form-table-wrapper #yith-ywraq-mail-form .form-row {
	margin: 0 0 16px;
	padding: 0;
}

.ywraq-form-table-wrapper #yith-ywraq-mail-form .input-text {
	width: 100%;
	background: #fff;
}

.ywraq-form-table-wrapper #yith-ywraq-mail-form textarea {
	min-height: 120px;
}

.ywraq-form-table-wrapper #yith-ywraq-mail-form input.raq-send-request {
	width: 100%;
	height: 2.8em;
	margin-top: 4px;
	padding: 0 1.8em;
	border: 0;
	border-radius: 2em;
	background: linear-gradient(135deg, #f7aa9c, #feddd0);
	color: #fff !important;
	font-family: var(--font-family);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.3s;
}

.ywraq-form-table-wrapper #yith-ywraq-mail-form input.raq-send-request:hover {
	background: linear-gradient(135deg, #feddd0, #f7aa9c);
}

@media (max-width: 900px) {
	.ywraq-form-table-wrapper {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
		padding: 24px 20px;
	}
}
