/*
Theme Name: Ideahub Child
Theme URI: https://ideahub.qodeinteractive.com
Template: ideahub
Description: Child theme for Ideahub. All site-specific customizations (WooCommerce + Polylang integration, hooks, overrides) live here so they survive Ideahub theme updates.
Author: VIYA Health
Version: 1.0.0
Text Domain: ideahub-child
*/

/* ==========================================================================
   Off-canvas cart (right side) - replaces the header hover dropdown
   ========================================================================== */
.ideahub-child-oc-cart {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear .35s;
}

.ideahub-child-oc-cart.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

/* Padding must not add to widths, or the 100%-wide footer/buttons overflow off-centre. */
.ideahub-child-oc-cart,
.ideahub-child-oc-cart *,
.ideahub-child-oc-cart *::before,
.ideahub-child-oc-cart *::after {
	box-sizing: border-box;
}

.ideahub-child-oc-cart__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, .45);
	opacity: 0;
	cursor: pointer;
	transition: opacity .35s ease;
}

.ideahub-child-oc-cart.is-open .ideahub-child-oc-cart__overlay {
	opacity: 1;
}

.ideahub-child-oc-cart__panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: 400px;
	max-width: 100%;
	height: 100%;
	background-color: #fff;
	box-shadow: -10px 0 30px rgba(2, 2, 2, .08);
	transform: translateX(100%);
	transition: transform .35s cubic-bezier(.66, .14, .58, 1);
	outline: none;
}

.ideahub-child-oc-cart.is-open .ideahub-child-oc-cart__panel {
	transform: translateX(0);
}

.ideahub-child-oc-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	border-bottom: 2px solid #f4f4f4;
}

.ideahub-child-oc-cart__title {
	margin: 0;
	color: #4c2543;
}

.ideahub-child-oc-cart__close {
	padding: 0;
	border: 0;
	background: none;
	font-size: 32px;
	line-height: 1;
	color: #4c2543;
	cursor: pointer;
}

.ideahub-child-oc-cart__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

/*
 * Reuse the parent dropdown cart styles, minus the hover/absolute
 * behaviour. Only the item list scrolls; subtotal + buttons stay
 * pinned to the bottom of the panel.
 */
