/* LINKS */
.link:hover {
	color: var(--secondary);
	cursor: pointer;
}
.link:active {
	color: var(--tertiary);
}
.link-blue {
	color: var(--primary);
	transition: color .25s linear;
}
.link-blue:hover {
	transition: color .25s linear;
}
.link-red {
	color: var(--red-text);
	transition: color .25s linear;
}
.link-red:hover {
	color: var(--red-text);
	transition: color .25s linear;
}
.link-dark-blue {
	color: var(--secondary);
	transition: color .25s linear;
}
.link-dark-blue:hover {
	color: var(--primary);
	transition: color .25s linear;
}
.link-hover-blue-bg {
	transition: background .25s linear;
}
.link-hover-blue-bg:hover {
	background: var(--hover-main);
	transition: background .25s linear;
}

/* BUTTONS */
.btn-outlined {
	font-size: 16px;
	font-weight: 500;
	color: var(--primary);
	border: 1px solid var(--primary);
	background-color: #fff;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 2%;
	transition: color .25s ease-out;
}
.btn-outlined:hover {
	color: var(--secondary);
	border-color: var(--secondary);
}
.btn-outlined:active {
	color: var(--tertiary);
	border-color: var(--tertiary);
}
.btn-filled:hover {
	background: var(--btn-hover) !important;
	border-color: var(--btn-hover) !important;
	transition: background .25s ease-out;
}
.btn-filled:active {
	background: var(--tertiary) !important;
	border-color: var(--tertiary) !important;
}
.btn-filled {
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	background: var(--primary) !important;
	border: 1px solid var(--primary) !important;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 2%;
	transition: background .25s ease-out;
}
.btn-inactive {
	font-size: 16px;
	font-weight: 500;
	color: #A6A6A6;
	background: #F5F5F6;
	border: 1px solid #F5F5F6;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 2%;
	cursor: not-allowed;
	pointer-events: none;
}
.group-btn {
	display: flex;
	align-items: center;
	border: 1px solid #e0e0e6;
	border-radius: 10px;
	padding: 4px;
}
.group-btn button {
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	border-radius: 8px;
	padding: 6px 6px;
}
.group-btn button.active {
	color: var(--tertiary);
	background: var(--hover-main);
}
/* BORDER */
.border-bottom {
	border-bottom: 1px solid #e0e0e5;
}
.border-top {
	border-top: 1px solid #e0e0e5;
}
.border-right {
	border-right: 1px solid #e0e0e6;
}
.border-left {
	border-left: 1px solid #e0e0e6;
}

.truncate-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.breadcrumbs {
	font-weight: 500;
	font-size: 14px;
	line-height: 22px;
	color: #9a9aa0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.breadcrumbs .delimiter {
	display: block;
	width: 4px;
	height: 4px;
	background-color: #C4C4C4;
	border-radius: 100px;
	margin: 0px 6px;
}

.breadcrumbs a:hover {
	color: var(--black)
}

/* LOCATION HEADER */
.location-header {
	height: 40px;
	background-color: var(--hover-border);
	max-width: 1440px;
	margin: 0 auto;
	padding-bottom: 0 !important;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.location-header__ruble-text{
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	color: #78777F;
}

/* CITY POPOVER */
.city-popover {
	position: fixed;
	background: #474747;
	border-radius: 16px;
	padding: 10px 8px 8px;
	box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.16);
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	min-width: 280px;
}

.city-popover.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.city-popover__arrow {
	position: absolute;
	top: -6px;
	width: 12px;
	height: 12px;
	background: #474747;
	transform: rotate(45deg);
}

.city-popover__content {
	position: relative;
	z-index: 1;
}

.city-popover__title {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #FFFFFF;
	margin-bottom: 12px;
}

.city-popover__city-name {
	font-weight: 600;
}

.city-popover__actions {
	display: flex;
	gap: 8px;
}

.city-popover__btn {
	flex: 1;
	padding: 8px 16px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	outline: none;
}

.city-popover__btn--primary {
	background: var(--primary);
	color: #FFFFFF;
}

.city-popover__btn--primary:hover {
	background: var(--secondary);
}

.city-popover__btn--primary:active {
	background: var(--tertiary);
}

.city-popover__btn--secondary {
	background: #FFFFFF;
	color: var(--primary);
}

