/* Conversion Pro — product page (module 5) */

/* Product data section (Description / Additional Information / Reviews).
   Desktop (>480px): converted from Motta's native per-row accordion into
   a single horizontal tab strip — one shared content area, only the
   active tab's content shown. product.js builds the strip from each
   panel's own `.motta-dropdown__title` text, hides that per-panel
   trigger, and marks the active panel with `.cvp-tab-active`; this
   stylesheet just reacts to that class, no click handling here.
   Mobile (<=480px): reverts to Motta's original stacked accordion.
   `.motta-dropdown__title` keeps the 44px/14px fix from the previous
   pass (confirmed via getBoundingClientRect() to be the real visible
   header — `.motta-tabs-heading li a` is a separate, zero-height
   duplicate Motta also keeps in the DOM and was NOT what's on screen).
   The outer `.woocommerce-Tabs-panel` padding bug — 21px 31px applied
   unconditionally even while collapsed, inflating each row to ~88px
   instead of matching Add to Cart's 44px — is fixed by moving that
   padding onto `.motta-dropdown__content` instead, so it only shows up
   once a row is actually expanded. */
.motta-dropdown__title {
	height: 44px !important;
	line-height: 44px !important;
	padding: 0 20px !important;
	font-size: 14px !important;
}
.woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel {
	padding: 0 !important;
}
.woocommerce-tabs.wc-tabs-wrapper .motta-dropdown__content {
	padding: 21px 31px;
}

.cvp-product-tabs-strip {
	display: none;
}

@media ( min-width: 481px ) {
	.woocommerce-tabs.wc-tabs-wrapper .motta-dropdown__title {
		display: none !important;
	}
	.woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel {
		border: none !important;
		margin: 0 !important;
	}
	.woocommerce-tabs.wc-tabs-wrapper .motta-dropdown__content {
		display: none;
	}
	.woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel.cvp-tab-active .motta-dropdown__content {
		display: block;
	}

	.cvp-product-tabs-strip {
		display: flex;
		border-bottom: 2px solid #eee;
		margin-bottom: 4px;
	}
	/* Height pinned to match Add to Cart's own 44px (same convention used
	   throughout this file for the accordion title, offers-banner toggle,
	   etc.) — the original 12px top/bottom padding made each tab taller
	   than the button above it. */
	.cvp-product-tabs-strip__tab {
		flex: 1;
		background: none;
		border: none;
		border-bottom: 2px solid transparent;
		margin-bottom: -2px;
		height: 44px;
		line-height: 44px;
		padding: 0 8px;
		font-size: 14px;
		font-weight: 600;
		font-family: inherit;
		color: #666;
		cursor: pointer;
		white-space: nowrap;
		text-align: center;
	}
	.cvp-product-tabs-strip__tab.is-active {
		color: #C4080E;
		border-bottom-color: #C4080E;
	}

	/* Hover affordance — inactive tabs otherwise read as plain text until
	   clicked (confirmed feedback: "how do we make clear these are
	   clickable"). Motta's own generic button hover style already fills
	   the background red on :hover (confirmed live — not something this
	   stylesheet sets); the only thing missing was legible text on top of
	   that fill, since our color-only rule was losing to it. Forcing
	   white here (not touching background) fixes the red-on-red text.
	   Skipped on touch devices since :hover there just means "last
	   tapped". */
	@media ( hover: hover ) {
		.cvp-product-tabs-strip__tab:not( .is-active ):hover {
			color: #fff !important;
		}
	}
}

/* Wishlist button (WCBoost Wishlist) — relocated via JS (product.js) from
   its default spot below the trust icons into the empty gap in the
   quantity row, next to "Available in stock" (confirmed marked-up on a
   screenshot). This just styles it to sit correctly once moved there;
   the actual move is a DOM reparent, not achievable in CSS alone.
   margin-top: 0 explicitly resets a stale 24px top margin Motta puts on
   .product-featured-icons for its ORIGINAL position (below the price) —
   confirmed live via getComputedStyle() that this leftover margin was
   still applied after the JS move, pushing the button visibly out of
   vertical alignment with "Available in stock" despite this row already
   having align-items: center. */