.ideahub-child-oc-cart .eltdf-sc-dropdown {
	position: static;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	max-height: none;
	overflow: visible;
	pointer-events: auto;
	box-shadow: none;
	transition: none;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-inner {
	display: flex;
	flex: 1;
	flex-direction: column;
	width: 100%;
	min-height: 0;
	border-radius: 0;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-items {
	display: block;
	flex: 1;
	min-height: 0;
	padding: 24px 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-subtotal {
	flex-shrink: 0;
	margin: 0;
	padding: 18px 24px;
	border-top: 2px solid #f4f4f4;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-subtotal .eltdf-sc-dropdown-total {
	font-size: 16px;
	color: #4c2543;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-subtotal .amount {
	font-size: 20px;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-button-holder {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	height: auto;
	padding: 0 24px 24px;
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	background: none;
	border-radius: 0;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-button-checkout,
.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-button {
	display: flex;
	align-items: center;
	justify-content: center;
	top: auto;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 3em;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: .1em;
	font-weight: 600;
	text-align: center;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-button-checkout {
	color: #fff;
	background-color: #ff5b2e;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-button-checkout:hover {
	color: #fff;
	background-color: #ff7250;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-button {
	color: #4c2543;
	background-color: transparent;
	border-color: #4c2543;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-button:hover {
	color: #fff;
	background-color: #4c2543;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .eltdf-sc-dropdown-inner .eltdf-empty-cart {
	margin: 0;
	padding: 24px;
}

body.ideahub-child-oc-cart-open {
	overflow: hidden;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown-item.is-removing {
	opacity: .4;
	pointer-events: none;
	transition: opacity .2s ease;
}

/* Header cart icon added to the mobile header (mobile-header.php override). */
.ideahub-child-mobile-cart {
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

.ideahub-child-mobile-cart .eltdf-shopping-cart-holder {
	margin: 0 12px 0 0;
}

.ideahub-child-mobile-cart .eltdf-shopping-cart-holder,
.ideahub-child-mobile-cart .eltdf-shopping-cart-holder .eltdf-shopping-cart-inner {
	height: auto;
}

/* The desktop icon centres itself with top:50% against a fixed-height
   header; the mobile right area has no set height, so centre it inline. */
.ideahub-child-mobile-cart .eltdf-shopping-cart-holder .eltdf-header-cart {
	top: auto;
	transform: none;
	font-size: 20px;
}

/* ==========================================================================
   Product list (shop) "Add to cart" button + add-to-cart animation.
   The parent shows the button as a hover-only text link that replaces the
   price (unusable on touch); show price and a real button at all times.
   ========================================================================== */
ul.products > .product-custom .eltdf-pl-text-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	/* Its 30px bottom margin collapses out of the card (leaving the
	   price/button row flush with the card edge); the card pads instead. */
	margin-bottom: 0 !important;
}

ul.products > .product-custom .box-shadow {
	padding-bottom: 30px;
}

.eltdf-woo-pl-info-below-image ul.products > .product-custom .eltdf-pl-text-wrapper .price,
ul.products > .product-custom .eltdf-pl-text-wrapper .price {
	margin: 0;
	opacity: 1 !important;
}

/* Price on the left, add-to-cart icon button on the right. */
.ideahub-child-pl-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-top: 16px;
}

.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc {
	position: relative;
	left: auto;
	flex-shrink: 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: auto !important;
	min-height: 46px;
	margin: 0 0 0 auto;
	padding: 12px 24px;
	border: 0;
	border-radius: 3em;
	overflow: hidden;
	background-color: #4c2543;
	color: #fff !important;
	font-family: "Pathway Extreme", "Hanuman", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1.3;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 1;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .25s ease, box-shadow .25s ease, transform .15s ease;
}

/* Parent draws an arrow icon after the text link. */
.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc:after {
	content: none;
}

.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc:hover,
.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc:focus-visible {
	background-color: #ff5b2e;
	box-shadow: 0 8px 18px rgba(255, 91, 46, .3);
	transform: translateY(-1px);
}

.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc:active {
	transform: scale(.96);
}

/* Icon-only add to cart: a round button holding the cart+ icon. */
.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc--icon {
	width: 48px !important;
	height: 48px;
	min-height: 0;
	padding: 0;
	border-radius: 50%;
	overflow: visible; /* so the quantity badge isn't clipped */
}

.ideahub-child-atc--icon .ideahub-child-atc__icon,
.ideahub-child-atc--icon .ideahub-child-atc__spinner {
	width: 22px;
	height: 22px;
}

.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc--more {
	background-color: transparent;
	color: #4c2543 !important;
	box-shadow: inset 0 0 0 2px #4c2543;
}

.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc--more:hover {
	background-color: #4c2543;
	color: #fff !important;
	box-shadow: none;
}

.ideahub-child-atc__icon {
	position: relative;
	display: inline-flex;
	width: 18px;
	height: 18px;
}

.ideahub-child-atc__icon svg,
.ideahub-child-atc__spinner {
	position: absolute;
	top: 0;
	left: 0;
	transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.ideahub-child-atc__check,
.ideahub-child-atc__spinner {
	opacity: 0;
	transform: scale(.4);
}

.ideahub-child-atc__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	box-sizing: border-box;
}

/* Adding: spinner. WooCommerce toggles .loading / .added on the button. */
.ideahub-child-atc.loading {
	pointer-events: none;
}

.ideahub-child-atc.loading .ideahub-child-atc__cart {
	opacity: 0;
	transform: scale(.4);
}

.ideahub-child-atc.loading .ideahub-child-atc__spinner {
	opacity: 1;
	transform: none;
	animation: ideahub-child-spin .7s linear infinite;
}

/* Added: green, check mark pops in, ring pulses out. Parent hides .added. */
.eltdf-woo-pl-info-below-image ul.products > .product-custom .ideahub-child-atc.added {
	display: inline-flex !important;
	background-color: #2e9e5b;
	animation: ideahub-child-atc-pulse .7s ease-out;
}

.ideahub-child-atc.added .ideahub-child-atc__cart {
	opacity: 0;
	transform: scale(.4);
}

.ideahub-child-atc.added .ideahub-child-atc__check {
	opacity: 1;
	transform: none;
}

/* WooCommerce appends a "View cart" link; the off-canvas cart replaces it. */
ul.products > .product-custom .added_to_cart {
	display: none !important;
}

@keyframes ideahub-child-spin {
	to { transform: rotate(360deg); }
}

@keyframes ideahub-child-atc-pulse {
	0% { box-shadow: 0 0 0 0 rgba(46, 158, 91, .55); }
	100% { box-shadow: 0 0 0 14px rgba(46, 158, 91, 0); }
}

/* Product image flying to the header cart (offcanvas-cart.js). The outer
   element moves horizontally, the inner one vertically with a different
   easing, which together make the path curve. */
.ideahub-child-fly {
	position: fixed;
	z-index: 100001;
	pointer-events: none;
	transition: transform .8s cubic-bezier(.45, .1, .35, 1);
}

.ideahub-child-fly__inner {
	transition: transform .8s cubic-bezier(.55, -0.35, .75, .45), opacity .8s ease-in;
}

.ideahub-child-fly__inner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(76, 37, 67, .25);
}

/* Header cart reacts when the image lands. The icon (not .eltdf-header-cart,
   which uses transform for positioning) bounces and the count pops. */
.ideahub-child-cart-bump .eltdf-sc-opener-icon {
	animation: ideahub-child-cart-bump .55s cubic-bezier(.34, 1.56, .64, 1);
}

.ideahub-child-cart-bump .eltdf-sc-opener-count {
	animation: ideahub-child-count-pop .55s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes ideahub-child-cart-bump {
	0% { transform: scale(1); }
	35% { transform: scale(1.3) rotate(-8deg); }
	70% { transform: scale(.92) rotate(4deg); }
	100% { transform: scale(1); }
}

@keyframes ideahub-child-count-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.7); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.ideahub-child-atc,
	.ideahub-child-atc__icon svg,
	.ideahub-child-atc.added,
	.ideahub-child-cart-bump .eltdf-sc-opener-icon,
	.ideahub-child-cart-bump .eltdf-sc-opener-count {
		animation: none !important;
		transition: none !important;
	}
}

/* Quantity already in the cart, shown on the card's add-to-cart button. */
.ideahub-child-atc__qty {
	position: absolute;
	top: -2px;
	right: -2px;
	display: none;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 10px;
	background-color: #ff5b2e;
	box-shadow: 0 0 0 2px #fff;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: 0;
	text-align: center;
}

.ideahub-child-atc--in-cart .ideahub-child-atc__qty {
	display: block;
}

.ideahub-child-atc__qty.is-updated {
	animation: ideahub-child-count-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-reduced-motion: reduce) {
	.ideahub-child-atc__qty.is-updated {
		animation: none !important;
	}
}

/* ==========================================================================
   Single product page: add-to-cart states (no page reload).
   ========================================================================== */
/* WooCommerce adds its own "View cart" link after adding; the header cart
   icon and the off-canvas panel replace it (same as on the product cards). */
form.cart .added_to_cart {
	display: none !important;
}

.single_add_to_cart_button.loading {
	opacity: .65;
	pointer-events: none;
}

.single_add_to_cart_button.ideahub-child-added {
	background-color: #2e9e5b !important;
	border-color: #2e9e5b !important;
	color: #fff !important;
	animation: ideahub-child-atc-pulse .7s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.single_add_to_cart_button.ideahub-child-added {
		animation: none !important;
	}
}

/* Quantity box mirroring the cart: dim briefly while the cart updates. */
form.cart.ideahub-child-qty-syncing .quantity {
	opacity: .55;
	transition: opacity .15s ease;
}

/* Single product page: "View cart" shown instead of "Add to cart" while the
   product is in the cart (styled to match the theme's add-to-cart button). */
.ideahub-child-view-cart {
	display: none;
	vertical-align: middle;
	padding: 13px 46px;
	border-radius: 42px;
	background-color: #4c2543;
	color: #fff !important;
	font-family: "Pathway Extreme", "Hanuman", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.4px;
	line-height: 2em;
	text-transform: uppercase;
	transition: background-color .2s ease-in-out;
}

.ideahub-child-view-cart.is-visible {
	display: inline-block;
}

.ideahub-child-view-cart:hover {
	background-color: #ff5b2e;
}

.ideahub-child-view-cart.is-visible + .single_add_to_cart_button {
	display: none !important;
}

/* The quantity box pops when +/- changes the cart. */
.ideahub-child-qty-pop {
	animation: ideahub-child-qty-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes ideahub-child-qty-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.12); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.ideahub-child-qty-pop {
		animation: none !important;
	}
}

/* Cart page: quantities update automatically (offcanvas-cart.js), so the
   "Update cart" button isn't needed. Only hidden once that script runs. */
body.ideahub-child-cart-auto-update .woocommerce-cart-form [name="update_cart"] {
	display: none !important;
}

/* Loading spinner on WooCommerce's "processing" overlay (cart page updates,
   cart totals, checkout order review). WooCommerce's own stylesheet, which
   normally draws one, isn't loaded by this theme - only the white fade was
   showing. */
/* blockUI fades with inline opacity:.6, which would fade the spinner too;
   get the same fade from the background so the spinner stays solid. */
.blockUI.blockOverlay {
	background-color: rgba(255, 255, 255, .6) !important;
	opacity: 1 !important;
}

.blockUI.blockOverlay::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	box-sizing: border-box;
	border: 4px solid rgba(76, 37, 67, .15);
	border-top-color: #4c2543;
	border-radius: 50%;
	animation: ideahub-child-spin .7s linear infinite;
}

/* Cart page: a quantity update blocks both the table and Cart Totals; show
   one spinner (on the table) rather than two. Totals updating on their own
   (e.g. shipping calculator) still get theirs. */
body:has(.woocommerce-cart-form.processing) .cart_totals .blockUI.blockOverlay::before {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.blockUI.blockOverlay::before {
		animation-duration: 2s;
	}
}

/* ==========================================================================
   WooCommerce notices (success / info / error) as rounded alert cards.
   Overrides the parent's plain bordered box with a 52px line-height.
   :is() keeps the selectors at the parent's specificity; this file loads
   after it, so these win.
   ========================================================================== */
:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	--ih-notice-accent: #4c2543;
	--ih-notice-bg: #f6eff4;
	--ih-notice-icon: "i";

	position: relative;
	display: block;
	margin: 0 0 24px;
	padding: 16px 20px 16px 60px;
	border: 0;
	border-left: 4px solid var(--ih-notice-accent);
	border-radius: 12px;
	background-color: var(--ih-notice-bg);
	box-shadow: 0 6px 18px rgba(76, 37, 67, .08);
	color: #3a2536;
	font-family: "Pathway Extreme", "Hanuman", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.55;
	list-style: none;
	text-align: left;
	animation: ideahub-child-notice-in .35s ease-out;
}

:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) .woocommerce-message {
	--ih-notice-accent: #2e9e5b;
	--ih-notice-bg: #ecf8f0;
	--ih-notice-icon: "\2713";
}

:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) .woocommerce-error {
	--ih-notice-accent: #d9483b;
	--ih-notice-bg: #fdeeec;
	--ih-notice-icon: "!";
}

/* Round icon badge on the left. */
:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
	content: var(--ih-notice-icon);
	position: absolute;
	top: 15px;
	left: 20px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-color: var(--ih-notice-accent);
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}

/* Checkout errors come as a list, one field per item. */
:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) .woocommerce-error li {
	margin: 0;
	padding: 2px 0;
	list-style: none;
}

/* Plain text links inside a notice. */
:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a {
	float: none;
	color: var(--ih-notice-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Checkout errors link each message to its field; read as text, not links. */
:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) .woocommerce-error li > a:not(.button) {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
}

:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) .woocommerce-error li > a:not(.button):hover {
	text-decoration: underline;
}

/* Action links ("Undo?", "View cart", coupon/login toggles) as pill buttons. */
:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a.restore-item, a.button, a.wc-forward, a.showcoupon, a.showlogin) {
	float: right;
	margin: -4px 0 -4px 16px !important;
	padding: 6px 16px;
	border-radius: 3em;
	background-color: var(--ih-notice-accent);
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.6;
	text-decoration: none;
	text-transform: uppercase;
	transition: filter .2s ease;
}

:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a.restore-item, a.button, a.wc-forward, a.showcoupon, a.showlogin):hover {
	filter: brightness(1.12);
}