.city-popover__btn--secondary:hover {
	background: #F5F5F6;
}

.city-popover__btn--secondary:active {
	background: #E0E0E5;
}

/* RIBON */
.ribbon {
	width: 98px;
	height: 60px;
	overflow: hidden;
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 20;
}

.ribbon__content {
	right: 0;
	top: 0;
	transform: rotate(-45deg);
	position: absolute;
	display: block;
	width: 130px;
	padding-left: 30px;
	font-weight: 700;
	font-size: 16px;
	line-height: 19px;
	color: #fff;
	height: 23px;
	padding-top: 2px;
	background-color: #ff0000;
}

/* SELECT */
.m-select {
	display: flex;
	align-items: center;
	border-radius: 10px;
	padding: 10px;
	background: #fff;
	color: var(--primary);
	/* border: 1px solid #e0e0e5; */
	width: 250px;
	background: url("/resources/costo/images/components/icons/arrow-down-select.svg") no-repeat
		95%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.selector-wrapper {
	width: 250px;
	background-color: #f5f5f6;
	border: none;
}

.content {
	display: flex;
	width: 250px;
	padding: 12px 8px;
	margin-top: 4px;
	background: #fff;
	box-shadow: 0px 6px 20px rgb(0 0 0 / 8%);
    border-radius: 8px;
}

.content li {
	padding: 10px 12px;
}

.content li:hover {
	background: var(--hover-main);
	border-radius: 8px;
	cursor: pointer;
}

.options {
	width: 100%;
}

@media (max-width: 800px) {
	.m-select {
		padding: 8px;
	}
}
.m-select::-ms-expand {
	display: none;
}
.m-select:hover {
	border-color: var(--primary);
	cursor: pointer;
	box-shadow: 0 0 0 1px -moz-mac-focusring;
}

.m-select option {
	font-weight: normal;
}
*[dir="rtl"] .m-select,
:root:lang(ar) .m-select,
:root:lang(iw) .m-select {
	background-position: left 0.7em top 50%, 0 0;
	padding: 0.6em 0.8em 0.5em 1.4em;
}

/* CHECKBOX */

.m-checkbox {
	display: none;
	z-index: 20;
}

.m-checkbox + label {
	display: inline-flex;
	align-items: center;
	user-select: none;
	cursor: pointer;
	border-radius: 6px;
	padding: 1px 2px;
	width: 100%;
	text-wrap: pretty;
}
.m-checkbox + label::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	flex-grow: 0;
	border: 1px solid #adb5bd;
	border-radius: 0.25em;
	margin-right: 0.5em;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 75%;
}

.m-checkbox + label:hover {
	background: #f1f1f1;
}

