:root {
	--gw-ink: #101114;
	--gw-muted: #626772;
	--gw-line: #dfe3ea;
	--gw-paper: #ffffff;
	--gw-soft: #f4f7fb;
	--gw-accent: #ff4d1a;
	--gw-accent-strong: #e03c0d;
	--gw-radius: 8px;
	--gw-shadow: 0 24px 70px rgba(16, 17, 20, 0.08);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--gw-paper);
	color: var(--gw-ink);
	font-family: var(--gw-font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: var(--gw-font-size, 16px);
	line-height: var(--gw-line-height, 1.5);
}

/* Global settings: heading weight token. Default `bold` keeps native headings
   (browser default font-weight:bold) byte-identical when no setting is saved. */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: var(--gw-heading-weight, bold);
}

a {
	color: inherit;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.gw-site-header,
.gw-site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 22px 0;
}

.gw-site-header {
	border-bottom: 1px solid var(--gw-line);
}

.gw-site-footer {
	border-top: 1px solid var(--gw-line);
	color: var(--gw-muted);
	font-size: 14px;
}

.gw-site-brand {
	font-weight: 800;
	text-decoration: none;
}

.gw-site-nav ul {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-site-main {
	min-height: 70vh;
	/* Query container so the builder's fluid font-sizes (clamp + cqw) scale to the
	   content width on the front, mirroring the editor canvas (also a @container). */
	container-type: inline-size;
}

.gw-content--page {
	width: 100%;
}

.gw-builder-section {
	padding: clamp(56px, 9vw, 112px) 20px;
}

.gw-builder-section--soft {
	background: var(--gw-soft);
}

.gw-builder-container {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.gw-builder-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
}

.gw-builder-hero-copy {
	grid-column: span 7;
	align-self: center;
}

.gw-builder-hero-panel {
	grid-column: span 5;
	align-self: stretch;
	padding: 28px;
	border: 1px solid var(--gw-line);
	border-radius: var(--gw-radius);
	background: var(--gw-paper);
	box-shadow: var(--gw-shadow);
}

.gw-builder-eyebrow {
	margin: 0 0 14px;
	color: var(--gw-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gw-builder-heading {
	max-width: 860px;
	margin: 0;
	font-size: clamp(42px, 7vw, 84px);
	line-height: 0.96;
	letter-spacing: 0;
}

.gw-builder-text {
	max-width: 680px;
	margin: 22px 0 0;
	color: var(--gw-muted);
	font-size: 18px;
}

.gw-builder-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.gw-builder-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: var(--gw-btn-pad-y, 0) var(--gw-btn-pad-x, 18px);
	border: 1px solid var(--gw-ink);
	border-radius: var(--gw-btn-radius, 6px);
	background: var(--gw-ink);
	color: #ffffff;
	font-weight: var(--gw-btn-weight, 750);
	text-decoration: none;
}

.gw-builder-button--secondary {
	background: transparent;
	color: var(--gw-ink);
}

.gw-builder-card {
	padding: 22px;
	border: 1px solid var(--gw-line);
	border-radius: var(--gw-radius);
	background: var(--gw-paper);
}

.gw-builder-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
}

.gw-builder-card p {
	margin: 0;
	color: var(--gw-muted);
}

.gw-builder-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 36px;
}

.gw-builder-columns {
	display: grid;
	gap: 24px;
}

.gw-builder-columns--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gw-builder-columns--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gw-builder-column {
	min-width: 0;
}

.gw-builder-image {
	margin: 24px 0 0;
}

.gw-builder-image img {
	width: 100%;
	border-radius: var(--gw-radius);
}

.gw-builder-image figcaption {
	margin-top: 8px;
	color: var(--gw-muted);
	font-size: 14px;
}

.gw-builder-list {
	margin: 22px 0 0;
	padding-left: 24px;
	color: var(--gw-ink);
	font-size: 18px;
}

.gw-builder-list li + li {
	margin-top: 8px;
}

.gw-builder-divider {
	margin: 32px 0;
	border: 0;
	border-top: 1px solid var(--gw-line);
}

.gw-builder-spacer {
	display: block;
}

@media (max-width: 760px) {
	.gw-site-header,
	.gw-site-footer {
		width: min(100% - 28px, 1180px);
		align-items: flex-start;
		flex-direction: column;
	}

	.gw-builder-grid,
	.gw-builder-card-grid,
	.gw-builder-columns--two,
	.gw-builder-columns--three {
		grid-template-columns: 1fr;
	}

	.gw-builder-hero-copy,
	.gw-builder-hero-panel {
		grid-column: auto;
	}
}

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

