/**
 * YITH WooCommerce Request a Quote on the dark canvas: the "Add to quote" button on product pages, the request page
 * (/request-quote/: list, empty state, request form) and the plugin's notices. Loaded after the plugin's own
 * stylesheet (dependency yith_ywraq_frontend), only where the plugin loads it. Uses the primitives of global.css:
 * secondary button for "Add to quote" and "Update list" (the primary stays "Add to cart" / "Send your request"),
 * form controls 1.5 / .24 / radius 4, hairline rows, meta text .68.
 */

/* The plugin writes its button colours (blue #0066b4) as custom properties inline: point them at the theme. */
:root {
	--ywraq_layout_button_bg_color: transparent;
	--ywraq_layout_button_bg_color_hover: rgba(247,248,249,.06);
	--ywraq_layout_button_border_color: rgba(255,255,255,.4);
	--ywraq_layout_button_border_color_hover: var(--bd-haze);
	--ywraq_layout_button_color: #fff;
	--ywraq_layout_button_color_hover: #fff;
}

/* ---------- Product page: "Add to quote" next to "Add to cart" (secondary button, same height) ---------- */
.yith-ywraq-add-to-quote { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 !important; }
.yith-ywraq-add-to-quote .yith-ywraq-add-button { display: contents !important; }
.yith-ywraq-add-to-quote .yith-ywraq-add-button.hide { display: none !important; }
:root .woocommerce a.add-request-quote-button.button,
:root a.add-request-quote-button.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
	margin: 0; padding: 14.5px 28.5px;
	border: 1.5px solid rgba(255,255,255,.4) !important; border-radius: var(--bd-r-pill);
	background: transparent !important; color: #fff !important;
	font: 700 15px/1.2 var(--wp--preset--font-family--montserrat); text-decoration: none; white-space: nowrap;
	transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out, opacity 180ms ease-out;
}
:root .woocommerce a.add-request-quote-button.button:hover,
:root a.add-request-quote-button.button:hover { border-color: var(--bd-haze) !important; background: rgba(247,248,249,.06) !important; color: #fff !important; }
:root a.add-request-quote-button.button.disabled { opacity: .55; cursor: not-allowed; }
/* AJAX spinner the plugin puts next to the button. */
.yith-ywraq-add-to-quote .ajax-loading, .yith-ywraq-add-to-quote img.ywraq-loader { width: 18px; height: 18px; margin: 0; }
/* After adding: "Product added to the list" / "already in your list" (meta text) and "Browse the list" (text link). */
.yith-ywraq-add-to-quote :is(.yith_ywraq_add_item_product_message, .yith_ywraq_add_item_response_message) {
	font: 600 13.5px/1.45 var(--wp--preset--font-family--montserrat); color: var(--bd-body);
}
.yith-ywraq-add-to-quote .yith_ywraq_add_item_browse_message a {
	display: inline-flex; align-items: center; min-height: 44px;
	font: 700 14px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-sun);
	text-decoration: underline; text-underline-offset: 3px;
}
.yith-ywraq-add-to-quote .yith_ywraq_add_item_browse_message a:hover { color: var(--bd-haze); }
.bd-pp .woocommerce-variation-add-to-cart > .clear { display: none; }
/* Wrap below "Add to cart" when the column gets narrow; the inline rule of the plugin adds a 5px right margin. */
.bd-pp .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
:root .woocommerce.single-product button.single_add_to_cart_button.button { margin-right: 0; }
/* Tablet and mobile: 48px like the other buy buttons; mobile full width. The purchase bar hides the add-to-cart row
   below 768px (product-purchase style.css) — keep the quote button visible there, only "Add to cart" moves to the bar. */
@media (max-width: 1023px) {
	:root a.add-request-quote-button.button { min-height: 48px; }
}
@media (max-width: 767px) {
	.yith-ywraq-add-to-quote { width: 100%; }
	:root a.add-request-quote-button.button { width: 100%; }
	.bd-pp.has-bar .woocommerce-variation-add-to-cart:has(.yith-ywraq-add-to-quote) { display: flex !important; }
}