.m-checkbox:checked + label::before {
	border-color: var(--primary);
	background-color: var(--primary);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* стили при наведении курсора на checkbox */
.m-checkbox:not(:disabled):not(:checked) + label:hover::before {
	border-color: #adb5bd;
	cursor: pointer;
}
/* стили для активного состояния чекбокса (при нажатии на него) */
.m-checkbox:not(:disabled):active + label::before {
	background-color: var(--hover-main);
	border-color: var(--hover-main);
}
/* стили для чекбокса, находящегося в фокусе */
.m-checkbox:focus + label::before {
	box-shadow: 0 0 0 0.1rem rgba(91, 28, 154, 0.25);
}
/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
.m-checkbox:focus:not(:checked) + label::before {
	border-color: var(--secondary);
}
/* стили для чекбокса, находящегося в состоянии disabled */
.m-checkbox:disabled + label {
	color: #999;
}
/* стили для чекбокса цвета, находящегося в состоянии disabled */
.m-checkbox-color-filter:disabled + label {
	opacity: 30%;
	user-select: none;
}
.m-checkbox-color-filter:disabled + label::before {
	content: none;
}



/* RADIO */

/* для элемента input c type="radio" */
.m-radio {
	position: absolute;
	z-index: -1;
	opacity: 0;
	z-index: 20;
}
/* для элемента label связанного с .custom-radio */
.m-radio + label {
	display: inline-flex;
	align-items: center;
	user-select: none;
	cursor: pointer;
	text-wrap: pretty;
}
/* создание в label псевдоэлемента  before со следующими стилями */
.m-radio + label::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	flex-grow: 0;
	border: 1px solid #adb5bd;
	border-radius: 50%;
	margin-right: 0.5em;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 50% 50%;
}
/* стили при наведении курсора на радио */
.m-radio:not(:disabled):not(:checked) + label:hover::before {
	border-color: var(--hover-main);
}
/* стили для активной радиокнопки (при нажатии на неё) */
.m-radio:not(:disabled):active + label::before {
	background-color: var(--hover-main);
	border-color: var(--hover-main);
}
/* стили для радиокнопки, находящейся в фокусе */
.m-radio:focus + label::before {
	box-shadow: 0 0 0 0.1rem rgba(91, 28, 154, 0.25);
}
/* стили для радиокнопки, находящейся в фокусе и не находящейся в состоянии checked */
.m-radio:focus:not(:checked) + label::before {
	border-color: var(--secondary);
}
/* стили для радиокнопки, находящейся в состоянии checked */
.m-radio:checked + label::before {
	border-color: var(--secondary);
	background-color: var(--secondary);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
/* стили для радиокнопки, находящейся в состоянии disabled */
.m-radio:disabled + label::before {
	background-color: #e9ecef;
}
/* стили для радиокнопки, находящейся в состоянии disabled */
.m-radio:disabled + label::before {
	background-color: #e9ecef;
}
/* Скрываем ::before у label, если input с классом .m-radio имеет name="categories" */
.m-radio[name="categories"] + label::before {
  display: none;
}

/* SWITCH */
.m-switch[type="checkbox"] {
	position: relative;
	cursor: pointer;
	width: 46px;
	height: 24px;
	-webkit-appearance: none;
	outline: none;
	background: #f5f5f6;
	border-radius: 20px;
	transition: 0.3s;
}

.m-switch:checked[type="checkbox"] {
	background: var(--hover-main);
}

.m-switch[type="checkbox"]:before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 20px;
	top: 3px;
	left: 3px;
	background: #9a9aa0;
	transition: 0.3s;
	transform: scale(1.1);
}

.m-switch:checked[type="checkbox"]:before {
	left: 24px;
	background: var(--primary);
}


/* MOBILE CATALOG SWITCHER */

.m-catalog-switch {
	width: 93vw;
    height: 40px;
    display: flex;
	padding: 5px;
    /* justify-content: space-around; */
    align-items: center;
    background: var(--hover-main);
    border-radius: 8px;
	color: var(--black);
}

.m-catalog-switch .catalog-switcher {
	width: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	height: 100%;
}

.m-catalog-switch .catalog-switcher.active {
	background-color: #fff;
}

.tab {
	display: none;
}

.tab + label {
	display: flex;
	width: 44vw;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	cursor: pointer;
	position: relative;
}
  
.tab + label::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 32px;
	transition: 0.3s;
	border-radius: 8px;
}
  
.tab:checked + label::before {
	background: #ffff;
	height: 32px;
}
  
.tab:checked + label > span {
	color: var(--tertiary);
	position: relative;
}

.tab + label:nth-of-type(1) {
	border-radius: 8px;
}
  
.tab + label:nth-of-type(2) {
	border-radius: 8px;
}

/* TEXTAREA */
.input-textarea {
	background: #f5f5f6;
	border-radius: 8px;
	padding-top: 15px;
	padding-left: 15px;
	padding-right: 5px;
	padding-bottom: 15px;
	/* height: 54px; */
	font-size: 14px;
	font-weight: 500;
	font-feature-settings: "pnum" on, "lnum" on;
	width: 100%;
	resize: none;
}
.input-textarea.resize {
	resize: vertical;
}

/* INPUT TEXT */
.input-text {
	position: relative;
	background: #f5f5f6;
	border-radius: 4px;
	padding: 6px;
	font-size: 14px;
	font-weight: 500;
	font-feature-settings: "pnum" on, "lnum" on;
	width: 100%;
}
.input-text-prefix .input-text {
	outline: 0;
	outline-offset: 0;
}
.input-text-prefix > .input-text {
	padding: 0;
}
.input-text ~ .label {
	color: #9a9aa0;
	font-size: 14px;
	font-weight: 500;
	position: absolute;
	transition: 0.2s ease all;
	top: 18px;
	left: 20px;
}
.input-text:focus ~ .label,
.input-text:not(:placeholder-shown) ~ .label {
	display: block;
	position: absolute;
	top: 8px;
	left: 15px;
	color: #9a9aa0;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
}
.input-text[type="tel"]:placeholder-shown:hover ~ .label {
	display: none;
}