.screen-reader-text:focus {
	background-color: var(--gw-ink);
	border-radius: 4px;
	clip: auto !important;
	clip-path: none;
	color: var(--gw-paper);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 1rem;
	line-height: 1.5;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* ============================================================
   Global header (builder pill) — clear the WP admin bar.
   The header Section is position:fixed top:12px z-40; #wpadminbar
   is fixed top:0 z-99999 h-32, so the pill tucks under it when
   logged in. Push it down by the admin-bar height (margins offset
   fixed elements, so no !important fight with the inline top).
   ============================================================ */
body.admin-bar :is(.gw-floating-nav, header.gotoweb-craft-template > :first-child) {
	margin-top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar :is(.gw-floating-nav, header.gotoweb-craft-template > :first-child) {
		margin-top: 46px;
	}
}

/* ============================================================
   NATIVE (non-builder) CONTENT
   404, single posts, plain pages, archives, search results.
   Without builder inline styles these dumped flush to the top-left;
   give them a centered, padded, readable column that clears the
   fixed header and matches the brand.
   ============================================================ */
.gw-prose {
	width: min(760px, calc(100% - 48px));
	margin: 0 auto;
	padding: clamp(120px, 15vw, 168px) 0 clamp(64px, 9vw, 120px);
	font-size: 18px;
	line-height: 1.7;
	color: #2b2f36;
}

.gw-prose > :first-child {
	margin-top: 0;
}

.gw-prose h1,
.gw-prose h2,
.gw-prose h3,
.gw-prose h4 {
	color: var(--gw-ink);
	letter-spacing: -0.02em;
}

.gw-prose h1 {
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.06;
	margin: 0 0 0.55em;
}

.gw-prose h2 {
	font-size: clamp(25px, 3.4vw, 34px);
	line-height: 1.15;
	margin: 1.7em 0 0.5em;
}

.gw-prose h3 {
	font-size: 22px;
	margin: 1.5em 0 0.4em;
}

.gw-prose p {
	margin: 0 0 1.25em;
}

.gw-prose a {
	color: var(--gw-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.gw-prose a:hover {
	color: var(--gw-accent-strong);
}

.gw-prose ul,
.gw-prose ol {
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}

.gw-prose li {
	margin: 0.35em 0;
}

.gw-prose img {
	border-radius: 16px;
	margin: 1.6em 0;
}

.gw-prose blockquote {
	margin: 1.6em 0;
	padding: 0.4em 1.3em;
	border-left: 3px solid var(--gw-accent);
	color: var(--gw-muted);
	font-style: italic;
}

.gw-prose code {
	background: #f3f4f6;
	padding: 0.15em 0.42em;
	border-radius: 6px;
	font-size: 0.9em;
}

.gw-prose pre {
	margin: 1.6em 0;
	padding: 20px 22px;
	border-radius: 16px;
	background: #0f1115;
	color: #e5e7eb;
	overflow: auto;
}

.gw-prose pre code {
	padding: 0;
	background: none;
}

.gw-prose hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--gw-line);
}

/* 404 — friendly, centered */
.gw-content--404 {
	text-align: center;
}

.gw-content--404 h1 {
	font-size: clamp(60px, 12vw, 116px);
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.gw-content--404 p {
	color: var(--gw-muted);
	font-size: 19px;
}

.gw-content--404 .gw-search-form {
	max-width: 440px;
	margin: 30px auto 0;
}

/* Archive + search listings */
.gw-archive-header {
	width: min(960px, calc(100% - 48px));
	margin: 0 auto;
	padding: clamp(120px, 15vw, 168px) 0 4px;
}

.gw-archive-header h1 {
	margin: 0;
	font-size: clamp(34px, 5vw, 54px);
	letter-spacing: -0.02em;
	color: var(--gw-ink);
}

.gw-archive-header h1 span {
	color: var(--gw-accent);
}

.gw-archive-description {
	margin-top: 14px;
	color: var(--gw-muted);
	font-size: 18px;
}

.gw-archive-list {
	width: min(960px, calc(100% - 48px));
	margin: 32px auto 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 16px;
}

.gw-archive-item {
	padding: 26px 28px;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	background: var(--gw-paper);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gw-archive-item:hover {
	border-color: #cdd3dd;
	box-shadow: 0 18px 50px rgba(16, 17, 20, 0.08);
	transform: translateY(-2px);
}

.gw-archive-item a {
	text-decoration: none;
}

.gw-archive-item h2 {
	margin: 0;
	font-size: 23px;
	letter-spacing: -0.01em;
	color: var(--gw-ink);
}

.gw-archive-item:hover h2 {
	color: var(--gw-accent);
}

.gw-archive-item p {
	margin: 10px 0 0;
	color: var(--gw-muted);
	line-height: 1.6;
}

.gw-archive-pagination {
	width: min(960px, calc(100% - 48px));
	margin: 40px auto clamp(64px, 9vw, 120px);
}

.gw-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	margin: 0 4px 8px 0;
	border: 1px solid var(--gw-line);
	border-radius: 10px;
	color: var(--gw-ink);
	font-weight: 650;
	text-decoration: none;
}

.gw-archive-pagination .page-numbers.current {
	background: var(--gw-ink);
	border-color: var(--gw-ink);
	color: #fff;
}

.gw-archive-pagination .page-numbers:not(.current):hover {
	border-color: var(--gw-accent);
	color: var(--gw-accent);
}

/* Search form (searchform.php) */
.gw-search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.gw-search-form {
	display: flex;
	gap: 10px;
}

.gw-search-field {
	flex: 1;
	min-height: 52px;
	padding: 0 18px;
	border: 1px solid var(--gw-line);
	border-radius: 12px;
	background: var(--gw-paper);
	color: var(--gw-ink);
	font-size: 16px;
}

.gw-search-field:focus {
	outline: 2px solid var(--gw-accent);
	outline-offset: 1px;
	border-color: transparent;
}

.gw-search-submit {
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	background: var(--gw-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.gw-search-submit:hover {
	background: var(--gw-accent-strong);
}

/* ============================================================
   Product single-template hero — stack the 2-column grid on
   narrow screens (the grid template columns are inline so the
   override needs !important).
   ============================================================ */
@media (max-width: 980px) {
	.gpt-hero-2col {
		grid-template-columns: 1fr !important;
	}
}

/* ============================================================
   WooCommerce — cart / checkout / my-account brand polish.
   Native WC pages (page.php adds .gw-wc) get a wide centered
   container that clears the fixed header, plus coral buttons,
   rounded panels and a sidebar account nav.
   ============================================================ */
.gw-wc {
	/* Match the site content width (1600px, same as builder pages/header/footer)
	   so cart/checkout don't render narrower than the rest of the store. */
	width: min(1600px, calc(100% - 48px));
	margin: 0 auto;
	padding: clamp(120px, 15vw, 168px) 0 clamp(64px, 9vw, 120px);
}

.gw-wc h1 {
	margin: 0 0 24px;
	font-size: clamp(30px, 4vw, 46px);
	letter-spacing: -0.02em;
	color: var(--gw-ink);
}

/* Buttons → brand coral (classic + block WC) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button {
	background: var(--gw-accent) !important;
	border: 0 !important;
	border-radius: var(--gw-btn-radius, 10px) !important;
	color: #fff !important;
	font-weight: var(--gw-btn-weight, 700) !important;
	padding: var(--gw-btn-pad-y, 0.75em) var(--gw-btn-pad-x, 1.5em) !important;
	box-shadow: none !important;
	transition: background 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:hover {
	background: var(--gw-accent-strong) !important;
}

/* Tables + total/payment panels */
.woocommerce table.shop_table {
	border: 1px solid var(--gw-line);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce table.shop_table th {
	background: var(--gw-soft);
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #payment,
.woocommerce-checkout .woocommerce-checkout-review-order {
	background: var(--gw-paper);
	border: 1px solid var(--gw-line);
	border-radius: 16px;
	padding: 22px;
}

.woocommerce-checkout #payment {
	background: var(--gw-soft);
}

/* Form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page input.input-text,
.select2-container .select2-selection--single {
	min-height: 48px !important;
	padding: 12px 14px !important;
	border: 1px solid var(--gw-line) !important;
	border-radius: 10px !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce-page input.input-text:focus {
	outline: 2px solid var(--gw-accent);
	border-color: transparent !important;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
	border-top-color: var(--gw-accent) !important;
	border-radius: 12px;
}

/* My-account: navigation as a sidebar */
.woocommerce-account .woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 240px;
	flex-shrink: 0;
}

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	color: var(--gw-ink);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
	background: var(--gw-soft);
	color: var(--gw-accent);
}

.woocommerce-account .woocommerce-MyAccount-content {
	flex: 1;
	min-width: 0;
}

@media (max-width: 760px) {
	.woocommerce-account .woocommerce-MyAccount-navigation {
		width: 100%;
	}
}

/* ============================================================
   WooCommerce — premium polish (cart / checkout review tables,
   thumbnails, quantity, coupon, summary cards). Builds on the
   coral buttons + rounded panels above so the native WC pages
   feel designed, not default.
   ============================================================ */
.gw-wc table.shop_table {
	background: #fff;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(31, 29, 27, 0.04), 0 24px 50px -30px rgba(31, 29, 27, 0.14);
}

.gw-wc table.shop_table th {
	background: var(--gw-soft);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gw-muted, #6b6661);
	padding: 15px 22px;
}

.gw-wc table.shop_table td {
	padding: 18px 22px;
	vertical-align: middle;
	border-top: 1px solid var(--gw-line);
}

.gw-wc table.shop_table tr:first-child td {
	border-top: 0;
}

/* Product thumbnail — fixed, rounded, never a stark broken box */
.gw-wc td.product-thumbnail img,
.gw-wc .cart_item .product-thumbnail img {
	width: 60px;
	height: 60px;
	max-width: none;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid var(--gw-line);
	background: var(--gw-soft);
}

.gw-wc td.product-thumbnail {
	width: 84px;
}

.gw-wc .product-name a,
.gw-wc .cart_item a:not(.remove) {
	font-weight: 600;
	color: var(--gw-ink);
	text-decoration: none;
}

.gw-wc .product-name a:hover {
	color: var(--gw-accent);
}

/* Remove "×" → subtle round button */
.gw-wc a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--gw-soft);
	color: var(--gw-muted, #6b6661) !important;
	font-size: 17px;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease;
}

.gw-wc a.remove:hover {
	background: #fde7e1;
	color: var(--gw-accent) !important;
}

/* Quantity field */
.gw-wc .quantity input.qty {
	width: 66px;
	min-height: 44px;
	text-align: center;
	border: 1px solid var(--gw-line);
	border-radius: 10px;
	font-weight: 600;
	background: #fff;
}

/* Cart actions / coupon row */
.gw-wc .cart .actions {
	padding-top: 18px;
}

.gw-wc .cart .actions .coupon {
	display: flex;
	gap: 10px;
	align-items: center;
}

.gw-wc .cart .actions .coupon #coupon_code {
	min-width: 200px;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid var(--gw-line);
	border-radius: 10px;
}

/* Totals + checkout review → premium card */
.gw-wc .cart-collaterals .cart_totals,
.gw-wc .woocommerce-checkout-review-order,
.gw-wc .woocommerce-order-details,
.gw-wc .woocommerce-customer-details {
	background: #fff;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 24px 50px -30px rgba(31, 29, 27, 0.14);
}

.gw-wc .cart_totals h2,
.gw-wc #order_review_heading {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 18px;
}

