/*
	Skład Piękna — nadpisania child theme
	(przeniesione z Wygląd → Dostosuj → Dodatkowy CSS)

	Zagnieżdżenia CSS (native nesting) + :is() — bez zmiany wyglądu.

	1. Layout i bloki Gutenberg
	2. Nagłówek, logo, stopka
	3. Strona główna
	4. Archiwum sklepu
	5. Karty produktów — pętla klasyczna
	6. Karty produktów — Query Loop + Product Collection
	7. Product Collection — brakujące style motywu
	8. Strona produktu
	9. Zestawy (Product Bundles)
	10. Koszyk
	11. Checkout
	12. Autopay
	13. Wysyłka / Furgonetka
	14. Blog i artykuły
	15. Karuzela
*/

/* =============================================================================
   1. Layout i bloki Gutenberg
   ========================================================================== */

.wp-block-heading strong {
	font-weight: inherit;
}

.is-style-mbf-group-max-400px {
	--mbf-editor-width: 500px;
	max-width: 500px;
}

body .is-layout-constrained.wp-block-group-is-layout-constrained > .is-style-mbf-group-fullwidth:where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(-50vw + 50%) !important;
}

.is-style-mbf-group-container {
	@media (min-width: 576px) { max-width: 576px !important; }
	@media (min-width: 768px) { max-width: 768px !important; }
	@media (min-width: 992px) { max-width: 992px !important; }
	@media (min-width: 1200px) { max-width: 1200px !important; }
	@media (min-width: 1336px) { max-width: 1336px !important; }
}

@media (min-width: 1336px) {
	.is-style-mbf-group-specification > .wp-block-group:not(:last-child):after {
		right: -5.5rem;
	}
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	outline: none;
}

.woocommerce {
	#respond input#submit,
	#respond input#submit.alt,
	a.button,
	a.button.alt,
	button.button,
	button.button.alt,
	button.button.alt.disabled,
	input.button,
	input.button.alt {
		text-transform: none;
	}
}

.woocommerce-checkout .checkout #customer_details .woocommerce-shipping-fields .woocommerce-form__label-for-checkbox span {
	text-transform: none;
}

/* =============================================================================
   2. Nagłówek, logo, stopka
   ========================================================================== */

.mbf-logo {
	margin: 0;
}

.mbf-header__inner-desktop .mbf-header__logo img {
	max-height: calc(var(--mbf-header-initial-height) - 25px);
}

.mbf-footer__nav > li > a:not([href]) {
	cursor: default;
	background: none;
	color: inherit;
}

#menu-item-20624 a {
	color: var(--mbf-color-accent);
	font-weight: 600;
}

/* =============================================================================
   3. Strona główna
   ========================================================================== */

.slick-slide h1.wp-block-heading {
	color: #a8b4b4;
	font-size: 12px;
	font-weight: bolder;
	text-transform: uppercase;
	font-family: var(--mbf-font-primary-family), sans-serif;
	letter-spacing: 0.08em;
}

.home .slick-dots {
	bottom: 10px;
}

.is-layout-2 .wp-block-post-template > li:nth-child(n+5) {
	display: none;
}

.is-style-mbf-featured-category-simple .wc-block-featured-category__wrapper .wc-block-featured-category__title:after {
	content: "Zobacz";
}

.mbf-main-content .is-style-mbf-cover-promo {
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
}

.home .is-style-mbf-group-product-content {
	padding-bottom: 1rem;
}

.is-background-shape {
	background-color: #183837;
	background-image: url(/wp-content/themes/labeaute/assets/static/images/pattern-9.png);
	background-size: 30%;
	background-position: right 20% top 0;
	background-repeat: no-repeat;
}

.is-style-1 {
	margin-top: -100px !important;

	@media (max-width: 980px) {
		display: none;
	}
}

.page-id-7343 {
	.wp-block-group__inner-container > .wp-block-image:nth-child(1) {
		max-width: 735px;

		@media (min-width: 992px) {
			right: -10%;
		}
	}

	.mbf-footer__subscribe-title {
		max-width: 100%;
	}
}

/* =============================================================================
   4. Archiwum sklepu
   ========================================================================== */

