/* Kury Wholesale Orders — uses the site's brand tokens when present (Customizer CSS defines --kury-*). */

.kwo-panel,
.kwo-mto,
.kwo-fields,
.kwo-account-intro,
.kwo-cart-box,
.kwo-empty-cart,
.kwo-bespoke {
	--kwo-ink: var(--kury-ink, #13283f);
	--kwo-midnight: var(--kury-midnight, #031321);
	--kwo-muted: var(--kury-muted, #5d6670);
	--kwo-line: var(--kury-line, #d9dee2);
	--kwo-sans: var(--kury-sans, "Montserrat", Arial, sans-serif);
	--kwo-serif: var(--kury-serif, Georgia, "Times New Roman", serif);
	color: var(--kwo-ink);
	font-family: var(--kwo-sans);
}

.kwo-eyebrow {
	margin: 0 0 14px;
	color: var(--kwo-muted);
	font-family: var(--kwo-sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Wholesale panel (replaces the cart button for guests and unapproved accounts) */
.kwo-panel {
	margin: 32px 0 8px;
	padding: 28px 0 4px;
	border-top: 1px solid var(--kwo-line);
}
.kwo-panel__status {
	max-width: 52ch;
	margin: 0 0 22px;
	font-size: 0.9375rem;
	line-height: 1.7;
}
.kwo-panel__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	margin: 0;
}
.kwo-panel__help {
	margin: 22px 0 0;
	color: var(--kwo-muted);
	font-size: 0.8125rem;
	line-height: 1.6;
}
.kwo-panel__help a {
	color: inherit;
	font-size: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Made to order */
.kwo-mto {
	margin: 0 0 24px;
}
.kwo-mto__lead {
	max-width: 34ch;
	text-wrap: pretty;
	margin: 0 0 20px;
	font-family: var(--kwo-serif);
	font-size: 1.375rem;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.35;
}
.kwo-mto__facts {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--kwo-line);
}
.kwo-mto__row {
	display: grid;
	grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--kwo-line);
	font-size: 0.875rem;
	line-height: 1.6;
}
.kwo-mto__row dt {
	margin: 0;
	color: var(--kwo-muted);
	font-weight: 500;
}
.kwo-mto__row dd {
	margin: 0;
}
.kwo-mto--retailer {
	margin-bottom: 28px;
}
.kwo-mto--retailer .kwo-mto__lead {
	max-width: none;
	font-size: 1.125rem;
}

/* Buttons and links */
.kwo-button,
a.kwo-button,
button.kwo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 14px 28px;
	border: 0;
	border-radius: 0;
	background: var(--kwo-ink, #13283f);
	color: #fff;
	font-family: var(--kwo-sans, "Montserrat", Arial, sans-serif);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.015em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease;
}
.kwo-button:hover,
.kwo-button:focus-visible {
	background: #2d4862;
	color: #fff;
}
.kwo-link,
a.kwo-link {
	color: var(--kwo-ink, #13283f);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}
.kwo-link:hover {
	color: #2d4862;
}
.kwo-button:focus-visible,
.kwo-link:focus-visible {
	outline: 2px solid var(--kwo-ink, #13283f);
	outline-offset: 3px;
}

/* Request fields inside the add-to-cart form */
.kwo-fields {
	display: grid;
	gap: 16px;
	width: 100%;
	margin: 18px 0 22px;
}
.kwo-field {
	display: grid;
	gap: 8px;
	margin: 0;
}
.kwo-field label {
	margin: 0;
	color: var(--kwo-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.kwo-optional {
	color: var(--kwo-muted);
	font-weight: 400;
}
.kwo-field select,
.kwo-field textarea,
.kwo-field input.input-text {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.kwo-field textarea {
	min-height: 96px;
	resize: vertical;
}

/* Kury's theme (Shopfront): match its variation selector — label inside the box, 3fr / 1fr grid. */
.cs-single-product .kwo-fields {
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	column-gap: 1rem;
	row-gap: 1rem;
	margin-top: 0;
}
.cs-single-product .kwo-field {
	position: relative;
	grid-column: 1;
	display: block;
}
.cs-single-product .kwo-field--notes {
	grid-column: 1 / -1;
}
.cs-single-product .kwo-field label {
	position: absolute;
	top: 0;
	left: 1.25rem;
	z-index: 1;
	color: var(--kwo-muted);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 36px;
	pointer-events: none;
}
.cs-single-product .kwo-field .kwo-optional {
	font-weight: 400;
}
.cs-single-product .kwo-field select {
	height: 48px;
	min-height: 48px;
	margin: 0;
	padding: 1rem 2.5rem 0 1.25rem;
	line-height: 1.5;
}
.cs-single-product .kwo-field textarea {
	min-height: 112px;
	padding-top: 2.25rem;
}

/* My Account intro (logged out) */
.kwo-account-intro {
	max-width: 500px;
	margin: 0 0 28px;
}
.kwo-account-intro__lead {
	margin: 0 0 12px;
	font-family: var(--kwo-serif);
	font-size: 1.25rem;
	line-height: 1.4;
}
.kwo-account-intro__apply {
	margin: 0;
	color: var(--kwo-muted);
	font-size: 0.875rem;
}

/* Cart: no money columns, one clear next step */
body.kwo-request-cart .woocommerce-cart-form :is(th.product-price, td.product-price, th.product-subtotal, td.product-subtotal) {
	display: none;
}
.kwo-cart-box h2 {
	margin: 0 0 12px;
	font-family: var(--kwo-serif);
	font-weight: 400;
}
.kwo-cart-box p {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	line-height: 1.7;
}
.kwo-cart-box .wc-proceed-to-checkout {
	padding: 0;
}
.kwo-cart-box .checkout-button.kwo-button {
	width: 100%;
}
.kwo-empty-cart {
	margin: 24px 0 40px;
}
.kwo-empty-cart p {
	margin: 0 0 18px;
}

/* Checkout */
body.kwo-request-cart .woocommerce-checkout-review-order-table :is(th.product-total, td.product-total, tfoot) {
	display: none;
}
.kwo-checkout-note {
	margin: 0 0 16px;
	font-size: 0.875rem;
	line-height: 1.7;
}

/* Thank-you page and My Account → View order, while the order is still a request */
body.kwo-request-order :is(.woocommerce-order-overview__total, .woocommerce-order-overview__payment-method) {
	display: none;
}
body.kwo-request-order .woocommerce-table--order-details :is(th.product-total, td.product-total, tfoot) {
	display: none;
}

/* Mini cart: never show money */
:is(.woocommerce-mini-cart__total, .widget_shopping_cart .total, .wc-block-mini-cart__footer-subtotal) {
	display: none !important;
}
.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount,
.wc-block-mini-cart__drawer .wc-block-components-product-price {
	display: none;
}

/* Empty price holders left by themes */
.summary .price:empty,
.summary .price:not(:has(*)),
li.product .price:empty {
	display: none;
}

/* Bespoke request */
.kwo-bespoke {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 80px);
	margin: 8px 0 clamp(56px, 7vw, 112px);
	padding-top: clamp(32px, 4vw, 56px);
	border-top: 1px solid var(--kwo-line);
}
.kwo-bespoke__title {
	margin: 0 0 18px;
	font-family: var(--kwo-serif);
	font-size: clamp(1.75rem, 2.6vw, 2.5rem);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.kwo-bespoke__intro p:not(.kwo-eyebrow) {
	max-width: 46ch;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.75;
}
.kwo-bespoke__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
	margin: 0;
}
.kwo-field--wide {
	grid-column: 1 / -1;
}
.kwo-bespoke > .kwo-notice {
	grid-column: 2;
	margin: 0;
}
.kwo-notice {
	padding: 16px 20px;
	border: 1px solid var(--kwo-line);
	font-size: 0.9375rem;
	line-height: 1.6;
}
.kwo-notice--ok {
	background: #f5f7f8;
}
.kwo-notice--error {
	border-color: #b3261e;
	color: #8c1d18;
}
.kwo-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 767px) {
	/* Phones: the theme halves the variation select; give it and the request fields the full width. */
	body.kwo-approved .cs-single-product .cs-single-product-summary-wrap .cs-single-product-summary .entry-summary .variations tbody {
		grid-template-columns: minmax(0, 1fr);
	}
	.cs-single-product .kwo-fields {
		grid-template-columns: minmax(0, 1fr);
	}
	.kwo-panel__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}
	.kwo-panel__actions .kwo-link {
		align-self: center;
	}
	.kwo-mto__lead {
		font-size: 1.25rem;
	}
	.kwo-bespoke,
	.kwo-bespoke__form {
		grid-template-columns: minmax(0, 1fr);
	}
	.kwo-bespoke > .kwo-notice {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kwo-button {
		transition: none;
	}
}