@media only screen and (max-width: 680px) {
	:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
		padding: 14px 16px 14px 54px;
		font-size: 14px;
	}

	:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
		top: 13px;
		left: 16px;
	}

	/* Parent sets margin: 0 40% 15px 0 !important on links here. */
	:is(.eltdf-woocommerce-page, .woocommerce, .woocommerce-notices-wrapper, .woocommerce-NoticeGroup, .ideahub-child-form-notices, .ideahub-child-oc-cart__notices, .ideahub-child-qty-popup__notices) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a.restore-item, a.button, a.wc-forward, a.showcoupon, a.showlogin) {
		display: table;
		float: none;
		margin: 10px 0 0 !important;
	}
}

@keyframes ideahub-child-notice-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
		animation: none !important;
	}
}

/* Validation errors shown above the product page's add-to-cart form. */
.ideahub-child-form-notices:empty {
	display: none;
}

.ideahub-child-form-notices {
	margin: 24px 0 -12px;
}

.ideahub-child-form-notices .woocommerce-error {
	margin-bottom: 0;
}

/* Auto-closing alerts (offcanvas-cart.js): close button, countdown bar and
   the collapse when they close. */
.ideahub-child-notice {
	overflow: hidden;
	padding-right: 52px !important;
	transition: height .3s ease, margin .3s ease, padding .3s ease, opacity .25s ease;
}