.input-wrapper {
	background-color: var(--hover-border);
	border-radius: 8px;
	padding: 6px;
}

.input-wrapper label {
	margin-top: 6px;
	margin-left: 6px;
	color: var(--subtitle);
	font-size: 12px;
}

.input-wrapper input {
	font-size: 14px;
	font-weight: 500;
	font-feature-settings: "pnum" on, "lnum" on;
	background-color: inherit;
	width: 100%;
	padding: 8px;
	border-radius: 6px 8px;
} 

.input-wrapper .input-textarea {
	padding-top: 22px !important;
	padding-bottom: 10px !important;
}
.input-textarea ~ .label {
	color: #9a9aa0;
	font-size: 14px;
	font-weight: 500;
	position: absolute;
	transition: 0.2s ease all;
	top: 30%;
	left: 20px;
}
.input-textarea :focus ~ .label,
.input-textarea :not(:focus):valid ~ .label {
	display: block;
	position: absolute;
	top: 8px;
	left: 15px;
	color: #9a9aa0;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
}
.input-text.error {
	background: #fff0f0;
	color: #ff0000 !important;
	outline: none !important;
}
.error-text {
	color: #9a9aa0;
	font-size: 12px;
	font-weight: 500;
}

.just-validate-error-label {
	color: #ff0000 !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	margin-top: 4px;
	margin-left: 10px;
}
.input-text-prefix {
	display: flex;
	align-items: center;
	background: #f5f5f6;
	border-radius: 8px;
	padding: 6px 8px;
	outline: 0;
	outline-offset: 0;
}
.input-text-prefix span {
	color: #9a9aa0;
	margin-right: 5px;
	margin-top: -1px;
}
.input-text.large {
	padding: 16px 18px;
	border-radius: 8px;
}

/* PAGINATION */
.pagination-item {
	border-radius: 100px;
	background: #f5f5f6;
	color: var(--subtitle);
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
}

.pagination-item.active {
	background: var(--primary);
	color: #fff;
}
.pagination-item.more {
	background: none;
	font-size: 14px;
}

/* MODAL */
.m-modal {
	/* Скрываем окна  */
	opacity: 0;
	visibility: hidden;
	width: 100%;

	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 50; /* Должен быть выше чем у подложки*/

	box-shadow: 0 3px 10px -0.5px rgba(0, 0, 0, 0.2);
	padding: 40px;
	border-radius: 16px;
	background-color: #fff;
	transition: 0.3s all;
	max-height: calc(100% - 10px);
    overflow-y: scroll;

	/* скрыть вертикальную полосу прокрутки */
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;  /* Firefox */
}

.m-modal::-webkit-scrollbar {
	display: none;
  }

@media (max-width: 800px) {
	.m-modal {
		top: 50%;
		padding: 30px;
		width: 97%;
	}
}

/* Стили для кнопки закрытия */

.m-modal__cross {
	width: 16px;
	height: 16px;
	position: absolute;
	top: 20px;
	right: 20px;
	fill: #444;
	cursor: pointer;
}
.m-open-modal {
	cursor: pointer;
}

.m-modal.active,
.overlay.active {
	opacity: 1;
	visibility: visible;
}

.m-modal.catalog-dropdown {
	width: 96%;
	padding: 20px;
	top: 51%;
	position: fixed;
	height: calc(95% - 70px);
	transition: 0.4s all;
	max-width: 1440px;
}

@media (min-width: 1600px) {
	.m-modal.catalog-dropdown {
		top: 51%;
	}
}

.m-modal.catalog-dropdown.active ~ .overlay {
	top: 83px !important;
}

.m-modal.catalog-mobile {
	width: 100%;
	padding: 20px 16px !important;
	/* top: 70px !important; */
	top: 0;
	left: 0;
	box-shadow: none;
	transform: none;
	border-radius: 0;
	position: fixed;
	/* height: calc(100% - 30px); */
	height: 100vh;
}

.m-modal.catalog-mobile.active + .overlay {
	display: none;
}

