/* ==========================================================================
   Tłocznia — style uzupełniające.
   Oryginalny arkusz (style.css) pochodzi 1:1 z poprzedniej wersji motywu.
   Tu są tylko dodatki: elementy WooCommerce renderowane przez WC
   (pola, komunikaty, select2) oraz drobne klasy nowych szablonów.
   ========================================================================== */

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* ── Mini-koszyk: przycisk usuwania ── */
.mini-cart-item { position: relative; }
.mini-cart-item-remove {
	flex-shrink: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; color: #d8dbe8; text-decoration: none; font-size: 12px; transition: color .2s, background .2s;
}
.mini-cart-item-remove:hover { color: #f87171; background: rgba(239,68,68,.1); }
.mini-cart-item-name { text-decoration: none; }
.mini-cart-item-name:hover { color: #FACC15; }
img.mini-cart-thumb { object-fit: cover; }

/* ── Komunikaty WooCommerce ── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-notice {
	background: rgba(250,204,21,.07); border: 1px solid rgba(250,204,21,.25); border-radius: 10px;
	padding: 14px 18px; margin: 0 0 20px; font-family: Inter, sans-serif; font-size: 13px; color: #fde68a;
	list-style: none;
}
.woocommerce-message { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25); color: #86efac; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: inherit; font-weight: 700; }
.woocommerce-message .button, .woocommerce-info .button {
	float: right; background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 8px;
	padding: 4px 12px; font-size: 12px; margin-left: 12px;
}
.woocommerce-notices-wrapper:empty { display: none; }
.sklep-grid-section .woocommerce-notices-wrapper,
.tl-checkout-notices,
.tl-ty-hooks { max-width: 1340px; margin: 0 auto; padding: 0 60px; }
.tl-checkout-notices { margin-bottom: 8px; }
.tl-checkout-notices .woocommerce-form-login,
.tl-checkout-notices .checkout_coupon {
	background: #12151f; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 20px; margin: 0 0 16px;
}
.tl-checkout-notices .checkout_coupon .form-row { display: inline-block; margin: 0 8px 0 0; vertical-align: middle; }
.tl-checkout-notices .input-text,
.tl-checkout-notices input[type=text],
.tl-checkout-notices input[type=password] {
	background: #0d0f1a; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: #fff; padding: 11px 13px;
}
.tl-checkout-notices .button,
.ma-main .button,
.ma-od-actions .button,
.tl-ty-hooks .button {
	background: #FACC15; color: #0d0f14; border: 0; border-radius: 10px; padding: 11px 20px;
	font-family: Inter, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 1100px) {
	.tl-checkout-notices, .tl-ty-hooks, .sklep-grid-section .woocommerce-notices-wrapper { padding: 0 24px; }
}

/* ── Koszyk ── */
.cart-page--empty .cart-page-inner { grid-template-columns: 1fr; max-width: 760px; }
.cart-empty .btn-primary { margin-top: 8px; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-variant p, .cart-item-variant dl, .cart-item-variant dd { margin: 0; display: inline; }
.cart-item-variant dt { display: inline; margin-right: 4px; }
.woocommerce-cart-form.is-updating { opacity: .55; pointer-events: none; transition: opacity .2s; }
.tl-coupon-form { display: flex; flex-direction: column; gap: 8px; }
a.cac-remove { text-decoration: none; }
.cart-upsell-add { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* ── Kasa ── */
.checkout-left, .checkout-right { min-width: 0; }
.checkout-right { position: sticky; top: 100px; }
.co-fields { margin: 0; }
.co-fields > .form-row,
.checkout-page .co-fields .form-row-first,
.checkout-page .co-fields .form-row-last,
.checkout-page .co-fields .form-row-wide { width: auto !important; float: none !important; margin: 0 !important; }
.co-fields > .form-row-wide, .co-fields > .co-field--full, .co-fields > .notes { grid-column: 1 / -1; }
.co-fields .woocommerce-input-wrapper { display: block; width: 100%; }
.co-fields .clear { display: none; }
.woocommerce-shipping-fields, .woocommerce-additional-fields, .woocommerce-account-fields { margin-top: 18px; }
.woocommerce-additional-fields h3, .woocommerce-shipping-fields h3 { display: none; }
#ship-to-different-address { margin: 0 0 14px; }
#ship-to-different-address label,
.woocommerce-account-fields .create-account label.checkbox,
.checkout-page .form-row label.checkbox,
.woocommerce-form__label-for-checkbox {
	display: flex !important; align-items: flex-start; gap: 10px; cursor: pointer;
	text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; font-weight: 500 !important; color: #d8dbe8 !important;
}
.checkout-page input[type=checkbox] { accent-color: #FACC15; width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; }
.checkout-page .form-row .optional { color: #7a8299; text-transform: none; letter-spacing: 0; font-weight: 500; }

.checkout-page .select2-container .select2-selection--single {
	background: #0d0f1a; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; height: 44px;
}
.checkout-page .select2-container .select2-selection--single .select2-selection__rendered { color: #c8cdd8; line-height: 42px; padding-left: 14px; font-family: Inter, sans-serif; font-size: 13px; }
.checkout-page .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-dropdown { background: #12151f; border-color: rgba(255,255,255,.12); color: #c8cdd8; }
.select2-search--dropdown .select2-search__field { background: #0d0f1a; border: 1px solid rgba(255,255,255,.12); color: #fff; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: #FACC15; color: #0d0f14; }
.select2-container--default .select2-results__option[aria-selected=true] { background: rgba(250,204,21,.12); }

.co-shipping-methods { display: flex; flex-direction: column; gap: 10px; }
.co-shipping-option input { position: absolute; opacity: 0; pointer-events: none; }
.co-shipping-option--active .co-shipping-dot { border-color: #FACC15; background: radial-gradient(circle, #FACC15 38%, transparent 38%); }
.co-shipping-option--active { border-color: #FACC15; }
.co-shipping-info { flex: 1; display: flex; flex-direction: column; }

.co-payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.co-payment-icon-wrap img { max-height: 26px; width: auto; display: inline-block; margin: 0 2px; }
.co-payment-gateway-fields p:last-child { margin-bottom: 0; }
.co-payment-gateway-fields input, .co-payment-gateway-fields select {
	background: #12151f; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #fff; padding: 10px 12px;
}

.co-oi-thumb { position: relative; }
.co-oi-qty {
	position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
	background: #FACC15; color: #0d0f14; font: 700 10px/18px Inter, sans-serif; text-align: center;
}
.co-summary-breakdown .woocommerce-remove-coupon { color: #f87171; font-size: 11px; margin-left: 6px; }
.co-summary-total .cart-total-val small, .cart-total-val small { display: block; font-size: 11px; font-family: Inter, sans-serif; color: #d8dbe8; font-weight: 400; }

.co-consents { margin: 16px 0; }
.co-consents .woocommerce-privacy-policy-text p,
.co-consents .woocommerce-terms-and-conditions-wrapper p { font-family: Inter, sans-serif; font-size: 11px; color: #d8dbe8; line-height: 1.6; margin: 0 0 10px; }
.co-consents a { color: #FACC15; }
.co-consents .woocommerce-terms-and-conditions { background: #0d0f1a; border-radius: 8px; padding: 12px; max-height: 200px; overflow: auto; font-size: 12px; color: #c8cdd8; }
.co-place-order-btn { margin-bottom: 12px; }
.co-place-order-btn:disabled, .processing .co-place-order-btn { opacity: .6; cursor: wait; }
.blockUI.blockOverlay { background: rgba(13,15,26,.6) !important; }

@media (max-width: 1100px) {
	.checkout-right { position: static; }
}

/* ── Strona podziękowania ── */
.tl-ty-hooks:empty { display: none; }
.tl-ty-hooks { color: #c8cdd8; font-family: Inter, sans-serif; font-size: 14px; }
.tl-ty-hooks h2 { font-family: Oswald, sans-serif; color: #fff; text-transform: uppercase; }
.tl-ty-hooks .wc-bacs-bank-details { list-style: none; padding: 0; }

/* ── Karta produktu ── */
.sp-add-btn.loading { opacity: .6; cursor: wait; }
.sp-add-btn:disabled { opacity: .45; cursor: not-allowed; }
.sp-add-message { margin-top: 10px; font-family: Inter, sans-serif; font-size: 13px; border-radius: 8px; padding: 10px 14px; }
.sp-add-message--ok { background: rgba(52,211,153,.1); color: #34d399; }
.sp-add-message--error { background: rgba(239,68,68,.1); color: #f87171; }
.sp-meta-row { font-family: Inter, sans-serif; font-size: 12px; color: #d8dbe8; }
.sp-gallery-main img { width: 100%; height: auto; }
.sp-review-form .kform-input { width: 100%; }

/* ── Formularz kontaktowy ── */
.kform-success { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kform-error { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #f87171; align-items: flex-start; }
.kontakt-mapa-wrap iframe { display: block; width: 100%; min-height: 380px; border-radius: 16px; filter: grayscale(.2) invert(.9) hue-rotate(180deg); }

/* ── Moje konto ── */
.ma-forgot-modal {
	position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 9999;
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ma-forgot-modal[hidden] { display: none; }
.ma-main .woocommerce-notices-wrapper { margin-bottom: 4px; }
.ma-main p.form-row.ma-field { margin: 0; padding: 0; width: auto; float: none; }
.ma-main .ma-field .woocommerce-input-wrapper { display: block; }
.ma-main .ma-field select,
.ma-main .ma-field textarea {
	width: 100%; background: #0d0f1a; border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
	padding: 11px 13px; font-family: Inter, sans-serif; font-size: 14px; color: #fff;
}
.ma-main .select2-container .select2-selection--single { background: #0d0f1a; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; height: 44px; }
.ma-main .select2-container .select2-selection--single .select2-selection__rendered { color: #fff; line-height: 42px; padding-left: 13px; }
.ma-main .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.ma-main .ma-field .required { color: #FACC15; text-decoration: none; border: 0; }
.ma-main .ma-field .optional { text-transform: none; letter-spacing: 0; color: #7a8299; }
.tl-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ma-orders-table .ma-order-row > span { min-width: 0; }
.ma-od-address p { margin: 0; }

/* ── Szablon domyślny strony: tabela, obrazki ── */
.page-content-inner img { max-width: 100%; height: auto; }
.tl-wc-page { background: #0d0f1a; }

/* ── Komentarze pod wpisami ── */
.sp-content-wrap .comments-area { margin-top: 48px; color: #c8cdd8; font-family: Inter, sans-serif; }
.sp-content-wrap .comments-area textarea,
.sp-content-wrap .comments-area input[type=text],
.sp-content-wrap .comments-area input[type=email],
.sp-content-wrap .comments-area input[type=url] {
	width: 100%; background: #12151f; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 11px 13px; color: #fff;
}
.sp-content-wrap .comments-area .submit {
	background: #FACC15; color: #0d0f14; border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 800; cursor: pointer;
}

/* --------------------------------------------------------------------------
   Strony z bloków „Tłocznia — sekcje”: zwykłe bloki wstawione między sekcje
   dostają kontener i typografię jak treść strony (.page-content-inner).
   -------------------------------------------------------------------------- */
.tl-blocks {
	background: #0d0f1a;
}
.tl-blocks > :not(section):not(.ticker-wrap) {
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 60px;
	font-family: Inter, sans-serif;
	font-size: 15px;
	line-height: 1.75;
	color: rgba(255, 255, 255, .78);
}
.tl-blocks > :not(section):not(.ticker-wrap) + :not(section):not(.ticker-wrap) {
	margin-top: 1em;
}
.tl-blocks > :not(section):not(.ticker-wrap):first-child,
.tl-blocks > section + :not(section):not(.ticker-wrap),
.tl-blocks > .ticker-wrap + :not(section):not(.ticker-wrap) {
	padding-top: 64px;
}
.tl-blocks > :not(section):not(.ticker-wrap):has(+ section),
.tl-blocks > :not(section):not(.ticker-wrap):last-child {
	padding-bottom: 64px;
}
.tl-blocks > :is(h1, h2, h3, h4) {
	font-family: Oswald, sans-serif;
	color: #fff;
	text-transform: uppercase;
	line-height: 1.2;
}
.tl-blocks > .wp-block-image img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}
@media (max-width: 768px) {
	.tl-blocks > :not(section):not(.ticker-wrap) {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Nagłówek listy artykułów. */
.bl-page-heading { padding: 48px 0 0; }
.bl-page-heading-inner { max-width: 1340px; margin: 0 auto; padding: 0 32px; }
.bl-page-kicker { display: block; margin-bottom: 10px; color: #FACC15; font: 700 11px/1.4 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.bl-page-heading h1 { margin: 0; color: #fff; font: 700 clamp(36px, 4vw, 54px)/1.1 Oswald, sans-serif; text-transform: uppercase; }
.bl-page-heading p { max-width: 640px; margin: 14px 0 0; color: #d8dbe8; font: 400 14px/1.7 Inter, sans-serif; }
.bl-page-heading + .bl-hero { padding-top: 32px; }
@media (max-width: 900px) {
	.bl-page-heading { padding-top: 32px; }
	.bl-page-heading-inner { padding: 0 20px; }
}

/* Czytelna zajawka wyróżnionego artykułu na rozjaśnionym tle. */
.bl-hero-excerpt { color: #d8dbe8; }

/* Czytelne nazwy produktów i jedna lista przewijania na telefonie. */
@media (max-width: 600px) {
	.mobile-search-dropdown.has-results { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: hidden; }
	.mobile-search-dropdown .search-dropdown-inner { padding: 8px 10px 12px; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto; }
	.mobile-search-dropdown .sr-item { gap: 10px; padding: 10px 4px; }
	.mobile-search-dropdown .sr-title { white-space: normal; overflow-wrap: anywhere; }
	.mobile-search-dropdown .sr-price { font-size: 14px; }
}


/* Czytelna tabela odżywcza: wspólny układ na komputerze i telefonie. */
.sp-tabs-section .sp-wartosci { width: 100%; max-width: 960px; margin: 0 auto; }
.sp-wartosci .tl-nutrition { width: 100%; max-width: none; margin: 0 auto; box-sizing: border-box; }
.sp-wartosci .tl-nutrition__table { width: 100%; table-layout: fixed; }
.sp-wartosci .tl-nutrition__table th:first-child { width: 45%; }
.sp-wartosci .tl-nutrition__table th,
.sp-wartosci .tl-nutrition__table td { overflow-wrap: anywhere; letter-spacing: normal; }
.sp-wartosci .tl-nutrition__note a { color: #FACC15; text-decoration: underline; text-underline-offset: .2em; }
.sp-wartosci .tl-nutrition__note a:focus-visible { outline: 2px solid #FACC15; outline-offset: 3px; }
@media (max-width: 600px) {
  .sp-wartosci .tl-nutrition { padding: 16px; }
  .sp-wartosci .tl-nutrition__table th,
  .sp-wartosci .tl-nutrition__table td { padding: 12px 8px; font-size: 13px; line-height: 1.5; }
  .sp-wartosci .tl-nutrition__table th:first-child { width: 40%; }
  .sp-wartosci .tl-nutrition__table caption { font-size: 17px; text-align: left; }
}

/* Zawijanie energii i pełne nazwy składników na wąskim ekranie. */
@media (max-width: 600px) {
  .sp-wartosci .tl-nutrition__table th:first-child { width: 48%; }
  .sp-wartosci .tl-nutrition__table td { white-space: normal; }
}
