.webisoft-loop-atc-pro {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
}

.webisoft-atc-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	margin: 0 0 5px;
	padding: 0;
	box-sizing: border-box;
	background: var(--webisoft-primary, #1d64bd);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.webisoft-loop-atc-pro > .webisoft-atc-btn:last-child {
	margin-bottom: 0;
}

.webisoft-atc-btn:hover {
	background-color: var(--webisoft-loop-atc-pro-hover, #1d64bd);
	color: #fff;
}

.webisoft-atc-btn:disabled,
.webisoft-atc-btn.is-out-of-stock {
	background-color: #c0c2c5 !important;
	color: #f0f0f0 !important;
	cursor: not-allowed;
	opacity: 0.9;
}

.webisoft-atc-select-options {
	background-color: var(--webisoft-loop-atc-pro-select-bg, #f0f0f1);
	color: var(--webisoft-loop-atc-pro-select-color, #3f4064);
	border: 1px solid #e0e1e2;
}

.webisoft-atc-select-options:hover {
	background-color: #e0e0e0;
	color: var(--webisoft-loop-atc-pro-select-color, #3f4064);
}

.webisoft-atc-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 48px;
	width: 100%;
	box-sizing: border-box;
	background-color: #fff;
	border: 1px solid var(--webisoft-loop-atc-pro-hover, #1d64bd);
	border-radius: 12px;
	overflow: hidden;
}

.webisoft-atc-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 100%;
	padding: 0;
	background-color: transparent;
	color: var(--webisoft-loop-atc-pro-hover, #1d64bd);
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.webisoft-atc-qty-btn:hover {
	background-color: color-mix(in srgb, var(--webisoft-loop-atc-pro-hover, #1d64bd) 20%, transparent);
}

.webisoft-atc-qty-btn:disabled {
	color: #cccccc !important;
	cursor: not-allowed;
	background-color: transparent !important;
}

.webisoft-atc-qty-display {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	min-height: 46px;
	padding: 0 5px;
	color: #212121;
	font-weight: 700;
	text-align: center;
	position: relative;
}

.webisoft-atc-qty-number {
	font-size: 16px;
	line-height: 1.1;
}

.webisoft-atc-max-label {
	display: block;
	margin-top: 1px;
	color: #757575;
	font-size: 10px;
	font-weight: normal;
	line-height: 1.1;
}

.webisoft-atc-btn.is-loading .webisoft-atc-btn-text,
.webisoft-atc-qty.is-loading .webisoft-atc-qty-display > *:not(.webisoft-atc-loader) {
	visibility: hidden;
}

.webisoft-atc-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	transform: translate(-50%, -50%);
}

.webisoft-atc-loader span {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 2px;
	border-radius: 50%;
	background-color: currentColor;
	animation: webisoft-atc-pulse 1.4s infinite ease-in-out both;
}

.webisoft-atc-loader span:nth-child(1) {
	animation-delay: -0.32s;
}

.webisoft-atc-loader span:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes webisoft-atc-pulse {
	0%,
	80%,
	100% {
		transform: scale(0);
		opacity: 0;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

/* دکمه پیش‌فرض ووکامرس بعد از افزودن AJAX مخفی می‌شود چون شمارشگر اختصاصی جایگزین آن است. */
a.added_to_cart.wc-forward {
	display: none !important;
}