.m-modal.search-mobile {
	padding: 10px !important;
	background: none;
	top: 15% !important;
	box-shadow: none !important;
}

.show_all_btn {
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	color: #4690ff;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}

.category-level-1 {
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
}

.category-level-2 {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	gap: 8px;
}

.overlay {
	/* Скрываем подложку  */
	opacity: 0;
	visibility: hidden;

	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 40;
	transition: 0.3s all;
}

/* SLIDER MODAL MOBILE */
.slider-modal-mobile {
	width: 179px;
	height: 97px;
	background-color: white;
	z-index: 1;
	border-radius: 8px;
	box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.08);
}

/* PASSWORD */

.m-password {
	position: relative;
}
.m-password input {
	background: #f5f5f6;
	font-size: 14px;
	font-weight: 500;
	font-feature-settings: "pnum" on, "lnum" on;
	width: 100%;
	padding: 16px 18px;
	border-radius: 8px;
}
.m-password-control {
	position: absolute;
	top: 20px;
	right: 6px;
	display: inline-block;
	width: 20px;
	height: 20px;
	background: url("/resources/costo/images/icons/password-glass.svg") 0 0 no-repeat;
}
.m-password input.error {
	background: #fff0f0;
	color: #ff0000 !important;
	outline: none !important;
}
.m-password-control.view {
	background: url("/resources/costo/images/icons/password_glass_hide.svg") 0 0 no-repeat;
}

/* TABLE */

.table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

.table td {
	border: solid 1px #e0e0e5;
	border-style: none solid solid none;
	padding: 10px;
}

.table tr:first-child td:first-child {
	border-top-left-radius: 10px;
}
.table tr:first-child td:last-child {
	border-top-right-radius: 10px;
}

.table tr:last-child td:first-child {
	border-bottom-left-radius: 10px;
}
.table tr:last-child td:last-child {
	border-bottom-right-radius: 10px;
}

.table tr:first-child td {
	border-top-style: solid;
}
.table tr td:first-child {
	border-left-style: solid;
}

/* TABS */

/* Стили класса tab */
.m-tab {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	border-bottom: 1px solid #e0e0e5;
	scrollbar-width: none;
	-ms-overflow-style: none;
	white-space: nowrap;
}

.m-tab::-webkit-scrollbar {
	display: none;
}

/* Стиль кнопок */
.m-tab button {
	background-color: inherit;
	flex-shrink: 0;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 5px 10px;
	transition: 0.3s;
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	font-feature-settings: "pnum" on, "lnum" on;
}

/* При наведении на кнопку, немного меняем background */
.m-tab button:hover {
	color: var(--tertiary);
}

/* Активная кнопка */
.m-tab button.active {
	color: var(--tertiary);
	border-bottom: 1px solid var(--tertiary);
}

@media (max-width: 640px) {
	.m-tab button {
		padding: 5px 8px;
	}
	.m-tab button:first-child {
		padding-left: 0;
	}
	.m-tab button:last-child {
		padding-right: 0;
	}
}

/* Стиль контента */
.m-tab_content {
	padding: 6px 12px;
	margin-top: 15px;
}
/* Анимация с эффектом появления */
.m-tab_content {
	animation: fadeEffect 1s;
}