/* ---------- Request page: two columns (list | form) from 1024px, stacked below ---------- */
.ywraq-wrapper { font: 600 15px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-body); }
.ywraq-wrapper #yith-ywraq-message:not(:has(.ywraq-question-message > *)) { display: none; }
.ywraq-wrapper .ywraq-question-message:not(:has(> *)) { display: none; }
@media (min-width: 1024px) {
	:root .ywraq-with-form .ywraq-form-table-wrapper.wide,
	:root .ywraq-empty .ywraq-form-table-wrapper.wide {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-auto-rows: auto;
		gap: 0 calc(80px * var(--bd-s)); align-items: start; overflow: visible;
	}
}
:root .ywraq-form-table-wrapper.wide { gap: 40px; }
:root .ywraq-form-table-wrapper.wide :is(form#yith-ywraq-form, .yith-ywraq-mail-form-wrapper) { margin: 0; }

/* "Return to shop" above the list: text link (Sunshade, arrow, 44px tap target), not a button. */
:root .ywraq-wrapper .yith-ywraq-before-table { margin: 0 0 20px; }
:root .ywraq-wrapper :is(a.wc-backward, a.return_to_shop_url) {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; margin: 0;
	border: 0; background: none; color: var(--bd-sun);
	font: 700 14px/1.3 var(--wp--preset--font-family--montserrat); text-decoration: none;
	transition: color 180ms ease-out;
}
:root .ywraq-wrapper :is(a.wc-backward, a.return_to_shop_url)::before { content: "←"; font-weight: 700; }
:root .ywraq-wrapper :is(a.wc-backward, a.return_to_shop_url):hover { color: var(--bd-haze); }

/* List table: card with hairline rows (like the cart), header in kicker style. */
#yith-ywraq-form table.shop_table {
	width: 100%; margin: 0; border-collapse: separate; border-spacing: 0;
	border: var(--bd-card-border); border-radius: var(--bd-r-card); background: var(--bd-card-bg); overflow: hidden;
}
#yith-ywraq-form table.shop_table :is(th, td) { padding: 18px 20px; border: 0; border-top: 1px solid var(--bd-hairline); background: none; vertical-align: middle; text-align: left; }
#yith-ywraq-form table.shop_table thead th {
	border-top: 0; padding-block: 14px;
	font: 700 11.5px/1.3 var(--wp--preset--font-family--montserrat); letter-spacing: .08em; text-transform: uppercase; color: var(--bd-meta);
}
#yith-ywraq-form table.shop_table :is(th, td).product-remove { width: 44px; padding-right: 0; }
#yith-ywraq-form table.shop_table :is(th, td):is(.product-quantity, .product-price, .product-subtotal) { text-align: right; padding: 18px 20px; }
#yith-ywraq-form .product-name > a { color: var(--bd-haze); font: 700 17px/1.35 var(--wp--preset--font-family--montserrat); text-decoration: none; }
#yith-ywraq-form .product-name > a:hover { color: var(--bd-sun); }
#yith-ywraq-form .product-name > a small { display: inline-block; margin-top: 4px; font: 600 12px/1.4 var(--wp--preset--font-family--montserrat); letter-spacing: .04em; color: var(--bd-meta); }
#yith-ywraq-form .product-name > br { display: none; }
#yith-ywraq-form .product-name ul { margin: 10px 0 0 !important; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
#yith-ywraq-form .product-name ul > br { display: none; }
#yith-ywraq-form .product-name ul li {
	display: inline-flex; gap: 4px; padding: 4px 10px; border: 1px solid var(--bd-hairline); border-radius: var(--bd-r-pill);
	background: var(--bd-quiet); font: 600 12.5px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-body);
}
#yith-ywraq-form .product-name ul li strong { font-weight: 600; color: var(--bd-meta); }
#yith-ywraq-form .product-name .mobile-price { display: block; margin-top: 8px; color: var(--bd-haze); }
#yith-ywraq-form .product-thumbnail img { width: 60px; height: auto; border-radius: var(--bd-r-sm); }
#yith-ywraq-form .amount { color: var(--bd-haze); font-weight: 700; }
/* Quantity: compact number field (the global form control), right-aligned. */
#yith-ywraq-form .product-quantity .quantity { display: inline-block; }
#yith-ywraq-form .product-quantity input.qty { width: 76px; text-align: center; }
/* Remove: 44px round icon button instead of the bare "×". */
#yith-ywraq-form a.yith-ywraq-item-remove.remove {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -4px;
	border: 1.5px solid rgba(247,248,249,.24); border-radius: 100px; background: none;
	color: var(--bd-meta) !important; font: 400 20px/1 system-ui, sans-serif; text-decoration: none;
	transition: border-color 180ms ease-out, color 180ms ease-out, background-color 180ms ease-out;
}
#yith-ywraq-form a.yith-ywraq-item-remove.remove:hover { border-color: #ff8fa8; background: rgba(219,10,96,.16); color: #fff !important; }
/* "Update list": secondary small button, right-aligned under the table. */
#yith-ywraq-form .update-list-wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
#yith-ywraq-form .update-list-wrapper .after-table-right:empty { display: none; }
#yith-ywraq-form .update-list-wrapper :is(input[type="submit"], .button) {
	margin: 0 !important; padding: 9.5px 20.5px; min-height: 44px; box-sizing: border-box;
	border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--bd-r-pill); background: transparent; color: #fff;
	font: 700 13.5px/1.2 var(--wp--preset--font-family--montserrat); cursor: pointer;
	transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
