/**
 * Request a Quote page + cart “Get a quote” (Just Wedi / Astra)
 */

/* Cart-only quote flow: hide YITH “Add to quote” on catalog and product pages */
.single-product .yith-ywraq-add-to-quote,
.woocommerce ul.products .yith-ywraq-add-to-quote,
.woocommerce ul.products .jw-quote-loop-actions {
	display: none !important;
}

/* —— Quote page shell —— */
.jw-quote-page .entry-header,
.jw-quote-page .ast-single-entry-banner {
	display: none !important;
}

.jw-quote-page #primary {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
}

.jw-quote-page .site-content > .ast-container {
	max-width: 100%;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.jw-quote-page .entry-content {
	margin: 0 !important;
	max-width: 100%;
}

.jw-quote-hero {
	box-sizing: border-box;
	width: 100%;
	background: var(--jw-color-surface, #f8fafc);
	border-bottom: 1px solid rgba(26, 54, 93, 0.08);
}

.jw-quote-hero__inner {
	max-width: min(42rem, 100%);
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 2.75rem) var(--jw-header-pad-x, clamp(0.75rem, 4vw, 2.25rem));
	text-align: center;
}

.jw-quote-hero__kicker {
	margin: 0 0 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--jw-color-primary-mid, #2c5282);
}

.jw-quote-hero__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--jw-color-heading, #0f172a);
}

.jw-quote-hero__text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--jw-color-body, #334155);
}

.jw-quote-shell {
	box-sizing: border-box;
	width: 100%;
	max-width: min(56rem, 100%);
	margin: 0 auto;
	padding: clamp(1.5rem, 3vw, 2.5rem) var(--jw-header-pad-x, clamp(0.75rem, 4vw, 2.25rem))
		clamp(2.5rem, 5vw, 4rem);
}

/* YITH wrapper */
.jw-quote-page .ywraq-wrapper {
	margin: 0;
	padding: 0;
}

.jw-quote-page .ywraq-form-table-wrapper {
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 4vw, 2.75rem);
}

.jw-quote-page .ywraq-form-table-wrapper.wide {
	flex-direction: column;
}

/* Notices */
.jw-quote-page .woocommerce-message,
.jw-quote-page .woocommerce-info,
.jw-quote-page .woocommerce-error,
.jw-quote-page .yith-ywraq-message-wrapper,
.jw-quote-page #yith-ywraq-message {
	margin-bottom: 1.25rem;
	border-radius: 4px;
}

/* Product table */
.jw-quote-page #yith-ywrq-table-list {
	width: 100%;
	border: 1px solid var(--jw-color-border, rgba(26, 54, 93, 0.12));
	border-radius: 6px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
}

.jw-quote-page #yith-ywrq-table-list thead th {
	background: var(--jw-color-surface, #f8fafc);
	color: var(--jw-color-heading, #0f172a);
	font-weight: 600;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--jw-color-border, rgba(26, 54, 93, 0.12));
}

.jw-quote-page #yith-ywrq-table-list tbody td {
	padding: 1rem;
	vertical-align: middle;
	border-bottom: 1px solid rgba(26, 54, 93, 0.06);
}

.jw-quote-page #yith-ywrq-table-list tbody tr:last-child td {
	border-bottom: none;
}

.jw-quote-page #yith-ywrq-table-list .product-thumbnail img {
	max-width: 72px;
	height: auto;
	border-radius: 4px;
}

.jw-quote-page #yith-ywrq-table-list .product-name a {
	color: var(--jw-color-primary, #1a365d);
	font-weight: 600;
	text-decoration: none;
}

.jw-quote-page #yith-ywrq-table-list .product-name a:hover {
	text-decoration: underline;
}

.jw-quote-page #yith-ywrq-table-list .product-remove .remove {
	color: var(--jw-color-muted, #475569);
	font-size: 1.35rem;
	line-height: 1;
}

.jw-quote-page #yith-ywrq-table-list .quantity .qty {
	max-width: 4.5rem;
	padding: 0.45rem 0.5rem;
	border-radius: 4px;
	border: 1px solid var(--jw-color-border, rgba(26, 54, 93, 0.12));
}

.jw-quote-page .update-list-wrapper {
	margin-top: 1rem;
}

.jw-quote-page .update-list-wrapper .button {
	background: transparent;
	color: var(--jw-color-primary, #1a365d);
	border: 1px solid var(--jw-color-primary, #1a365d);
}

/* Empty state */
.jw-quote-page .ywraq-wrapper > p {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--jw-color-muted, #475569);
	font-size: 1.05rem;
}

/* Request form */
.jw-quote-page .yith-ywraq-mail-form-wrapper {
	background: #fff;
	border: 1px solid var(--jw-color-border, rgba(26, 54, 93, 0.12));
	border-radius: 8px;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	box-shadow: 0 4px 24px rgba(26, 54, 93, 0.06);
}

.jw-quote-page .yith-ywraq-mail-form-wrapper h3 {
	margin: 0 0 1.25rem;
	font-size: 1.2rem;
	color: var(--jw-color-heading, #0f172a);
}

.jw-quote-page .yith-ywraq-mail-form-wrapper .form-row {
	margin-bottom: 1rem;
}

.jw-quote-page .yith-ywraq-mail-form-wrapper label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: var(--jw-color-heading, #0f172a);
	font-size: 0.9rem;
}

.jw-quote-page .yith-ywraq-mail-form-wrapper .input-text,
.jw-quote-page .yith-ywraq-mail-form-wrapper textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border-radius: 4px;
	border: 1px solid var(--jw-color-border, rgba(26, 54, 93, 0.12));
	font-size: 1rem;
}

.jw-quote-page .yith-ywraq-mail-form-wrapper textarea {
	min-height: 7rem;
	resize: vertical;
}

.jw-quote-page .raq-send-request.button {
	display: inline-block;
	width: 100%;
	max-width: 20rem;
	margin-top: 0.5rem;
	padding: 0.85em 1.5em;
	background-color: var(--jw-color-primary, #1a365d) !important;
	border-color: var(--jw-color-primary, #1a365d) !important;
	color: #fff !important;
	font-weight: 600;
	border-radius: 4px;
}

.jw-quote-page .raq-send-request.button:hover {
	background-color: var(--jw-color-primary-dark, #153e75) !important;
	border-color: var(--jw-color-primary-dark, #153e75) !important;
}

.jw-quote-page .jw-turnstile-wrap {
	margin: 1rem 0;
}

/* —— Cart: Get a quote —— */
.jw-cart-get-quote {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--jw-color-border, rgba(26, 54, 93, 0.12));
}

.jw-cart-get-quote__button {
	display: inline-block;
	background-color: var(--jw-color-primary, #1a365d) !important;
	border-color: var(--jw-color-primary, #1a365d) !important;
	color: #fff !important;
	font-weight: 600;
	padding: 0.85em 1.5em;
	border-radius: 4px;
}

.jw-cart-get-quote__button:hover {
	background-color: var(--jw-color-primary-dark, #153e75) !important;
	border-color: var(--jw-color-primary-dark, #153e75) !important;
	color: #fff !important;
}

.jw-cart-get-quote__hint {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	color: var(--jw-color-muted, #475569);
	max-width: 36rem;
}

@media (max-width: 768px) {
	.jw-quote-page #yith-ywrq-table-list.responsive tbody tr {
		padding: 0.75rem 0;
	}

	.jw-quote-page #yith-ywrq-table-list.responsive tbody td {
		padding: 0.35rem 1rem;
	}
}