@keyframes fadeEffect {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* RATING */

.half-stars .rating-group {
	display: inline-flex;
}
.half-stars input {
	position: absolute;
	left: -9999px;
}
.half-stars label {
	margin: 0;
	cursor: pointer;
}
.half-stars label svg {
	margin: 2px;
	height: 22px;
	width: 22px;
	fill: #ffe318;
	transition: fill 0.3s;
}
.half-stars .hsr {
	padding-right: 0;
	margin-right: -22px;
	width: 22px;
	overflow: hidden;
	z-index: 2;
}
.half-stars input:checked ~ label svg {
	fill: #e0e0e5;
}
.half-stars .rating-group:hover label svg {
	fill: #ffe318;
}
.half-stars .rating-group input:hover ~ label svg {
	fill: #e0e0e5;
}

.like {
	display: flex;
	align-items: center;
	cursor: pointer;
}
.like .icon {
	mask: url("/resources/costo/images/icons/like.svg") no-repeat center;
	-webkit-mask: url("/resources/costo/images/icons/like.svg") no-repeat center;
	width: 17px;
	height: 18px;
	background-color: var(--subtitle);
}
.like.active .icon {
	background-color: var(--primary);
}
.like.active .text {
	color: var(--primary);
}
.like .text {
	font-size: 14px;
	font-weight: 500;
	color: var(--subtitle);
	margin-left: 5px;
}

.dislike {
	display: flex;
	align-items: center;
	cursor: pointer;
}
.dislike .icon {
	mask: url("/resources/costo/images/icons/dislike.svg") no-repeat center;
	-webkit-mask: url("/resources/costo/images/icons/dislike.svg") no-repeat center;
	width: 17px;
	height: 18px;
	background-color: var(--subtitle);
}
.dislike.active .icon {
	background-color: var(--primary);
}
.dislike.active .text {
	color: var(--primary);
}
.dislike .text {
	font-size: 14px;
	font-weight: 500;
	color: var(--subtitle);
	margin-left: 5px;
}

.sort_item {
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.sort_item.active {
	color: var(--primary);
}

/* color item for product info */
.product-colors-wrapper {
	display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  min-height: 18px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.product-colors-wrapper span {
	width: 18px;
	height: 18px;
}

.product-colors-wrapper > *:nth-child(n+8) {
	display: none;
}

.color-item_product-info {
	border-radius: 12px;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e0e0e5;
	padding: 6px;
	cursor: pointer;
	position: relative;
}

.color-item_product-info:hover::before {
    opacity: 1;
    visibility: visible;
}

.color-item_product-info--small {
	border-radius: 100%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(0,0,0,.09);
	padding: 6px;
	position: relative;
}

.color-item_product-info--small + label{
	cursor: pointer;
}

.color-item_product-info img {
	object-fit: contain;
	max-height: 52px;
}
.color-item_product-info.middle img {
	max-height: 50px;
}
.color-item_product-info.middle {
	width: 60px;
	height: 60px;
}

.color-item_product-info.active {
	border: 2px solid var(--primary);
}

.color-item_product-info:hover {
	border: 2px solid var(--primary);
}
/*  */

.color-item {
	border-radius: 100%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(0,0,0,.09);
	padding: 6px;
	cursor: pointer;
	position: relative;
}

.color-item.color-item--with-label::before {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
	  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
    color: var(--black);
    padding: 5px 10px;
    border-radius: 6px;
	  z-index: 100;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
}

.color-item:hover::before {
    opacity: 1;
    visibility: visible;
}

.color-item--small {
	border-radius: 100%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(0,0,0,.09);
	padding: 6px;
	position: relative;
}

.color-item--small + label{
	cursor: pointer;
}

.color-item img {
	object-fit: contain;
	max-height: 52px;
}
.color-item.middle img {
	max-height: 50px;
}
.color-item.middle {
	width: 60px;
	height: 60px;
}

.color-item.active {
	border: 2px solid var(--primary);
}

.color-item:hover {
	border: 1px solid var(--primary);
}

.color-item--small.active {
	border: 2px solid var(--primary);
}

.color-item.active::after {
    content: "✔"; /* Галочка */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--checkmark-color, #323232); /* Используем CSS-переменную */
}

/* Пример класса для белой галочки */
.color-item.white-checkmark::after {
    color: white;
}

.color-item--small:hover {
	border: 2px solid var(--primary);
}

#colorCloseModelBtn:hover {
	filter: brightness(0.5);
	transition: filter 0.2s ease;
}

.favorite_btn {
	font-weight: 700;
	font-size: 16px;
}
@media (max-width: 1700px) {
	.favorite_btn {
		font-weight: 600;
		font-size: 14px;
	}
}

/* SEARCH CITY */

.m-city-search {
	position: relative;
}
.m-city-search input {
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	font-feature-settings: "pnum" on, "lnum" on;
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1.5px solid var(--primary);
	outline: none !important;

}
.m-city-search input.error {
	background: #fff0f0;
	color: #ff0000 !important;
	outline: none !important;
}

.city-auto-detect {
	font-weight: 500;
	font-size: 14px;
	line-height: 22px;
	color: var(--primary);
	cursor: pointer;
	transition: opacity 0.2s ease, color 0.2s ease;
	position: relative;
	display: inline-block;
}

.city-auto-detect:hover {
	color: var(--secondary);
}

.city-auto-detect.loading {
	opacity: 0.6;
	cursor: not-allowed;
	color: var(--text-secondary);
}

.city-auto-detect.loading::after {
	content: '';
	position: absolute;
	right: -24px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	border: 2px solid var(--primary);
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: translateY(-50%) rotate(360deg); }
}

/* Toastify */
.toastify {
    background: #fff;
    color: #757575;
    box-shadow: 0 1px 10px 0 rgba(0, 0, 0, .1), 0 2px 15px 0 rgba(0, 0, 0, .05);
    border-radius: 10px;
    padding: 12px;
	padding-left: 24px;
	padding-right: 24px;
    width: 100%;
}

.toastify:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    width: 25px;
    height: 25px;
    transform: translateY(-50%);
}

