.popup-overlay,
.popup-overlaysecond {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	z-index: 1;
	overflow-y: auto;
}

.popup-overlay {
	z-index: 9998;
}


/* Общие стили для попапов */
.popup {
	display: none;
	position: fixed;
	z-index: 9999;
	background: var(--White);
	padding: 20px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: 90%;
	border-radius: 20px;
}

.popup.active {
	display: block;
}

.popup-right.active {
	display: flex;
}

/* Центрирование попапа */
.popup-center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Попап у верхней части экрана */
.popup-top {
	width: 100%;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

@media (max-width: 768px) {
	.popup-top {
		padding-top: 70px;
	}
}

/* Кнопка закрытия */
.popup-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	position: absolute;
	top: 10px;
	right: 10px;

}

span.close-popup {
	position: absolute;
	right: 16px;
	display: flex;
	top: 20px;
	cursor: pointer;
}

.mob-menu-logo {
	margin-bottom: 20px;
}

.mob-search {
	margin-bottom: 20px;
	position: relative;
}

.mob-search form {
	display: flex;
	align-items: center;
	border: 1px solid #E6E6E6;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
}

.mob-search input {
	flex: 1;
	border: none;
	padding: 12px 15px;
	font-size: 15px;
	outline: none;
	background: transparent;
}

.mob-search button {
	background: none;
	border: none;
	padding: 12px 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mob-search button svg {
	width: 20px;
	height: 20px;
	fill: #0C1E13;
}

.mon-nav ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: 15px;
}

.mon-nav a {
	color: rgba(27, 40, 55, 1);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	column-gap: 10px;
	font-size: 22px;
	font-weight: 500;
	text-transform: uppercase;
}

span.buy-title,
.popup-content.thank h2 {
	display: block;
	color: rgba(27, 40, 55, 1);
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	margin-bottom: 20px;
}

div#btn--one-click path,
div#thankyouPopup path {
	fill: #1b2837;
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
	width: 100%;
	margin-bottom: 20px;
}

span.wpcf7-spinner {
	display: none;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner,
.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	font-size: clamp(1rem, 0.9393rem + 0.2589vw, 1.25rem);
	font-weight: 700;
	line-height: 120%;
	background-color: var(--Accent);
	border: 2px solid var(--Accent);
	padding: clamp(1rem, 0.9697rem + 0.1294vw, 1.125rem);
	border-radius: 12px;
	width: 100%;
	color: #ffffff;
}

.popup-content.thank h2 {
	text-align: center;
}

a.slide-button.pop-bnt.btn {
	width: 100%;
	margin: 20px auto 0;
}

.popup-content.thank p {
	text-align: center;
	margin-bottom: 30px;
	color: #1E2A3A;
}

.toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: #323232;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.toast.show {
	opacity: 1;
}

.toast.hidden {
	display: none;
}

div#cart-items {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 0;
}

.cart-item {
	flex-direction: column;
	display: flex;
	gap: 8px;
	border-radius: clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
	overflow: hidden;
	background: #F9F9F9;
	box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.15);
	position: relative;
	transition: 0.3s ease;
}

button.remove-item.text-red-500.font-bold {
	margin: auto clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem) clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
	background-color: var(--Accent);
	color: #F9F9F9;
	border-radius: 12px;
	display: flex;
	justify-content: center;
	border: none;
}

a.flex-1 {
	margin: 0 clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
	font-size: 13px;
}

button.remove-item svg {
	width: 16px;
	height: 16px;
}

button.remove-item svg path {
	fill: #ffffff;
}

/* WooCommerce Cart Popup Styles */
.popup-right {
	right: 0;
	top: 0;
	left: auto;
	transform: none;
	height: 100%;
	max-width: 450px;
	border-radius: 20px 0 0 20px;
	flex-direction: column;
}

.cart-content {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cart-content__top {
	flex: 1;
	overflow-y: auto;
	padding-bottom: 20px;
}

.cart-content__bottom {
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.woo-cart-items {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 0;
}

.woo-cart-items .cart-item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 15px;
	padding: 12px 27px 12px 12px;
	background: #f9f9f9;
	border-radius: 12px;
	position: relative;
}

.cart-item__image {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	border-radius: 8px;
	overflow: hidden;
}

.cart-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cart-item__name {
	font-size: 14px;
	font-weight: 600;
	color: #0C1E13;
	text-decoration: none;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cart-item__name:hover {
	color: var(--Accent);
}

.cart-item__price {
	font-size: 12px;
	color: #666;
}

.cart-item__subtotal {
	font-size: 14px;
	font-weight: 700;
	color: var(--Accent);
}

.cart-item__remove {
	position: absolute;
	top: 8px;
	right: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #999;
	transition: color 0.2s ease;
}

.cart-item__remove:hover {
	color: #e74c3c;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 18px;
	font-weight: 700;
	padding: 10px 0;
}

.cart-total-label {
	color: #0C1E13;
}

.cart-total-value {
	color: var(--Accent);
}

.checkout-btn,
.view-cart-btn {
	width: 100%;
	text-align: center;
	text-decoration: none;
}

.view-cart-btn {
	background-color: transparent;
	color: var(--Accent);
	border: 2px solid var(--Accent);
}

.view-cart-btn:hover {
	background-color: var(--Accent);
	color: #fff;
}

.cart-empty-message {
	text-align: center;
	padding: 40px 20px;
}

.cart-empty-message p {
	font-size: 16px;
	color: #666;
	margin-bottom: 20px;
}

.cart-loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

@media screen and (max-width: 600px) {
	.popup-right {
		max-width: 100%;
		width: 100%;
		border-radius: 0;
	}

	.woo-cart-items .cart-item {
		padding: 10px 27px 10px 10px;
	}

	.cart-item__image {
		width: 60px;
		height: 60px;
	}
}