/* Vitalment Content Manager – shop, cart, checkout, FAQ and contact pages
   aligned with the homepage design system (colours, sans-serif UI, small radii). */

body.vcm-ui {
	--vm-teal: #03474b;
	--vm-teal-d: #02363a;
	--vm-mint: #d0ecde;
	--vm-ink: #143234;
	--vm-muted: #5f7b76;
	--vm-line: #e2e9e8;
	--vm-soft: #f5f8f8;
	--vm-sans: Mulish, Arial, sans-serif;
	background: #fff !important;
}
body.vcm-ui .page_content, body.vcm-ui .inner_layout, body.vcm-ui .row, body.vcm-ui .content { background: transparent !important; }

/* UI headings use the store sans-serif; the serif stays on the homepage hero. */
body.vcm-ui .page_content h1, body.vcm-ui .page_content h2, body.vcm-ui .page_content h3,
body.vcm-ui .page_title, body.vcm-ui h1.page-title,
body.vcm-ui #order_review_heading, body.vcm-ui .cart_totals h2, body.vcm-ui #customer_details h3,
body.vcm-ui .woocommerce-billing-fields h3, body.vcm-ui .woocommerce-shipping-fields h3 {
	font-family: var(--vm-sans) !important;
	font-weight: 800 !important;
	color: var(--vm-teal) !important;
	letter-spacing: -.02em;
}
body.vcm-ui h1.page-title, body.vcm-ui .page_content > h1 { font-size: 30px !important; }
body.vcm-ui .cart_totals h2, body.vcm-ui #order_review_heading, body.vcm-ui #customer_details h3,
body.vcm-ui .woocommerce-billing-fields h3, body.vcm-ui .woocommerce-shipping-fields h3 { font-size: 20px !important; line-height: 1.3 !important; margin: 0 0 16px !important; }
body.vcm-ui .cz_title_content h1, body.vcm-ui .cz_title_content h2, body.vcm-ui .cz_title_content h3 { font-family: var(--vm-sans) !important; font-weight: 800 !important; letter-spacing: -.02em; }
body.vcm-ui .cz_title_content h1, body.vcm-ui .cz_title_content h2 { font-size: 34px !important; line-height: 1.2 !important; }
body.vcm-ui .cz_title_content h3 { font-size: 24px !important; }
body.vcm-ui p, body.vcm-ui li, body.vcm-ui td, body.vcm-ui th, body.vcm-ui label { font-family: var(--vm-sans); }