.woocommerce-products-header .woocommerce-products-header__title {
	display: flex;
	flex-direction: column-reverse;

	.sp-page-title__subtitle {
		color: #849494;
		font-size: 11px;
		font-weight: 600;
		text-transform: uppercase;
		font-family: var(--mbf-font-primary-family), sans-serif;
		letter-spacing: 0.08em;
		margin-bottom: 0.75rem;
		transform: translatex(-0.188rem);
		display: flex;
		align-items: center;
	}

	.sp-page-title__dot {
		margin-right: 3px;
		font-size: 6px;
		color: #d4d8c5;
	}

	@media (min-width: 768px) {
		span {
			margin-left: 0;
		}
	}
}

.woocommerce-shop .woocommerce-products-header__title span {
	display: none;
}

.wp-block-woocommerce-product-categories .wc-block-product-categories-list-item .wc-block-product-categories-list {
	margin-top: 1rem;
}

/* =============================================================================
   5. Karty produktów — pętla klasyczna
   ========================================================================== */

:is(.woocommerce, .woocommerce-page) ul.products {
	&[class*="columns-"] li.product {
		width: 100%;
		float: initial;
		clear: initial;
		margin: initial;
	}

	li.product {
		.woocommerce-loop-product__content {
			:is(
				.woocommerce-loop-product__title,
				.woocommerce-loop-product__title a,
				.woocommerce-loop-product__title a .woocommerce-loop-product__title-span
			) {
				font-size: var(--wp--preset--font-size--medium, 1.25rem);
			}

			.price {
				margin-top: 0.5rem;
				font-size: 1.5rem;

				del {
					opacity: 0.5;
					font-size: 0.625em;
					line-height: 1.9;
					font-weight: 600;
				}

				.iworks-omnibus {
					display: none;
				}
			}
		}

		.woocommerce-loop-product__categories {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			column-gap: 0.5rem;
			row-gap: 0.25rem;
			font-size: 0;

			a,
			a:not(:first-child) {
				margin-left: 0;
				margin-right: 0;
			}
		}
	}
}

.woocommerce-page ul.products li.product {
	.woocommerce-loop-product__thumbnail .button {
		position: absolute;
		left: 20px;
		bottom: 20px;
		width: calc(100% - 40px);
		text-align: center;
		white-space: nowrap;
		opacity: 0;
		z-index: 2;

		@media (max-width: 480px) {
			left: 5px;
			right: 5px;
			width: calc(100% - 10px);
			padding-left: 0.5rem;
			padding-right: 0.5rem;
		}
	}

	&:hover .woocommerce-loop-product__thumbnail .button {
		opacity: 1;

		&.loading {
			padding: calc(var(--mbf-button-padding-y, 0.875rem) - var(--mbf-button-border-width, 1px)) var(--mbf-button-padding-x, 1.25rem);

			&::after {
				display: none;
			}
		}
	}
}

/* =============================================================================
   6. Karty produktów — Query Loop + Product Collection
   ========================================================================== */

.wp-block-query .wp-block-post-template.is-layout-grid > li {
	display: flex;
	flex-direction: column;
	height: 100%;
}

:is(.wp-block-query li.wp-block-post.product, .wp-block-woocommerce-product-template li.wc-block-product) {
	position: relative;
	display: flex;
	flex-direction: column;

	.is-style-mbf-group-product-content {
		flex-grow: 1;

		.wp-block-group__inner-container {
			display: flex;
			flex-direction: column;
			height: 100%;
		}
	}

	.wp-block-post-title {
		flex-grow: 1;
		min-height: 2.25rem;
	}
}

/* LaBeaute: 32px margin na dzieciach inner-container — na kartach za dużo */
.mbf-main-content :is(.wp-block-query .wp-block-post-template, .wp-block-woocommerce-product-template) {
	.wp-block-group__inner-container > * {
		margin-top: 0;
		margin-bottom: 0;
	}

	.wp-block-post-terms:not(:first-child) {
		margin-top: 0.5rem;
	}

	.wp-block-post-title:not(:first-child) {
		margin-top: 0.125rem;
		margin-bottom: 0;
	}

	.wp-block-woocommerce-product-price {
		margin-top: 0.5rem;
		margin-bottom: 0;
	}
}

.is-style-mbf-group-product-image .wc-block-components-product-button {
	left: 0;
	right: 0;
	width: 100%;

	.wp-block-button__link {
		width: calc(100% - 40px) !important;
		min-height: 44px;
		padding-block: calc(var(--mbf-button-padding-y, 0.875rem) - var(--mbf-button-border-width, 1px));
		padding-inline: var(--mbf-button-padding-x, 1.25rem);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
		box-sizing: border-box;
		font-family: var(--mbf-font-primary-family), sans-serif;
		font-size: var(--mbf-font-primary-size);
		font-weight: var(--mbf-font-primary-weight);
		letter-spacing: var(--mbf-font-primary-letter-spacing);
		text-transform: var(--mbf-font-primary-text-transform);
	}
}

