.plugxen-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999990;
	box-sizing: border-box;
	color: var(--plugxen-sticky-text, #222);
	pointer-events: none;
	transform: translateY(calc(100% + 30px));
	transition: transform .24s ease, opacity .2s ease;
	opacity: 0;
}

.plugxen-sticky-atc.is-visible {
	pointer-events: auto;
	transform: translateY(0);
	opacity: 1;
}

/* Defensive rule for themes or extensions that inject WooCommerce links. */
.plugxen-sticky-atc .added_to_cart.wc-forward,
.plugxen-sticky-atc a.added_to_cart {
	display: none !important;
}


.plugxen-sticky-atc *,
.plugxen-sticky-atc *::before,
.plugxen-sticky-atc *::after {
	box-sizing: border-box;
}

.plugxen-sticky-atc--full {
	padding: 12px 18px;
	border-top: 1px solid var(--plugxen-sticky-border, #ddd);
	background: var(--plugxen-sticky-bg, #fff);
	box-shadow: 0 -5px 20px rgba(0, 0, 0, .08);
}

.plugxen-sticky-atc--floating {
	right: auto;
	left: 50%;
	bottom: var(--plugxen-sticky-floating-gap, 22px);
	width: var(--plugxen-sticky-floating-width, 70%);
	max-width: var(--plugxen-sticky-floating-max, 980px);
	padding: 12px 14px;
	border: 1px solid var(--plugxen-sticky-border, #ddd);
	border-radius: var(--plugxen-sticky-floating-radius, 18px);
	background: var(--plugxen-sticky-bg, #fff);
	box-shadow: 0 10px 32px rgba(0, 0, 0, .16);
	transform: translate(-50%, calc(100% + var(--plugxen-sticky-floating-gap, 22px) + 35px));
}

.plugxen-sticky-atc--floating.is-visible {
	transform: translate(-50%, 0);
}

.plugxen-sticky-atc__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: var(--plugxen-sticky-content-max, 1280px);
	margin: 0 auto;
}

.plugxen-sticky-atc__product {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 180px;
	flex: 1 1 300px;
}

.plugxen-sticky-atc--floating .plugxen-sticky-atc__product {
	min-width: 150px;
	flex-basis: 230px;
}

.plugxen-sticky-atc__image {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f4f5;
}

.plugxen-sticky-atc__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.plugxen-sticky-atc__copy {
	min-width: 0;
}

.plugxen-sticky-atc__title {
	display: block;
	overflow: hidden;
	color: var(--plugxen-sticky-text, #222);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.plugxen-sticky-atc__price {
	margin-top: 4px;
	color: var(--plugxen-sticky-text, #222);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.25;
}

.plugxen-sticky-atc__price del {
	opacity: .58;
	font-size: .88em;
}

.plugxen-sticky-atc__price ins {
	text-decoration: none;
}

.plugxen-sticky-atc__variations {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 190px;
	flex: 1 1 360px;
}

.plugxen-sticky-atc__variation-field {
	position: relative;
	min-width: 0;
	flex: 1 1 140px;
}

.plugxen-sticky-atc__variation-field--mobile {
	display: none;
}

.plugxen-sticky-atc__variation-field label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.plugxen-sticky-atc__variation-field select {
	width: 100% !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 38px 0 13px !important;
	border: 1px solid var(--plugxen-sticky-border, #ddd) !important;
	border-radius: 6px !important;
	background-color: #fff !important;
	color: #222 !important;
	font-size: 14px !important;
	line-height: 46px !important;
	box-shadow: none !important;
}

.plugxen-sticky-atc__quantity {
	display: flex;
	align-items: center;
	width: 142px;
	height: 48px;
	flex: 0 0 142px;
	overflow: hidden;
	border: 1px solid var(--plugxen-sticky-border, #ddd);
	border-radius: 6px;
	background: #fff;
}

.plugxen-sticky-atc__quantity button,
.plugxen-sticky-atc__quantity input {
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #222 !important;
	line-height: 46px !important;
}

.plugxen-sticky-atc__quantity button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	flex: 0 0 42px;
	font-size: 20px;
	cursor: pointer;
}

.plugxen-sticky-atc__quantity input {
	width: 56px !important;
	flex: 1 1 auto;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.plugxen-sticky-atc__quantity input::-webkit-inner-spin-button,
.plugxen-sticky-atc__quantity input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.plugxen-sticky-atc__button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 190px;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: var(--plugxen-sticky-button, #F89A05) !important;
	box-shadow: none !important;
	color: var(--plugxen-sticky-button-text, #050505) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}

.plugxen-sticky-atc--floating .plugxen-sticky-atc__button {
	min-width: 165px;
}

.plugxen-sticky-atc__button.is-loading,
.plugxen-sticky-atc__button.is-disabled,
.plugxen-sticky-atc__button:disabled {
	opacity: .58;
	cursor: not-allowed;
}

.plugxen-sticky-atc__button:focus-visible,
.plugxen-sticky-atc__quantity button:focus-visible,
.plugxen-sticky-atc__variation-field select:focus-visible {
	outline: 2px solid var(--plugxen-sticky-button, #F89A05) !important;
	outline-offset: 2px;
}

.plugxen-sticky-atc__status {
	position: absolute;
	right: 0;
	bottom: -20px;
	margin: 0;
	color: #b32d2e;
	font-size: 12px;
}

.plugxen-sticky-atc--full .plugxen-sticky-atc__status {
	bottom: auto;
	top: -19px;
}

@media (min-width: 769px) {
	.plugxen-sticky-atc--hide-desktop {
		display: none !important;
	}
}

@media (max-width: 1100px) and (min-width: 769px) {
	.plugxen-sticky-atc--floating {
		width: 90%;
	}

	.plugxen-sticky-atc__inner {
		gap: 10px;
	}

	.plugxen-sticky-atc__image {
		width: 50px;
		height: 50px;
		flex-basis: 50px;
	}

	.plugxen-sticky-atc__quantity {
		width: 126px;
		flex-basis: 126px;
	}

	.plugxen-sticky-atc__button {
		min-width: 160px;
	}
}

@media (max-width: 768px) {
	.plugxen-sticky-atc,
	.plugxen-sticky-atc--floating {
		right: 0;
		left: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		padding: 10px 12px;
		border: 0;
		border-top: 1px solid var(--plugxen-sticky-border, #ddd);
		border-radius: 0;
		background: var(--plugxen-sticky-bg, #fff);
		box-shadow: 0 -5px 20px rgba(0, 0, 0, .10);
		transform: translateY(calc(100% + 25px));
	}

	.plugxen-sticky-atc.is-visible,
	.plugxen-sticky-atc--floating.is-visible {
		transform: translateY(0);
	}

	.plugxen-sticky-atc--hide-mobile {
		display: none !important;
	}

	.plugxen-sticky-atc__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(138px, 1fr);
		gap: 8px;
		max-width: none;
	}

	.plugxen-sticky-atc__product,
	.plugxen-sticky-atc__quantity {
		display: none;
	}

	.plugxen-sticky-atc__variations {
		display: grid;
		grid-template-columns: 1fr;
		gap: 6px;
		min-width: 0;
		width: 100%;
	}

	.plugxen-sticky-atc--has-mobile-combined .plugxen-sticky-atc__variation-field--desktop {
		display: none;
	}

	.plugxen-sticky-atc--has-mobile-combined .plugxen-sticky-atc__variation-field--mobile {
		display: block;
	}

	.plugxen-sticky-atc__button {
		width: 100% !important;
		min-width: 0;
		padding: 0 12px !important;
		font-size: 14px !important;
	}

	.plugxen-sticky-atc--simple .plugxen-sticky-atc__inner {
		display: block;
	}

	.plugxen-sticky-atc__status,
	.plugxen-sticky-atc--full .plugxen-sticky-atc__status {
		right: 12px;
		bottom: auto;
		top: -20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.plugxen-sticky-atc {
		transition: none;
	}
}
