/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.2
 Text Domain:  woodmart
*/

/**
 * WooCommerce: в разметке сначала <del>, потом <ins>. Визуально нужно наоборот — через flex order.
 * :where(...) даёт нулевую специфичность: правила виджетов ниже перебивают (колонка WoodMart и т.д.).
 */
@supports selector(:has(*)) {
	:where(.single-product.woocommerce .product p.price:has(del):has(ins)),
	:where(.single-product.woocommerce .product span.price:has(del):has(ins)),
	:where(.woocommerce ul.products li.product p.price:has(del):has(ins)),
	:where(.woocommerce ul.products li.product span.price:has(del):has(ins)) {
		display: inline-flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0.35em 0.65em;
		line-height: 1.25;
		margin: 0;
	}

	:where(.single-product.woocommerce .product p.price:has(del):has(ins)) ins,
	:where(.single-product.woocommerce .product span.price:has(del):has(ins)) ins,
	:where(.woocommerce ul.products li.product p.price:has(del):has(ins)) ins,
	:where(.woocommerce ul.products li.product span.price:has(del):has(ins)) ins {
		order: 1;
		text-decoration: none;
		white-space: nowrap;
	}

	:where(.single-product.woocommerce .product p.price:has(del):has(ins)) del,
	:where(.single-product.woocommerce .product span.price:has(del):has(ins)) del,
	:where(.woocommerce ul.products li.product p.price:has(del):has(ins)) del,
	:where(.woocommerce ul.products li.product span.price:has(del):has(ins)) del {
		order: 2;
		white-space: nowrap;
	}
}

/**
 * Product price widget (WoodMart Elementor): stack sale vs regular price, no awkward mid-number wrap.
 */
.wd-single-price p.price,
.wd-single-price span.price,
.elementor-widget-wd_single_product_price p.price,
.elementor-widget-wd_single_product_price span.price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: 0.15em;
	line-height: 1.25;
	margin: 0;
}

/* Safety: if multiple .price nodes appear, show only the first one */
.wd-single-price .price ~ .price,
.elementor-widget-wd_single_product_price .price ~ .price {
	display: none !important;
}

/* Sale/current price — full amount on one line */
.wd-single-price p.price ins,
.wd-single-price span.price ins,
.elementor-widget-wd_single_product_price p.price ins,
.elementor-widget-wd_single_product_price span.price ins {
	order: 1;
	text-decoration: none;
	white-space: nowrap;
}

/* Old/strikethrough price — own line, slightly smaller */
.wd-single-price p.price del,
.wd-single-price span.price del,
.elementor-widget-wd_single_product_price p.price del,
.elementor-widget-wd_single_product_price span.price del {
	order: 2;
	opacity: 0.9;
	white-space: nowrap;
}

/**
 * Elementor Pro «Product Price» (каталог / Loop Item):
 * актуальная цена (ins) слева, зачёркнутая (del) справа — HTML WooCommerce по умолчанию наоборот.
 */
.elementor-widget-woocommerce-product-price p.price,
.elementor-widget-woocommerce-product-price span.price {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em 0.65em;
	line-height: 1.25;
	margin: 0;
}

.elementor-widget-woocommerce-product-price p.price ins,
.elementor-widget-woocommerce-product-price span.price ins {
	order: 1;
	text-decoration: none;
	white-space: nowrap;
	font-size: 20px;
	font-weight: 600;
}

.elementor-widget-woocommerce-product-price p.price ins .woocommerce-Price-amount,
.elementor-widget-woocommerce-product-price span.price ins .woocommerce-Price-amount {
	font-weight: 600;
}

.elementor-widget-woocommerce-product-price p.price del,
.elementor-widget-woocommerce-product-price span.price del {
	order: 2;
	white-space: nowrap;
}

/**
 * Upsells list ("Похожие модели") via shortcode [ig_upsells_models].
 */
.ig-upsells-models {
	font-family: "SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.ig-upsells-models__title {
	font-weight: 400;
	font-size: 16px;
	color: #8e8e93;
	margin: 0 0 10px;
}

.ig-upsells-models__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ig-upsells-models__item {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 11px 24px 11px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	background: #fff;
}

.ig-upsells-models__item:hover {
	border-color: #d8d8d8;
}

.ig-upsells-models__img img {
	width: 44px !important;
	height: 44px !important;
	object-fit: contain;
	display: block;
}