:is(.wp-block-query .wp-block-post-template, .wp-block-woocommerce-product-template) {
	.wc-block-components-product-button {
		.added_to_cart:hover {
			border-color: #336B53 !important;
			background-color: #336B53 !important;
		}

		.add_to_cart_button.added:after {
			font-family: WooCommerce;
			content: "\e017";
			margin-left: 0.53em;
			vertical-align: bottom;
		}
	}

	.wc-block-components-product-price {
		margin-top: 0;
		font-size: 1.5rem;

		del {
			opacity: 0.5;
			font-size: 0.625em;
			line-height: 2.4;
			font-weight: 600;
		}
	}

	.wp-block-post-terms {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 0.5rem;
		row-gap: 0.25rem;
		margin-top: 0;
		margin-bottom: 0;

		a,
		a:not(:first-child),
		a:not(:last-child) {
			margin-left: 0;
			margin-right: 0;
		}

		.wp-block-post-terms__separator {
			display: none;
		}
	}
}

/* Szablon bez grup LaBeaute (Produkty wg znacznika) — ATC na zdjęciu */
.wp-block-woocommerce-product-template li.wc-block-product:not(:has(> .is-style-mbf-group-product-image)) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);

	> :is(.wp-block-woocommerce-product-image, .wc-block-components-product-image) {
		grid-row: 1;
		grid-column: 1;
	}

	> :is(.wp-block-woocommerce-product-button, .wc-block-components-product-button) {
		grid-row: 1;
		grid-column: 1;
		align-self: end;
		justify-self: center;
		z-index: 2;
		width: calc(100% - 40px);
		margin: 0 0 20px !important;
		height: auto;
	}

	> .wc-block-components-product-button .wp-block-button__link {
		width: 100% !important;
		min-height: 44px;
		padding-block: calc(var(--mbf-button-padding-y, 0.875rem) - var(--mbf-button-border-width, 1px));
		padding-inline: var(--mbf-button-padding-x, 1.25rem);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
		box-sizing: border-box;
		opacity: 0;
		transition: 0.25s;
		font-family: var(--mbf-font-primary-family), sans-serif;
		font-size: var(--mbf-font-primary-size) !important;
		font-weight: var(--mbf-font-primary-weight);
		letter-spacing: var(--mbf-font-primary-letter-spacing);
		text-transform: var(--mbf-font-primary-text-transform);
	}

	&:hover > .wc-block-components-product-button :is(.wp-block-button__link, .added_to_cart) {
		opacity: 1;
	}

	> .wp-block-post-title {
		margin-top: 1rem !important;
		margin-bottom: 0 !important;
		text-align: left;
	}

	> .wp-block-woocommerce-product-price,
	> .wp-block-woocommerce-product-price.has-text-align-center {
		text-align: left;
	}
}

/* =============================================================================
   7. Product Collection — brakujące style motywu
   ========================================================================== */