/* Cart */
body.vcm-ui table.shop_table { border: 1px solid var(--vm-line) !important; border-radius: 10px !important; overflow: hidden; background: #fff !important; box-shadow: none !important; }
body.vcm-ui table.shop_table th { background: var(--vm-soft) !important; font: 800 13.5px/1.3 var(--vm-sans) !important; color: var(--vm-ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
body.vcm-ui table.shop_table td { font: 400 14.5px/1.5 var(--vm-sans) !important; color: var(--vm-ink) !important; background: #fff !important; }
body.vcm-ui table.shop_table td.product-name a { color: var(--vm-ink) !important; font-weight: 700; }
body.vcm-ui .cart_totals { background: #fff !important; border: 1px solid var(--vm-line) !important; border-radius: 10px !important; padding: 22px !important; box-shadow: none !important; }
body.vcm-ui .cart_totals table.shop_table { border: 0 !important; border-radius: 0 !important; }
body.vcm-ui .coupon #coupon_code, body.vcm-ui input[type=text], body.vcm-ui input[type=email], body.vcm-ui input[type=tel],
body.vcm-ui input[type=password], body.vcm-ui input[type=number], body.vcm-ui textarea, body.vcm-ui select {
	border: 1px solid var(--vm-line) !important; border-radius: 8px !important; background: #fff !important;
	font: 400 14.5px/1.4 var(--vm-sans) !important; color: var(--vm-ink) !important; box-shadow: none !important;
}
body.vcm-ui .select2-container .select2-selection { border: 1px solid var(--vm-line) !important; border-radius: 8px !important; height: 46px; }
body.vcm-ui .select2-container .select2-selection__rendered { line-height: 44px !important; font-family: var(--vm-sans); }

/* Buttons across shop UI */
body.vcm-ui .button, body.vcm-ui button.button, body.vcm-ui input.button, body.vcm-ui .woocommerce-button,
body.vcm-ui #place_order, body.vcm-ui .checkout-button, body.vcm-ui button[name=apply_coupon], body.vcm-ui button[name=update_cart] {
	border-radius: 8px !important; font: 800 14px/1 var(--vm-sans) !important; min-height: 46px; padding: 0 22px !important;
	background: var(--vm-teal) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important;
}
body.vcm-ui .button:hover, body.vcm-ui #place_order:hover, body.vcm-ui .checkout-button:hover { background: var(--vm-teal-d) !important; }
body.vcm-ui button[name=update_cart][disabled] { opacity: .45; }

/* Checkout panels */
body.vcm-ui #customer_details .col-1, body.vcm-ui #customer_details .col-2,
body.vcm-ui .xtra-woo-checkout-details, body.vcm-ui .woocommerce-checkout-review-order,
body.vcm-ui form.checkout_coupon, body.vcm-ui .woocommerce-form-coupon-toggle .woocommerce-info {
	background: #fff !important; border: 1px solid var(--vm-line) !important; border-radius: 10px !important;
	box-shadow: none !important; padding: 22px !important;
}
body.vcm-ui .woocommerce-checkout-review-order-table { border: 0 !important; }
body.vcm-ui .woocommerce-checkout-payment, body.vcm-ui #payment { background: var(--vm-soft) !important; border-radius: 10px !important; }
body.vcm-ui #payment ul.payment_methods { border-bottom: 1px solid var(--vm-line) !important; }
body.vcm-ui #payment div.form-row { padding: 14px 0 0 !important; }
body.vcm-ui .woocommerce-info, body.vcm-ui .woocommerce-message, body.vcm-ui .woocommerce-error {
	border-radius: 10px !important; font-family: var(--vm-sans); border-top: 0 !important; background: var(--vm-soft) !important; color: var(--vm-ink) !important;
}

/* FAQ page */
body.vcm-ui .vcm-faq-item { background: #fff; border-color: var(--vm-line); }
body.vcm-ui .vcm-faq-item.is-soon { background: var(--vm-soft); }
.vcm-faq-item.is-soon .vcm-faq-question { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 20px; font: 800 16px/1.4 Mulish, Arial, sans-serif; color: #5f7b76; cursor: default; }

/* Contact page cards */
body.vcm-ui .vcm-contact-card { border-radius: 10px; }

/* Newsletter staging notice */
.vcm-news-staging-note { margin: 10px 0 0 !important; font: 700 12.5px/1.4 Mulish, Arial, sans-serif; color: #d0ecde; opacity: .9; }
.vm-news-form.is-blocked .vcm-news-staging-note { color: #ffd7cf; }

@media (max-width: 767px) {
	body.vcm-ui .cz_title_content h1, body.vcm-ui .cz_title_content h2 { font-size: 26px !important; }
	body.vcm-ui .cart_totals, body.vcm-ui #customer_details .col-1, body.vcm-ui #customer_details .col-2,
	body.vcm-ui .xtra-woo-checkout-details, body.vcm-ui .woocommerce-checkout-review-order { padding: 16px !important; }
	body.vcm-ui .button, body.vcm-ui #place_order, body.vcm-ui .checkout-button { width: 100% !important; }
}

/* Checkout: one level of panels only (the theme already draws its own boxes). */
body.vcm-ui #customer_details .col-1, body.vcm-ui #customer_details .col-2 { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
body.vcm-ui .woocommerce-form-coupon-toggle .woocommerce-info { padding: 16px 20px 16px 62px !important; position: relative; }
body.vcm-ui .woocommerce-checkout #order_review_heading { margin-top: 0 !important; }
body.vcm-ui .xtra-woo-checkout-details, body.vcm-ui .woocommerce-checkout-review-order { background: #fff !important; }
body.vcm-ui .woocommerce-checkout-review-order-table th, body.vcm-ui .woocommerce-checkout-review-order-table td { background: #fff !important; }

/* Standalone Vitalment pages (e.g. monthly ranking): heading follows the shop scale. */
body.vcm-ui .page_content h1.wp-block-heading { font-size: 34px !important; line-height: 1.2 !important; margin: 0 0 12px !important; }
@media (max-width: 767px) { body.vcm-ui .page_content h1.wp-block-heading { font-size: 26px !important; } }
body.vcm-ui .vm-month-page .vm-products ul.products { margin-bottom: 0 !important; }


/* ------------------------------------------------------------------
   Plain text pages (Vitalment → "O nas"): one readable column with the
   same type scale as the rest of the shop.
   ------------------------------------------------------------------ */
body.vcm-article .page_content { padding-top: 48px !important; padding-bottom: 56px !important; }
body.vcm-article .cz_post_content { max-width: 840px; margin-left: auto; margin-right: auto; }
body.vcm-article .cz_post_content h1 { font-size: 40px !important; line-height: 1.12 !important; margin: 0 0 14px !important; }
body.vcm-article .cz_post_content h2 { font-size: 26px !important; line-height: 1.25 !important; margin: 40px 0 12px !important; }
body.vcm-article .cz_post_content h3 { font-size: 20px !important; line-height: 1.3 !important; margin: 28px 0 10px !important; }
body.vcm-article .cz_post_content p { font-size: 16.5px !important; line-height: 1.75 !important; color: var(--vm-muted) !important; margin: 0 0 16px !important; }
body.vcm-article .cz_post_content p strong { color: var(--vm-ink) !important; }
body.vcm-article .cz_post_content ul { margin: 0 0 18px !important; padding-left: 20px !important; list-style: disc outside !important; }
body.vcm-article .cz_post_content li { font-size: 16.5px !important; line-height: 1.7 !important; color: var(--vm-muted) !important; margin: 0 0 10px !important; padding-left: 4px; }
body.vcm-article .cz_post_content li::before { content: none !important; }
body.vcm-article .cz_post_content li strong { color: var(--vm-ink) !important; }
body.vcm-article .cz_post_content a { color: var(--vm-teal) !important; text-decoration: underline; text-underline-offset: 2px; }
body.vcm-article .cz_post_content a:hover { color: var(--vm-teal-d) !important; }

@media (max-width: 767px) {
	body.vcm-article .page_content { padding-top: 28px !important; padding-bottom: 36px !important; }
	body.vcm-article .cz_post_content h1 { font-size: 29px !important; }
	body.vcm-article .cz_post_content h2 { font-size: 22px !important; margin-top: 30px !important; }
	body.vcm-article .cz_post_content p, body.vcm-article .cz_post_content li { font-size: 15.5px !important; }
}

/* ------------------------------------------------------------------
   Baza Wiedzy: article blocks imported from the shop's own documents.
   ------------------------------------------------------------------ */
body.vcm-article .cz_post_content .vcm-eyebrow { font: 800 11.5px/1.3 var(--vm-sans) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--vm-teal) !important; margin: 0 0 10px !important; }
body.vcm-article .cz_post_content .vcm-lead { font-size: 19px !important; line-height: 1.6 !important; color: var(--vm-ink) !important; margin: 0 0 22px !important; }
body.vcm-article .cz_post_content .vcm-lead em { font-style: italic; }

/* Images and figures: never wider than the column, ratio kept. */
body.vcm-article .cz_post_content figure { margin: 26px 0 !important; max-width: 100%; }
body.vcm-article .cz_post_content img { max-width: 100% !important; height: auto !important; display: block; border-radius: 10px; }
body.vcm-article .cz_post_content figcaption,
body.vcm-article .cz_post_content .vcm-figcaption { font: 400 13.5px/1.55 var(--vm-sans) !important; color: #7f9792 !important; text-align: center; margin: 10px 0 0 !important; }

/* Highlighted box from the document ("W skrócie: ile spać?", "Ważne"). */
body.vcm-article .cz_post_content .vcm-callout { background: var(--vm-soft); border: 1px solid var(--vm-line); border-left: 4px solid var(--vm-teal); border-radius: 10px; padding: 22px 24px; margin: 28px 0; }
body.vcm-article .cz_post_content .vcm-callout h3 { margin-top: 0 !important; font-size: 18px !important; }
body.vcm-article .cz_post_content .vcm-callout p:last-child { margin-bottom: 0 !important; }

/* Quotes pulled out in the document. */
body.vcm-article .cz_post_content .vcm-quote { border-left: 4px solid var(--vm-mint); background: #fff; margin: 28px 0; padding: 6px 0 6px 22px; }
body.vcm-article .cz_post_content .vcm-quote p { font-size: 17px !important; line-height: 1.65 !important; color: var(--vm-ink) !important; font-style: italic; }

/* Plant cards: picture next to the description. */
body.vcm-article .cz_post_content .vcm-plant { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; margin: 26px 0; padding: 20px; background: #fff; border: 1px solid var(--vm-line); border-radius: 12px; }
/* WordPress owija zawartość bloku grupy w dodatkowy kontener. Bez tego cała
   karta – zdjęcie razem z tekstem – trafiała do pierwszej, wąskiej kolumny. */
body.vcm-article .cz_post_content .vcm-plant > .wp-block-group__inner-container { display: contents; }
body.vcm-article .cz_post_content .vcm-plant-body { min-width: 0; }
body.vcm-article .cz_post_content .vcm-plant figure { margin: 0 !important; }
body.vcm-article .cz_post_content .vcm-plant img { border-radius: 10px; width: 100%; }
body.vcm-article .cz_post_content .vcm-plant h3 { margin: 0 0 2px !important; font-size: 20px !important; }
body.vcm-article .cz_post_content .vcm-plant-latin { font-style: italic; color: #7f9792 !important; margin: 0 0 12px !important; font-size: 15px !important; }
body.vcm-article .cz_post_content .vcm-plant p:last-child { margin-bottom: 0 !important; }

/* Bibliography and small print. */
body.vcm-article .cz_post_content .vcm-source { font-size: 14px !important; line-height: 1.6 !important; color: #7f9792 !important; margin: 0 0 8px !important; }

/* Tables keep every column; on a phone they scroll instead of losing data. */
body.vcm-article .cz_post_content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.vcm-article .cz_post_content table { width: 100%; border-collapse: collapse; font-family: var(--vm-sans); min-width: 560px; }
body.vcm-article .cz_post_content table th { background: var(--vm-soft) !important; font: 800 14px/1.4 var(--vm-sans) !important; color: var(--vm-ink) !important; text-align: left; padding: 12px 14px !important; border: 1px solid var(--vm-line) !important; }
body.vcm-article .cz_post_content table td { font: 400 14.5px/1.55 var(--vm-sans) !important; color: var(--vm-muted) !important; padding: 12px 14px !important; border: 1px solid var(--vm-line) !important; vertical-align: top; }
body.vcm-article .cz_post_content table td strong { color: var(--vm-ink) !important; }

body.vcm-article .cz_post_content ol { margin: 0 0 18px !important; padding-left: 22px !important; }
body.vcm-article .cz_post_content ol li { font-size: 16.5px !important; line-height: 1.7 !important; color: var(--vm-muted) !important; margin: 0 0 10px !important; }
body.vcm-article .cz_post_content ol li strong { color: var(--vm-ink) !important; }

@media (max-width: 767px) {
	body.vcm-article .cz_post_content .vcm-lead { font-size: 17px !important; }
	body.vcm-article .cz_post_content .vcm-plant { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
	body.vcm-article .cz_post_content .vcm-plant img { max-width: 220px; margin: 0 auto; }
	body.vcm-article .cz_post_content .vcm-callout { padding: 16px 18px; }
	body.vcm-article .cz_post_content ol li { font-size: 15.5px !important; }
}

body.vcm-article .cz_post_content .vcm-article-title { font: 800 40px/1.12 var(--vm-sans) !important; letter-spacing: -.02em; color: var(--vm-teal) !important; margin: 0 0 14px !important; padding: 0 !important; }
@media (max-width: 767px) { body.vcm-article .cz_post_content .vcm-article-title { font-size: 29px !important; } }

/* Pole kodu rabatowego w zamówieniu.
   Motyw Webz ma regułę `.woocommerce form.checkout_coupon p:first-child { display: none }`,
   napisaną pod starszy układ WooCommerce, w którym pierwszym akapitem formularza był
   tekst zachęty. W WooCommerce 10 tekst jest poza formularzem, więc ukrywany był
   wiersz z polem na kod – po rozwinięciu „Masz kupon?” zostawał sam przycisk. */
body.vcm-ui form.checkout_coupon p.form-row-first { display: block; }