/* Inner review/total tables are borderless inside the card */
.gw-wc .cart_totals table.shop_table,
.gw-wc .woocommerce-checkout-review-order-table {
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.gw-wc .cart_totals table.shop_table th,
.gw-wc .woocommerce-checkout-review-order-table th {
	background: transparent;
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	color: var(--gw-ink);
	padding: 10px 0;
}

.gw-wc .cart_totals table.shop_table td,
.gw-wc .woocommerce-checkout-review-order-table td {
	padding: 10px 0;
	text-align: right;
}

.gw-wc .order-total th,
.gw-wc .order-total td {
	font-size: 17px;
	font-weight: 700;
	border-top: 1px solid var(--gw-line);
	padding-top: 16px !important;
}

/* Full-width primary actions */
.gw-wc .wc-proceed-to-checkout .checkout-button,
.gw-wc #place_order {
	width: 100%;
	display: block;
	text-align: center;
	font-size: 16px;
	padding: 15px 20px !important;
	border-radius: 12px !important;
	margin-top: 8px;
}

/* Checkout columns + payment box */
.gw-wc .woocommerce-billing-fields h3,
.gw-wc .woocommerce-additional-fields h3,
.gw-wc #order_review_heading {
	font-size: 18px;
	font-weight: 700;
}

.gw-wc #payment.woocommerce-checkout-payment {
	background: var(--gw-soft);
	border: 1px solid var(--gw-line);
	border-radius: 16px;
}

.gw-wc #payment ul.payment_methods {
	border-bottom: 1px solid var(--gw-line);
}

.gw-wc #payment div.payment_box {
	background: #fff;
	border-radius: 10px;
}

.gw-wc #payment div.payment_box::before {
	border-bottom-color: #fff !important;
}

/* Empty-cart + return links */
.gw-wc .cart-empty.woocommerce-info {
	font-size: 17px;
}

/* ============================================================
   Shopify-style checkout — form left, sticky order summary on a
   soft panel right. Restructures WC's stacked checkout via grid.
   ============================================================ */
@media (min-width: 901px) {
	.gw-wc form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 432px;
		gap: 56px;
		align-items: start;
	}

	/* LEFT: customer details + payment methods + notes; RIGHT: recap + consents + CTA */
	.gw-wc form.checkout .gw-checkout-left {
		grid-column: 1;
		min-width: 0;
	}

	.gw-wc form.checkout .gw-checkout-right {
		grid-column: 2;
		position: sticky;
		top: 96px;
	}
}

.gw-wc form.checkout .gw-checkout-right #order_review_heading {
	margin: 0 0 16px;
}

/* Left column is a flex stack; #customer_details dissolves so billing / shipping /
   notes become siblings of the payment card, then `order` sequences the cards:
   1 Dane rozliczeniowe → 2 Płatność → Wysyłka → Informacje dodatkowe. */
.gw-wc form.checkout .gw-checkout-left {
	display: flex;
	flex-direction: column;
}

.gw-wc form.checkout .gw-checkout-left #customer_details {
	display: contents;
}

.gw-wc form.checkout .gw-checkout-left .col-1 {
	order: 1;
}

.gw-wc form.checkout .gw-checkout-left .gw-pay-heading {
	order: 2;
}

.gw-wc form.checkout .gw-checkout-left #payment {
	order: 3;
}

.gw-wc form.checkout .gw-checkout-left .col-2 {
	order: 4;
}

/* Left column: stack billing + order-notes (WC floats them side by side) */
.gw-wc #customer_details.col2-set {
	display: block;
}

.gw-wc #customer_details .col-1,
.gw-wc #customer_details .col-2 {
	width: 100%;
	max-width: none;
	float: none;
	margin: 0;
}

.gw-wc .woocommerce-billing-fields h3,
.gw-wc .woocommerce-additional-fields h3,
.gw-wc #order_review_heading {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-bottom: 14px;
}

/* Right column: the soft Shopify summary panel */
.gw-wc #order_review.woocommerce-checkout-review-order {
	background: #f7f7f8;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	padding: 26px;
	box-shadow: none;
}

.gw-wc #order_review .woocommerce-checkout-review-order-table {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.gw-wc #order_review .woocommerce-checkout-review-order-table thead {
	display: none;
}

.gw-wc #order_review .cart_item td {
	border: 0;
	padding: 9px 0;
	font-size: 14px;
}

/* Line item on ONE row: [thumb] name ×N ............ total */
.gw-wc #order_review .cart_item td.product-name {
	text-align: left;
	color: var(--gw-ink);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Shopify-style line item: thumbnail + name */
.gw-wc #order_review .gw-coi {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 1 auto;
	min-width: 0;
}

.gw-wc #order_review .gw-coi-thumb-img {
	width: 46px;
	height: 46px;
	max-width: none;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid var(--gw-line);
	background: var(--gw-soft);
	flex-shrink: 0;
}

.gw-wc #order_review .gw-coi-name {
	font-weight: 600;
	line-height: 1.3;
}

.gw-wc #order_review .product-quantity {
	color: var(--gw-muted, #6b6661);
	font-weight: 600;
	flex-shrink: 0;
	white-space: nowrap;
}

.gw-wc #order_review .woocommerce-checkout-review-order-table {
	width: 100%;
	table-layout: auto;
}

.gw-wc #order_review .cart_item td.product-total {
	text-align: right;
	white-space: nowrap;
	width: 1%;
	padding-left: 10px;
	vertical-align: middle;
}

.gw-wc #order_review .cart-subtotal th,
.gw-wc #order_review .cart-subtotal td,
.gw-wc #order_review .tax-rate th,
.gw-wc #order_review .tax-rate td {
	border: 0;
	border-top: 1px solid var(--gw-line);
	padding: 14px 0 6px;
	font-size: 14px;
	color: var(--gw-muted, #6b6661);
}

.gw-wc #order_review .order-total th,
.gw-wc #order_review .order-total td {
	border-top: 1px solid var(--gw-line);
	padding-top: 16px !important;
	font-size: 18px;
}

/* Payment METHODS card — left column (moved out of #order_review) */
.gw-wc .gw-checkout-left #payment.woocommerce-checkout-payment {
	background: #fff;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	padding: 12px;
	margin-bottom: 18px;
	box-shadow: 0 1px 2px rgba(31, 29, 27, 0.04), 0 24px 50px -34px rgba(31, 29, 27, 0.12);
}