.ig-upsells-models__name {
	font-weight: 400;
	font-size: 16px;
	color: #111;
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ig-upsells-models__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ig-upsells-models__arrow svg {
	display: block;
}

/**
 * Meta pills for shortcodes:
 * - [ig_benefit]
 * - [ig_installment_min]
 */
.ig-meta-pill {
	font-family: "SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
	display: inline-flex;
	align-items: center;
	border: 1px solid #8e8e93;
	border-radius: 18px;
	overflow: hidden;
	line-height: 1;
}

.ig-meta-pill__label {
	background: #8e8e93;
	color: #fff;
	font-weight: 500;
	font-size: 12px;
	padding: 6px 10px;
	white-space: nowrap;
}

.ig-meta-pill__value {
	color: #8e8e93;
	font-weight: 500;
	font-size: 12px;
	padding: 6px 10px;
	white-space: nowrap;
}

/* Виджет в режиме «Stacked»: актуальная сверху, старая снизу */
.woocommerce .elementor-product-price-block-yes.elementor-widget-woocommerce-product-price p.price,
.woocommerce .elementor-product-price-block-yes.elementor-widget-woocommerce-product-price span.price,
.elementor-widget-woocommerce-product-price.elementor-product-price-block-yes p.price,
.elementor-widget-woocommerce-product-price.elementor-product-price-block-yes span.price {
	flex-direction: column;
	align-items: flex-start;
}

/**
 * Variation attribute labels ("Объем памяти :", "Цвет :" etc.)
 */
.wd-single-add-cart table.variations th.label label {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #8e8e93;
}

.wd-single-add-cart table.variations th.label label::after {
	content: none !important;
}

/**
 * Variation attribute buttons (Memory/Color etc.)
 * Targets Variation Swatches "button" items inside single product add-to-cart block.
 */
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0.5px solid #e5e5e5;
	border-radius: 30px !important;
	padding: 10px 24px;
	background: transparent;
	box-shadow: none;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	overflow: hidden;
}

/* Ensure inner swatch elements don't override rounding */
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item .variable-item-contents,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item .variable-item-span,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item > span {
	border-radius: 30px !important;
	overflow: hidden;
}

/* Remove theme hover/focus rings/outlines */
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item:hover,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item:focus,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item:focus-within {
	outline: none !important;
	box-shadow: none !important;
}

.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item a,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item button {
	outline: none !important;
	box-shadow: none !important;
}

.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item a:hover,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item a:focus,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item a:focus-visible,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item button:hover,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item button:focus,
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item button:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

/* Selected/active state */
.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item.selected {
	border: 3px solid #0a7f66;
	border-radius: 30px !important;
	padding: 10px 24px;
	box-shadow: none;
}

/**
 * Image color swatches (WVS / GetWooPlugins): selection is often drawn with
 * inset box-shadow or ::before/::after — not only border-color on <li>.
 * Do NOT use box-shadow: none here (it removes hover/active visuals).
 */
.wd-single-add-cart .variable-items-wrapper .variable-item.image-variable-item:hover,
.wd-single-add-cart .variable-items-wrapper .variable-item.image-variable-item:focus-visible {
	border-color: #0A7F66 !important;
	box-shadow: 0 0 0 2px #0A7F66 !important;
	outline: none !important;
}

.wd-single-add-cart .variable-items-wrapper .variable-item.image-variable-item.selected,
.wd-single-add-cart .variable-items-wrapper .variable-item.image-variable-item[aria-checked="true"] {
	border-color: #0A7F66 !important;
	box-shadow: 0 0 0 3px #0A7F66 !important;
	outline: none !important;
}


@media screen and (max-width: 768px) {
	.wd-single-add-cart .variable-items-wrapper .variable-item.button-variable-item {
		padding: 4px 10px !important;
	}

	 
	.variable-items-wrapper .variable-item.image-variable-item {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }
}


/* __ СПЕЦ АТРИБУТЫ СТИЛИ  ---------------------------------- */



/**
 * Стили только для блока «Характеристики» и связанной липкой навигации на карточке товара.
 * Источник: new.css (maxh-igadget16). Шаблон: woocommerce/content-single-product.php
 *
 * Подключение (после main.css / при необходимости после new.css):
 * wp_enqueue_style( 'prod-specs-section', get_template_directory_uri() . '/assets/css/prod-specs-section.css', array(), '1.0' );
 *
 * Нужны переменные :root из темы (--main-green-light, --white-color) и шрифты Gilroy / RockStar для .s-title.
 * Если контейнер не из main.css — раскомментируй блок .container внизу.
 */