.wp-block-woocommerce-product-template {
	list-style: none;
	margin: 0;
	padding: 0;

	.wc-block-components-product-image {
		position: relative;
		margin-top: 0;
		margin-bottom: 0;
		overflow: hidden;
		border-radius: var(--mbf-thumbnail-border-radius);
		transform: translate3d(0, 0, 0);

		img {
			display: block;
			margin-bottom: 0;
			transform: scale(1);
			transition: 0.25s;
		}

		a:hover img {
			transform: scale(1.05);
		}
	}

	.wp-block-woocommerce-product-sale-badge {
		position: absolute;
		z-index: 3;
		top: 10px;
		right: 10px;
		left: auto;
		bottom: auto;
		display: block;
		width: auto;
		height: auto;
		min-height: 0;
		min-width: 0;
		margin: 0;
		padding: 0;
		border: none;
		background: transparent;
		line-height: 0;
	}

	.wc-block-components-product-sale-badge {
		position: static;
		float: none;
		align-self: auto;
		display: inline-flex;
		align-items: center;
		width: auto;
		height: auto;
		min-height: 0;
		min-width: 0;
		margin: 0;
		border: none;
		background: var(--mbf-layout-background);
		color: var(--mbf-color-accent);
		border-radius: var(--mbf-button-border-radius);
		padding: 0.25rem 0.5rem;
		font-family: var(--mbf-font-base-family), sans-serif;
		font-weight: var(--mbf-font-base-weight);
		font-style: var(--mbf-font-base-style);
		letter-spacing: var(--mbf-font-base-letter-spacing);
		font-size: 0.6875rem;
		line-height: 1;
		white-space: nowrap;

		&:before {
			margin-right: 0.25rem;
			font-family: "mbf-icons";
			content: "";
		}

		&__text {
			overflow: visible;
			white-space: nowrap;
		}
	}

	.wp-block-post-title,
	.wp-block-post-title.has-medium-font-size {
		margin-top: 0;
		margin-bottom: 0;
		padding: 0;
		font-family: var(--mbf-font-base-family), sans-serif;
		font-size: var(--wp--preset--font-size--medium, 1.25rem);
		font-weight: initial;
		font-style: var(--mbf-font-base-style);
		line-height: var(--mbf-font-base-line-height);
		letter-spacing: var(--mbf-font-base-letter-spacing);

		&:not(:first-child) {
			margin-top: 0.125rem;
		}

		a {
			display: inline;
			padding-bottom: 0.05em;
			background: linear-gradient(to right, currentColor 0%, currentColor 98%);
			background-size: 100% 1px;
			background-repeat: no-repeat;
			background-position: var(--mbf-underline-bg-position);
			color: var(--mbf-color-primary);
			transition: 0.25s;
			text-decoration: none;

			&:hover {
				background-size: 0 1px;
				color: var(--mbf-color-primary);
			}
		}
	}

	.wp-block-post-terms {
		margin-top: 0;
		margin-bottom: 0;
		padding: 0;
		color: var(--mbf-color-secondary);

		&:not(:first-child) {
			margin-top: 0.5rem;
		}

		a {
			font-family: var(--mbf-font-secondary-family), sans-serif;
			font-weight: var(--mbf-font-secondary-weight);
			font-style: var(--mbf-font-secondary-style);
			letter-spacing: var(--mbf-font-secondary-letter-spacing);
			text-transform: var(--mbf-font-secondary-text-transform);
			background: transparent;
			position: relative;
			z-index: 2;
			display: inline-block;
			color: var(--mbf-color-secondary);
			font-size: 0.6875rem;
			text-decoration: none;
			padding: 0;

			&:hover {
				color: var(--mbf-color-primary);
			}
		}
	}

	.wp-block-woocommerce-product-price {
		display: inline-flex;
		margin-top: 0.5rem;
		margin-bottom: 0 !important;
		color: var(--mbf-color-primary);
	}

	.wc-block-components-product-price {
		font-family: var(--mbf-font-primary-family), sans-serif;
		font-weight: var(--mbf-font-primary-weight);
		font-style: var(--mbf-font-primary-style);
		letter-spacing: var(--mbf-font-primary-letter-spacing);
		text-transform: var(--mbf-font-primary-text-transform);
		display: inline-flex;
		align-items: baseline;
		flex-wrap: wrap;
		margin-top: 0.5rem;
		margin-bottom: 0 !important;
		color: var(--mbf-color-primary);

		del {
			color: var(--mbf-color-secondary);
			order: 2;
			margin-left: 1rem;
		}

		ins {
			text-decoration: none;
			order: 1;
			color: var(--mbf-color-primary);
			margin-left: 0;
		}
	}
}

/* =============================================================================
   8. Strona produktu
   ========================================================================== */

.product_title .product-brand {
	white-space: nowrap;
}

.mbf-single-product {
	.posted_in {
		display: block;
		margin-top: 0.75rem;
		margin-bottom: 0.5rem;
	}

	.mbf-single-product-summary-wrap .mbf-single-product-summary {
		.entry-summary {
			.gpsr-fields {
				order: 3;
				margin-top: 3rem;
			}

			.product_meta {
				margin-bottom: 0.75rem;

				a {
					margin-bottom: 0.25rem;
				}
			}

			.tagged_as a:not(:first-child) {
				margin-left: 3px;
			}

			.price,
			.price ins {
				font-size: 2rem;
				font-weight: 700;
			}
		}

		.single_add_to_cart_button {
			--mbf-button-padding-y: 1.25rem;
			display: block;
			min-width: initial;
			float: initial;
			flex-grow: 1;
			max-width: 260px;
		}
	}
}

