/* Wellness na zahradu – košík, pokladna, účet a právní stránky. Vlastník: commerce (mu-plugin wellness-checkout). */
:root {
	--wnz-co-green: #163a31;
	--wnz-co-green-soft: #eef3f0;
	--wnz-co-border: #d9e2dd;
	--wnz-co-text: #1f2a26;
}

/* Headings never leave one lonely word on the last line. */
.woocommerce-cart h1, .woocommerce-cart h2, .woocommerce-cart h3,
.woocommerce-checkout h1, .woocommerce-checkout h2, .woocommerce-checkout h3,
.woocommerce-account h1, .woocommerce-account h2, .woocommerce-account h3,
.wnz-legal-page h1, .wnz-legal-page h2, .wnz-legal-page h3,
.wnz-delivery-note__title, .wnz-empty-cart-links__title {
	text-wrap: balance;
}
.wnz-delivery-note p, .wnz-admin-preview-notice, .wnz-legal-page p, .wnz-legal-page li {
	text-wrap: pretty;
}

/* Oversize delivery note (cart and checkout). Same typeface as the page, no uppercase label. */
.wnz-delivery-note {
	margin: 0 0 24px;
	padding: 16px 18px;
	border: 1px solid var(--wnz-co-border);
	border-left: 4px solid var(--wnz-co-green);
	border-radius: 8px;
	background: var(--wnz-co-green-soft);
	color: var(--wnz-co-text);
	font-size: 15px;
	line-height: 1.5;
}
.wnz-delivery-note p { margin: 0; }
.wnz-delivery-note .wnz-delivery-note__title {
	margin: 0 0 4px;
	font-weight: 600;
	font-size: 16px;
}
.woocommerce-cart .wnz-delivery-note { width: 100%; }

/* Admin preview banner. */
.wnz-admin-preview-notice { margin-bottom: 24px; }

/* Company toggle: rows hidden only when JS runs and the box is unchecked. */
.wnz-js:not(.wnz-is-company) .woocommerce-checkout .wnz-company-field { display: none; }
.woocommerce-checkout .wnz-company-toggle label.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	cursor: pointer;
}
.woocommerce-checkout .wnz-company-toggle input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--wnz-co-green);
}

/* Field help text under phone / recipient phone. */
.woocommerce-checkout .form-row .description {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: #5b6661;
}

/* Terms and privacy text. */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 14px; line-height: 1.5; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
.woocommerce-checkout .woocommerce-privacy-policy-text a { color: var(--wnz-co-green); text-decoration: underline; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { margin-bottom: 12px; }

/* Order button text is long ("Objednat s povinností platby"); allow it to wrap on narrow screens. */
.woocommerce-checkout #place_order { white-space: normal; line-height: 1.3; }

/* Empty cart: category shortcuts under Rey's native empty state. */
.woocommerce:has(> .wnz-empty-cart-links) { display: flex; flex-direction: column; }
.woocommerce > .wnz-empty-cart-links { order: 10; }
.wnz-empty-cart-links { margin: 8px auto 48px; max-width: 640px; text-align: center; }
.wnz-empty-cart-links .wnz-empty-cart-links__title { margin: 0 0 12px; font-weight: 600; font-size: 16px; }
.wnz-empty-cart-links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wnz-empty-cart-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wnz-co-border);
	border-radius: 8px;
	color: var(--wnz-co-text);
	text-decoration: none;
	background: #fff;
}
.wnz-empty-cart-links a:hover, .wnz-empty-cart-links a:focus-visible { border-color: var(--wnz-co-green); color: var(--wnz-co-green); }

/* Legal pages: readable measure. */
.wnz-legal-page .entry-content, .wnz-legal-page .rey-postContent { max-width: 760px; }
.wnz-legal-page .entry-content h2, .wnz-legal-page .rey-postContent h2 { margin-top: 2em; font-size: 22px; line-height: 1.3; }
.wnz-legal-page .entry-content h3, .wnz-legal-page .rey-postContent h3 { margin-top: 1.5em; font-size: 18px; line-height: 1.35; }
.wnz-legal-page .wnz-fill { background: #fff4d6; padding: 0 3px; border-radius: 3px; }

/* The company box is a switch, not an optional data field. */
.woocommerce-checkout .wnz-company-toggle .optional { display: none; }

/* Empty cart shortcuts align with the native notice and button. */
.wnz-empty-cart-links { margin: 8px 0 48px; max-width: none; text-align: left; }
.wnz-empty-cart-links ul { justify-content: flex-start; }

/* Cart/checkout line prices: keep "bez DPH 95 570 Kč" on one line in narrow columns. */
.wnz-price--cart { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.wnz-price--cart .wnz-price__sub { white-space: nowrap; }
.woocommerce-cart-form .product-price .wnz-price--cart { align-items: flex-start; }
