/* Карточка товара (catalog.element): размеры, отступы, мобильная покупка */

.bx-catalog-element.bx-uvelirsoft div[data-entity="sku-line-block"] {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 12px;
}

.bx-catalog-element.bx-uvelirsoft div[data-entity="sku-line-block"] .product-item-detail-info-container-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.bx-catalog-element.bx-uvelirsoft .product-item-scu-list.wrapper-dropdown {
	position: static;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: default;
	overflow: visible;
}

.bx-catalog-element.bx-uvelirsoft .product-item-scu-list.wrapper-dropdown > span.ul_name {
	display: none;
}

/* Размеры как сетка кнопок, а не список на всю ширину */
.bx-catalog-element.bx-uvelirsoft .product-item-scu-list.wrapper-dropdown ul.product-item-scu-item-list.dropdown {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0;
	padding: 0;
	border: 0;
	width: 100% !important;
	max-height: none;
	overflow: visible;
	position: static;
}

.bx-catalog-element.bx-uvelirsoft .product-item-scu-list.wrapper-dropdown ul.dropdown li,
.bx-catalog-element.bx-uvelirsoft .product-item-scu-list.wrapper-dropdown .product-item-scu-item-text-container {
	display: inline-block;
	width: auto !important;
	height: auto;
	padding: 0;
	float: none !important;
	text-align: center;
}

.bx-catalog-element.bx-uvelirsoft .product-item-scu-list.wrapper-dropdown .product-item-scu-item-text-block,
.bx-catalog-element.bx-uvelirsoft .product-item-scu-item-list:not(.dropdown) .product-item-scu-item-text-block {
	border-radius: 4px;
	min-width: 0;
	width: auto;
	height: auto;
	min-height: 34px;
	padding: 6px 11px;
	outline: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #898989;
	background: #fff;
	box-sizing: border-box;
}

.bx-catalog-element.bx-uvelirsoft .product-item-scu-item-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.bx-catalog-element.bx-uvelirsoft .product-item-scu-list.wrapper-dropdown .product-item-scu-item-text-container.selected .product-item-scu-item-text-block,
.bx-catalog-element.bx-uvelirsoft .product-item-scu-item-text-container.selected .product-item-scu-item-text-block {
	background: #00ad9f;
	color: #fff;
	border-color: #00ad9f;
}

.bx-catalog-element.bx-uvelirsoft .product-item-scu-item-text {
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
	max-width: none;
}

.bx-catalog-element.bx-uvelirsoft .product-item-scu-item-text-container {
	max-width: none;
	padding: 0;
}

.bx-catalog-element.bx-uvelirsoft .product-item-detail-info-section > .product-item-detail-info-container,
.bx-catalog-element.bx-uvelirsoft .product-item-detail-info-section [data-entity="price-block"] {
	margin-bottom: 12px;
}

.bx-catalog-element.bx-uvelirsoft .price_vals {
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
}

/* Счётчик «− 1 + шт» на карточке не показываем (всегда 1 шт.) */
.bx-catalog-element.bx-uvelirsoft [data-entity="quantity-block"] {
	display: none !important;
}

/* Рейтинг — в одну линию с блоком, без ухода вправо */
.bx-catalog-element.bx-uvelirsoft .artnumb_rating {
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.bx-catalog-element.bx-uvelirsoft .rating {
	flex: 1 1 100%;
}

.bx-catalog-element.bx-uvelirsoft .rating .product-item-detail-info-container {
	display: flex;
	justify-content: flex-start;
	width: 100%;
	margin-bottom: 0;
}

.bx-catalog-element.bx-uvelirsoft .rating .bx_item_detail_rating,
.bx-catalog-element.bx-uvelirsoft .rating .bx_item_detail_rating table {
	margin: 0 !important;
	text-align: left;
}

.bx-catalog-element.bx-uvelirsoft div[data-entity="main-button-container"] {
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-start;
	justify-content: flex-start;
}

/* «В корзину» — фирменный бирюзовый, не bootstrap btn-default/link */
.bx-catalog-element.bx-uvelirsoft a.btn.product-item-detail-buy-button:not(.btn_orderInOneClick) {
	display: inline-block;
	box-sizing: border-box;
	min-width: 190px;
	width: auto;
	max-width: 100%;
	padding: 12px 28px;
	background: #00ad9f !important;
	border: 1px solid #00ad9f !important;
	color: #fff !important;
	border-radius: 3px;
	font-size: 16px;
	font-weight: normal;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	line-height: 1.25;
	margin: 0;
}

.bx-catalog-element.bx-uvelirsoft a.btn.product-item-detail-buy-button:not(.btn_orderInOneClick):hover,
.bx-catalog-element.bx-uvelirsoft a.btn.product-item-detail-buy-button:not(.btn_orderInOneClick):focus {
	background: #009a8e !important;
	border-color: #009a8e !important;
	color: #fff !important;
}

.bx-catalog-element.bx-uvelirsoft div[data-entity="main-button-container"] .product-item-detail-info-container {
	text-align: left;
	width: auto;
}

.bx-catalog-element.bx-uvelirsoft .btn_nosize_razmer,
.bx-catalog-element.bx-uvelirsoft .btn_whichsize_razmer {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
}

@media screen and (max-width: 767px) {
	.bx-catalog-element.bx-uvelirsoft .container-fluid .row > .col-md-6:last-child {
		padding-left: 12px;
		padding-right: 12px;
	}

	.bx-catalog-element.bx-uvelirsoft h1.bx-title {
		font-size: 18px;
		line-height: 1.35;
		margin: 12px 0 8px;
	}

	.bx-catalog-element.bx-uvelirsoft .artnumb_rating {
		margin-bottom: 10px;
	}

	.bx-catalog-element.bx-uvelirsoft .price_vals {
		margin-top: 12px;
	}

	.bx-catalog-element.bx-uvelirsoft div[data-entity="main-button-container"] {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		margin-bottom: 16px;
	}

	.bx-catalog-element.bx-uvelirsoft a.btn.product-item-detail-buy-button:not(.btn_orderInOneClick) {
		width: 100%;
		max-width: 320px;
	}
}