.motta-quantity-wrapper .product-featured-icons {
	margin: 0 0 0 auto !important;
	order: 2;
}
.motta-quantity-wrapper .stock {
	order: 3;
	/* !important: confirmed live that a more specific Motta/WooCommerce
	   rule was winning over this plain margin-left, leaving "Wishlist" and
	   "Available in stock" touching with zero gap. */
	margin-left: 12px !important;
}

/* Gallery corrections: strict 1:1 square main image — a deliberate
   exception to the 4:5 ratio used for grid cards elsewhere (category/
   homepage/cross-sell — see product-card.css), scoped only to the
   product detail page's own gallery. Thumbnails get the same square
   treatment for visual consistency with the main image above them.
   Corners: previously hard square (border-radius: 0) to match the
   reference exactly; softened to a small rounded corner per explicit
   request ("should not have sharp square corners") — the aspect-ratio/
   overflow:hidden container is what makes the radius actually visible
   on the image itself, not just a CSS property with no effect. */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery img {
	border-radius: 10px !important;
	box-shadow: none !important;
	border: none !important;
}
/* Confirmed live: .woocommerce-product-gallery__wrapper has no position
   of its own by default (position:static), so the gallery-video overlay
   relied on product.js setting position:relative at runtime — which
   only happens after the gallery-ready event/window-load fires. Set
   here directly so it's guaranteed at CSS-parse time, not dependent on
   JS timing. */
.woocommerce-product-gallery__wrapper {
	position: relative;
}
/* The badge (module 11) needs a DIFFERENT positioned ancestor than the
   video overlay above: .woocommerce-product-gallery__wrapper turned out
   to actually be Flexslider's own internal slide track (confirmed live
   — its child elements are laid out side by side, one per gallery
   image, and Flexslider shifts that track horizontally to show
   whichever slide is "active"). A badge appended into it — even after
   this element gained position:relative — inherited that
   horizontal-track layout and landed thousands of pixels off-screen,
   wherever the *last* slide happened to sit, not on top of the visible
   image. .woocommerce-product-gallery is the actual stable, non-sliding
   outer box (holds the slide track + the thumbnail row below it), so
   the badge is moved into this one instead by product.js (same
   gallery-ready-event / window-load pattern already used for the video
   thumbnails), landing at its top edge — which is the top of the main
   image, since the thumbnail row sits below it. */
.woocommerce-product-gallery {
	position: relative;
}
/* Main gallery wishlist icon (.motta-product-gallery .product-featured-
   icons) — confirmed via getComputedStyle() this is Motta's own default
   hover-reveal treatment (opacity: 0 at rest, theme CSS flips it to 1 on
   :hover of the gallery). Its top/right/bottom/left values don't change
   on hover, only opacity does, so forcing opacity: 1 here keeps it at the
   exact same position (already right-anchored) while making it always
   visible per explicit request, instead of only appearing on hover. */
.single-product .motta-product-gallery .product-featured-icons {
	opacity: 1 !important;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.flex-control-thumbs li img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px !important;
}

/* True 2-column layout (wireframe-confirmed) — CSS Grid override collapses
   Motta's native 3-column flex split (image | title+meta | price+cart)
   into two visual columns: the gallery on the left, with the title+meta
   block stacked directly above the price+cart block on the right. Same
   three DOM siblings as the theme renders natively — this only regrids
   them, no template edits — which also happens to solve the earlier
   "gallery renders smaller than the reference" issue (confirmed via
   getBoundingClientRect() that the reference's main image is ~740px vs
   our previous ~460px on the same viewport): the left grid track gets a
   fixed larger width, and WooCommerce's Flexslider measures that width on
   load to size its slides, enlarging the image itself too. */
