.ace-pals-sticky-atc {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	background: #fff;
	border-top: 1px solid #dedede;
	box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.08);
	color: #202223;
	font-family: "DM Sans", Arial, sans-serif;
	opacity: 0;
	pointer-events: none;
	transform: translateY(105%);
	transition: opacity 180ms ease, transform 180ms ease;
	will-change: opacity, transform;
}

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

body.ace-pals-sticky-atc-active {
	padding-bottom: 82px;
}

.ace-pals-sticky-atc__inner {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) minmax(180px, 260px);
	gap: 14px;
	align-items: center;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 12px clamp(18px, 3.2vw, 48px);
}

.ace-pals-sticky-atc__image {
	width: 54px;
	height: 54px;
	overflow: hidden;
	background: #f7f7f7;
}

.ace-pals-sticky-atc__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ace-pals-sticky-atc__details {
	min-width: 0;
}

.ace-pals-sticky-atc__title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.ace-pals-sticky-atc__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	margin-top: 3px;
	color: #666;
	font-size: 12px;
	line-height: 16px;
}

.ace-pals-sticky-atc__price,
.ace-pals-sticky-atc__price .amount {
	color: #202223;
	font-weight: 400;
}

.ace-pals-sticky-atc__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #202223;
	border-radius: 0;
	background: #202223;
	color: #fff;
	cursor: pointer;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.ace-pals-sticky-atc__button:hover,
.ace-pals-sticky-atc__button:focus {
	background: #000;
	color: #fff;
}

.ace-pals-sticky-atc__button[disabled],
.ace-pals-sticky-atc__button.is-loading {
	cursor: not-allowed;
	opacity: 0.58;
}

@media (max-width: 767px) {
	body.ace-pals-sticky-atc-active {
		padding-bottom: 124px;
	}

	.ace-pals-sticky-atc__inner {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 11px;
		padding: 10px 14px 12px;
	}

	.ace-pals-sticky-atc__image {
		width: 48px;
		height: 48px;
	}

	.ace-pals-sticky-atc__button {
		grid-column: 1 / -1;
		min-height: 46px;
	}
}

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