/*
Theme Name: Blocksy Child — Bibliografika
Description: Child theme for bibliografika.pl. All custom CSS/PHP goes here, never in the parent.
Template: blocksy
Version: 1.5.6
Text Domain: blocksy-child
*/

/* ---------------------------------------------------------------------------
 * Bricolage Grotesque — self-hosted variable font (weights 200–800)
 * ------------------------------------------------------------------------- */

/* latin */
@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 200 800;
	font-stretch: 100%;
	font-display: swap;
	src: url('fonts/bricolage-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext (Polish diacritics) */
@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 200 800;
	font-stretch: 100%;
	font-display: swap;
	src: url('fonts/bricolage-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------------------
 * Base font family — points at the self-hosted @font-face above.
 * Doubled :root beats Blocksy's inline dynamic CSS regardless of print order.
 * Size/weight/colours live in the Customizer (General → Typography, Colors).
 * ------------------------------------------------------------------------- */

:root:root {
	--theme-font-family: 'Bricolage Grotesque', var(--theme-font-stack-default);
}

/* ---------------------------------------------------------------------------
 * Header — spacing replicated from the design draft measurements
 * ------------------------------------------------------------------------- */

/* Separator line: 65×2px, 23px below the logo (as in the draft) */
[data-header] [data-id="logo"] {
	position: relative;
	padding-bottom: 25px; /* 23px gap + 2px line */
}

[data-header] [data-id="logo"]::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 65px;
	height: 2px;
	background: #141414;
}

/* --- Product page: delivery-time note under add-to-cart (own element, functions.php) --- */
.bfk-delivery-note {
	font-size: 14px;
}


/* ---------------------------------------------------------------------------
 * Checkout: „Faktura" section (Kupuję jako firma)
 *
 * The company fields are revealed by WooCommerce's own conditional-field rules
 * (see functions.php) — nothing here controls visibility, this is styling only.
 * ------------------------------------------------------------------------- */

/* The separate billing-address step was removed from the checkout (page 8), so
   billing always follows the delivery address and the invoice section is the
   only place another address is entered. WooCommerce still renders its "use the
   same address for billing" toggle from the SHIPPING block, where it is now
   orphaned — unticking it would reveal nothing. Its default (ticked) state is
   the behaviour we want, so hide the control rather than leave a dead switch. */
.wc-block-checkout__use-address-for-billing {
	display: none !important;
}

/* Hide the "Kraj / region" select — we ship only to Poland, so it offers a
   single option. This has to be CSS: WooCommerce core deliberately refuses to
   let the country field be hidden through the locale filters (it is the lookup
   key for locale resolution) and forces hidden=false after every filter runs,
   see WC_Countries::get_country_locale(). `display: none` still takes it out of
   the tab order and the accessibility tree, and the value stays PL from
   woocommerce_default_country. To sell abroad: delete this rule and widen
   "Sprzedawaj do wybranych krajów". */
.wc-block-components-address-form__country {
	display: none !important;
}

/* Hide "Składasz zamówienie jako gość." under the contact fields. There are no
   customer accounts — every order is a guest order — so the line has nothing to
   contrast with. The checkout block prints it whenever guest checkout is
   allowed, with no block or store setting to turn it off. */
.wc-block-checkout__guest-checkout-notice {
	display: none !important;
}

/* Drop the "Zawiera X zł w podatkach" line under the total, in both the cart and
   the checkout summary. Prices are shown gross throughout, which is what a B2C
   buyer needs; the VAT breakdown belongs on the invoice, where it still appears
   in full. Company buyers get the same figures on their faktura. */
.wc-block-components-totals-footer-item-tax {
	display: none !important;
}