.single-product .product-gallery-summary {
	display: grid !important;
	grid-template-columns: 620px 1fr;
	column-gap: 40px;
	row-gap: 0;
	align-items: start;
}
.single-product .product-gallery-summary > .motta-product-gallery,
.single-product .product-gallery-summary > .images.woocommerce-product-gallery {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 100% !important;
	max-width: none !important;
	flex: none !important;
}
.single-product .product-gallery-summary > .product-summary-wrapper {
	grid-column: 2;
	grid-row: 1;
	width: 100% !important;
	flex: none !important;
	min-width: 0 !important;
}
.single-product .product-gallery-summary > .summary.entry-summary {
	grid-column: 2;
	grid-row: 2;
	width: 100% !important;
	flex: none !important;
}
/* v0.19.47 — the padding-left:0 zeroing below (needed on desktop so the
   40px column-gap is the only space between image and content — see the
   original comment preserved here) was previously unscoped, so it also
   fired on mobile, where there is no column-gap to compensate for and no
   grid column sitting to its left. That silently stripped this block's
   own left inset while its right padding stayed intact — the exact
   asymmetric "gap on the right, none on the left" reported live on a
   phone screenshot. Scoped to the same >782px breakpoint the 2-column
   grid itself only applies at, so mobile keeps Motta's native symmetric
   padding untouched. */
@media ( min-width: 783px ) {
	.single-product .product-gallery-summary > .product-summary-wrapper {
		/* Motta gives this block its own 25px left padding by default —
		   confirmed via getComputedStyle() it doesn't match
		   .summary.entry-summary's 56px, so title and price/cart visibly
		   sit at two different x-positions despite sharing the same grid
		   column. Zeroed here so the 40px column-gap above is the only
		   horizontal space between image and content, and title/price
		   line up exactly. */
		padding-left: 0 !important;
	}
	.single-product .product-gallery-summary > .summary.entry-summary {
		padding-left: 0 !important;
	}
}
@media ( max-width: 782px ) {
	.single-product .product-gallery-summary {
		grid-template-columns: 1fr;
	}
	.single-product .product-gallery-summary > .motta-product-gallery,
	.single-product .product-gallery-summary > .images.woocommerce-product-gallery {
		grid-column: 1;
		grid-row: 1;
	}
	.single-product .product-gallery-summary > .product-summary-wrapper {
		grid-column: 1;
		grid-row: 2;
	}
	.single-product .product-gallery-summary > .summary.entry-summary {
		grid-column: 1;
		grid-row: 3;
	}
	/* Motta's own breadcrumb trail (nav.woocommerce-breadcrumb, sitting
	   above the gallery/title block in a small font) — confirmed this is
	   the theme's default element, not something Conversion Pro renders.
	   Hidden on mobile only, per explicit confirmation, to declutter the
	   space above the title; left untouched on desktop. product.css only
	   loads on single product pages, so no need to scope further. */
	.single-product nav.woocommerce-breadcrumb {
		display: none;
	}
}

/* Title sized down from the reference's oversized default. */
.product_title.entry-title {
	font-size: 22px !important;
	line-height: 1.3;
}

/* Gap between the gallery/summary block and the Description/Additional
   Info/Reviews tabs below — confirmed via getBoundingClientRect() this
   was Motta's own .product-gallery-summary margin-bottom (33px, not
   anything Conversion Pro set), read as unwanted empty space once the
   tabs no longer auto-open (no content filling that area on load).
   Reduced to a tighter, still-breathing gap. */
.single-product .product-gallery-summary {
	margin-bottom: 12px;
}

/* Price row (price / MRP strikethrough / discount) — confirmed via
   getComputedStyle() that Motta renders .price and .price__save as
   separate display:block lines, pushing "Save: ₹X (Y%)" onto its own
   row below the price. Forced into one flex row here; wraps only if a
   narrow viewport genuinely can't fit it (safety net, not the intended
   default). Price bold, MRP bumped up from a hard-to-read 14px, and the
   "Save: ₹X,XXX.XX" portion hidden in favor of a plain "Y% Off" in the
   same green already used for the offers banner (#20994C) — text
   rewrite from "(70%)" to "Y% Off" happens in product.js, since that's
   real server-rendered text content, not something CSS can reformat. */