#yith-ywraq-form .update-list-wrapper :is(input[type="submit"], .button):hover { border-color: var(--bd-haze); background: rgba(247,248,249,.06); }
#yith-ywraq-form .update-list-wrapper :is(input[type="submit"], .button):disabled { opacity: .45; cursor: not-allowed; }

/* Empty list: quiet card with a dashed hairline instead of the grey 2px dashes and the light file icon. */
:root .ywraq-wrapper.ywraq-empty .ywraq-before-form {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box;
	height: auto; min-height: 280px; padding: 40px 32px; margin: 0;
	border: 1.5px dashed rgba(247,248,249,.24); border-radius: var(--bd-r-card); background: var(--bd-quiet); text-align: center;
}
:root .ywraq-wrapper.ywraq-empty .ywraq-before-form::before {
	content: ""; background: rgba(250,154,66,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fa9a42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h4'/%3E%3C/svg%3E") no-repeat center / 24px;
	display: block; width: 56px; height: 56px; margin: 0 0 12px; border: 1.5px solid rgba(250,154,66,.4); border-radius: 100px;
}
:root .ywraq-wrapper .ywraq_list_empty_message { margin: 0; max-width: 360px; font: 600 15px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-body); }
:root .ywraq-wrapper .ywraq-before-form > p:empty { display: none; }
:root .ywraq-wrapper .ywraq-before-form .return-to-shop { margin: 8px 0 0; }

