/* —— Rejestracja hurtowa —— */
.ms-reg-type__options {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.35rem;
}

.ms-reg-type__option {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 500;
	cursor: pointer;
}

.ms-reg-intro {
	font-size: 0.95rem;
	color: #333;
	margin-bottom: 1rem !important;
}

.ms-reg-fields {
	width: 100%;
	clear: both;
}

.ms-reg-fields::after {
	content: "";
	display: table;
	clear: both;
}

.ms-reg-fields .woocommerce-form-row,
.ms-reg-fields .form-row {
	width: 100%;
	float: none;
	clear: none;
	margin-left: 0;
	margin-right: 0;
}

.ms-reg-fields .form-row-first,
.ms-reg-fields .form-row-last {
	width: calc(50% - 8px);
	float: left;
}

.ms-reg-fields .form-row-first {
	margin-right: 16px;
	clear: left;
}

.ms-reg-fields .form-row-last {
	float: right;
	clear: right;
}

.ms-reg-fields .form-row-wide {
	width: 100%;
	float: none;
	clear: both;
}

.ms-reg-fields--corporate .form-row-wide select,
.ms-reg-fields--corporate .form-row-wide textarea,
.ms-reg-fields--corporate .form-row-wide input,
.ms-reg-fields--individual .form-row-wide input,
.ms-reg-phone .input-text,
.woocommerce-customer-register form.register .ms-reg-fields input.input-text,
.woocommerce-customer-register form.register .ms-reg-phone input.input-text,
.woocommerce-customer-register form.register .ms-reg-fields select,
.woocommerce-customer-register form.register .ms-reg-fields textarea {
	width: 100%;
	box-sizing: border-box;
}

.woocommerce-customer-register form.register .ms-reg-phone,
.woocommerce-customer-register form.register .ms-reg-fields .form-row-wide {
	width: 100%;
	float: none;
	clear: both;
	margin-left: 0;
	margin-right: 0;
}

#login-modal .woocommerce-customer-register form.register .ms-reg-phone,
#login-modal .woocommerce-customer-register form.register .ms-reg-fields .form-row-wide {
	width: 100%;
	float: none;
	clear: both;
}

/* Login modal – pełna szerokość formularza */
#login-modal .modal__content,
#login-modal .woocommerce-customer-register {
	width: 100%;
	max-width: 560px;
}

#login-modal .woocommerce-customer-register form.register {
	width: 100%;
}

#login-modal .woocommerce-customer-register .woocommerce-form-row {
	width: 100%;
	float: none;
	clear: both;
	margin-right: 0;
}

#login-modal .ms-reg-fields .form-row-first,
#login-modal .ms-reg-fields .form-row-last {
	width: calc(50% - 8px);
}

#login-modal .woocommerce-form--register-button {
	flex-wrap: wrap;
	gap: 1rem;
}

#login-modal .woocommerce-form--register-button .woocommerce-form-register__submit {
	width: auto;
	min-width: 180px;
	flex: 1 1 auto;
}

#login-modal .woocommerce-form--register-button .em-button-login-mode {
	flex: 1 1 auto;
	text-align: right;
	white-space: normal;
}

#login-modal .woocommerce-customer-register > h2 {
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}

#login-modal .woocommerce-customer-register form.register > p:not(.woocommerce-form-row):not(.ms-reg-intro) {
	color: #444;
	font-size: 0.95rem;
	line-height: 1.5;
	margin-bottom: 1rem;
}

/* Strona konta – pełna szerokość */
.woocommerce-account .woocommerce-customer-register .ms-reg-fields .form-row-first,
.woocommerce-account .woocommerce-customer-register .ms-reg-fields .form-row-last {
	width: calc(50% - 8px);
}

@media (max-width: 520px) {
	.ms-reg-fields .form-row-first,
	.ms-reg-fields .form-row-last,
	#login-modal .ms-reg-fields .form-row-first,
	#login-modal .ms-reg-fields .form-row-last {
		width: 100%;
		float: none;
		margin-right: 0;
	}

	#login-modal .woocommerce-form--register-button {
		flex-direction: column;
		align-items: stretch;
	}

	#login-modal .woocommerce-form--register-button .em-button-login-mode {
		text-align: center;
	}
}

/* —— Popularne produkty / ürün carousel genişlik düzeltmesi —— */
.ecomus-products-carousel.ecomus-products-carousel--elementor {
	width: 100%;
	max-width: 100%;
}

.ecomus-products-carousel .product-swiper--elementor {
	width: 100%;
}

.ecomus-products-carousel .product-swiper--elementor ul.products {
	width: 100%;
}

.ecomus-products-carousel .product-swiper--elementor ul.products li.product {
	min-width: 0;
	box-sizing: border-box;
}

.ecomus-products-carousel .product-swiper--elementor.columns-4:not(.swiper-initialized) ul.products li.product {
	width: calc(25% - 22.5px) !important;
	max-width: calc(25% - 22.5px);
	flex: 0 0 calc(25% - 22.5px);
}

.ecomus-products-carousel .product-swiper--elementor.tablet-col-3:not(.swiper-initialized) ul.products li.product {
	/* tablet fallback handled below */
}

.ecomus-products-carousel .product-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.ecomus-products-carousel .woocommerce-loop-product__title {
	overflow-wrap: anywhere;
	word-break: normal;
}

@media (max-width: 1024px) {
	.ecomus-products-carousel .product-swiper--elementor.tablet-col-3:not(.swiper-initialized) ul.products li.product,
	.ecomus-products-carousel .product-swiper--elementor.columns-4:not(.swiper-initialized) ul.products li.product {
		width: calc(33.333% - 20px) !important;
		max-width: calc(33.333% - 20px);
		flex: 0 0 calc(33.333% - 20px);
	}
}

@media (max-width: 767px) {
	.ecomus-products-carousel .product-swiper--elementor:not(.swiper-initialized) ul.products li.product,
	.ecomus-products-carousel .product-swiper--elementor.mobile-col-2:not(.swiper-initialized) ul.products li.product,
	.ecomus-products-carousel .product-swiper--elementor.columns-4:not(.swiper-initialized) ul.products li.product {
		width: calc(50% - 8px) !important;
		max-width: calc(50% - 8px);
		flex: 0 0 calc(50% - 8px);
	}
}

/* Elementor section shrink-wrap kırılması */
.elementor-widget-ecomus-products-carousel,
.elementor-widget-ecomus-products-carousel > .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	align-self: stretch;
}