.single-product .summary.entry-summary .price {
	display: flex !important;
	align-items: baseline !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	margin-bottom: 8px;
	/* Confirmed via getComputedStyle(): Motta wraps .price in a flex row
	   (.motta-price-stock) which shrink-wraps its only child to
	   content width (297px of the ~480px actually available) instead of
	   stretching it — that narrow box was the real reason ins/del/save
	   wrapped to a second line, not a losing display:flex specificity
	   battle. Claim the full row so there's room for all three pieces. */
	flex: 1 1 100% !important;
	width: 100% !important;
}
.single-product .summary.entry-summary .price ins {
	font-size: 22px !important;
	/* Confirmed via getComputedStyle(): Motta sets ins { width: 100% }
	   directly (not just via flex-basis), and since flex-basis:auto
	   falls back to the width property, that alone stretched ins to the
	   full 480px row — the actual root cause of the remaining 2-line
	   wrap (del + price__save had nowhere left to sit). ins only needs
	   to be as wide as its own text. */
	width: auto !important;
	flex: 0 1 auto !important;
}
.single-product .summary.entry-summary .price del {
	width: auto !important;
	flex: 0 1 auto !important;
}
.single-product .summary.entry-summary .price .price__save {
	width: auto !important;
	flex: 0 1 auto !important;
}
.single-product .summary.entry-summary .price ins {
	font-weight: 700;
	text-decoration: none;
}
.single-product .summary.entry-summary .price del {
	font-size: 16px;
	font-weight: 400;
	color: #888;
}
.single-product .summary.entry-summary .price .price__save {
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	color: #20994C;
}
.single-product .summary.entry-summary .price .price__save .text,
.single-product .summary.entry-summary .price .price__save > .woocommerce-Price-amount {
	display: none;
}
.single-product .summary.entry-summary .price .price__save .percentage {
	color: #20994C;
}

/* Add to Cart / Buy Now — confirmed via getComputedStyle() both render
   at a fixed 480px width inside a flex-wrap:wrap form, which is what
   stacked them onto separate rows (each already fills the full row
   width on its own). Split to ~50/50 with a gap so they share one row,
   plus a soft shadow so the pair reads as the page's primary action
   instead of sitting flush with everything around it. buyNow's native
   12px margin-top (a stacked-layout leftover) is reset so both buttons
   align on the same baseline now that they're side by side. */
.single-product form.cart {
	/* v0.19.47 — column-gap/row-gap only do anything on a flex or grid
	   container; this rule relied on Motta's own markup already being
	   display:flex here, which held on desktop but not reliably on
	   mobile (confirmed live via a phone screenshot: Buy Now and Add to
	   Cart rendering as two plain stacked full-width blocks with no gap
	   control at all, not the intended 50/50 row) — the 50/50 flex-basis
	   split below then has nothing to act on and both buttons fall back
	   to normal block stacking. Forcing flex/wrap here directly removes
	   that dependency on the theme's own responsive behavior. */
	display: flex !important;
	flex-wrap: wrap !important;
	column-gap: 12px;
	row-gap: 16px;
}
.single-product form.cart .single_add_to_cart_button.button.alt,
.single-product form.cart .motta-buy-now-button {
	flex: 1 1 calc(50% - 6px) !important;
	width: auto !important;
	margin-top: 0 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Reported live: for variable products (Design/Size swatches etc.) inside
   Motta's Quick View modal specifically, the two buttons read as touching/
   overlapping with zero gap — confirmed via getComputedStyle() that this
   is a real, separate case from the simple-product one above, not the same
   bug recurring. Root cause: Motta's own theme CSS (style.css) explicitly
   forces `.quick-view-panel .has-buy-now form.cart { display: block }`
   (that theme selector's own text — the live modal wrapper's actual class
   is `.quick-view-modal`, confirmed via the DOM, which is what the rule
   below targets)
   (and the same for its `.woocommerce-variation-add-to-cart` wrapper on
   variable products), overriding the flex layout the 50/50-split rule
   above depends on — so its row-gap: 16px has nothing to act on (gap only
   works in flex/grid) and the buttons fall back to plain block stacking
   with buyNow's own margin-top already zeroed out by the rule above,
   landing them flush against each other. Rather than fight the theme's own
   deliberate block-layout choice for this specific variable+Quick-View
   case (which may exist for a reason not visible from here), this adds
   back a plain margin — which works identically in block OR flex layout —
   scoped to the theme's own exact selector so it only fires where that
   override is actually in effect. */
.quick-view-modal .has-buy-now form.cart .motta-buy-now-button {
	margin-top: 12px !important;
}

/* v0.19.49 — reported live: Buy Now / Add to Cart still not aligned inside
   Quick View even after the .single-product form.cart display:flex fix
   above. Root cause is exactly the one already documented directly above
   this rule: the theme's own `.quick-view-panel .has-buy-now form.cart {
   display: block }` selector carries 3 class selectors' worth of
   specificity, beating `.single-product form.cart`'s 1 — every !important
   in the world doesn't help once a higher-specificity !important rule
   exists to out-rank it. That's also almost certainly why the fix directly
   above settled for a plain margin instead of fighting display at all.
   Matching the theme's own confirmed real selector (.quick-view-modal, not
   the unconfirmed .quick-view-panel text from its own source) at equal
   specificity, declared after it in this stylesheet, wins the cascade tie
   and actually restores the flex row inside Quick View too. Also covers
   .woocommerce-variation-add-to-cart directly, since that's the wrapper
   Motta swaps in once a variable product's swatches are selected — a
   possible second place the same block-layout override could reassert
   itself after this rule's own initial paint. */
.quick-view-modal .has-buy-now form.cart,
.quick-view-modal .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-wrap: wrap !important;
	column-gap: 12px;
	row-gap: 16px;
}
.quick-view-modal .has-buy-now form.cart .single_add_to_cart_button.button.alt,
.quick-view-modal .has-buy-now form.cart .motta-buy-now-button {
	flex: 1 1 calc(50% - 6px) !important;
	width: auto !important;
}