/* ---------- Request form: a card, labels above full-width fields, primary submit ---------- */
:root .ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
	box-sizing: border-box; padding: 32px; margin: 0;
	border: var(--bd-card-border); border-radius: var(--bd-r-card); background: var(--bd-card-bg);
}
.yith-ywraq-mail-form-wrapper > h3 { margin: 0 0 22px; font: 700 22px/1.25 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
:root .yith-ywraq-mail-form-wrapper .form-row,
:root .yith-ywraq-mail-form-wrapper .form-row.form-row-wide { display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 0 0 16px; padding: 0; float: none; }
.yith-ywraq-mail-form-wrapper .form-row label { display: block; margin: 0; font: 700 13.5px/1.4 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
.yith-ywraq-mail-form-wrapper .form-row label .required { color: var(--bd-sun); text-decoration: none; border: 0; }
.yith-ywraq-mail-form-wrapper .form-row label .optional { font-weight: 600; color: var(--bd-meta); }
.yith-ywraq-mail-form-wrapper .woocommerce-input-wrapper { display: block; width: 100%; }
.yith-ywraq-mail-form-wrapper :is(input.input-text, textarea, select) { display: block; width: 100%; max-width: none; margin: 0; }
.yith-ywraq-mail-form-wrapper textarea { min-height: 104px; resize: vertical; }
.yith-ywraq-mail-form-wrapper :is(input, textarea)::placeholder { color: var(--bd-disabled); }
.yith-ywraq-mail-form-wrapper .form-row.woocommerce-invalid :is(input.input-text, textarea) { border-color: #ff8fa8; }
.yith-ywraq-mail-form-wrapper .form-row .description,
.yith-ywraq-mail-form-wrapper .form-row .checkbox { font: 600 13px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
.yith-ywraq-mail-form-wrapper .form-row input[type="checkbox"] { accent-color: var(--bd-sun); width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; }
:root .yith-ywraq-mail-form-wrapper .raq-send-request-row { margin: 24px 0 0; text-align: left; }
:root .yith-ywraq-mail-form-wrapper input.raq-send-request[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 52px;
	margin: 0; padding: 16px 30px; border: 0; border-radius: var(--bd-r-pill);
	background: var(--bd-sun) !important; color: var(--bd-ink) !important;
	font: 700 15px/1.2 var(--wp--preset--font-family--montserrat); cursor: pointer; transition: background-color 180ms ease-out;
}
:root .yith-ywraq-mail-form-wrapper input.raq-send-request[type="submit"]:hover { background: #fbb06c !important; }
:root .yith-ywraq-mail-form-wrapper input.raq-send-request[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }

/* Tablet / mobile: stacked, full-width cards; smaller card padding on mobile. */
@media (max-width: 1023px) {
	:root .ywraq-form-table-wrapper.wide { display: flex; flex-direction: column; }
	:root .ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper { margin-top: 0; }
}
@media (max-width: 767px) {
	:root .ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper { padding: 24px 20px; }
	:root .ywraq-wrapper.ywraq-empty .ywraq-before-form { min-height: 0; padding: 32px 20px; }
	/* List rows as cards: product on top, quantity below (the plugin's responsive table uses data-title labels). */
	#yith-ywraq-form table.shop_table thead { display: none; }
	#yith-ywraq-form table.shop_table, #yith-ywraq-form table.shop_table tbody { display: block; }
	#yith-ywraq-form table.shop_table tr.cart_item { display: grid; grid-template-columns: minmax(0, 1fr) 44px; box-sizing: border-box; width: 100%; gap: 12px 16px; padding: 18px 20px; border-top: 1px solid var(--bd-hairline); }
	#yith-ywraq-form table.shop_table tr.cart_item:first-child { border-top: 0; }
	#yith-ywraq-form table.shop_table tr.cart_item > td { display: block; padding: 0 !important; border: 0; text-align: left !important; }
	#yith-ywraq-form table.shop_table tr.cart_item > td::before { display: none; }
	#yith-ywraq-form table.shop_table tr.cart_item > td.product-remove { grid-column: 2; grid-row: 1; width: auto; align-self: start; margin: -8px -8px 0 0 !important; }
	#yith-ywraq-form table.shop_table tr.cart_item > td.product-name { grid-column: 1; grid-row: 1; }
	#yith-ywraq-form table.shop_table tr.cart_item > td:is(.product-quantity, .product-price, .product-subtotal) { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
	#yith-ywraq-form table.shop_table tr.cart_item > td:is(.product-quantity, .product-price, .product-subtotal)::before { content: attr(data-title); display: block; font: 700 11.5px/1.3 var(--wp--preset--font-family--montserrat); letter-spacing: .08em; text-transform: uppercase; color: var(--bd-meta); }
	#yith-ywraq-form a.yith-ywraq-item-remove.remove { width: 44px; height: 44px; margin: 0; }
	#yith-ywraq-form .update-list-wrapper :is(input[type="submit"], .button) { width: 100%; }
}

/* ---------- Plugin notices (sent, errors) use the theme's notice banners (global.css) ---------- */
.ywraq-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) { margin-bottom: 28px; }

/* ---------- Quote details (preview after sending: /request-quote/?quote=…&preview=1; My account → Quotes → view) ----------
   The plugin draws a light grey card (#f8f8f8) with inherited light text, so names and meta were invisible. Dark
   card like the list, status as a chip, customer details and the admin note as quiet cards side by side. */
:root .ywraq-view-quote-wrapper { color: var(--bd-body); font: 600 15px/1.5 var(--wp--preset--font-family--montserrat); }
:root .ywraq-view-quote-wrapper > p { margin: 0 0 8px; }
:root .ywraq-view-quote-wrapper > p strong { color: var(--bd-haze); font-weight: 700; }
:root .ywraq-view-quote-wrapper > p:first-child > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bd-sun); font: 700 14px/1.3 var(--wp--preset--font-family--montserrat); text-decoration: none; }
:root .ywraq-view-quote-wrapper > p:first-child > a:hover { color: var(--bd-haze); }
:root .ywraq-view-quote-wrapper header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 18px; }
:root .ywraq-view-quote-wrapper header h2 { margin: 0; font: 700 var(--wp--preset--font-size--section-small)/var(--bd-lh-h2) var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
:root .ywraq-view-quote-wrapper a.ywraq-big-button.ywraq-pdf-file {
	display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8.5px 20.5px; box-sizing: border-box;
	border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--bd-r-pill); background: transparent; color: #fff;
	font: 700 13.5px/1.2 var(--wp--preset--font-family--montserrat); filter: none;
}
:root .ywraq-view-quote-wrapper a.ywraq-big-button.ywraq-pdf-file:hover { border-color: var(--bd-haze); background: rgba(247,248,249,.06); }

/* Status chip: violet for new/pending, green accepted/paid, pink rejected/expired. */
:root .ywraq-view-quote-wrapper .ywraq-status {
	display: inline-flex; align-items: center; margin-left: 6px; padding: 3px 12px; border-radius: var(--bd-r-pill);
	border: 1px solid rgba(192,132,252,.55); background: rgba(163,0,190,.18); color: var(--bd-haze); font: 700 13px/1.4 var(--wp--preset--font-family--montserrat);
}
:root .ywraq-view-quote-wrapper .ywraq-status:is(.ywraq-accepted, .completed, .processing) { border-color: rgba(40,167,68,.55); background: rgba(40,167,68,.16); }
:root .ywraq-view-quote-wrapper .ywraq-status:is(.ywraq-rejected, .ywraq-expired, .failed, .trash) { border-color: rgba(255,117,143,.6); background: rgba(219,10,96,.16); }
:root .ywraq-view-quote-wrapper .ywraq-status:is(.ywraq-pending, .on-hold, .pending) { border-color: rgba(250,154,66,.55); background: rgba(250,154,66,.14); }

/* Items table. */
:root .ywraq-view-quote-wrapper table.shop_table.order_details {
	width: 100%; margin: 28px 0 40px; padding: 0; border-collapse: separate; border-spacing: 0;
	border: var(--bd-card-border); border-radius: var(--bd-r-card); background: var(--bd-card-bg); overflow: hidden; color: var(--bd-body);
}
:root .ywraq-view-quote-wrapper table.shop_table.order_details :is(th, td) { padding: 18px 24px !important; border: 0; border-top: 1px solid var(--bd-hairline); background: none; vertical-align: middle; text-align: left; }
:root .ywraq-view-quote-wrapper table.shop_table.order_details thead th {
	border-top: 0; padding-block: 14px !important;
	font: 700 11.5px/1.3 var(--wp--preset--font-family--montserrat); letter-spacing: .08em; text-transform: uppercase; color: var(--bd-meta);
}
:root .ywraq-view-quote-wrapper table.shop_table.order_details :is(th, td).product-total,
:root .ywraq-view-quote-wrapper table.shop_table.order_details tfoot td { text-align: right; }
:root .ywraq-view-quote-wrapper table.shop_table.order_details td.product-name { display: flex; align-items: center; gap: 20px; }
:root .ywraq-view-quote-wrapper table.shop_table.order_details span.product-thumbnail { flex: none; margin: 0; }
:root .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail img { display: block; width: 72px; max-width: 72px; height: auto; border-radius: var(--bd-r-sm); background: rgba(247,248,249,.92); }
:root .ywraq-view-quote-wrapper .product-name-item { font: 700 16px/1.4 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); } /* the preview prints the name (and SKU) as plain text */
:root .ywraq-view-quote-wrapper .product-name-item > a { color: var(--bd-haze); font: 700 17px/1.35 var(--wp--preset--font-family--montserrat); text-decoration: none; }
:root .ywraq-view-quote-wrapper .product-name-item > a:hover { color: var(--bd-sun); }
:root .ywraq-view-quote-wrapper .product-name-item strong.product-quantity { margin-left: 6px; color: var(--bd-haze); font-weight: 700; }
:root .ywraq-view-quote-wrapper .product-name-item ul.wc-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
:root .ywraq-view-quote-wrapper .product-name-item ul.wc-item-meta li {
	display: inline-flex; gap: 4px; margin: 0; padding: 4px 10px; border: 1px solid var(--bd-hairline); border-radius: var(--bd-r-pill);
	background: var(--bd-quiet); font: 600 12.5px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-body);
}
:root .ywraq-view-quote-wrapper .product-name-item ul.wc-item-meta li strong { font-weight: 600; color: var(--bd-meta); }
:root .ywraq-view-quote-wrapper .product-name-item ul.wc-item-meta li p { display: inline; margin: 0; }
:root .ywraq-view-quote-wrapper .amount { color: var(--bd-haze); font-weight: 700; }
:root .ywraq-view-quote-wrapper table.shop_table.order_details tfoot th { font: 600 14px/1.4 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
:root .ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr:last-child :is(th, td) { font-size: 17px; color: var(--bd-haze); }

/* Accept / reject (when a quote has been sent): primary and secondary buttons, right-aligned. */
:root .ywraq-view-quote-wrapper .ywraq-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 14px; margin: 0; }
:root .ywraq-view-quote-wrapper .ywraq-buttons a.ywraq-button {
	display: inline-flex; align-items: center; justify-content: center; width: auto; max-width: none; margin: 0; box-sizing: border-box;
	padding: 16px 30px !important; border: 0; border-radius: var(--bd-r-pill); background: var(--bd-sun) !important; color: var(--bd-ink) !important;
	font: 700 15px/1.2 var(--wp--preset--font-family--montserrat); text-decoration: none; transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
:root .ywraq-view-quote-wrapper .ywraq-buttons a.ywraq-button:hover { background: #fbb06c !important; }
:root .ywraq-view-quote-wrapper .ywraq-buttons a.ywraq-button.ywraq-reject { order: -1; padding: 14.5px 28.5px !important; border: 1.5px solid rgba(255,255,255,.4) !important; background: transparent !important; color: #fff !important; }
:root .ywraq-view-quote-wrapper .ywraq-buttons a.ywraq-button.ywraq-reject:hover { border-color: #ff8fa8 !important; background: rgba(219,10,96,.16) !important; }

/* Customer details + admin note. */
:root .ywraq-view-quote-wrapper .ywraq-additional-information { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: start; }
:root .ywraq-view-quote-wrapper .ywraq-additional-information > div {
	width: auto; margin: 0; padding: 24px 28px; box-sizing: border-box;
	border: var(--bd-card-border); border-radius: var(--bd-r-card); background: var(--bd-quiet); box-shadow: none; color: var(--bd-body);
}
:root .ywraq-view-quote-wrapper .ywraq-additional-information header { margin: 0 0 12px; }
:root .ywraq-view-quote-wrapper .ywraq-additional-information h3 { margin: 0; font: 700 20px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
:root .ywraq-view-quote-wrapper .ywraq-view-quote__customer-info { margin: 0 0 6px; font: 600 14px/1.5 var(--wp--preset--font-family--montserrat); }
:root .ywraq-view-quote-wrapper .ywraq-view-quote__customer-info strong { color: var(--bd-meta); font-weight: 600; }
:root .ywraq-view-quote-wrapper .ywraq-customer-information > p:not([class]) { margin: 0 0 6px; font-size: 14px; }
/* "New" quotes: the plugin shows its waiting note in pink on #FAE8E9 — the theme's info banner instead. */
:root .ywraq-view-quote-wrapper .ywraq-admin-message { border-color: rgba(192,132,252,.55); background: rgba(163,0,190,.18); }
:root .ywraq-view-quote-wrapper .ywraq-admin-message .message-content { min-height: 0; padding: 0; background: none; font-style: normal; color: var(--bd-haze); }
:root .ywraq-view-quote-wrapper .ywraq-admin-message .message-content p { margin: 0; }

/* Reject dialog (jQuery UI): textarea as a form control. */
#ywraq-reject-confirm p { font: 600 14px/1.5 var(--wp--preset--font-family--montserrat); }
#ywraq-reject-confirm textarea { width: 100%; min-height: 120px; border-radius: var(--bd-r-sm); }

/* My account → Quotes list: status labels as chips. */
:root .raq_status { display: inline-flex; align-items: center; justify-content: center; min-width: 0; padding: 3px 12px; border-radius: var(--bd-r-pill); border: 1px solid rgba(192,132,252,.55); background: rgba(163,0,190,.18); color: var(--bd-haze); font: 700 11.5px/1.4 var(--wp--preset--font-family--montserrat); letter-spacing: .06em; }
:root .raq_status:is(.accepted, .completed, .processing) { border-color: rgba(40,167,68,.55); background: rgba(40,167,68,.16); }
:root .raq_status:is(.expired, .trash, .failed) { border-color: rgba(255,117,143,.6); background: rgba(219,10,96,.16); }
:root .raq_status:is(.on-hold, .pending) { border-color: rgba(250,154,66,.55); background: rgba(250,154,66,.14); }
:root tr.quotes:hover { background: rgba(247,248,249,.04); }
:root .quotes-total a.button.accept { border: 1.5px solid var(--bd-sun); border-radius: var(--bd-r-pill); background: none; color: var(--bd-sun); font: 700 12px/1.2 var(--wp--preset--font-family--montserrat); text-transform: none; padding: 6px 14px; }

@media (max-width: 767px) {
	:root .ywraq-view-quote-wrapper table.shop_table.order_details :is(th, td) { padding: 16px 18px !important; }
	:root .ywraq-view-quote-wrapper table.shop_table.order_details td.product-name { align-items: flex-start; gap: 14px; }
	:root .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail img { width: 56px; max-width: 56px; }
	:root .ywraq-view-quote-wrapper .ywraq-additional-information > div { padding: 20px; }
	:root .ywraq-view-quote-wrapper .ywraq-buttons a.ywraq-button { width: 100%; }
}

/* ---------- Reject link from the quote (PDF / email): confirmation form and the plugin's status messages ----------
   /request-quote/?status=rejected&… shows "You are about to reject the quote #…" with a reason field; after sending,
   or for expired / already handled quotes, only a message. A card with the form, the message as an info banner. */
:root .ywraq-question-message:has(> *) {
	box-sizing: border-box; max-width: 640px; margin: 0 0 28px; padding: 28px 32px;
	border: var(--bd-card-border); border-radius: var(--bd-r-card); background: var(--bd-card-bg);
	font: 600 15px/1.55 var(--wp--preset--font-family--montserrat); color: var(--bd-body);
}
:root .ywraq-question-message > p:first-child { margin: 0; font: 700 20px/1.35 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
/* Message only (rejected / expired / not available): a violet notice like the theme's info banners. */
:root .ywraq-question-message:has(> *):not(:has(form)) { padding: 16px 20px; border-color: rgba(192,132,252,.55); background: rgba(163,0,190,.18); }
:root .ywraq-question-message:has(> *):not(:has(form)) > p:first-child { font: 600 15px/1.5 var(--wp--preset--font-family--montserrat); }
:root .ywraq-question-message form { margin: 20px 0 0; }
:root .ywraq-question-message form p { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; }
:root .ywraq-question-message form label { font: 700 13.5px/1.45 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); }
:root .ywraq-question-message form textarea { display: block; width: 100%; min-height: 120px; resize: vertical; }
/* "Reject the quote": secondary button, pink on hover (it ends the quote). */
:root .ywraq-question-message form input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; box-sizing: border-box; margin: 0;
	padding: 14.5px 28.5px; border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--bd-r-pill); background: transparent; color: #fff;
	font: 700 15px/1.2 var(--wp--preset--font-family--montserrat); cursor: pointer; transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
:root .ywraq-question-message form input[type="submit"]:hover { border-color: #ff8fa8; background: rgba(219,10,96,.16); }
@media (max-width: 767px) {
	:root .ywraq-question-message:has(> *) { padding: 22px 20px; }
	:root .ywraq-question-message form input[type="submit"] { width: 100%; }
}
