/*
 * PLTEK Checkout — стили оформления заказа и каталога.
 * Перенесено из flatsome-child/style.css (2026-12-06).
 * Подключается из mu-plugins/pltek-checkout.php на всех страницах.
 */

/* ---------- Карточки товаров / слайдеры ---------- */
.related-products-wrapper .slider-nav-push {
	height: 700px;
}
.related-products-wrapper .slider-nav-push .flickity-viewport {
	height: 100%;
}
.related-products-wrapper .flickity-slider {
	display: flex;
}
.row-small > .flickity-viewport > .flickity-slider > .product-small {
	height: 100%;
}
.product-small .col-inner {
	height: 100%;
}
.product-small.box {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: 100%;
}
.box-text-products {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	flex: 1;
}
.box-text-products ul {
	flex: 1;
}
a.primary.is-small.mb-0.button.product_type_variable.add_to_cart_button,
a.primary.is-small.mb-0.button.product_type_simple.add_to_cart_button.ajax_add_to_cart,
.primary.is-small.mb-0.button.wp-element-button.product_type_variable.is-flat {
	height: auto !important;
	width: 100%;
	padding: .6180469716em 1.41575em;
}

/* ---------- Оформление заказа ---------- */
form.checkout {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}
.woocommerce-shipping-fields {
	display: none;
	-webkit-box-ordinal-group: 4;
	-ms-flex-order: 3;
	order: 3;
}
#billing_address_1_field {
	display: none;
	-webkit-box-ordinal-group: 5;
	-ms-flex-order: 4;
	order: 4;
}
#billing_first_name_field {
	display: none;
	-webkit-box-ordinal-group: 6;
	-ms-flex-order: 5;
	order: 5;
}
#billing_phone_field {
	display: none;
	-webkit-box-ordinal-group: 7;
	-ms-flex-order: 6;
	order: 6;
}
#billing_email_field {
	display: none;
	-webkit-box-ordinal-group: 8;
	-ms-flex-order: 7;
	order: 7;
}
div.place_order_block {
	-webkit-box-ordinal-group: 9;
	-ms-flex-order: 8;
	order: 8;
}

.col2-set,
#order_review {
	width: 100%;
}
#order_review_heading,
#order_review {
	float: none;
}
.form-row-first {
	width: 100%;
}
.large-7.cart-auto-refresh {
	width: 100%;
	max-width: 100%;
	flex-basis: 100%;
}
.payment_method_tinkoff img {
	float: right;
	max-width: 100px;
}
#billing_first_name_field,
#place_order {
	width: 100%;
}
.select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 2em;
}

/* ---------- Маркетплейсы ---------- */
.market-wrap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.market-wrap > div {
	margin-right: 10px;
}
.market__ozon img {
	max-width: 130px;
}
.market__wb img {
	max-width: 150px;
	max-height: 45px;
	height: 100%;
}
.market-wrap > div:nth-child(3) {
	margin: auto;
	margin-top: auto;
	margin-top: 15px;
}
@media only screen and (min-width: 450px) and (max-width: 870px) {
	.market-wrap > div:nth-child(3) {
		margin: 0;
	}
}
.market__ya img {
	max-width: 190px;
	max-height: 30px;
	height: 100%;
}

/* ---------- Совместимость со штатными шаблонами WooCommerce ----------
 * Штатный form-billing.php оборачивает поля в div'ы, а раскладка выше
 * рассчитана на то, что поля — прямые flex-элементы form.checkout.
 * display:contents убирает обёртки из потока, не ломая разметку.
 */
#customer_details,
#customer_details .col-1,
.woocommerce-billing-fields,
.woocommerce-billing-fields__field-wrapper {
	display: contents;
}
#customer_details .col-2 {
	display: none;
}

/* ---------- Раскладка Flatsome: одна колонка, как было в дочерней теме ---------- */
form.checkout .row.pt-0 {
	display: block;
}
form.checkout .row.pt-0 > .large-7.col,
form.checkout .row.pt-0 > .large-5.col {
	width: 100% !important;
	max-width: 100% !important;
	flex-basis: 100% !important;
	float: none;
}
form.checkout .large-7.col {
	display: flex;
	flex-direction: column;
}
/* Промежуточная обёртка Flatsome — иначе поля не становятся flex-элементами */
form.checkout .large-7.col .clear {
	display: contents;
}
/* Блок «Детали» (примечание к заказу) отключён */
form.checkout .woocommerce-additional-fields {
	display: none;
}