/* Gallery video thumbnails (strategy doc, module 5) — appended via
   product.js alongside the existing photo thumbnails in the same
   .flex-control-thumbs row, so they need to match that row's sizing;
   the play-icon overlay is what distinguishes them from photos, per
   the confirmed spec ("small play-icon overlay... distinguish from
   photos"). */
.cvp-gallery-video-thumb-link {
	position: relative;
	display: block;
}
.cvp-gallery-video-thumb-link img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px !important;
	display: block;
}
.cvp-gallery-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Optical nudge — a triangle glyph centered by width/height alone
	   reads slightly left-of-center to the eye. */
	padding-left: 2px;
}
/* Video popup — explicit user override of the original "inline within
   the gallery frame" spec, after the inline iframe read as slow to
   load. Reuses the same fixed-overlay pattern as
   .cvp-visualizer-popup (dark backdrop, centered white-edged panel,
   bottom-sheet on mobile) for visual consistency across the plugin's
   popups, rather than inventing a new modal style. A spinner shows
   until the iframe's own load event fires, so the popup opens
   instantly and the perceived wait is "video is loading" rather than
   "nothing happened". */
.cvp-video-popup {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 100010;
	align-items: center;
	justify-content: center;
}
.cvp-video-popup.is-open {
	display: flex;
}
.cvp-video-popup__panel {
	position: relative;
	width: 720px;
	max-width: 92vw;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}