.toastify .progress-bar {
    position: absolute;
    width: auto;
    left: 0;
    bottom: 0;
    height: 5px;
    border-radius: 0 0 10px 10px;
    animation-name: toastAnimation;
}

.toast-close {
    position: absolute;
    top: 32%;
    right: 30px;
    color: #757575;
}

.toast__success:before {
    content: '';
    background: url('../images/icons/success-round-fill.svg');
    background-size: cover;
}

.toast__success .progress-bar {
    background-color: #07bc0c;
}

.toast__error:before {
    content: '';
    background: url('../images/icons/dangerRoundRed.svg');
    background-size: cover;
}

.toast__error .progress-bar {
    background-color: var(--critic);
}

.toast__info {
    padding-left: 18px;
}

.toast__info .progress-bar {
    background-color: #65A2FF;
}

@keyframes toastAnimation {
    from {
        width: 100%
    }

    to {
        width: 0%
    }
}

.about_shop.m-tab{
	border-bottom: 0px #fff;
	border: 1px solid #E0E0E5;
	border-radius: 12px;
	padding: 4px;
	width: max-content;
}

.about_shop.m-tab .m-tab_link {
	padding: 8px 12px;
	border-radius: 8px;
}

.about_shop.m-tab .m-tab_link.active {
	border: 0px;
	background-color: #EBF7FF;
}

#filtersPanel .apply-filters-float-btn {
	background: var(--primary);
	-webkit-box-shadow: 21px 10px 41px 0px rgba(34, 60, 80, 0.2);
	-moz-box-shadow: 21px 10px 41px 0px rgba(34, 60, 80, 0.2);
	box-shadow: 21px 10px 41px 0px rgba(34, 60, 80, 0.2);
	border-radius: 0px 12px 12px 12px;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	line-height: 22px;
	outline: none;
	padding: 9px 16px;
	position: absolute;
	right: -180px;
	text-align: center;
	width: auto;
	z-index: 30;
}

.filter-option-wrapper {
	/* cursor: pointer; */
	padding: 1px 2px;
}
.filter-option-wrapper:hover {
	background-color: #f5f5f7;
}
.filter-option-wrapper:has(.color-item) {
	background-color: transparent;
}

/* Стиль для кнопки с псевдоэлементом */
.show-more-options-button {
	position: relative;
	display: inline-block;
	padding-right: 20px; /* Пространство для стрелки */
	margin-top: 6px;
	color: var(--primary);
	filter: grayscale(1) opacity(0.9);
    transition: 0.3s ease;
	font-weight: 500;
  }

.show-more-options-button:hover {
	filter: none;
  }
  
  /* Стиль для стрелки */
  .show-more-options-button::after {
	content: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMSAxbDQgNCA0LTQiIHN0cm9rZT0iIzI0OGRmZiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=);
	position: absolute;
	right: 0;
	top: 4px;
	transform: translateY(-50%);
	width: 12px;
    height: 10px;
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
	transition: transform 0.3s ease-in-out;
  }
  
  /* Стиль для стрелки вверх */
  .show-more-options-button.expanded::after {
	transform: translateY(-50%) rotateX(180deg); /* Поворот стрелки */
	top: 21px;
  }

  /* Ключевые кадры для анимации */
@keyframes smoothRotate {
	from {
	  transform: translateY(-50%) rotateX(0deg);
	}
	to {
	  transform: translateY(-50%) rotateX(180deg);
	}
}
  
  /* Применение анимации */
  .show-more-options-button.expanded::after {
	animation: smoothRotate 0.3s ease-in-out forwards; /* Плавная анимация */
}