/* --- переменные (дублируют тему; при отдельном переносе оставь или сопоставь) --- */
:root {
	--main-green-light: #019f7c;
	--white-color: #f7f4f0;
	--header-height: 158px;
  }
  
  @media (max-width: 991px) {
	:root {
	  --header-height: 91px;
	}
  }
  
  /* --- отступы секций --- */
  .sect-m {
	margin: 100px 0;
  }
  
  @media (max-width: 991px) {
	.sect-m {
	  margin: 40px 0;
	}
  }
  
  /* --- заголовок блока (sect-top + s-title) --- */
  .sect-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 15px;
	flex-wrap: wrap;
	margin-bottom: 40px;
  }
  
  .sect-top a {
	position: relative;
	top: 5px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	line-height: 1;
  }
  
  .sect-top a::after {
	content: "\e901";
	font-family: "icomoon";
  }
  
  .s-title {
	font-family: "RockStar", sans-serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.2;
  }
  
  .sect-top p {
	font-size: 18px;
	margin-top: 25px;
  }
  
  @media (max-width: 991px) {
	.sect-top {
	  flex-direction: column;
	  align-items: start;
	  margin-bottom: 30px;
	}
  
	.sect-top a {
	  top: 0;
	  font-size: 15px;
	}
  
	.s-title {
	  font-size: 28px;
	}
  
	.sect-top p {
	  font-size: 16px;
	  margin-top: 10px;
	}
  }
  
  /* --- контент значения характеристики (rich text) --- */
  .content-box {
	font-size: 16px;
	line-height: normal;
  }
  
  .content-box > *:not(:last-child) {
	margin-bottom: 1em;
  }
  
  .content-box ul,
  .content-box li {
	list-style: disc;
  }
  
  .content-box li {
	margin-left: 25px;
	line-height: 1.4;
  }
  
  .content-box li:not(:last-child) {
	margin-bottom: 3px;
  }
  
  .content-box li::marker {
	color: var(--main-green-light);
  }
  
  .content-box img {
	object-fit: contain;
  }
  
  .content-box h2,
  .content-box h3,
  .content-box h4,
  .content-box h5,
  .content-box h6 {
	font-weight: 600;
	line-height: 1.2;
  }
  
  .content-box h2:not(:first-child),
  .content-box h3:not(:first-child),
  .content-box h4:not(:first-child),
  .content-box h5:not(:first-child),
  .content-box h6:not(:first-child) {
	padding-top: 10px;
  }
  
  .content-box h2 {
	font-size: 32px;
  }
  
  .content-box h3 {
	font-size: 24px;
  }
  
  .content-box h4 {
	font-size: 20px;
  }
  
  .content-box h5 {
	font-size: 16px;
  }
  
  .content-box h6 {
	font-size: 14px;
  }
  
  .content-box .wp-block-heading {
	margin-bottom: 1em;
  }
  
  @media (max-width: 575px) {
	.content-box h2 {
	  font-size: 26px;
	}
  
	.content-box h3 {
	  font-size: 20px;
	}
  
	.content-box h4 {
	  font-size: 18px;
	}
  }
  
  .content-box .alignright {
	float: right;
	margin-bottom: 16px;
  }
  
  .content-box .alignleft {
	float: left;
	margin-bottom: 16px;
  }
  
  @media (min-width: 481px) {
	.content-box .alignright {
	  padding-left: 16px;
	}
  
	.content-box .alignleft {
	  padding-right: 16px;
	}
  }
  
  .content-box ol li {
	list-style: decimal;
  }
  
  .content-box a {
	color: var(--main-green-light);
	text-decoration: none;
  }
  
  .content-box a:hover {
	text-decoration: underline;
  }
  
  .content-box table {
	width: fit-content;
	border-top: 1px solid #0000003f;
	border-left: 1px solid #0000003f;
  }
  
  .content-box table td {
	padding: 3px;
	border-right: 1px solid #0000003f;
	border-bottom: 1px solid #0000003f;
  }
  
  /* --- иконка подсказки рядом с названием параметра --- */
  ._hint {
	width: 14px;
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #bab7b4;
	color: #fff;
	font-size: 8px;
	border-radius: 50%;
	transition: background 0.2s ease;
	position: relative;
  }
  
  ._hint:hover {
	background: var(--main-green-light);
  }
  
  /* --- всплывающая подсказка (template _tooltip) --- */
  ._tooltip {
	position: absolute;
	width: 200px;
	padding: 12px;
	background: #000;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: normal;
	text-align: left;
	border-radius: 8px;
	pointer-events: none;
	transition: opacity 0.2s ease;
	opacity: 0;
  }
  
  ._tooltip[data-show] {
	opacity: 1;
  }
  
  ._tooltip-arrow::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	transform: rotate(45deg);
	background: #000;
  }
  
  ._tooltip[data-popper-placement^="top"] ._tooltip-arrow {
	bottom: -5px;
  }
  
  ._tooltip[data-popper-placement^="bottom"] ._tooltip-arrow {
	top: -5px;
  }
  
  ._tooltip[data-popper-placement^="left"] ._tooltip-arrow {
	right: -5px;
  }
  
  ._tooltip[data-popper-placement^="right"] ._tooltip-arrow {
	left: -5px;
  }
  
  /* --- липкая навигация по якорям (Описание / Характеристики / …) --- */
  .prod-sticky {
	position: sticky;
	top: var(--header-height);
	background: var(--white-color);
	z-index: 3;
  }
  
  .prod-sticky__nav {
	display: flex;
	gap: 50px;
	white-space: nowrap;
  }
  
  .prod-sticky__nav a {
	padding: 17px 0;
	display: inline-block;
	font-size: 20px;
	line-height: 1;
	border-top: 2px solid transparent;
	border-bottom: 2px solid transparent;
  }
  
  .prod-sticky__nav a._active {
	border-bottom-color: var(--main-green-light);
  }
  
  @media (max-width: 991px) {
	.prod-sticky__nav {
	  overflow-x: auto;
	  gap: 20px;
	}
  
	.prod-sticky__nav a {
	  padding: 10px 0;
	  font-size: 15px;
	}
  }
  
  /* --- блок характеристик --- */
  .prod-specs__inner:not(._show) {
	max-height: 650px;
	overflow: hidden;
  }
  
  .prod-specs__part {
	display: flex;
	gap: 40px;
  }
  
  .prod-specs__part:not(:last-child) {
	padding-bottom: 20px;
	border-bottom: 1px solid #edeeed;
	margin-bottom: 20px;
  }
  
  .prod-specs__part-title {
	width: 100%;
	max-width: 300px;
	font-size: 20px;
	font-weight: 600;
  }
  
  .prod-specs__list {
	flex: 1 0 0;
  }
  
  .prod-specs__list li {
	padding: 6px 0;
	display: grid;
	grid-template-columns: 300px 1fr;
	align-items: center;
	gap: 40px;
	border-top: 1px dashed #edeeed;
	border-bottom: 1px dashed #edeeed;
  }
  
  .prod-specs__list li:first-child {
	padding-top: 0;
	border-top: none;
  }
  
  .prod-specs__list li:last-child {
	padding-bottom: 0;
	border-bottom: none;
  }
  
  .prod-specs__list ._title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
  }
  
  .prod-specs__show-more {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	text-align: center;
	margin-top: 30px;
	cursor: pointer;
  }
  
  .prod-specs__show-more:not(._show) {
	display: none;
  }
  
  .prod-specs__show-more::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 1px;
	background: #edeeed;
  }
  
  .prod-specs__show-more::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 0;
	width: 100%;
	height: 60px;
	background: linear-gradient(
	  0deg,
	  rgba(255, 255, 255, 1) 0%,
	  rgba(255, 255, 255, 1) 50%,
	  rgba(255, 255, 255, 0) 100%
	);
  }
  
  .prod-specs__show-more span {
	position: relative;
	padding: 0 20px;
	background: #fff;
	font-size: 17px;
	line-height: 1;
	color: var(--main-green-light);
	z-index: 2;
  }
  
  @media (max-width: 991px) {
	.prod-specs__part {
	  flex-direction: column;
	  gap: 20px;
	}
  
	.prod-specs__part:not(:last-child) {
	  padding-bottom: 20px;
	  margin-bottom: 15px;
	}
  
	.prod-specs__part-title {
	  font-size: 18px;
	}
  
	.prod-specs__list li {
	  padding: 10px 0;
	  grid-template-columns: 1fr 1fr;
	  font-size: 14px;
	}
  }
  
  /*
   * Контейнер (если не подключаешь main.css):
   *
   * :root { --container-width: 1320px; --container-padding: 15px; }
   * .container {
   *   margin-right: auto;
   *   margin-left: auto;
   *   padding-left: var(--container-padding);
   *   padding-right: var(--container-padding);
   *   width: 100%;
   *   max-width: var(--container-width);
   * }
   */