.cvp-video-popup__panel iframe {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.cvp-video-popup__panel.is-loaded iframe {
	opacity: 1;
}
.cvp-video-popup__spinner {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cvp-video-popup__spinner::after {
	content: '';
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	animation: cvp-video-spin 0.8s linear infinite;
}
.cvp-video-popup__panel.is-loaded .cvp-video-popup__spinner {
	display: none;
}
@keyframes cvp-video-spin {
	to {
		transform: rotate(360deg);
	}
}
.cvp-video-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
@media ( max-width: 480px ) {
	.cvp-video-popup__panel {
		width: 100%;
	}
}

/* "Pairs well with" cross-sell carousel — reuses the exact shared card
   component + horizontal-scroll-row wrapper already built for the
   category grid and homepage sections (product-card.css / homepage.css),
   one component per the standing "not rebuilt per section" rule, not a
   fourth copy of the same card styling. */
/* "Pairs well with" and "Customer Feedback" both reuse the shared
   .cvp-home-section component (built for the homepage, where 32px
   padding and a larger default h2 are appropriate for a full page of
   widely-spaced sections). Stacked back-to-back on the narrower product
   page, that padding/heading size read as an oversized, uneven jump
   compared to the tight 16px rhythm used just above (offers banner /
   recent purchases / delivery info / trust icons) — confirmed feedback:
   "uneven spaces... make it aesthetic" and "headings have very large
   font". Scoped to .single-product only, so the actual homepage's
   section spacing/heading size is untouched. */
.single-product .cvp-home-section {
	padding: 20px 0;
}
.single-product .cvp-home-section h2 {
	font-size: 17px;
	margin-bottom: 12px;
}
.cvp-pairs-well-with {
	border-top: 1px solid #eee;
}
/* "View all" (reference diagram) — reuses .cvp-home-section's existing
   h2 margin/color, just adds the flex header row + link on top rather
   than restyling the shared homepage section component. */
.cvp-pairs-well-with .cvp-home-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.cvp-pairs-well-with .cvp-home-section__header h2 {
	margin-bottom: 0;
}
.cvp-home-section__viewall {
	font-size: 13px;
	font-weight: 600;
	color: #C4080E;
	text-decoration: underline;
	white-space: nowrap;
}

.cvp-visualizer-buttons {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.cvp-visualizer-btn {
	flex: 1;
	background: #fff;
	border: 1px solid #C4080E;
	color: #C4080E;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

/* Explicit margin reset: this renders as a plain <p>, which was picking
   up the browser/theme default paragraph margin (~1em top/bottom) —
   an unintentional, inconsistent gap next to the other stacked blocks
   here, which all use small explicit margins instead. */
.cvp-recent-purchases {
	font-size: 13px;
	color: #C4080E;
	margin: 0 0 16px;
}

/* Add to Cart / Buy Now (module 5, brand-match pass) — the reference has
   Add to Cart as a white/outlined secondary action and Buy Now as the
   solid primary CTA; Motta's default theme markup has this reversed
   (Add to Cart solid, Buy Now ghost/outline) on stickme.in, confirmed via
   getComputedStyle() on both sites. Scoped to the main product summary
   form only — the cross-sell/grid overlay "Add to Cart" buttons are a
   separate component (product-card.css) and keep their own treatment. */
.single_product .single_add_to_cart_button.button.alt {
	background: #fff !important;
	border: 1.5px solid #C4080E !important;
	color: #C4080E !important;
}
.single_product .motta-buy-now-button {
	background: #D91C22 !important;
	border-color: #D91C22 !important;
	color: #fff !important;
}

/* Fixed 960x400 (2.4:1) upload size, confirmed and documented directly
   under the image field on Conversion Pro → Campaign Banner — 2x the
   480px right-column width for a sharp/retina desktop display, same
   ratio holding on mobile since it's just width:100% underneath.
   aspect-ratio + object-fit:cover here are a safety net, not the primary
   mechanism: if an admin uploads an image at the wrong ratio anyway,
   this crops it to the intended box shape (centered) instead of
   letting it stretch/distort or throw off the page's layout height. */
.cvp-campaign-banner {
	display: block;
	margin-bottom: 12px;
}
.cvp-campaign-banner img {
	width: 100%;
	aspect-ratio: 4 / 1;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}

.cvp-visualizer-popup {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100010;
	align-items: center;
	justify-content: center;
}
.cvp-visualizer-popup.is-open {
	display: flex;
}
.cvp-visualizer-popup__panel {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 380px;
	max-width: 90vw;
	position: relative;
}
.cvp-visualizer-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
}

.cvp-size-diagram__wall {
	width: 100%;
	height: 80px;
	border: 2px dashed #ccc;
	margin: 12px 0;
	position: relative;
	display: flex;
	align-items: flex-end;
}
.cvp-size-diagram__sticker {
	height: 100%;
	background: #C4080E;
	opacity: 0.6;
	transition: width 0.15s ease;
}

#cvp-waitlist-contact {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin: 12px 0;
	box-sizing: border-box;
}
#cvp-waitlist-submit {
	width: 100%;
	background: #D91C22;
	color: #fff;
	border: none;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
}

/* Responsive: bottom sheet on mobile (confirmed) */
@media ( max-width: 480px ) {
	.cvp-visualizer-popup {
		align-items: flex-end;
	}
	.cvp-visualizer-popup__panel {
		width: 100%;
		border-radius: 12px 12px 0 0;
	}
}

/* "3 OFFERS" banner (strategy doc, module 5; recolored to match
   www.buy.stickme.in exactly) — a solid green header bar (#20994C, the
   reference's own savings-green, kept as an intentional exception to the
   red/black/white brand palette per explicit confirmation) with a plain
   white body below holding the always-visible preview line + expandable
   list. Pulls the exact same eligible-offers data the cart's "Apply
   Offers" drawer shows (CVP_Coupons_Drawer::get_eligible_offers_list()). */
.cvp-offers-banner {
	border: 2px solid #20994C;
	background: #fff;
	border-radius: 8px;
	margin: 16px 0;
	overflow: hidden;
}
/* !important: same recurring fix needed everywhere in this plugin for a
   bare <button> — Motta applies its own generic button chrome otherwise
   (confirmed live — see #cvp-otp-close / #cvp-close-offers /
   #cvp-close-filters for the same issue and fix pattern). Here the
   toggle itself IS the green header bar, not a button ON a banner. */
#cvp-offers-banner-toggle {
	width: 100% !important;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: #20994C !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 14px !important;
	margin: 0 !important;
	min-width: 0 !important;
	height: 44px !important;
	line-height: 44px !important;
	cursor: pointer;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #fff !important;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
#cvp-offers-banner-toggle:hover,
#cvp-offers-banner-toggle:focus,
#cvp-offers-banner-toggle:active {
	background: #20994C !important;
	color: #fff !important;
}
.cvp-offers-banner__seemore {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	color: #fff;
}
.cvp-offers-banner__chevron {
	font-size: 12px;
	line-height: 1;
}
.cvp-offers-banner__body {
	padding: 12px 14px;
}
.cvp-offers-banner__preview {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #000;
}
.cvp-offers-banner__preview-icon {
	color: #20994C;
	font-size: 14px;
}
.cvp-offers-banner__list {
	border-top: 1px solid #eee;
	margin-top: 10px;
	padding-top: 8px;
}
/* v0.19.47 — reported live against a screenshot of the expanded list
   ("all dis-organised... let them be neat and organised"): the icon sat
   flush against the text with no visual container so it read as a stray
   mark rather than a deliberate part of the row, the headline+code pair
   could wrap onto two ragged lines with no consistent left edge, and
   there was no reliable rhythm between rows. Rebuilt around the same
   circular icon-chip language already used elsewhere on this page
   (.cvp-delivery-info__icon-wrap) so it reads as one consistent visual
   system, with a fixed-width icon column so every headline/description
   lines up on the same left edge regardless of icon presence. */