.ideahub-child-notice-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 30px;
	text-align: center;
	opacity: .55;
	cursor: pointer;
	transition: opacity .2s ease, background-color .2s ease;
}

.ideahub-child-notice-close:hover,
.ideahub-child-notice-close:focus-visible {
	background-color: rgba(0, 0, 0, .06);
	opacity: 1;
}

.ideahub-child-notice-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background-color: var(--ih-notice-accent, #4c2543);
	opacity: .45;
	transform-origin: left center;
	animation-name: ideahub-child-notice-countdown;
	animation-timing-function: linear;
	animation-fill-mode: forwards;
}

.ideahub-child-notice.is-paused .ideahub-child-notice-progress {
	animation-play-state: paused;
}

.ideahub-child-notice.is-closing {
	height: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	opacity: 0;
}

@keyframes ideahub-child-notice-countdown {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media only screen and (max-width: 680px) {
	.ideahub-child-notice {
		padding-right: 46px !important;
	}

	.ideahub-child-notice-close {
		top: 10px;
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ideahub-child-notice {
		transition: none;
	}
}

/* "Your Cart" panel: editable quantity per item (child loop.php template). */
.ideahub-child-oc-cart .ideahub-child-oc-item-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.ideahub-child-oc-qty {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	border: 1px solid #e6dfe5;
	border-radius: 3em;
	background-color: #fff;
	overflow: hidden;
	transition: opacity .15s ease;
}

.ideahub-child-oc-qty.is-syncing {
	opacity: .55;
	pointer-events: none;
}

.ideahub-child-oc-qty__btn {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4c2543;
	font-size: 17px;
	line-height: 32px;
	cursor: pointer;
	transition: background-color .15s ease;
}

.ideahub-child-oc-qty__btn:hover,
.ideahub-child-oc-qty__btn:focus-visible {
	background-color: #f4eef3;
}

/* The theme styles every text input as a full-width underlined field;
   undo that for this compact box. */
#ideahub-child-oc-cart .ideahub-child-oc-qty input.ideahub-child-oc-qty__input {
	flex: none;
	width: 40px !important;
	height: 32px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: #4c2543;
	font-size: 14px;
	font-weight: 600;
	line-height: 32px !important;
	text-align: center;
	outline: none;
}

#ideahub-child-oc-cart .ideahub-child-oc-qty input.ideahub-child-oc-qty__input:focus {
	background-color: #f7f3f6 !important;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .ideahub-child-oc-item-meta .eltdf-sc-dropdown-item-price {
	margin: 0;
}

