/**
 * Cleans up the fixed/sticky add-to-cart bar (#ecomus-sticky-add-to-cart)
 * for gift card products: no interactive amount pills or gift-recipient
 * form crammed into a thin bar - just a price and a CTA, with a way back
 * up to the real form when "Send as gift?" is switched on.
 *
 * Confirmed via a live DevTools capture (not present in the Ecomus theme
 * files provided - it's a separate bundled plugin/addon, or an Elementor
 * effect): the bar is <section id="ecomus-sticky-add-to-cart"> containing
 * .ecomus-sticky-atc__content > .ecomus-sticky-atc__image,
 * .ecomus-sticky-atc-content-info, .ecomus-sticky-atc__actions - the last
 * of which holds the cloned form controls (amount pills, "Send as gift?",
 * the Add to Cart button) this file hides/rebuilds.
 */

#ecomus-sticky-add-to-cart .sgc_send_as_gift_wrapper,
#ecomus-sticky-add-to-cart .shop_gc_giftcard_form_wrapper,
#ecomus-sticky-add-to-cart .sgc-denomination-pills,
#ecomus-sticky-add-to-cart .sgc-denomination-label,
#ecomus-sticky-add-to-cart .sgc_custom_amount {
	display: none !important;
}

.sgc-sticky-gift-note {
	display: none;
	align-items: center;
	gap: 0.6em;
	margin: 0 0.8em;
	white-space: nowrap;
	font-family: var(--em-font__main, inherit);
	font-size: var(--em-input-font-size, 14px);
}

#ecomus-sticky-add-to-cart.sgc-gift-mode .sgc-sticky-gift-note {
	display: inline-flex;
}

/*
 * It's a <button>, and the theme styles buttons broadly (fills them solid
 * on hover) with more specificity than a bare class selector can beat -
 * same issue the denomination pills had. Scoped under the bar's own id and
 * repeated across every interactive state with !important so it can't
 * inherit that fill regardless of where the theme's rule sits.
 */
#ecomus-sticky-add-to-cart .sgc-sticky-gift-note__link,
#ecomus-sticky-add-to-cart .sgc-sticky-gift-note__link:hover,
#ecomus-sticky-add-to-cart .sgc-sticky-gift-note__link:focus,
#ecomus-sticky-add-to-cart .sgc-sticky-gift-note__link:active {
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
	color: var(--em-input-color, #1a1a1a);
}

#ecomus-sticky-add-to-cart .sgc-sticky-gift-note__link:hover,
#ecomus-sticky-add-to-cart .sgc-sticky-gift-note__link:focus {
	color: var(--em-button-bg-color, #1a1a1a) !important;
}

.sgc-sticky-gift-note__or {
	text-transform: uppercase;
	font-size: 0.75em;
	letter-spacing: 0.05em;
	color: var(--em-input-color, #888888);
	opacity: 0.7;
}

@media (max-width: 480px) {
	.sgc-sticky-gift-note {
		margin: 0 0.5em;
		font-size: 0.82em;
		gap: 0.4em;
	}
}