.cvp-offers-banner__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 8px;
	margin: 0 -8px;
	border-bottom: 1px solid #eee;
	border-radius: 6px;
	/* Hover affordance per explicit request — each coupon row now reads
	   as an interactive/tappable item, not flat text. */
	transition: background-color 0.15s ease;
	cursor: default;
}
.cvp-offers-banner__item:hover {
	background: #F3FAF5;
}
.cvp-offers-banner__item:last-child {
	border-bottom: none;
}
/* Coupon icon: reuses the plain green "%" savings badge already used on
   the cart/checkout page (CVP_Product_Front::get_savings_badge_svg(), an
   inline SVG, not an <img>). Now sits inside a fixed circular chip
   (same 42px-scaled-down pattern as .cvp-delivery-info__icon-wrap above)
   instead of floating loose against the text, and that fixed 28px column
   width is what keeps every row's headline starting at the same x
   position, icon or not. */
.cvp-offers-banner__item-icon {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	background: #E6F5EA;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cvp-offers-banner__item-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}
.cvp-offers-banner__item-body {
	flex: 1 1 auto;
	min-width: 0;
	/* Aligns the headline's own text baseline with the icon chip's
	   vertical center (28px chip, ~19px line-height at 13px/1.4 —
	   confirmed close enough by eye that no icon needs top-margin
	   nudging per row). */
	padding-top: 4px;
}
.cvp-offers-banner__item-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	row-gap: 6px;
}
.cvp-offers-banner__headline {
	font-weight: 600;
	font-size: 13px;
	color: #000;
	margin-right: 0;
}
.cvp-offers-banner__code {
	display: inline-block;
	background: #20994C;
	color: #fff;
	/* Bumped from 11px and given a monospace stack + letter-spacing —
	   confirmed complaint was that codes (especially longer ones like
	   "welcometostickme") were hard to read at the old size/tracking. */
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 3px 10px;
	border-radius: 10px;
	vertical-align: middle;
	line-height: 1.5;
}
.cvp-offers-banner__desc {
	font-size: 12px;
	color: #666;
	margin: 4px 0 0;
}