.ideahub-child-oc-cart .eltdf-sc-dropdown .ideahub-child-oc-item-meta .eltdf-sc-dropdown-item-price .amount {
	font-size: 14px;
	font-weight: 600;
	color: #4c2543;
}

/* Quantity errors at the top of the panel. */
.ideahub-child-oc-cart__notices {
	padding: 16px 24px 0;
}

.ideahub-child-oc-cart__notices:empty {
	display: none;
}

.ideahub-child-oc-cart__notices :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	margin: 0;
	font-size: 14px;
}

/* The panel's quantity number opens the quantity popup. */
#ideahub-child-oc-cart .ideahub-child-oc-qty input.ideahub-child-oc-qty__input {
	cursor: pointer;
}

#ideahub-child-oc-cart .ideahub-child-oc-qty input.ideahub-child-oc-qty__input:hover {
	background-color: #f7f3f6 !important;
}

/* ==========================================================================
   Quantity popup (typing a quantity in the cart panel).
   ========================================================================== */
.ideahub-child-qty-popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100010; /* above the cart panel */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.ideahub-child-qty-popup[hidden] {
	display: none;
}

.ideahub-child-qty-popup__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(32, 16, 28, .5);
	opacity: 0;
	transition: opacity .2s ease;
}

.ideahub-child-qty-popup__box {
	position: relative;
	width: 100%;
	max-width: 340px;
	padding: 28px 24px 24px;
	box-sizing: border-box;
	border-radius: 18px;
	background-color: #fff;
	box-shadow: 0 24px 60px rgba(32, 16, 28, .3);
	text-align: center;
	opacity: 0;
	transform: translateY(12px) scale(.96);
	transition: opacity .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.ideahub-child-qty-popup.is-open .ideahub-child-qty-popup__backdrop,
.ideahub-child-qty-popup.is-open .ideahub-child-qty-popup__box {
	opacity: 1;
}

.ideahub-child-qty-popup.is-open .ideahub-child-qty-popup__box {
	transform: none;
}

.ideahub-child-qty-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #4c2543;
	font-size: 24px;
	line-height: 32px;
	cursor: pointer;
}

.ideahub-child-qty-popup__close:hover {
	background-color: #f4eef3;
}

.ideahub-child-qty-popup__label {
	margin: 0 0 4px;
	color: #949394;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ideahub-child-qty-popup__title {
	margin: 0 24px 18px;
	color: #4c2543;
	line-height: 1.35;
}

.ideahub-child-qty-popup__notices {
	margin: 0 0 16px;
	text-align: left;
}

.ideahub-child-qty-popup__notices:empty {
	display: none;
}

.ideahub-child-qty-popup__notices :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	margin: 0;
	font-size: 14px;
}

