.ma-wc-ajax-atc-wrap {
	position: relative;
}

.ma-wc-ajax-atc-actions {
	display: flex;
	align-items: stretch;
	gap: 0.4em;
	flex-wrap: nowrap;
	width: 100%;
}

.ma-wc-ajax-atc-actions .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.ma-wc-ajax-atc-actions:has(.ma-wc-ajax-atc-remove.is-visible) .single_add_to_cart_button {
	flex: 9 1 0;
	width: auto;
}

.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove,
.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove.is-visible {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 1 0 0;
	min-width: 0;
	padding: 0 0.15em;
	margin: 0;
	border: 2px solid #e0e0e0 !important;
	border-radius: 6px;
	background: #fff !important;
	background-color: #fff !important;
	color: #d32f2f !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	align-self: stretch;
	-webkit-appearance: none;
	appearance: none;
}

.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove.is-visible {
	display: inline-flex;
	flex-direction: column;
	gap: 0.2em;
	padding: 0.35em 0.2em;
}

.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove:hover,
.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove:focus {
	background: #fff5f5 !important;
	background-color: #fff5f5 !important;
	border-color: #ef9a9a !important;
	color: #c62828 !important;
	box-shadow: 0 2px 6px rgba(211, 47, 47, 0.12);
	outline: none;
}

.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove__icon,
.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove__icon * {
	display: block;
	width: 1em;
	height: 1em;
	max-width: 16px;
	max-height: 16px;
	stroke: #d32f2f !important;
	color: #d32f2f !important;
	fill: none !important;
}

.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove:hover .ma-wc-ajax-atc-remove__icon,
.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove:focus .ma-wc-ajax-atc-remove__icon {
	stroke: #c62828 !important;
	color: #c62828 !important;
}

.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove__label {
	display: block;
	font-size: 0.62em;
	line-height: 1;
	font-weight: 600;
	color: #d32f2f !important;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove:hover .ma-wc-ajax-atc-remove__label,
.ma-wc-ajax-atc-actions .ma-wc-ajax-atc-remove:focus .ma-wc-ajax-atc-remove__label {
	color: #c62828 !important;
}

.ma-wc-ajax-atc-remove--loading .ma-wc-ajax-atc-remove__label {
	opacity: 0;
}

.ma-wc-ajax-atc-remove--loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.ma-wc-ajax-atc-remove--loading .ma-wc-ajax-atc-remove__icon {
	opacity: 0;
}

.ma-wc-ajax-atc-remove--loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.1em;
	height: 1.1em;
	margin: -0.55em 0 0 -0.55em;
	border: 2px solid rgba(211, 47, 47, 0.25);
	border-right-color: #d32f2f;
	border-radius: 50%;
	animation: ma-wc-ajax-atc-spin 0.65s linear infinite;
}

.ma-wc-ajax-atc-feedback {
	display: none;
	margin-top: 0.85em;
	font-size: 0.875em;
	line-height: 1.45;
	transition: opacity 0.35s ease, transform 0.35s ease;
	align-items: flex-start;
	gap: 0.5em;
	padding: 0.6em 0.85em;
	border-radius: 6px;
	border: 1px solid transparent;
	max-width: 100%;
}

.ma-wc-ajax-atc-feedback::before {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15em;
	height: 1.15em;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1;
}

.ma-wc-ajax-atc-feedback--success {
	display: flex;
	color: #1b5e20;
	background: #f1f8f1;
	border-color: #c8e6c9;
	animation: ma-wc-ajax-atc-feedback-in 0.28s ease;
}

.ma-wc-ajax-atc-feedback--success::before {
	content: "\2713";
	color: #2e7d32;
}

.ma-wc-ajax-atc-feedback--warning {
	display: flex;
	color: #e65100;
	background: #fff8f0;
	border-color: #ffe0b2;
	animation: ma-wc-ajax-atc-feedback-in 0.28s ease;
}

