/* Product CTA and floating cart — Світ Терас. */

.st-product-cart-cta {
	--st-product-cart-display: var(--st-font-display, "Kharkiv Tone", Arial, sans-serif);
	width: 454px;
	max-width: 100%;
	margin-top: 22px;
	color: #1c1c1c;
	font-family: var(--st-font-body, "Fixel Display", Arial, sans-serif);
}

.st-product-cart-cta form.cart,
.st-product-cart-cta form.variations_form {
	margin: 0;
}

.st-product-cart-cta table.variations,
.st-product-cart-cta .reset_variations,
.st-product-cart-cta .woocommerce-variation-description,
.st-product-cart-cta .woocommerce-variation-price,
.st-product-cart-cta .quantity {
	display: none !important;
}

.st-product-cart-cta .single_variation_wrap,
.st-product-cart-cta .woocommerce-variation-add-to-cart {
	display: block;
	width: 100%;
}

.st-product-cart-cta .single_add_to_cart_button,
.st-product-cart-cta button.button {
	display: inline-flex;
	width: 100%;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 1px solid #1c1c1c !important;
	border-radius: 0 !important;
	padding: 12px 22px !important;
	background: #1c1c1c !important;
	box-shadow: none !important;
	color: #fbfbfb !important;
	font-family: var(--st-font-body, "Fixel Display", Arial, sans-serif) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.035em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.st-product-cart-cta .single_add_to_cart_button:hover,
.st-product-cart-cta button.button:hover {
	border-color: #ffd676 !important;
	background: #ffd676 !important;
	color: #1c1c1c !important;
}

.st-product-cart-cta .single_add_to_cart_button:focus-visible,
.st-product-cart-cta button.button:focus-visible {
	outline: 3px solid #ffd676 !important;
	outline-offset: 3px;
}

.st-product-cart-cta[data-state="pending"] .single_add_to_cart_button,
.st-product-cart-cta[data-state="pending"] button.button {
	cursor: wait;
	opacity: 0.58;
}

.st-product-cart-cta[data-state="added"] .single_add_to_cart_button,
.st-product-cart-cta[data-state="added"] button.button {
	border-color: #4f5a50 !important;
	background: #4f5a50 !important;
	color: #fbfbfb !important;
}

.st-product-cart-cta a.added_to_cart.wc-forward {
	display: inline-flex;
	width: 100%;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	margin: 8px 0 0;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 12px 22px;
	background: transparent !important;
	box-shadow: none !important;
	color: #1c1c1c !important;
	font-family: var(--st-font-body, "Fixel Display", Arial, sans-serif);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.035em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 160ms ease, color 160ms ease;
}

.st-product-cart-cta a.added_to_cart.wc-forward:hover,
.st-product-cart-cta a.added_to_cart.wc-forward:focus-visible {
	background: rgba(79, 90, 80, 0.1) !important;
	color: #1c1c1c !important;
}

.st-product-cart-cta a.added_to_cart.wc-forward:focus-visible {
	outline: 3px solid #ffd676;
	outline-offset: 3px;
}

.st-product-cart-cta__notice,
.st-product-cart-cta__status {
	margin: 11px 0 0;
	color: rgba(28, 28, 28, 0.68);
	font-family: var(--st-font-body, "Fixel Display", Arial, sans-serif);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}

.st-product-cart-cta__status:empty {
	display: none;
}

.st-product-cart-cta__status.is-error {
	color: #8a2424;
}

.st-floating-cart {
	position: fixed;
	right: calc(32px + env(safe-area-inset-right));
	bottom: calc(64px + env(safe-area-inset-bottom));
	z-index: 999;
	font-family: var(--st-font-body, "Fixel Display", Arial, sans-serif);
}

.st-floating-cart__link {
	position: relative;
	display: grid;
	width: 80px;
	height: 80px;
	place-items: center;
	color: #fbfbfb;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.st-floating-cart__background {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(251, 251, 251, 0.26);
	border-radius: 50%;
	background: #1c1c1c;
	box-shadow: 0 10px 30px rgba(28, 28, 28, 0.2);
	transition: transform 180ms ease, background-color 180ms ease;
}

.st-floating-cart__icon {
	position: relative;
	width: 24px;
	height: 24px;
	background: #fbfbfb;
	-webkit-mask: var(--st-floating-cart-mask) center / contain no-repeat;
	mask: var(--st-floating-cart-mask) center / contain no-repeat;
}

.st-floating-cart__badge {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	min-width: 22px;
	height: 22px;
	place-items: center;
	border: 2px solid #fbfbfb;
	border-radius: 999px;
	padding: 0 5px;
	background: #ffd676;
	color: #1c1c1c;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
}

@media (hover: hover) {
	.st-floating-cart__link:hover .st-floating-cart__background {
		transform: scale(1.08);
	}
}

.st-floating-cart__link:active .st-floating-cart__background {
	transform: scale(0.92);
}

.st-floating-cart__link:focus-visible {
	outline: 3px solid #ffd676;
	outline-offset: 4px;
}

@media (max-width: 767px) {
	.st-product-cart-cta {
		width: 100%;
		margin-top: 18px;
	}

	.st-floating-cart {
		right: calc(20px + env(safe-area-inset-right));
		bottom: calc(48px + env(safe-area-inset-bottom));
	}

	.st-floating-cart__link {
		width: 72px;
		height: 72px;
	}

	.st-floating-cart__icon {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 389px) {
	.st-product-cart-cta .single_add_to_cart_button,
	.st-product-cart-cta button.button,
	.st-product-cart-cta a.added_to_cart.wc-forward {
		padding-right: 14px !important;
		padding-left: 14px !important;
		font-size: 12px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.st-product-cart-cta *,
	.st-floating-cart__background {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}