/**
 * Cart: cross-sells [ig_cross_sell_cart] — изоляция от WoodMart / WooCommerce.
 * Префикс .ig-xsell-cart на каждом правиле + :where там, где нужна нулевая специфичность.
 */
html body .ig-xsell-cart {
	font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	box-sizing: border-box;
}

html body .ig-xsell-cart *,
html body .ig-xsell-cart *::before,
html body .ig-xsell-cart *::after {
	box-sizing: border-box;
}

html body .ig-xsell-cart .ig-xsell-cart__box {
	border: 1px solid #e5e5e5 !important;
	border-radius: 16px !important;
	background: #ffffff !important;
	overflow: hidden !important;
	width: 100% !important;
	padding: 24px 24px 32px !important;
	box-sizing: border-box !important;
}

/* ——— Свернутый бар ——— */
html body .ig-xsell-cart button.ig-xsell-cart__bar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer !important;
	text-align: left !important;
	box-shadow: none !important;
	font: inherit !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	line-height: normal !important;
	min-height: 0 !important;
}

html body .ig-xsell-cart .ig-xsell-cart__bar-left {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 4px !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
}

html body .ig-xsell-cart .ig-xsell-cart__title {
	display: block !important;
	font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-weight: 590 !important;
	font-size: 20px !important;
	line-height: 1.2 !important;
	color: #000000 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-style: normal !important;
}