.gw-wc .gw-checkout-left #payment ul.payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Each gateway → a selectable bordered row */
.gw-wc .gw-checkout-left #payment li.wc_payment_method {
	list-style: none;
	border: 1px solid var(--gw-line);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0 0 8px;
}

.gw-wc .gw-checkout-left #payment li.wc_payment_method:last-child {
	margin-bottom: 0;
}

/* Radio + label + gateway logo on one line */
.gw-wc .gw-checkout-left #payment li.wc_payment_method > label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 600;
	color: var(--gw-ink);
	cursor: pointer;
}

.gw-wc .gw-checkout-left #payment li.wc_payment_method label img {
	max-height: 22px;
	width: auto;
	margin: 0 0 0 4px;
	display: inline-block;
	vertical-align: middle;
}

.gw-wc .gw-checkout-left #payment li.wc_payment_method input.input-radio {
	accent-color: var(--gw-accent);
	margin: 0 6px 0 0;
	width: 18px;
	height: 18px;
}

/* Highlight the chosen method */
.gw-wc .gw-checkout-left #payment li.wc_payment_method:has(input.input-radio:checked) {
	border-color: var(--gw-accent);
	box-shadow: 0 0 0 2px rgba(255, 77, 26, 0.12);
}

/* Gateway description → soft inset box (drop WC's default callout triangle) */
.gw-wc .gw-checkout-left #payment .payment_box {
	background: var(--gw-soft);
	border-radius: 10px;
	margin: 12px 0 0;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--gw-muted, #6b6661);
}

.gw-wc .gw-checkout-left #payment .payment_box::before {
	display: none;
}

.gw-wc .gw-checkout-left #payment .payment_box p:last-child {
	margin-bottom: 0;
}

/* Shopify-style cart — items left, sticky summary panel right */
@media (min-width: 901px) {
	.woocommerce-cart .gw-wc .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 372px;
		gap: 48px;
		align-items: start;
	}

	.woocommerce-cart .gw-wc form.woocommerce-cart-form {
		grid-column: 1;
		margin: 0;
	}

	.woocommerce-cart .gw-wc .cart-collaterals {
		grid-column: 2;
	}

	.woocommerce-cart .gw-wc .cart-collaterals .cart_totals {
		position: sticky;
		top: 96px;
	}
}

.woocommerce-cart .gw-wc .cart-collaterals,
.woocommerce-cart .gw-wc .cart-collaterals .cart_totals {
	width: 100% !important;
	float: none;
}

.woocommerce-cart .gw-wc .cart_totals .checkout-button {
	margin-top: 6px;
}

/* ============================================================
   Classic checkout dressed as the BLOCK checkout, split into two
   columns (form-checkout.php override): LEFT = billing + shipping +
   payment methods + notes as white step-cards; RIGHT = soft summary
   panel + consents + coral place-order CTA. payment.php renders the
   methods only; gotoweb_checkout_place_order() emits the consents +
   buy button on the right, outside the AJAX fragments.
   ============================================================ */
/* One step counter across the whole form. Only the two real actions are numbered:
   Dane rozliczeniowe (1) and Płatność (2); shipping + notes stay un-numbered. */
.gw-wc form.checkout {
	counter-reset: gw-cstep;
}

/* Left-column form sections → white brand cards (mirror the block step cards) */
.gw-wc form.checkout .woocommerce-billing-fields,
.gw-wc form.checkout .woocommerce-shipping-fields,
.gw-wc form.checkout .woocommerce-additional-fields {
	background: #fff;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	padding: 24px 28px;
	margin-bottom: 18px;
	box-shadow: 0 1px 2px rgba(31, 29, 27, 0.04), 0 24px 50px -34px rgba(31, 29, 27, 0.12);
}

/* WooCommerce always emits a .woocommerce-shipping-fields wrapper; when shipping is
   collected from billing it is rendered EMPTY (no element children). Collapse the
   empty wrapper so it never paints a blank white card. A populated shipping form
   (with the "ship to a different address" toggle / fields) keeps its card. */
.gw-wc form.checkout .woocommerce-shipping-fields:not(:has(*)) {
	display: none;
}

/* The create-account block sits inside billing — give it a hairline divider, not a card */
.gw-wc form.checkout .woocommerce-account-fields {
	margin-top: 12px;
}

/* Numbered step-heading: coral badge + Bricolage title (matches the block).
   Only the two real actions are numbered — Dane rozliczeniowe (1) and
   Płatność (2). The optional order-notes card stays un-numbered, like the
   block's note card. */
.gw-wc form.checkout .woocommerce-billing-fields > h3,
.gw-wc form.checkout .gw-pay-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	counter-increment: gw-cstep;
	font-family: "Bricolage Grotesque", "Inter", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--gw-ink);
	margin: 0 0 18px;
}

/* Optional order-notes heading → same type scale, no badge */
.gw-wc form.checkout .woocommerce-additional-fields > h3 {
	font-family: "Bricolage Grotesque", "Inter", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--gw-ink);
	margin: 0 0 14px;
}

.gw-wc form.checkout .woocommerce-billing-fields > h3::before,
.gw-wc form.checkout .gw-pay-heading::before {
	content: counter(gw-cstep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--gw-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

/* Coral focus ring on inputs (matches the block; overrides the base outline) */
.gw-wc form .form-row input.input-text:focus,
.gw-wc form .form-row textarea:focus,
.gw-wc .select2-container--open .select2-selection,
.gw-wc .select2-container--focus .select2-selection {
	outline: none !important;
	border-color: var(--gw-accent) !important;
	box-shadow: 0 0 0 2px rgba(255, 77, 26, 0.25) !important;
}

/* "Płatność" step heading sits above the methods card in the left column */
.gw-wc form.checkout .gw-checkout-left .gw-pay-heading {
	margin: 6px 0 14px;
}

/* Order-summary heading harmonised with the step titles (no badge — it's the recap) */
.gw-wc form.checkout #order_review_heading {
	font-family: "Bricolage Grotesque", "Inter", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--gw-ink);
}

/* Consents + buy button block, divided from the totals above */
.gw-wc #order_review .gw-place-order {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--gw-line);
}

/* Consents under the recap → muted helper text */
.gw-wc #order_review .woocommerce-terms-and-conditions-wrapper,
.gw-wc #order_review .woocommerce-privacy-policy-text {
	margin: 6px 2px 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--gw-muted, #6b6661);
}

.gw-wc #order_review .woocommerce-terms-and-conditions-wrapper a,
.gw-wc #order_review .woocommerce-privacy-policy-text a {
	color: var(--gw-accent);
	font-weight: 600;
}

/* Place-order CTA → full-width coral pill under the summary (matches the block) */
.gw-wc #order_review #place_order,
.gw-wc #order_review .form-row.place-order .button {
	width: 100%;
	display: block;
	border-radius: 12px !important;
	min-height: 52px;
	font-size: 16px !important;
	margin-top: 4px;
}

/* Stack to one column on phones; drop the sticky + card padding a touch */
@media (max-width: 900px) {
	.gw-wc form.checkout .woocommerce-billing-fields,
	.gw-wc form.checkout .woocommerce-shipping-fields,
	.gw-wc form.checkout .woocommerce-additional-fields {
		padding: 20px 18px;
	}

	.gw-wc form.checkout #order_review_heading {
		margin-top: 24px;
	}
}