.woocommerce div.product form.group_mode_parent .gpsr-fields {
	order: 3;
	margin-top: 3rem;
}

.pswp__caption {
	display: none;
}

/* =============================================================================
   9. Zestawy (Product Bundles)
   ========================================================================== */

.woocommerce div.product form.group_mode_parent {
	margin-top: 1rem;
}

.mbf-single-product .product-type-bundle .entry-summary {
	position: static;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.bundled_item_cart_details span.price {
	color: inherit;
	font-size: 1.25rem;

	.iworks-omnibus {
		font-size: 0.875rem;
		margin-top: 0.5rem;
	}

	.woocommerce-Price-amount {
		text-decoration: none;
		margin-left: 0.5rem;
	}
}

/* =============================================================================
   10. Koszyk
   ========================================================================== */

.woocommerce-cart table.cart .product-quantity {
	display: table-cell;
}

.woocommerce ul.product_list_widget li {
	dl.variation {
		margin-top: 0.5rem;

		&::before {
			content: "Zawiera:";
			font-weight: 700;
		}
	}

	.woocommerce-mini-cart-item-content > dl.variation {
		display: none;
	}

	.variation-Includes {
		font-size: 0.875rem;
	}

	dt.variation-Includes {
		display: none !important;
	}

	dd.variation-Includes {
		font-weight: 500;
	}
}

/* =============================================================================
   11. Checkout
   ========================================================================== */

.woocommerce-checkout {
	.checkout #order_review {
		.order-total {
			.amount {
				font-size: var(--mbf-font-base-size);
			}

			td {
				white-space: nowrap;
			}
		}

		.woocommerce-shipping-totals td label {
			white-space: nowrap;
		}

		.wc_payment_method > label {
			cursor: pointer;
		}

		.woocommerce-checkout-payment .wc_payment_methods .wc_payment_method {
			.payment_box {
				margin: 5px 0 0;
			}

			input[type="radio"]:checked ~ label::before {
				border-color: #173837;
			}

			:is(.selected, .bm-selected-group) > label::before {
				border: 6px solid #173837;
			}

			.bm-group-expandable-wrapper label::before {
				margin: 2px auto;
			}
		}
	}

	.checkout #customer_details {
		grid-row: span 3;
	}

	#wc_checkout_add_ons::before {
		content: "Dodatkowe opcje";
		font-family: var(--mbf-font-secondary-family), sans-serif;
		font-weight: var(--mbf-font-secondary-weight);
		font-style: var(--mbf-font-secondary-style);
		letter-spacing: var(--mbf-font-secondary-letter-spacing);
		text-transform: var(--mbf-font-secondary-text-transform);
		display: block;
		grid-column: 1 / -1;
		margin-bottom: 1rem;
		font-size: 1.25rem;
	}
}

@media (min-width: 768px) {
	.woocommerce form.checkout_coupon {
		grid-template-columns: minmax(0, 220px) minmax(0, 300px) minmax(0, 200px);
	}
}

@media (min-width: 992px) {
	.woocommerce-checkout .checkout #customer_details {
		.woocommerce-billing-fields__field-wrapper {
			:is(
				#billing_address_1_field,
				#billing_phone_field,
				.form-row-first,
				#billing_company_field
			) {
				grid-column: 1 / 6;
			}

			:is(
				#billing_address_2_field,
				#billing_email_field,
				.form-row-last
			),
			#billing_address_2_field + .form-row + .form-row,
			#billing_address_2_field + .form-row + .form-row + .form-row {
				grid-column: 6 / 11;
			}
		}

		.woocommerce-shipping-fields__field-wrapper {
			:is(.form-row-first, #shipping_company_field, #shipping_address_1_field),
			#shipping_address_2_field + .form-row {
				grid-column: 1 / 6;
			}

			:is(.form-row-last, #shipping_address_2_field),
			#shipping_address_2_field + .form-row + .form-row {
				grid-column: 6 / 11;
			}
		}
	}

	#customer_details .woocommerce-billing-fields__field-wrapper #billing_address_2_field + .form-row {
		grid-column: 1 / 6;
	}
}

.woocommerce .wc-bacs-bank-details-account-name {
	font-weight: initial;
	font-size: 1.25rem;
}

wc-order-attribution-inputs {
	position: absolute;
}

.woocommerce-checkout-payment .woocommerce-privacy-policy-text {
	margin: 10px 0;
}

