#fm-popup-cart .modal-dialog {
	max-width: 460px;
	margin: 16px auto;
}

#fm-popup-cart .modal-content {
	overflow: hidden;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

#fm-popup-cart .modal-header {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 12px 56px;
	background: #199f5c;
	border: 0;
	border-radius: 0;
}

#fm-popup-cart .modal-title {
	margin: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-align: center;
}

#fm-popup-cart .fm-close {
	top: 50%;
	right: 8px;
	width: 40px;
	height: 40px;
	transform: translateY(-50%);
}

#fm-popup-cart .fm-close:hover {
	transform: translateY(-50%) rotate(90deg);
}

#fm-popup-cart .fm-modal-close-icon {
	top: 10px;
	bottom: 10px;
	left: 19px;
}

#fm-popup-cart .modal-body {
	padding: 18px 20px 20px;
}

#fm-popup-cart .fm_mobile_menu_cart-text {
	margin: 0 0 14px;
	padding: 0 0 14px;
	border-bottom: 1px solid rgba(28, 28, 28, 0.08);
	color: #1c1c1c;
	font-size: 16px;
	line-height: 1.45;
	text-align: center;
}

#fm-popup-cart .fm_mobile_menu_cart-text .total-text,
#fm-popup-cart .fm_mobile_menu_cart-text .gold {
	color: #199f5c;
	font-weight: 700;
}

#fm-popup-cart .fm-product-link {
	display: inline-block;
	margin-top: 6px;
	color: #199f5c;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

#fm-popup-cart .fm-product-link:hover {
	color: #0f7a32;
}

#fm-popup-cart .fm-modal-body-cart {
	max-height: 280px;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-y: auto;
}

#fm-popup-cart .fm_mobile_menu_info-item {
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

#fm-popup-cart .fm_mobile_menu_cart-item-img {
	flex: 0 0 72px;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: #f7f8f8;
}

#fm-popup-cart .fm_mobile_menu_cart-item-img img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 12px;
}

#fm-popup-cart .fm_mobile_menu_cart-item-right {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 12px;
	row-gap: 8px;
	min-width: 0;
}

#fm-popup-cart .fm_mobile_menu_cart-item-title {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

#fm-popup-cart .fm_mobile_menu_cart-item-title a {
	color: #1c1c1c;
	text-decoration: none;
}

#fm-popup-cart .fm_mobile_menu_cart-item-title a:hover {
	color: #199f5c;
}

#fm-popup-cart .fm_mobile_menu_cart-item-buttons {
	grid-column: 1;
	align-items: center;
	margin: 0;
}

#fm-popup-cart .fm_mobile_menu_cart-item-buttons .btn-group {
	display: inline-flex;
	align-items: center;
	height: 40px;
	overflow: hidden;
	border: 1px solid rgba(28, 28, 28, 0.12);
	border-radius: 999px;
	background: #fff;
}

#fm-popup-cart .fm_mobile_menu_cart-item-buttons .fm-product-quantity-btn,
#fm-popup-cart .fm_mobile_menu_cart-item-buttons .form-control {
	width: 36px;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #1c1c1c;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

#fm-popup-cart .fm_mobile_menu_cart-item-del {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-left: 8px;
	color: #d84040;
}

#fm-popup-cart .fm-module-price {
	grid-column: 2;
	justify-self: end;
	margin: 0;
	color: #1c1c1c;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

#fm-popup-cart .fm-product-one-click {
	margin: 16px 0;
	padding: 0;
	border: 0;
}

#fm-popup-cart .fm-product-one-click-text {
	margin: 0 0 8px;
	color: #1c1c1c;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
}

#fm-popup-cart .fm-product-one-click .input-group {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 48px;
	overflow: hidden;
	border: 1px solid rgba(28, 28, 28, 0.12);
	border-radius: 999px;
	background: #fff;
}

#fm-popup-cart .fm-product-one-click .form-control,
#fm-popup-cart .fm-popup-cart-one-click .form-control {
	flex: 1 1 auto;
	width: auto;
	max-width: none;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 16px;
}

#fm-popup-cart .fm-product-one-click .input-group-btn {
	width: auto;
	margin: 0;
}

#fm-popup-cart .fm-product-one-click .input-group .fm-product-one-click-btn {
	height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 0 !important;
	border-radius: 0;
	background: #199f5c !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
}

#fm-popup-cart .fm-product-one-click .input-group .fm-product-one-click-btn:hover {
	background: #0f7a32;
	color: #fff;
}

#fm-popup-cart .modal-body > .d-flex {
	gap: 10px;
}

#fm-popup-cart .modal-body > .d-flex .fm-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

#fm-popup-cart .modal-body > .d-flex .fm-btn-blue,
#fm-popup-cart .modal-body > .d-flex .fm-btn-blue:hover {
	background: #199f5c;
	color: #fff;
}

#fm-popup-cart .modal-body > .d-flex .fm-btn-blue:hover {
	background: #0f7a32;
}

#fm-popup-cart .modal-body > .d-flex .fm-product-one-click-btn {
	background: #f3f4f5;
	color: #1c1c1c;
}

#fm-popup-cart .modal-body > .d-flex .fm-product-one-click-btn:hover {
	background: #e6e8ea;
	color: #1c1c1c;
}

@media (max-width: 575.98px) {
	#fm-popup-cart .modal-dialog {
		max-width: calc(100% - 24px);
	}

	#fm-popup-cart .fm_mobile_menu_cart-item-right {
		grid-template-columns: 1fr;
	}

	#fm-popup-cart .fm-module-price {
		grid-column: 1;
		justify-self: start;
	}
}
