/* =========================================================
   fixandgo — Sticky Add to Cart
   Uses the theme.json semantic color palette.
   ========================================================= */

.sticky-atc-bar {
	position: fixed;
	top: var(--fixandgo-admin-bar-offset, 0);
	left: 0;
	right: 0;
	z-index: 999;

	background: var(--wp--preset--color--custom-white-header);
	color: var(--wp--preset--color--primary);

	border-bottom: 1px solid var(--wp--preset--color--hairline);

	padding: 0.6rem 1.5rem;

	transform: translateY(-110%);
	transition: transform 0.25s ease;

	will-change: transform;
}
.sticky-atc-bar .ppc-button-wrapper{
	display: none;
}
.sticky-atc-bar.is-visible {
	transform: translateY(0);
}

.sticky-atc-bar__inner {
	max-width: 1400px;
	margin: 0 auto;
	gap: 1.8rem !important;
}

/* --- Product thumbnail --- */

.sticky-atc-bar__thumb img {
	display: block;
	width: auto;
	height: 48px;
	border: 1px solid var(--wp--preset--color--hairline);
}

/* --- Product title --- */

.sticky-atc-bar__title {
	overflow: hidden;
}

.sticky-atc-bar__title h3 {
	margin: 0;

	color: var(--wp--preset--color--primary);

	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- Price --- */

.sticky-atc-bar__price {
	color: var(--wp--preset--color--primary);
	font-size: 0.9375rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sticky-atc-bar__price .wc-block-components-product-price {
	display: flex;
	gap: 2px;
}

.sticky-atc-bar__price del {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
	margin-right: 0.35rem;
}

/* --- Add to cart button --- */

.sticky-atc-bar__button {
	width: 100%;
	min-height: 3rem;

	padding: 0 1.5rem;

	white-space: nowrap;
	cursor: pointer;

	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--secondary);

	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 0;

	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.05em;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		opacity 0.2s ease;
}

.sticky-atc-bar__button:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
}

/* --- Focus --- */

.sticky-atc-bar__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* --- WP Admin Bar --- */

.admin-bar .sticky-atc-bar {
	top: 32px;
}

@media screen and (max-width: 782px) {

	.admin-bar .sticky-atc-bar {
		top: 46px;
	}
}

/* --- Mobile --- */

@media (max-width: 600px) {

	.sticky-atc-bar {
		display: none;
	}

	.sticky-atc-bar__thumb,
	.sticky-atc-bar__title {
		display: none;
	}

	.sticky-atc-bar__inner {
		justify-content: space-between;
	}

	.sticky-atc-bar__price {
		flex-basis: auto !important;
	}

	.sticky-atc-bar__cta {
		flex-basis: 140px !important;
	}

	.sticky-atc-bar__button {
		min-height: 2.75rem;
		padding: 0 1.25rem;
	}
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {

	.sticky-atc-bar {
		transition: none;
	}
}
.sticky-atc-bar__form .cart{
		margin-top:0!important;
}
