body.woocommerce-checkout .aux-content {
	width: 100%;
	max-width: none;
}

/* Lewy sidebar na checkoucie (menu Mein Konto, kategorie, logo, tekst) - jak na produkcji. phlox-main-lean.css
   nie zawiera ukladu left-right-sidebar (purge), wiec zasady sa tu. Sidebar po lewej, formularz po prawej. */
body.woocommerce-checkout .left-right-sidebar > .aux-wrapper > .aux-container {
	padding-left: 300px;
}

body.woocommerce-checkout .left-right-sidebar .aux-primary {
	float: right;
	width: 100%;
	padding-left: 38px;
}

body.woocommerce-checkout .left-right-sidebar .aux-sidebar-primary {
	float: left;
	width: 300px;
	margin-left: -300px;
	border-right: 1px solid #eaeaea;
}

@media (max-width: 1024px) {
	body.woocommerce-checkout .left-right-sidebar > .aux-wrapper > .aux-container {
		padding-left: 0;
	}

	body.woocommerce-checkout .left-right-sidebar .aux-primary {
		float: none;
		padding-left: 0;
	}

	body.woocommerce-checkout .left-right-sidebar .aux-sidebar-primary {
		float: none;
		width: 100%;
		margin-left: 0;
		border-right: 0;
	}
}

/* Bez sidebara (np. brak widgetow) kolumna na cala szerokosc; z lewym sidebarem (jak na produkcji) rzadzi uklad Phloxa. */
body.woocommerce-checkout .no-sidebar .aux-primary {
	float: none;
	width: 100%;
	max-width: none;
}

.wp-block-woocommerce-checkout {
	width: 100%;
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
}

.wc-block-checkout {
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
	color: #222;
	font-family: Montserrat, sans-serif;
}

.imsf-checkout-ready {
	scroll-margin-top: 24px;
}

.wc-block-checkout__main,
.wc-block-checkout__sidebar {
	max-width: none;
	min-width: 0;
}

.wc-block-checkout__sidebar {
	position: sticky;
	top: 24px;
	padding: 24px;
	background: #f7f7f7;
}

.wc-block-checkout .wc-block-components-title,
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout h2 {
	color: #222;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 600;
}

.wc-block-checkout .wc-block-components-checkout-step {
	margin-bottom: 32px;
}

.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input select,
.wc-block-checkout .wc-block-components-combobox-control input,
.wc-block-checkout .wc-block-components-address-form input,
.wc-block-checkout .wc-block-components-address-form select {
	min-height: 48px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	color: #222;
	font-family: Montserrat, sans-serif;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-text-input select:focus,
.wc-block-checkout .wc-block-components-combobox-control input:focus,
.wc-block-checkout .wc-block-components-address-form input:focus,
.wc-block-checkout .wc-block-components-address-form select:focus {
	border-color: #be0225;
	outline: 1px solid #be0225;
	outline-offset: 0;
}

.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-combobox-control label {
	color: #555;
	font-family: Montserrat, sans-serif;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button {
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 1px solid #be0225;
	border-radius: 0;
	background: #be0225;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-size: 16px;
	font-weight: 600;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-checkout-place-order-button:focus-visible {
	border-color: #9e021f;
	background: #9e021f;
	color: #fff;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:focus-visible,
.wc-block-checkout a:focus-visible,
.imsf-checkout-back a:focus-visible,
.imsf-checkout-edit-cart a:focus-visible {
	outline: 2px solid #be0225;
	outline-offset: 3px;
}

.wc-block-checkout .wc-block-components-radio-control-accordion-option,
.wc-block-checkout .wc-block-components-radio-control__option {
	border-color: #ccc;
}

.wc-block-checkout .wc-block-components-radio-control-accordion-option--checked,
.wc-block-checkout .wc-block-components-radio-control__option--checked {
	border-color: #be0225;
}


.wc-block-checkout .wc-block-components-order-summary {
	border-color: #dedede;
}

.wc-block-checkout .wc-block-components-order-summary-item__image {
	width: 56px;
	height: 56px;
}

.wc-block-checkout .wc-block-components-order-summary-item__image img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 20px;
	font-weight: 700;
}

.imsf-checkout-back {
	margin: -14px 0 24px;
	font-size: 14px;
}

.imsf-checkout-back a,
.imsf-checkout-edit-cart a {
	color: #be0225;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.imsf-checkout-edit-cart {
	margin: 0 0 16px;
	font-size: 14px;
}

.imsf-checkout-security {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	color: #555;
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	line-height: 1.5;
}

.imsf-checkout-lock {
	flex: 0 0 16px;
	color: #2e7d32;
}

.woocommerce-order-received .woocommerce-notice--success {
	padding: 16px;
	border-color: #2e7d32;
	background: #f1f8f1;
	color: #205c25;
	font-size: 16px;
}

.woocommerce-order-received .woocommerce-notice--success::before {
	margin-right: 8px;
	color: #2e7d32;
	font-weight: 700;
	content: '✓';
}

.woocommerce-order-received .woocommerce-order-overview__order strong {
	color: #222;
	font-size: 24px;
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
	color: #222;
	font-family: Montserrat, sans-serif;
	font-size: 20px;
	font-weight: 700;
}

@media (max-width: 1024px) {
	.wc-block-checkout__sidebar {
		position: static;
	}
}

@media (max-width: 782px) {
	.wc-block-checkout {
		margin-right: 16px;
		margin-left: 16px;
	}

	.wc-block-checkout__sidebar {
		padding: 16px;
	}

	.wc-block-checkout .wc-block-components-checkout-step {
		margin-bottom: 24px;
	}

	.wc-block-checkout .wc-block-components-checkout-place-order-button {
		min-height: 52px;
		font-size: 15px;
	}

	.imsf-checkout-security {
		font-size: 12px;
	}
}

/* Motyw ogranicza pola do 400 px - w checkoutcie pola maja wypelniac kolumne. */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-combobox-control input,
.wc-block-checkout .wc-block-components-address-form select {
	width: 100%;
	max-width: none;
}

/* Kwadraty zaznaczenia nie dziedzicza wysokosci pol tekstowych. */
.wc-block-checkout input[type="checkbox"].wc-block-components-checkbox__input {
	width: 20px;
	height: 20px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid #999;
	border-radius: 0;
}

.wc-block-checkout input[type="checkbox"].wc-block-components-checkbox__input:checked {
	border-color: #be0225;
}

.wc-block-checkout .wc-block-components-checkbox__mark {
	fill: #be0225;
}

/* Wybrana opcja wysylki/platnosci: czerwona ramka calego bloku, czerwona kropka. */
.wc-block-checkout .wc-block-components-radio-control--highlight-checked::after,
.wc-block-checkout .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: #be0225 !important;
}

.wc-block-checkout .wc-block-components-radio-control__input:checked {
	border-color: #be0225;
}

.wc-block-checkout .wc-block-components-radio-control__input:checked::before {
	background: #be0225;
}


/* Mobile: boczny margines 16px - wspolna regula w nav-mobile.css; tu tylko marginesy bloku checkout. */
@media (max-width: 782px) {
	body.woocommerce-checkout .wp-block-woocommerce-checkout,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		margin-right: 0;
		margin-left: 0;
	}
}