/* ============================================================
   BLOCK checkout (woocommerce/checkout) — Shopify brand polish.
   The block emits a wc-block-* namespace (the classic .gw-wc rules
   above don't match it), so this is a parallel layer: rounded inputs
   + coral focus, brand section titles, a soft summary-panel card.
   ============================================================ */
.gw-wc .wc-block-components-text-input input,
.gw-wc .wc-block-components-text-input textarea,
.gw-wc .wc-block-components-select .wc-block-components-select__select,
.gw-wc .wc-block-components-address-form input,
.gw-wc .wc-block-components-combobox input {
	border-radius: 10px !important;
	border: 1px solid var(--gw-line) !important;
	min-height: 50px;
}

.gw-wc .wc-block-components-text-input.is-active input,
.gw-wc .wc-block-components-text-input input:focus,
.gw-wc .wc-block-components-address-form input:focus {
	border-color: var(--gw-accent) !important;
	box-shadow: 0 0 0 2px rgba(255, 77, 26, 0.25) !important;
	outline: none !important;
}

.gw-wc .wc-block-components-checkout-step__title,
.gw-wc .wc-block-components-title {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--gw-ink);
}

/* Sticky order-summary panel → soft brand card */
.gw-wc .wc-block-checkout__sidebar > .wc-block-components-sidebar {
	background: #f7f7f8;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	padding: 24px;
}

.gw-wc .wc-block-components-order-summary-item__image img,
.gw-wc .wc-block-components-order-summary__content img {
	border-radius: 10px;
}

.gw-wc .wc-block-components-totals-footer-item {
	font-size: 18px;
	font-weight: 700;
}

/* Place-order + payment radios brand-rounded (button colour comes from the
   existing .wc-block-components-button coral rule). */
.gw-wc .wc-block-components-checkout-place-order-button {
	border-radius: 12px !important;
	min-height: 52px;
	font-size: 16px;
}

.gw-wc .wc-block-components-radio-control-accordion-option,
.gw-wc .wc-block-checkout__payment-method .wc-block-components-radio-control__option {
	border-radius: 12px;
}

/* --- Brand section cards + numbered steps (1·2·3, Shopify feel) ----- */
.gw-wc .wc-block-checkout__main {
	counter-reset: gw-step;
}

.gw-wc .wc-block-checkout__main .wc-block-components-checkout-step {
	counter-increment: gw-step;
	background: #fff;
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	padding: 24px 28px;
	margin-bottom: 18px;
	box-shadow: 0 1px 2px rgba(31, 29, 27, 0.04), 0 24px 50px -34px rgba(31, 29, 27, 0.12);
}

/* Step heading gets a coral numbered badge */
.gw-wc .wc-block-components-checkout-step__heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 6px;
}

.gw-wc .wc-block-components-checkout-step__title {
	font-family: "Bricolage Grotesque", "Inter", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--gw-ink);
}

