.basket-add-modal-open {
	overflow: hidden;
}

.basket-add-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 20000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.42);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.basket-add-modal-overlay.is-active {
	opacity: 1;
}

.basket-add-modal {
	position: relative;
	width: min(640px, 100%);
	min-height: 360px;
	padding: 38px 46px 32px;
	background: #fff;
	text-align: center;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.basket-add-modal__close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #b8b8b8;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.basket-add-modal__title {
	margin-bottom: 30px;
	color: #6f7984;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.basket-add-modal__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 160px;
	margin: 0 auto 18px;
}

.basket-add-modal__image img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.basket-add-modal__name {
	max-width: 520px;
	margin: 0 auto 54px;
	color: #171717;
	font-size: 18px;
	line-height: 1.35;
}

.basket-add-modal__actions {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.basket-add-modal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid #24211f;
	background: #fff;
	color: #24211f;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.basket-add-modal__button--cart,
.basket-add-modal__button:hover {
	background: #24211f;
	color: #fff;
	text-decoration: none;
}

.basket-add-modal__button--cart:hover {
	background: #000;
	color: #fff;
}

@media (max-width: 575px) {
	.basket-add-modal-overlay {
		align-items: center;
		padding: 16px;
	}

	.basket-add-modal {
		min-height: 0;
		padding: 34px 18px 24px;
	}

	.basket-add-modal__title {
		margin-bottom: 22px;
		font-size: 17px;
	}

	.basket-add-modal__image {
		width: 128px;
		height: 128px;
	}

	.basket-add-modal__name {
		margin-bottom: 28px;
		font-size: 16px;
	}

	.basket-add-modal__actions {
		flex-direction: column;
		gap: 10px;
	}

	.basket-add-modal__button {
		width: 100%;
	}
}