html body .ig-xsell-cart .ig-xsell-cart__sub {
	display: block !important;
	font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-weight: 590 !important;
	font-size: 16px !important;
	line-height: 1.25 !important;
	color: #8c8c8c !important;
	margin: 0 !important;
	padding: 0 !important;
	font-style: normal !important;
	font-variant: normal !important;
	text-transform: none !important;
}

html body .ig-xsell-cart .ig-xsell-cart__decor {
	flex: 0 0 auto !important;
	display: flex !important;
	justify-content: flex-end !important;
	align-items: center !important;
	min-width: 0 !important;
	max-width: min(335px, 55%) !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

html body .ig-xsell-cart .ig-xsell-cart__decor img {
	display: block !important;
	height: 50px !important;
	width: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
	margin: 0 !important;
}

html body .ig-xsell-cart.is-open .ig-xsell-cart__decor {
	display: none !important;
}

html body .ig-xsell-cart .ig-xsell-cart__bar-right {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-shrink: 0 !important;
	gap: 12px !important;
	flex: 0 0 auto !important;
}

html body .ig-xsell-cart .ig-xsell-cart__chev {
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body .ig-xsell-cart .ig-xsell-cart__chev-icon {
	display: block !important;
	transition: transform 0.2s ease !important;
}

html body .ig-xsell-cart.is-open .ig-xsell-cart__chev-icon {
	transform: rotate(180deg) !important;
}

/* Раскрытие вниз в потоке документа (не модальное окно) */
html body .ig-xsell-cart .ig-xsell-cart__expand {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #ffffff !important;
	overflow: hidden !important;
}

html body .ig-xsell-cart.is-open .ig-xsell-cart__expand {
	padding-top: 24px !important;
}

html body .ig-xsell-cart .ig-xsell-cart__expand[hidden] {
	display: none !important;
}

/* Вкладки-чипы */
html body .ig-xsell-cart .ig-xsell-cart__tabs {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 8px !important;
	padding: 0 !important;
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	background: #ffffff !important;
	scrollbar-width: thin !important;
}

html body .ig-xsell-cart button.ig-xsell-cart__tab {
	/* WoodMart: :is(button,…) задаёт min-height: var(--btn-height, 42px) — без сброса чипы остаются «высокими». */
	--btn-height: auto !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 5px 8px !important;
	min-height: 0 !important;
	height: auto !important;
	border: none !important;
	border-radius: 30px !important;
	background: #e3e3e3 !important;
	color: #1d1d1f !important;
	font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-weight: 400 !important;
	font-size: 12px !important;
	line-height: 1.25 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: background 0.15s ease, color 0.15s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
}

html body .ig-xsell-cart button.ig-xsell-cart__tab.is-active,
html body .ig-xsell-cart button.ig-xsell-cart__tab:hover {
	background: #8e8e93 !important;
	color: #ffffff !important;
}

html body .ig-xsell-cart .ig-xsell-cart__panels {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	padding: 16px 0 0 !important;
	max-height: min(65vh, 560px) !important;
	min-height: 0 !important;
	background: #ffffff !important;
	-webkit-overflow-scrolling: touch !important;
}

html body .ig-xsell-cart .ig-xsell-cart__panel[hidden] {
	display: none !important;
}

/* Сетка карточек */
html body .ig-xsell-cart ul.ig-xsell-cart__grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, 215px) !important;
	justify-content: flex-start !important;
	gap: 12px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body .ig-xsell-cart li.ig-xsell-cart__card {
	position: relative !important;
	width: 215px !important;
	min-width: 215px !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: #ffffff !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 14px !important;
	overflow: visible !important;
}

html body .ig-xsell-cart a.ig-xsell-cart__card-link {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	height: 100% !important;
	padding: 12px 12px 44px !important;
	text-decoration: none !important;
	color: inherit !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

html body .ig-xsell-cart .ig-xsell-cart__card-img {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 120px !important;
	margin: 0 0 10px !important;
}

html body .ig-xsell-cart .ig-xsell-cart__card-img img {
	max-width: 100% !important;
	height: auto !important;
	max-height: 140px !important;
	object-fit: contain !important;
	display: inline-block !important;
	margin: 0 auto !important;
}

html body .ig-xsell-cart .ig-xsell-cart__card-body {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	min-width: 0 !important;
}

html body .ig-xsell-cart .ig-xsell-cart__card-title {
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #111111 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 3 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

/* Цены внутри карточки — перебиваем тему */
html body .ig-xsell-cart .ig-xsell-cart__card-price {
	font-size: 14px !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body .ig-xsell-cart .ig-xsell-cart__card-price,
html body .ig-xsell-cart .ig-xsell-cart__card-price span.price,
html body .ig-xsell-cart .ig-xsell-cart__card-price p.price {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 4px !important;
	margin: 0 !important;
}

html body .ig-xsell-cart .ig-xsell-cart__card-price ins,
html body .ig-xsell-cart .ig-xsell-cart__card-price ins .woocommerce-Price-amount {
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	color: #111111 !important;
}

html body .ig-xsell-cart .ig-xsell-cart__card-price del,
html body .ig-xsell-cart .ig-xsell-cart__card-price del .woocommerce-Price-amount {
	font-weight: 400 !important;
	font-size: 13px !important;
	color: #8e8e93 !important;
	opacity: 1 !important;
	order: 2 !important;
}

html body .ig-xsell-cart .ig-xsell-cart__card-price ins {
	order: 1 !important;
}

html body .ig-xsell-cart a.ig-xsell-cart__add-to-cart {
	position: absolute !important;
	right: 10px !important;
	bottom: 10px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: #0a7f66 !important;
	color: #ffffff !important;
	font-size: 0 !important;
	font-weight: 500 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	box-shadow: 0 2px 8px rgba(10, 127, 102, 0.35) !important;
	z-index: 2 !important;
}

html body .ig-xsell-cart a.ig-xsell-cart__add-to-cart > span {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 22px !important;
	line-height: 1 !important;
}

html body .ig-xsell-cart a.ig-xsell-cart__add-to-cart:hover {
	filter: brightness(1.05) !important;
	color: #fff !important;
}

html body .ig-xsell-cart a.ig-xsell-cart__add-to-cart--more {
	font-weight: 300 !important;
}

@media (max-width: 600px) {
	html body .ig-xsell-cart button.ig-xsell-cart__bar {
		flex-wrap: wrap !important;
		align-items: flex-start !important;
	}

	html body .ig-xsell-cart .ig-xsell-cart__bar-left {
		width: 100% !important;
	}

	html body .ig-xsell-cart .ig-xsell-cart__bar-right {
		width: 100% !important;
		justify-content: flex-end !important;
		margin-left: 0 !important;
	}
}

@media (max-width: 1023px) {
	html body .ig-xsell-cart .ig-xsell-cart__expand[hidden] {
		display: block !important;
	}

	html body .ig-xsell-cart .ig-xsell-cart__bar {
		cursor: default !important;
	}

	html body .ig-xsell-cart .ig-xsell-cart__chev {
		display: none !important;
	}
}


/* Proxy add-to-cart button from [igadget_add_to_cart_proxy]. */
.igadget-atc-proxy-root .igadget-atc-proxy .single_add_to_cart_button {
	padding: 18px 0;
}

.igadget-atc-proxy-root .igadget-atc-proxy .single_add_to_cart_button:hover {
	background-color: #E67E22 !important;
	border-color: #E67E22 !important;
}

/* Trade-In shortcode open button */
.igadget-ti-open-btn {
	padding-top: 15px !important;
	padding-bottom: 15px !important;
}