.gw-wc .wc-block-components-checkout-step__heading::before {
	content: counter(gw-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--gw-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

.gw-wc .wc-block-components-checkout-step__description {
	color: var(--gw-muted, #6b6661);
	margin-left: 44px;
}

/* The summary panel as a brand soft card */
.gw-wc .wc-block-checkout__sidebar {
	background: var(--gw-soft);
	border: 1px solid var(--gw-line);
	border-radius: 18px;
	padding: 26px 24px;
}

.gw-wc .wc-block-components-order-summary__button-text,
.gw-wc .wc-block-components-totals-item__label {
	color: var(--gw-ink);
}

/* Spacing rhythm + remove WC's default rule lines between steps */
.gw-wc .wc-block-checkout__main .wc-block-components-checkout-step:not(:last-child) {
	border-bottom: 1px solid var(--gw-line);
}

.gw-wc .wc-block-checkout__actions {
	margin-top: 8px;
}

/* ============================================================
   Mobile navigation — hamburger for the floating header pill.
   The horizontal pill (logo / <nav> links / <div> action buttons)
   overflows on phones; below 768px collapse the links + buttons
   behind a toggle (frontend.js adds .gw-nav-open).
   ============================================================ */
.gw-nav-toggle {
	display: none;
}

@media (max-width: 767px) {
	.gw-floating-nav {
		flex-wrap: wrap !important;
	}

	.gw-nav-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		margin-left: auto;
		padding: 11px;
		border: 0;
		border-radius: 12px;
		background: transparent;
		cursor: pointer;
	}

	.gw-nav-toggle span {
		display: block;
		width: 22px;
		height: 2px;
		border-radius: 2px;
		background: var(--gw-ink);
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.gw-nav-open .gw-nav-toggle span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.gw-nav-open .gw-nav-toggle span:nth-child(2) {
		opacity: 0;
	}

	.gw-nav-open .gw-nav-toggle span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Hide the links + action buttons until the toggle opens. */
	.gw-floating-nav > nav,
	.gw-floating-nav > div {
		display: none !important;
	}

	.gw-floating-nav.gw-nav-open > nav {
		display: flex !important;
		flex-basis: 100%;
		width: 100%;
		margin-top: 14px;
	}

	.gw-floating-nav.gw-nav-open > nav .gotoweb-menu {
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100%;
		gap: 2px;
	}

	.gw-floating-nav.gw-nav-open > nav .gotoweb-menu li {
		width: 100%;
	}

	.gw-floating-nav.gw-nav-open > nav .gotoweb-menu a {
		display: block;
		padding: 11px 12px;
		border-radius: 10px;
	}

	.gw-floating-nav.gw-nav-open > nav .gotoweb-menu a:hover {
		background: var(--gw-soft);
	}

	.gw-floating-nav.gw-nav-open > div {
		display: flex !important;
		flex-basis: 100%;
		width: 100%;
		justify-content: stretch;
		gap: 8px;
		margin-top: 10px;
	}

	.gw-floating-nav.gw-nav-open > div > a {
		flex: 1;
		justify-content: center;
	}
}

/* ============================================================
   Mobile typography — cap oversized builder headings so they
   never overflow the viewport. Some heroes (MultilineHeading)
   carry a fixed ~83px inline font-size that doesn't shrink on
   its own; !important beats the inline value. Scales smoothly
   from phone to the 768px breakpoint.
   ============================================================ */
@media (max-width: 767px) {
	/* Heading sizes are handled by the builder's fluid type (clamp + cqw) — no
	   per-breakpoint cap needed here. */
	.gw-site-main h1,
	.gw-site-main h2,
	.gw-site-main h3,
	.gw-site-main p,
	.gw-site-main li,
	.gw-site-main span,
	.gw-site-main a {
		overflow-wrap: break-word;
	}

	/* The CSS compiler moves inline flex styles into gcb classes and the responsive
	   engine emits flex-direction inside @media (gwr) rules, so the old [style*=…]
	   guards matched nothing on the front. Target the Tailwind tokens that survive
	   on the class attribute instead (the compiler keeps the original utilities).

	   1) A base `flex-row` strip (button pairs, badges, social/tag/stat rows) wraps
	      instead of overflowing. Targeting the `flex-row` token keeps marquees safe
	      (their tracks use `gw-marquee-track`, not `flex-row`, so they keep scrolling
	      on one line). */
	.gw-site-main .flex-row {
		flex-wrap: wrap;
	}

	/* 2) When a `flex-col @md:flex-row` row stacks back to a column on the phone its
	      children keep `items-start` (align-items:flex-start) and size to their
	      content — wider than the screen. Stretch them to the column… */
	.gw-site-main .items-start {
		align-items: stretch;
	}

	/* …and hard-cap every flex / grid child so nothing content-sizes past the
	   viewport (marquee tracks scroll on purpose — leave them be). This is what
	   restores correct mobile width for compiled builder layouts. */
	.gw-site-main .flex-col > *:not(.gw-marquee-track),
	.gw-site-main [class*="grid-cols"] > * {
		max-width: 100% !important;
		min-width: 0;
	}

	/* The platform marquee scrolls one wide track (its width + animation come from a
	   compiled gcb class). Pin it so no mobile guard above can shrink or wrap it. */
	.gw-site-main .gw-marquee-track {
		max-width: none !important;
		flex-wrap: nowrap !important;
	}

	/* The global header & footer are builder-rendered too (.gotoweb-craft-template,
	   siblings of .gw-site-main), so the same structural guards must reach them —
	   otherwise e.g. the footer's social/link rows overflow the phone. */
	.gotoweb-craft-template :is(h1, h2, h3, h4, p, li, span, a) {
		overflow-wrap: break-word;
	}
	.gotoweb-craft-template .flex-row {
		flex-wrap: wrap;
	}
	.gotoweb-craft-template .items-start {
		align-items: stretch;
	}
	.gotoweb-craft-template .flex-col > *,
	.gotoweb-craft-template [class*="grid-cols"] > * {
		max-width: 100% !important;
		min-width: 0;
	}

	/* Loop/card grids carry display:grid via the `.grid` token but bake their column
	   count into a compiled class with no responsive collapse, so on a phone the
	   cards crush to an unreadable width (a 3-col grid → ~90px cards). Force every
	   builder grid to a single column — the safe phone default — and let items
	   shrink. (StatsGrid &co. set display:grid inline, no token, so they're untouched
	   and keep their own layout.) */
	:is(.gw-site-main, .gotoweb-craft-template) .grid {
		grid-template-columns: 1fr !important;
	}
	:is(.gw-site-main, .gotoweb-craft-template) .grid > * {
		min-width: 0;
	}

	/* The search widget's filter-tab strip is a class-less inline-flex row (its flex
	   comes from a compiled style — no token to hook). Select it structurally — a flex
	   row of buttons with no text input — and wrap it on phones instead of letting the
	   tabs run off the screen. */
	.gw-site-main .gw-search-shell-wrap div:has(> button):not(:has(input)) {
		flex-wrap: wrap;
	}

	/* Media never forces horizontal scroll. */
	.gw-site-main img,
	.gw-site-main svg,
	.gw-site-main video {
		max-width: 100%;
		height: auto;
	}

	/* Final safety net: no element may cause a horizontal scrollbar (the floating
	   header is position:fixed, so it's anchored to the viewport, not clipped). */
	.gw-site-main {
		overflow-x: clip;
	}
}

@media (max-width: 767px) {
	html,
	body {
		overflow-x: clip;
		max-width: 100%;
	}
}

/* ============================================================
   WooCommerce Cart widget (Monteby WooCommerceCart) — icon /
   slide-in sidebar / floating button. One widget, three modes.
   ============================================================ */
.gotoweb-cart {
	display: inline-block;
}

.gw-cart-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--gwc-trigger-gap, 8px);
	padding: 9px 14px;
	border: 1px solid var(--gw-line);
	border-radius: 999px;
	background: #fff;
	color: var(--gw-ink);
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gw-cart-trigger:hover {
	border-color: var(--gw-accent);
}

/* Trigger icon stroke width — --gwc-icon-stroke (inherited from the wrapper)
   overrides the SVG's stroke-width attr. iconSize/iconColor are applied directly
   on the SVG's inline style by the PHP renderer (inline wins), so no rule here. */
.gw-cart-ico {
	stroke-width: var(--gwc-icon-stroke, 1.7);
}

.gw-cart-total {
	font-size: var(--gwc-total-size, 13px);
	font-weight: var(--gwc-total-weight, 700);
	color: var(--gwc-total-color, inherit);
}

.gw-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: calc(var(--gwc-badge-size, 11px) + 7px);
	height: calc(var(--gwc-badge-size, 11px) + 7px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--gwc-badge-pad, 0 5px);
	border-radius: var(--gwc-badge-radius, 999px);
	background: var(--gwc-badge-bg, var(--gw-accent));
	color: var(--gwc-badge-text, #fff);
	font-size: var(--gwc-badge-size, 11px);
	font-weight: 700;
	line-height: 1;
}

/* Floating mode: a fixed round button, bottom-right by default. The corner is
   chosen by the .gotoweb-cart--corner-{br,bl,tr,tl} modifier; --gwc-float-gap
   sets the distance from the edges (default 22px). */
.gotoweb-cart--floating .gw-cart-trigger {
	position: fixed;
	right: var(--gwc-float-gap, 22px);
	bottom: var(--gwc-float-gap, 22px);
	z-index: 1200;
	width: 56px;
	height: 56px;
	padding: 0;
	justify-content: center;
	box-shadow: 0 14px 32px -12px rgba(31, 29, 27, 0.45);
}

.gotoweb-cart--corner-br .gw-cart-trigger {
	bottom: var(--gwc-float-gap, 22px);
	right: var(--gwc-float-gap, 22px);
	top: auto;
	left: auto;
}

.gotoweb-cart--corner-bl .gw-cart-trigger {
	bottom: var(--gwc-float-gap, 22px);
	left: var(--gwc-float-gap, 22px);
	top: auto;
	right: auto;
}

.gotoweb-cart--corner-tr .gw-cart-trigger {
	top: var(--gwc-float-gap, 22px);
	right: var(--gwc-float-gap, 22px);
	bottom: auto;
	left: auto;
}

.gotoweb-cart--corner-tl .gw-cart-trigger {
	top: var(--gwc-float-gap, 22px);
	left: var(--gwc-float-gap, 22px);
	bottom: auto;
	right: auto;
}

/* Slide-in drawer (sidebar + floating modes share one). */
.gw-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 1300;
	visibility: hidden;
	pointer-events: none;
}

html.gw-cart-active .gw-cart-drawer {
	visibility: visible;
	pointer-events: auto;
}

html.gw-cart-active {
	overflow: hidden;
}

.gw-cart-overlay {
	position: absolute;
	inset: 0;
	background: var(--gwc-overlay, rgba(31, 29, 27, 0.4));
	opacity: 0;
	transition: opacity 0.25s ease;
}

html.gw-cart-active .gw-cart-overlay {
	opacity: 1;
}

.gw-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(400px, 92vw);
	background: var(--gwc-panel-bg, #fff);
	color: var(--gwc-panel-text, inherit);
	border-radius: var(--gwc-panel-radius, 0);
	box-shadow: -20px 0 50px -20px rgba(31, 29, 27, 0.35);
	transform: translateX(100%);
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
}

html.gw-cart-active .gw-cart-panel {
	transform: translateX(0);
}

.gw-cart-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid var(--gwc-panel-line, var(--gw-line));
	font-family: "Bricolage Grotesque", "Inter", sans-serif;
	font-size: var(--gwc-heading-size, 18px);
	font-weight: var(--gwc-heading-weight, 700);
	color: var(--gwc-heading-color, var(--gw-ink));
}

.gw-cart-close {
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: var(--gw-muted, #6b6661);
	cursor: pointer;
}

.gw-cart-panel__body {
	flex: 1;
	overflow-y: auto;
	padding: var(--gwc-panel-pad, 18px 22px);
}

.gw-cart-panel__body .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	font-weight: 700;
	color: var(--gw-ink);
	padding: 12px 0;
	border-top: 1px solid var(--gw-line);
}

