/**
 * Product Sticky Purchase — mobile proxy bar (CX-05A S3.1).
 *
 * @package PasionGift_App
 */

.pg-product-sticky-purchase {
	display: none;
}

@media (max-width: 767px) {
	.pg-product-sticky-purchase {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: calc(var(--pg-bottom-nav-height) + var(--pg-safe-bottom));
		z-index: 90;
		padding: 0.625rem calc(var(--pg-shell-padding-x) + var(--pg-safe-left))
			0.625rem calc(var(--pg-shell-padding-x) + var(--pg-safe-right));
		border-top: 1px solid var(--pg-color-border-subtle);
		background-color: var(--pg-color-surface);
		box-shadow: 0 -0.25rem 1rem rgb(15 15 20 / 0.08);
		box-sizing: border-box;
	}

	.pg-product-sticky-purchase[hidden] {
		display: none !important;
	}

	.pg-product-sticky-purchase__inner {
		display: flex;
		align-items: center;
		gap: var(--pg-space-md);
		max-width: var(--pg-max-width);
		margin-inline: auto;
	}

	.pg-product-sticky-purchase__price {
		flex: 0 1 auto;
		min-width: 0;
		font-family: var(--pg-font-family);
		font-size: 1.125rem;
		font-weight: var(--pg-font-weight-semibold);
		color: var(--pg-color-accent);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.pg-product-sticky-purchase__button {
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: var(--pg-touch-target);
		min-width: 0;
		margin: 0;
		padding: 0 var(--pg-space-md);
		border: 0;
		border-radius: var(--pg-radius-full);
		background-color: var(--pg-color-accent);
		font-family: var(--pg-font-family);
		font-size: var(--pg-font-size-sm);
		font-weight: var(--pg-font-weight-semibold);
		color: #ffffff;
		cursor: pointer;
	}

	.pg-product-sticky-purchase__button--disabled,
	.pg-product-sticky-purchase__button:disabled {
		cursor: not-allowed;
		opacity: 0.7;
	}

	html.pg-has-sticky-purchase .pg-product-view {
		padding-bottom: calc(4.25rem + var(--pg-space-md));
	}
}
