/* WooCommerce integration styles. Loaded only while WooCommerce is active. */

/* ============================================================
   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; MontebyTheme\WooCommerceIntegration 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: accent badge plus the configured display role.
   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: var(--gcb-font-display, var(--gcb-font-body, var(--gw-font, ui-sans-serif, system-ui, 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: var(--gcb-font-display, var(--gcb-font-body, var(--gw-font, ui-sans-serif, system-ui, 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: var(--gcb-font-display, var(--gcb-font-body, var(--gw-font, ui-sans-serif, system-ui, 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: var(--gcb-font-display, var(--gcb-font-body, var(--gw-font, ui-sans-serif, system-ui, 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;
}

/* ============================================================
   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: var(--gcb-font-display, var(--gcb-font-body, var(--gw-font, ui-sans-serif, system-ui, 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: var(--gcb-font-display, var(--gcb-font-body, var(--gw-font, ui-sans-serif, system-ui, 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;
}