/* =============================================================================
   12. Autopay
   ========================================================================== */

#payment {
	.bm-group-expandable .bm-payment-channel-group-method-name {
		line-height: 1.75;
	}

	.bm-group-przelew-internetowy .bm-payment-channel-group-method-name::before {
		content: "Szybki";
		margin-right: 3px;
	}

	> ul.wc_payment_methods {
		.payment_method_bluemedia img {
			height: 60px;
		}

		> li.wc_payment_method.payment_method_bluemedia {
			> label > img {
				width: 130px !important;
				height: auto !important;
				max-width: 130px;
				margin: 5px 0 0 -13px;
			}

			> .payment_box.payment_method_bluemedia .payment_box.payment_method_bacs > .bm-payment-channels-wrapper ul.woocommerce-shipping-methods {
				margin-top: 15px;
				border-left: 1px solid #eaece3;
				padding-top: 0;

				> div {
					margin: 0;

					> li > ul {
						padding-left: 0;

						li.bm-payment-channel-item,
						li.bm-payment-channel-group-item {
							grid-template-columns: 0 100px auto;
						}

						li.bm-payment-channel-item {
							padding: 0;
							overflow: hidden;

							&.selected {
								border-color: transparent !important;

								> span.bm-payment-channel-method-desc {
									display: none;
								}
							}

							> label {
								font-size: 1em;
							}
						}
					}
				}
			}
		}
	}

	ul.wc_payment_methods > li.wc_payment_method.payment_method_bluemedia > .payment_box.payment_method_bluemedia .payment_box.payment_method_bacs > .bm-payment-channels-wrapper ul.woocommerce-shipping-methods {
		> div > li > ul {
			li.bm-payment-channel-group-item {
				padding: 0;

				&.bm-selected-group {
					border-color: transparent !important;
				}
			}

			li.bm-payment-channel-item > label {
				min-height: 80px;
			}
		}

		> div.bm-group-expandable .bm-group-expandable-wrapper > li > label .bm-payment-channel-method-logo {
			width: 88px;
			height: 100px;
		}
	}
}

/* =============================================================================
   13. Wysyłka / Furgonetka
   ========================================================================== */

.woocommerce ul#shipping_method {
	padding: 5px 0 0 18px;
	clear: both;
	text-align: left;

	li {
		line-height: 22px;
		font-size: 12px;
		position: relative;

		input {
			margin: 0;
			position: absolute;
			left: -18px;
			top: 4px;
		}
	}
}

.woocommerce-cart .entry-content > .woocommerce .cart-collaterals .cart_totals .woocommerce-shipping-destination {
	margin-top: 10px;
}

#selected-point {
	background: none;
}

/* =============================================================================
   14. Blog i artykuły
   ========================================================================== */

.is-style-mbf-post-title-read-more a:before {
	content: "Czytaj więcej";
}

.is-style-mbf-post-template-horizontal .wp-block-post:not(:last-child) {
	margin-bottom: 40px;
}

.wp-block-query {
	.wp-block-post-featured-image,
	.wp-block-post-featured-image img {
		margin: 0;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}

	.wp-block-post-featured-image + .wp-block-group {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}

	.wp-block-post-template.is-layout-grid > li.wp-block-post > .is-style-mbf-group-post-content {
		flex: 1 1 auto;

		> .wp-block-group__inner-container {
			display: flex;
			flex-direction: column;
			flex: 1 1 auto;
			height: 100%;
		}
	}
}

.single-post .wc-block-grid {
	.wc-block-grid__product-image {
		display: block;

		img {
			width: 100%;
			height: auto;
		}
	}

	.wc-block-grid__product-add-to-cart .added_to_cart:not(:first-child) {
		margin-left: auto;
		margin-right: auto;
	}
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3) 30%, transparent);
	padding: 32px 8px 12px;
	font-size: 14px;
	line-height: 1.5;
}

/* =============================================================================
   15. Karuzela
   ========================================================================== */

.wp-block-cb-carousel {
	display: flex;
	overflow: hidden;
}

.wp-block-cb-slide {
	width: 100%;
	padding-left: 7.5px;
	padding-right: 7.5px;
	flex-shrink: 0;
}

.slick-dots {
	bottom: 0;

	li {
		margin: 4px;

		&:only-child {
			display: none;
		}
	}

	li button:before,
	li.slick-active button:before {
		color: #eaece3;
	}
}