/* Delivery info line (reference: circular icon badge with a small green
   checkmark corner accent per row), sitting between the recent-purchases
   stat and the trust icon row. Centered and bumped up per explicit
   request ("has to be centered - make it look more prominent") — was
   left-aligned at the same weight as the surrounding body text before,
   easy to miss in the stack of info blocks above the trust icons. */
.cvp-delivery-info {
	margin: 0 0 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
	column-gap: 28px;
	row-gap: 8px;
	padding: 10px 12px;
	background: #F7FBF8;
	border: 1px solid #DCEFE1;
	border-radius: 8px;
}
.cvp-delivery-info__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #000;
	white-space: nowrap;
}
.cvp-delivery-info__icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #E6F5EA;
	flex: 0 0 42px;
}
/* Real SVG asset now (was an emoji glyph) — sized via width/height
   rather than font-size since it's an <img>, not a text character. */
.cvp-delivery-info__icon {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
}
.cvp-delivery-info__badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #20994C;
	color: #fff;
	font-size: 10px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Trust icon row (strategy doc, module 5; recolored to match the
   reference exactly) — large red icon stacked above its label, one
   column per item spread evenly across the row, matching the
   reference's icon-over-text treatment rather than a small inline
   icon+text row. */
.cvp-trust-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 16px;
	padding: 0;
}
.cvp-trust-icons__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #C4080E;
	flex: 1 1 0;
	text-align: center;
	white-space: nowrap;
}
/* Real SVG assets now (were emoji glyphs) — sized via width/height
   rather than font-size since these are <img> tags, not text
   characters. The source files are full-color illustrations (not
   monochrome/currentColor-friendly), so — unlike the label text below,
   which stays brand red via .cvp-trust-icons__item's color — the icons
   keep their own supplied colors rather than being recolored via CSS. */
.cvp-trust-icons__icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
	display: block;
}
/* Second line under "Easy to Install" only ("Just Peel & Stick") — the
   other three items stay single-line (confirmed). Lighter weight/size
   and a neutral color distinguish it from the main label above it. */
.cvp-trust-icons__subtitle {
	font-size: 11px;
	font-weight: 400;
	color: #666;
	white-space: normal;
}
@media ( max-width: 480px ) {
	/* Flex-wrap was letting each item claim a full row on narrow phones
	   (confirmed: 4 items stacking one-per-line, eating a lot of vertical
	   space). A fixed 2-column grid keeps it to 2 compact rows regardless
	   of label length, instead of relying on flex-basis/min-width to
	   guess how many fit per row. */
	.cvp-trust-icons {
		display: grid;
		grid-template-columns: repeat( 2, 1fr );
		row-gap: 14px;
		column-gap: 10px;
	}
	.cvp-trust-icons__icon {
		width: 26px;
		height: 26px;
	}
	.cvp-trust-icons__item {
		font-size: 11px;
		white-space: normal;
	}
	.cvp-trust-icons__subtitle {
		font-size: 10px;
	}
}

/* Customer Feedback (strategy doc, module 5) — always-visible review
   teaser cards (reference diagram), styled plain per the doc's "white
   background, red accents, clean cards" note rather than copied from
   any other site's heavier card treatment. Full review list/detail
   still lives in WooCommerce's native Reviews tab further down the
   page; this is a highlight reel, not a replacement for it. */
.cvp-feedback-card {
	flex: 0 0 200px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 12px;
	scroll-snap-align: start;
}
/* Alternating light-red tint per explicit request ("looks too dull all
   red stars.. for each alternate feedback - background - light red") —
   every other card gets a soft red-tinted background instead of flat
   white, breaking up the row without introducing a new accent color. */
.cvp-feedback-card:nth-child(even) {
	background: #FBEEEE;
	border-color: #F3D9D9;
}
.cvp-feedback-card__image {
	margin: -12px -12px 8px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}
.cvp-feedback-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cvp-feedback-card__rating {
	color: #C4080E;
	font-size: 13px;
	margin-bottom: 4px;
}
.cvp-feedback-card__excerpt {
	font-size: 13px;
	color: #333;
	margin: 0 0 6px;
}
.cvp-feedback-card__author {
	font-size: 12px;
	color: #888;
	margin: 0;
}