.ideahub-child-qty-popup__field {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ideahub-child-qty-popup__step {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #f4eef3;
	color: #4c2543;
	font-size: 24px;
	line-height: 48px;
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease;
}

.ideahub-child-qty-popup__step:hover {
	background-color: #eadfe8;
}

.ideahub-child-qty-popup__step:active {
	transform: scale(.94);
}

/* Override the theme's full-width underlined text inputs. */
.ideahub-child-qty-popup .ideahub-child-qty-popup__field input.ideahub-child-qty-popup__input {
	width: 96px !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid #e6dfe5 !important;
	border-radius: 14px !important;
	box-shadow: none !important;
	background: #fff !important;
	color: #4c2543;
	font-size: 26px;
	font-weight: 700;
	line-height: 52px !important;
	text-align: center;
	outline: none;
	transition: border-color .15s ease;
}

.ideahub-child-qty-popup .ideahub-child-qty-popup__field input.ideahub-child-qty-popup__input:focus {
	border-color: #4c2543 !important;
}

.ideahub-child-qty-popup__hint {
	margin: 12px 0 0;
	color: #949394;
	font-size: 13px;
}

.ideahub-child-qty-popup__actions {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.ideahub-child-qty-popup__actions button {
	flex: 1;
	min-height: 46px;
	padding: 10px 16px;
	border-radius: 3em;
	font-family: "Pathway Extreme", "Hanuman", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.ideahub-child-qty-popup__cancel {
	border: 2px solid #4c2543;
	background: transparent;
	color: #4c2543;
}

.ideahub-child-qty-popup__cancel:hover {
	background-color: #4c2543;
	color: #fff;
}

.ideahub-child-qty-popup__ok {
	border: 2px solid #ff5b2e;
	background-color: #ff5b2e;
	color: #fff;
}

.ideahub-child-qty-popup__ok:hover {
	background-color: #ff7250;
	border-color: #ff7250;
}

.ideahub-child-qty-popup.is-saving .ideahub-child-qty-popup__ok {
	opacity: .6;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.ideahub-child-qty-popup__box,
	.ideahub-child-qty-popup__backdrop {
		transition: none;
	}
}

/* ==========================================================================
   Cart page quantity box, styled like the "Your Cart" panel's:
   one rounded pill with - / number / + (the theme draws orange squares
   stacked beside a grey box). Same markup, so the theme's +/- still work.
   Selectors match the parent's specificity and load after it.
   ========================================================================== */
.woocommerce-cart-form .eltdf-quantity-buttons.quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e6dfe5;
	border-radius: 3em;
	background-color: #fff;
	overflow: hidden;
}

.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-minus,
.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-plus {
	position: static;
	order: 0;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: #4c2543;
	font-size: 13px;
	line-height: 40px;
	transition: background-color .15s ease;
}

.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-minus {
	order: 1;
}

.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-input {
	order: 2;
	width: 48px;
	height: 40px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: #4c2543;
	font-size: 15px;
	font-weight: 600;
	line-height: 40px;
}

.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-plus {
	order: 3;
}

.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-minus:hover,
.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-plus:hover {
	background-color: #f4eef3;
}

.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-input:focus {
	background-color: #f7f3f6;
}

/* Read-only once offcanvas-cart.js runs: clicking opens the quantity popup. */
.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-input[readonly] {
	cursor: pointer;
}

.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-input[readonly]:hover {
	background-color: #f7f3f6;
}

/* Phones: the cart table is tight, so a more compact pill. */
@media only screen and (max-width: 680px) {
	.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-minus,
	.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-plus {
		width: 28px;
		height: 34px;
		font-size: 11px;
		line-height: 34px;
	}

	.woocommerce-cart-form .eltdf-quantity-buttons.quantity .eltdf-quantity-input {
		width: 30px;
		height: 34px;
		font-size: 14px;
		line-height: 34px;
	}
}
