/* Hide default WooCommerce notices on product pages */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	display: none !important;
	animation: fadeOutUp 0.3s ease forwards;
	pointer-events: none;
}

@keyframes fadeOutUp {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-20px);
	}
}

.axtron-add-to-cart-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.95);
	z-index: 9999;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.axtron-add-to-cart-popup.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
}

.axtron-add-to-cart-popup__content {
	background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: 0 20px 60px rgba(0, 102, 204, 0.3);
	border: 2px solid #e0f2fe;
	text-align: center;
	max-width: 450px;
	width: 90vw;
	position: relative;
	animation: popupSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupSlideIn {
	from {
		transform: translateY(-20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.axtron-add-to-cart-popup__icon {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	animation: bounceIcon 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIcon {
	0% {
		transform: scale(0) rotate(-20deg);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1) rotate(0);
	}
}

.axtron-add-to-cart-popup__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #232f45;
	margin: 0 0 0.75rem 0;
	letter-spacing: -0.5px;
}

.axtron-add-to-cart-popup__message {
	font-size: 1rem;
	color: #666;
	margin: 0 0 1.75rem 0;
	font-weight: 500;
	line-height: 1.5;
}

.axtron-add-to-cart-popup__button {
	display: inline-block;
	background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
	color: #ffffff;
	text-decoration: none;
	padding: 1rem 2rem;
	border-radius: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
	font-size: 0.95rem;
	margin-bottom: 1rem;
	display: block;
	width: 100%;
}

.axtron-add-to-cart-popup__button:hover {
	background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 102, 204, 0.4);
}

.axtron-add-to-cart-popup__button:active {
	transform: translateY(0);
}

.axtron-add-to-cart-popup__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 36px;
	height: 36px;
	border: 2px solid #e0e0e0;
	background-color: #f9f9f9;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.2rem;
	color: #999;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.axtron-add-to-cart-popup__close:hover {
	background-color: #fee2e2;
	border-color: #ef4444;
	color: #ef4444;
	transform: scale(1.1);
}

/* Dark overlay */
.axtron-add-to-cart-popup::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: -1;
	border-radius: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(4px);
}

.axtron-add-to-cart-popup.is-visible::before {
	opacity: 1;
}

/* Mobile responsive */
@media (max-width: 640px) {
	.axtron-add-to-cart-popup__content {
		padding: 2rem 1.5rem;
		max-width: 95vw;
	}

	.axtron-add-to-cart-popup__icon {
		font-size: 2.5rem;
		margin-bottom: 0.75rem;
	}

	.axtron-add-to-cart-popup__title {
		font-size: 1.5rem;
	}

	.axtron-add-to-cart-popup__message {
		font-size: 0.95rem;
		margin-bottom: 1.5rem;
	}

	.axtron-add-to-cart-popup__button {
		padding: 0.875rem 1.5rem;
		font-size: 0.9rem;
	}
}