.gw-cart-panel__body .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gw-cart-panel__body .woocommerce-mini-cart__buttons .button {
	width: 100%;
	text-align: center;
}

/* ============================================================
   WooCommerce My Account widget (Monteby WooCommerceAccount) —
   icon or CSS-only dropdown of account links.
   ============================================================ */
.gotoweb-account {
	position: relative;
	display: inline-block;
}

.gw-acct-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--gw-line);
	border-radius: 999px;
	background: #fff;
	color: var(--gw-ink);
	text-decoration: none;
	cursor: pointer;
	font: inherit;
	transition: border-color 0.2s ease;
}

.gw-acct-trigger:hover {
	border-color: var(--gw-accent);
}

.gw-acct-label {
	font-size: 13px;
	font-weight: 600;
}

.gw-acct-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--gw-line);
	border-radius: 14px;
	box-shadow: 0 20px 50px -20px rgba(31, 29, 27, 0.3);
	padding: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 1200;
}

.gotoweb-account--dropdown:hover .gw-acct-menu,
.gotoweb-account--dropdown:focus-within .gw-acct-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gw-acct-link {
	display: block;
	padding: 9px 12px;
	border-radius: 9px;
	color: var(--gw-ink);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.gw-acct-link:hover {
	background: var(--gw-soft);
	color: var(--gw-accent);
}

/* ============================================================
   Cart widget — mini-cart contents + option classes (drawer
   side / width / thumbnails / custom footer buttons).
   ============================================================ */
.gw-cart-label {
	font-size: var(--gwc-label-size, 13px);
	font-weight: var(--gwc-label-weight, 600);
	color: var(--gwc-label-color, inherit);
}

/* Panel width (set via --gw-cart-w inline) + left-side variant */
.gw-cart-panel {
	width: var(--gw-cart-w, 400px);
	max-width: 92vw;
}

.gw-cart-drawer--left .gw-cart-panel {
	left: 0;
	right: auto;
	transform: translateX(-100%);
	box-shadow: 20px 0 50px -20px rgba(31, 29, 27, 0.35);
}

html.gw-cart-active .gw-cart-drawer--left .gw-cart-panel {
	transform: translateX(0);
}

/* Mini-cart item rows */
.gw-cart-panel__body ul.woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gw-cart-panel__body .woocommerce-mini-cart-item {
	position: relative;
	margin: 0;
	padding: 14px 30px 14px 0;
	border-bottom: 1px solid var(--gwc-panel-line, var(--gw-line));
}

.gw-cart-panel__body .woocommerce-mini-cart-item a:not(.remove) {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--gwc-item-title, var(--gw-ink));
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
}

.gw-cart-panel__body .woocommerce-mini-cart-item img {
	width: var(--gwc-thumb-size, 54px);
	height: var(--gwc-thumb-size, 54px);
	flex-shrink: 0;
	margin: 0;
	border-radius: var(--gwc-thumb-radius, 10px);
	border: 1px solid var(--gwc-panel-line, var(--gw-line));
	object-fit: cover;
	background: var(--gw-soft);
}

.gw-cart-drawer--no-thumbs .woocommerce-mini-cart-item img {
	display: none;
}

.gw-cart-panel__body .woocommerce-mini-cart-item .quantity {
	display: block;
	margin: 6px 0 0 66px;
	color: var(--gwc-item-price, var(--gw-muted, #6b6661));
	font-size: 13px;
	font-weight: 600;
}

.gw-cart-drawer--no-thumbs .woocommerce-mini-cart-item .quantity {
	margin-left: 0;
}

.gw-cart-panel__body .woocommerce-mini-cart-item a.remove {
	position: absolute;
	top: 15px;
	right: 0;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--gw-soft);
	color: var(--gw-muted, #6b6661) !important;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
}

.gw-cart-panel__body .woocommerce-mini-cart-item a.remove:hover {
	background: var(--gw-accent);
	color: #fff !important;
}

.gw-cart-panel__body .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--gwc-panel-line, var(--gw-line));
	font-size: 17px;
	font-weight: 700;
	color: var(--gwc-subtotal-color, var(--gw-ink));
}

/* WC's default mini-cart buttons hidden — replaced by the configurable footer. */
.gw-cart-panel__body .woocommerce-mini-cart__buttons {
	display: none;
}

.gw-cart-panel__body .woocommerce-mini-cart__empty-message {
	color: var(--gw-muted, #6b6661);
	text-align: center;
	padding: 40px 0;
	font-size: 15px;
}

/* Configurable footer buttons */
.gw-cart-panel__foot {
	padding: 16px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-top: 1px solid var(--gwc-panel-line, var(--gw-line));
}

.gw-cart-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: var(--gw-btn-pad-y, 13px) var(--gw-btn-pad-x, 13px);
	border-radius: var(--gwc-btn-radius, var(--gw-btn-radius, 12px));
	font-weight: var(--gw-btn-weight, 700);
	font-size: 15px;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gw-cart-btn--secondary {
	background: #fff;
	color: var(--gwc-viewcart-color, var(--gw-ink));
	border: 1px solid var(--gwc-viewcart-color, var(--gw-line));
}

.gw-cart-btn--secondary:hover {
	border-color: var(--gw-accent);
	color: var(--gw-accent);
}

.gw-cart-btn--primary {
	background: var(--gwc-checkout-bg, var(--gw-accent));
	color: var(--gwc-checkout-text, #fff);
}

.gw-cart-btn--primary:hover {
	background: var(--gw-accent-strong);
}

/* My Account widget — avatar, left-aligned menu, greeting */
.gw-acct-avatar {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	object-fit: cover;
	display: block;
	margin: -3px 0;
}

.gw-acct-menu--left {
	right: auto;
	left: 0;
}

.gw-acct-greeting {
	padding: 4px 12px 10px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--gw-line);
	font-family: "Bricolage Grotesque", "Inter", sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--gw-ink);
}

/* ============================================================
   Cart / Account trigger chrome is now OPT-IN. The base trigger
   is naked (just the icon); --outline adds the bordered pill,
   --solid a filled pill. Controlled by the widget's "Styl
   przycisku" Style option (no more hardcoded border).
   ============================================================ */
.gw-cart-trigger,
.gw-acct-trigger {
	padding: var(--gwc-trigger-pad-y, 0) var(--gwc-trigger-pad-x, 0);
	border: var(--gwc-trigger-bw, 0) solid var(--gwc-trigger-bc, transparent);
	background: var(--gwc-trigger-bg, transparent);
	border-radius: var(--gwc-trigger-radius, 0);
}

.gw-cart-trigger:hover,
.gw-acct-trigger:hover {
	border-color: transparent;
}