.ma-wc-ajax-atc-feedback--warning::before {
	content: "!";
	color: #ef6c00;
	font-weight: 800;
}

.ma-wc-ajax-atc-feedback--error {
	display: flex;
	color: #b71c1c;
	background: #fff5f5;
	border-color: #ffcdd2;
	animation: ma-wc-ajax-atc-feedback-in 0.28s ease;
}

.ma-wc-ajax-atc-feedback--error::before {
	content: "\00d7";
	color: #c62828;
	font-size: 1.1em;
}

.ma-wc-ajax-atc-feedback--removed {
	display: flex;
	color: #b71c1c;
	background: #fff5f5;
	border-color: #ef9a9a;
	animation: ma-wc-ajax-atc-feedback-in 0.28s ease;
}

.ma-wc-ajax-atc-feedback--removed::before {
	content: "";
	display: inline-flex;
	width: 1.05em;
	height: 1.05em;
	flex-shrink: 0;
	background-color: #d32f2f;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cline x1='10' y1='11' x2='10' y2='17'/%3E%3Cline x1='14' y1='11' x2='14' y2='17'/%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cline x1='10' y1='11' x2='10' y2='17'/%3E%3Cline x1='14' y1='11' x2='14' y2='17'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.ma-wc-ajax-atc-feedback--hide {
	opacity: 0;
	transform: translateY(-4px);
}

@keyframes ma-wc-ajax-atc-feedback-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ma-wc-ajax-atc-sr-live {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Loader — inherits button color */
.single_add_to_cart_button.ma-wc-ajax-atc-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.single_add_to_cart_button.ma-wc-ajax-atc-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.25em;
	height: 1.25em;
	margin: -0.625em 0 0 -0.625em;
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-right-color: transparent;
	border-radius: 50%;
	animation: ma-wc-ajax-atc-spin 0.65s linear infinite;
}

.single_add_to_cart_button:not(.alt).ma-wc-ajax-atc-loading::after {
	border-color: rgba(0, 0, 0, 0.45);
	border-right-color: transparent;
}

/* Success tick */
.single_add_to_cart_button.ma-wc-ajax-atc-success {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.single_add_to_cart_button.ma-wc-ajax-atc-success::after {
	content: "\2713";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1;
	color: #2e7d32;
	animation: ma-wc-ajax-atc-tick 0.45s ease;
}

.single_add_to_cart_button.ma-wc-ajax-atc-view-cart {
	opacity: 1;
	background: #fff !important;
	color: #1b5e20 !important;
	border: 2px solid #43a047 !important;
	box-shadow: 0 1px 3px rgba(27, 94, 32, 0.12) !important;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.single_add_to_cart_button.ma-wc-ajax-atc-view-cart:hover,
.single_add_to_cart_button.ma-wc-ajax-atc-view-cart:focus {
	background: #f1f8f1 !important;
	color: #1b5e20 !important;
	border-color: #2e7d32 !important;
	box-shadow: 0 2px 6px rgba(27, 94, 32, 0.16) !important;
}

.single_add_to_cart_button.ma-wc-ajax-atc-continue {
	opacity: 1;
}

@keyframes ma-wc-ajax-atc-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes ma-wc-ajax-atc-tick {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.5);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* Mini cart auto-open — match theme selector specificity */
#header .header-wrapper .container-fluid .row #account-container #basket.ma-wc-mini-cart-open > a {
	background: #EB5757 !important;
	color: #ffffff !important;
}

#header #basket #mini-basket .woocommerce-mini-cart-item a img.ma-wc-mini-cart-thumb,
#header #basket #mini-basket .woocommerce-mini-cart-item a:nth-child(2) img {
	width: 100px !important;
	height: 100px !important;
	object-fit: cover;
	object-position: center;
	flex-shrink: 0;
}

#header .header-wrapper .container-fluid .row #account-container #basket.ma-wc-mini-cart-open #mini-basket {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}