.search-for-filter-options {
	display: none;
}

.search-for-filter-options.show-search {
	display: block;
}

/* CATALOG FILTERS */
.catalog-filters__aside {
	max-width: 340px;
	min-width: 320px;
}

.catalog-filters__aside:not(.m-modal) {
    position: relative;
}

.catalog-filters__head {
    height: 48px;
    min-height: 48px;
    padding: 8px 15px 10px 15px;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 1279.98px) {
  #filtersPanel.catalog-filters__aside {
		display: none;
  }
  
  #filtersPanel.catalog-filters__aside.m-modal.active {
		display: block;
  }
}

@media (max-width: 1280px) {
    .catalog-filters__aside {
        max-width: 620px;
    }
	.catalog-filters__head{
		display: flex;
	}
}

@media (max-width: 800px) {
    .catalog-filters__aside {
        max-width: none;
    }
}

.scroll-bar-thin {
	scrollbar-width: thin !important;
}
/* .catalog-filters__aside.active .catalog-filters__wrp {
    padding: 16px;
    display: flex;
    flex-direction: column;
} */

/* @media (min-width: 992.98px) {
    .catalog-filters__head {
        display: none;
    }
} */

/* SHARE DROPDOWN */
.share-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
	line-height: 22px;
  font-weight: 600;
  color: var(--black);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.share-dropdown {
  display: inline-flex;
  align-items: center;
}

.share-dropdown__menu {
  position: fixed;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  padding: 8px;
  min-width: 195px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease;
}

.share-dropdown__menu.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.share-dropdown__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
	border-radius: 8px;
  font-size: 14px;
	line-height: 20px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
	width: 100%;
}

.share-dropdown__item:hover {
  background: #F3FAFF;
	color: var(--primary);
}

.share-dropdown__item img {
  transition: filter .15s;
}

.share-dropdown__item:hover img {
  /* filter: brightness(0) saturate(100%) invert(49%) sepia(97%) saturate(630%) hue-rotate(182deg) brightness(104%) contrast(102%); */
  filter: brightness(0) invert(35%) sepia(99%) saturate(1639%) hue-rotate(201deg) brightness(110%) contrast(101%);
}

.share-dropdown__item svg {
  flex-shrink: 0;
}

.share-copy-icon {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.share-copy-icon__default,
.share-copy-icon__ok {
  position: absolute;
  inset: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}

.share-copy-icon__ok {
  opacity: 0;
  transform: scale(0);
}

.share-dropdown__item--copy.copied .share-copy-icon__default {
  opacity: 0;
  transform: scale(0);
}

.share-dropdown__item--copy.copied .share-copy-icon__ok {
  opacity: 1;
  transform: scale(1);
}

/* ===== ИСТОРИЯ ЦЕНЫ ===== */
.price-history-controls {
	display: flex;
	border: 1px solid #E0E0E5;
	border-radius: 12px;
	padding: 4px;
	background: #fff;
	gap: 0;
	width: 300px;
}

.price-history-btn {
	flex: 1;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #888;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	line-height: 1.4;
	text-align: center;
}

.price-history-btn:hover {
	color: var(--tertiary);
}

.price-history-btn.active {
	background: var(--hover-main);
	color: var(--primary);
}

.price-history-chart-wrap {
	position: relative;
	width: 100%;
}

.price-history-chart-wrap canvas {
	max-height: 360px;
}

@media (max-width: 640px) {
	.price-history-controls {
		width: 100%;
	}

	.price-history-chart-wrap canvas {
		max-height: 260px;
	}
}

.price-history-tooltip {
	position: absolute;
	pointer-events: none;
	background: #fff;
	border: none;
	border-radius: 14px;
	padding: 10px 14px;
	font-size: 13px;
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
	opacity: 0;
	transition: opacity 0.15s;
	white-space: nowrap;
	z-index: 10;
	min-width: 200px;
}

.price-history-tooltip__rows {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.price-history-tooltip__row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.price-history-tooltip__dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.price-history-tooltip__name {
	color: #333;
	font-weight: 500;
}

.price-history-tooltip__date {
	margin-top: 6px;
	color: #888;
	font-size: 12px;
	border-top: 1px solid #f0f0f4;
	padding-top: 5px;
}
