:root {
	--ba-primary-color: #263f8b;
	--ba-border-color: #e1e1e3;
}

.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay_open {
	visibility: visible;
	opacity: 1;
}

.modal-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.modal-overlay__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #7d7d7d;
	cursor: pointer;
}

.modal-overlay__close:hover {
	color: #0e0e0e;
}

.modal-overlay__box {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	width: fit-content;
	height: fit-content;
	max-width: calc(100vw - 48px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

.modal-overlay__box {
	padding: 32px 40px;
	min-width: 360px;
	max-width: 560px;
}

@media (min-width: 768px) {
	.modal-overlay__box {
		min-width: 480px;
		max-width: 560px;
	}
}

@media (max-width: 767px) {
	.modal-overlay__box {
		min-width: 280px;
		max-width: calc(100vw - 48px);
		padding: 24px 20px;
	}
}

.modal-overlay__title {
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: #0e0e0e;
}

.city-select__wrapper {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.city-select__button {
	background-color: var(--ba-primary-color);
	color: #ffffff;
}

.color-options label {
	margin-bottom: 18px;
}

.catalog-filter__collapsible .options-hide {
	display: none;
}

.options-more-btn {
	margin-bottom: 18px;
	height: auto;
	padding: 6px 20px;
	line-height: 1;
}

.cookie-modal {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ffffff;
	z-index: 999999;
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: 1px solid var(--ba-border-color);
	transform: translateY(0);
	transition: transform .3s ease-in-out;
}

.cookie-modal.cookie-hide {
	transform: translateY(100%);
	transition: transform .3s ease-in-out;
}

.cookie-modal__wrapper {
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: center;
}

.cookie-modal__btn {
	height: auto;
	padding: 10px 20px;
	cursor: pointer;
}

.cookie-modal__content a {
	text-decoration: underline;
}

.footer__after-bottom {
	color: #8ea2dd;
	font-size: 14px;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-top: 20px;
}
.icon-info {
	position: absolute;
	top: 32px;
	right: 32px;
	cursor: pointer;
}
.icon-info svg {
	width: 36px;
	height: auto;
	fill: #9d9d9e;
}
.cart-purchase__buy-price > *,
.cart-purchase__buy-price p {
	line-height: 26px;
}
.price-info-icon .price-info-tooltip {
	visibility: hidden;
	opacity: 0;
	transition: opacity .3s ease-in-out;
}
.price-info-icon:hover .price-info-tooltip {
	visibility: visible;
	opacity: 1;
	transition: opacity .3s ease-in-out;
}
.price-info-icon {
	position: relative; cursor: pointer;
}
.price-info-icon .price-info-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 10px;
	background: #ffffff;
	padding: 16px;
	border-radius: 8px;
	box-shadow: 0 0 15px 0 rgba(225, 225, 225, 0.2), 0 0 46px 0 rgba(225, 225, 225, 0.12), 0 10px 38px 0 #e1e1e1;
	width: 200px;
	z-index: 1000;
	white-space: nowrap;
}
.price-info-tooltip__arrow {
	position: absolute;
	bottom: -9px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #ffffff;
}

@media only screen and (max-width: 768px) {
	.footer__after-bottom {
		flex-direction: column-reverse;
		justify-content: center;
	}

	.footer__copyright {
		text-align: center;
	}
}
@media only screen and (max-width: 380px) {
	.price-info-icon .price-info-tooltip {
		left: calc(50% - 60px);
	}
	.price-info-tooltip__arrow {
		left: calc(50% + 60px);
	}
}