.gw-cart-trigger--outline,
.gw-acct-trigger--outline {
	padding: var(--gwc-trigger-pad-y, 9px) var(--gwc-trigger-pad-x, 14px);
	border: var(--gwc-trigger-bw, 1px) solid var(--gwc-trigger-bc, var(--gw-line));
	border-radius: var(--gwc-trigger-radius, 999px);
	background: var(--gwc-trigger-bg, #fff);
	transition: border-color 0.2s ease;
}

.gw-cart-trigger--outline:hover,
.gw-acct-trigger--outline:hover {
	border-color: var(--gw-accent);
}

.gw-cart-trigger--solid,
.gw-acct-trigger--solid {
	padding: var(--gwc-trigger-pad-y, 9px) var(--gwc-trigger-pad-x, 14px);
	border: var(--gwc-trigger-bw, 0) solid var(--gwc-trigger-bc, transparent);
	border-radius: var(--gwc-trigger-radius, 999px);
	background: var(--gwc-trigger-bg, var(--gw-accent));
	color: #fff;
	transition: background 0.2s ease;
}

.gw-cart-trigger--solid:hover,
.gw-acct-trigger--solid:hover {
	background: var(--gw-accent-strong);
}

/* The floating button keeps a background so it stays visible; the chrome follows
   the trigger style — naked = clean circle (no border), outline adds a border,
   solid = coral. */
.gotoweb-cart--floating .gw-cart-trigger {
	background: var(--gwc-trigger-bg, #fff);
}

.gotoweb-cart--floating .gw-cart-trigger--outline {
	border: var(--gwc-trigger-bw, 1px) solid var(--gwc-trigger-bc, var(--gw-line));
}

.gotoweb-cart--floating .gw-cart-trigger--solid {
	background: var(--gwc-trigger-bg, var(--gw-accent));
	color: #fff;
}

/* ============================================================
   SETTINGS S4 — plugin-rendered front-end components.
   Three widgets emitted by monteby-builder: a top promo bar,
   a bottom cookie-consent card, and a social icon row. Class
   names + getter names are a fixed contract — match exactly.
   Mobile-safe: no horizontal overflow at 390px.
   ============================================================ */

/* ---- (a) PROMO / announcement bar — full-width top strip ---- */
.gw-promo-bar {
	position: relative;
	width: 100%;
	background: var(--gw-promo-bg, #0b3b38);
	color: var(--gw-promo-fg, #fff);
	font-size: 13px;
	line-height: 1.35;
}

.gw-promo-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	max-width: 1200px;
	margin: 0 auto;
	/* Right padding clears the absolute close button so text never tucks under it. */
	padding: 9px 44px;
	text-align: center;
}

.gw-promo-bar__text {
	font-weight: 500;
}

.gw-promo-bar__link {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: background 0.2s ease;
}

.gw-promo-bar__link:hover,
.gw-promo-bar__link:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

.gw-promo-bar__close {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	min-height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.gw-promo-bar__close:hover,
.gw-promo-bar__close:focus-visible {
	opacity: 1;
}

/* Floating-header offset when the promo bar is present. The header pill is
   position:fixed with an inline top:12px; like the admin-bar rule above we use
   margin-top to push it down (offsets a fixed element without fighting the
   inline top). --gw-promo-h (default 40px) is the bar's height. */
body.gw-has-promo :is(.gw-floating-nav, header.gotoweb-craft-template > :first-child) {
	margin-top: var(--gw-promo-h, 40px);
}

/* Logged-in: stack admin bar (32px) + promo bar. */
body.gw-has-promo.admin-bar :is(.gw-floating-nav, header.gotoweb-craft-template > :first-child) {
	margin-top: calc(32px + var(--gw-promo-h, 40px));
}

@media screen and (max-width: 782px) {
	body.gw-has-promo.admin-bar :is(.gw-floating-nav, header.gotoweb-craft-template > :first-child) {
		margin-top: calc(46px + var(--gw-promo-h, 40px));
	}
}

/* Top-anchored fixed triggers (cart corner-tr/-tl, back-to-top) must clear the
   bar too, or they hide behind it. */
body.gw-has-promo .gotoweb-cart--corner-tr .gw-cart-trigger,
body.gw-has-promo .gotoweb-cart--corner-tl .gw-cart-trigger,
body.gw-has-promo .gw-to-top,
body.gw-has-promo .gw-back-to-top {
	top: calc(var(--gwc-float-gap, 22px) + var(--gw-promo-h, 40px));
}

/* ---- (b) COOKIE consent bar — fixed bottom card ---- */
.gw-cookie-bar {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: auto;
	z-index: 9998;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	width: min(520px, calc(100% - 32px));
	padding: 16px 18px;
	background: var(--gw-paper, #fff);
	border: 1px solid var(--gw-line);
	border-radius: var(--gw-radius, 14px);
	box-shadow: 0 18px 50px rgba(16, 17, 20, 0.18);
	color: var(--gw-ink);
}

/* The plugin toggles the [hidden] attribute — this MUST win over display:flex. */
.gw-cookie-bar[hidden] {
	display: none;
}

.gw-cookie-bar__text {
	flex: 1 1 220px;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--gw-ink);
}

.gw-cookie-bar__policy {
	color: var(--gw-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gw-cookie-bar__policy:hover,
.gw-cookie-bar__policy:focus-visible {
	color: var(--gw-accent-strong, var(--gw-accent));
}

.gw-cookie-bar__accept {
	flex: 0 0 auto;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--gw-btn-radius, var(--gw-radius, 10px));
	background: var(--gw-accent, #ff4d1a);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gw-cookie-bar__accept:hover,
.gw-cookie-bar__accept:focus-visible {
	background: var(--gw-accent-strong, #e03c0d);
}

/* Stack text above button, full width, on phones. */
@media (max-width: 480px) {
	.gw-cookie-bar {
		flex-direction: column;
		align-items: stretch;
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
	}

	.gw-cookie-bar__accept {
		width: 100%;
	}
}

/* ---- (c) SOCIAL icon row ---- */
.gw-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gw-social li {
	margin: 0;
}

.gw-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	/* Readable on light AND dark (teal) footers; invert on hover. Override
	   --gw-social-fg locally if a surface needs a different resting color. */
	color: var(--gw-social-fg, currentColor);
	background: rgba(127, 127, 127, 0.16);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gw-social__link:hover,
.gw-social__link:focus-visible {
	background: var(--gw-accent, #ff4d1a);
	color: #fff;
	transform: translateY(-1px);
}

.gw-social__link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* ── Form fields — global tokens from Ustawienia → Formularze ─────────── */
/* Low specificity (:where/:is) so builder-widget inline styles & WooCommerce
   keep their own look; this styles generic/native inputs in content areas. */
:where(.gw-site-main, .gw-wc) :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]) {
	border: 1px solid var(--gw-form-border, #dfe3ea);
	border-radius: var(--gw-form-radius, 10px);
	background-color: var(--gw-form-bg, #ffffff);
}
:where(.gw-site-main, .gw-wc) :is(input, textarea, select):focus {
	outline: none;
	border-color: var(--gw-accent, #ff4d1a);
}

/* Gotoweb 3.2 — arch-corner image helpers (design-code handoff) */
.gw-arch-tr-lg { border-radius: 0 200px 0 0; }
.gw-arch-tr { border-radius: 0 100px 0 0; }

/* Gotoweb 3.2 — About page photo shapes */
.gw-arch-top { border-radius: 170px 170px 24px 24px; }
.gw-ellipse { border-radius: 50%; }

.gw-arch-tl { border-radius: 100px 0 0 0; }

/* Gotoweb 3.2 — products subtext gradient (line 2) */
.gw-grad-products { background-image: linear-gradient(90deg,#f53502,#4e4dc4) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }

.gw-orange { color: #f53502 !important; }

/* Gotoweb 3.2 — About photo shapes (Figma) */
.gw-arch-tr-250 { border-radius: 0 250px 0 0; }
.gw-arch-left-250 { border-radius: 250px 0 0 250px; }

.gw-grad-rev { background-image: linear-gradient(90deg,#f53502,#681aff) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
