yt-uikit 0.7.344-shadowdomBundle.46 → 0.7.344-shadowdomBundle.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +2 -0
- package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +1 -1
- package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -0
- package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -0
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -0
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -0
- package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +32 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +2 -0
- package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +1 -1
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersList.d.ts +12 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductsOffers.d.ts +32 -0
- package/package.json +1 -1
|
@@ -92,6 +92,8 @@ export type BundleConfig = {
|
|
|
92
92
|
hideSelectedProducts: boolean;
|
|
93
93
|
allowMultipleQty: boolean;
|
|
94
94
|
hideOutOfStockProducts: boolean;
|
|
95
|
+
bundleRedirection: "cart-drawer" | "checkout";
|
|
96
|
+
checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
|
|
95
97
|
};
|
|
96
98
|
};
|
|
97
99
|
interface CollectionBundleProps {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BundleProps } from "../Bundle";
|
|
3
|
-
export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, }: BundleProps): React.JSX.Element;
|
|
3
|
+
export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, shadowRoot }: BundleProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
interface ProductOffersCouponProps {
|
|
5
|
+
offersToShow: CartCheckpoint[];
|
|
6
|
+
offersConfig?: ProductsOffersConfigType | null;
|
|
7
|
+
getOfferCardMessage: (offer: CartCheckpoint) => string;
|
|
8
|
+
setSelectedOffer: (offer: CartCheckpoint | null) => void;
|
|
9
|
+
setShowPopup: (show: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProductOffersCoupon: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersCouponProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
interface ProductOffersListProps {
|
|
5
|
+
offersToShow: CartCheckpoint[];
|
|
6
|
+
offersConfig: ProductsOffersConfigType;
|
|
7
|
+
getOfferCardMessage: (offer: CartCheckpoint) => string;
|
|
8
|
+
setSelectedOffer: (offer: CartCheckpoint | null) => void;
|
|
9
|
+
setShowPopup: (show: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProductOffersList: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersListProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
export declare const ProductOffersTermsMobilePopover: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
|
|
5
|
+
showPopup: boolean;
|
|
6
|
+
selectedOffer: CartCheckpoint | null;
|
|
7
|
+
selectedOfferTerms: OfferTermsAndConditions | null;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
10
|
+
}) => React.ReactPortal | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
export declare const ProductOffersTermsPopup: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
|
|
5
|
+
showPopup: boolean;
|
|
6
|
+
selectedOffer: CartCheckpoint | null;
|
|
7
|
+
selectedOfferTerms: OfferTermsAndConditions | null;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
10
|
+
}) => React.ReactPortal | null;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "../Cart/Cart";
|
|
3
|
+
export interface ProductsOffersConfigType {
|
|
4
|
+
sectionType?: "coupon" | "list";
|
|
5
|
+
sectionTitle?: string;
|
|
6
|
+
sectionBackgroundColor?: string;
|
|
7
|
+
sectionBgContrastColor?: string;
|
|
8
|
+
cardBackgroundColor?: string;
|
|
9
|
+
cardBackgroundTransparent?: boolean;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
accentColor?: string;
|
|
12
|
+
roundness?: number;
|
|
13
|
+
cardPadding?: number;
|
|
14
|
+
viewDetailsTitle?: string;
|
|
15
|
+
alignment?: "left" | "middle" | "right";
|
|
16
|
+
iconVisibility?: boolean;
|
|
17
|
+
popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
|
|
18
|
+
}
|
|
19
|
+
export interface CartCheckpoint extends Checkpoint {
|
|
20
|
+
customCartProgressBarCriteria?: string | null;
|
|
21
|
+
discountPercentage?: number | null;
|
|
22
|
+
discountId?: number | null;
|
|
23
|
+
}
|
|
24
|
+
export interface OfferTermsAndConditions {
|
|
25
|
+
offerMessage: string;
|
|
26
|
+
terms: string[];
|
|
27
|
+
}
|
|
28
|
+
declare const ProductsOffers: ({ offersConfig, offers, }: {
|
|
29
|
+
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
30
|
+
offers: CartCheckpoint[];
|
|
31
|
+
}) => React.JSX.Element;
|
|
32
|
+
export default ProductsOffers;
|
package/dist/esm/index.js
CHANGED
|
@@ -3209,7 +3209,7 @@ import*as e from"react";import t,{forwardRef as n,useImperativeHandle as r,useRe
|
|
|
3209
3209
|
scrollbar-width: none;
|
|
3210
3210
|
|
|
3211
3211
|
-ms-overflow-style: none;
|
|
3212
|
-
`,Nm=(e,t)=>{if(!t)return{};for(const n of t)if(n.productId==e)return n;return{}};function _m({bundle:e,addToCartFunction:n,currentProductId:r}){const d=i((()=>{if(r){const t="gid://shopify/Product/"+r,n=e.products?.some((e=>e.productId===t));return n?t:e.products?.[0]?.productId}return e.products?.[0]?.productId}),[r,e.products]),s=i((()=>Nm(d,e.products)),[d,e.products]),p=o(null),u=o(null),m=o({}),f=e.customizations??{},g=(i((()=>s?.productDetails?.variants?.edges?.reduce(((e,{node:t})=>t.inventoryQuantity>0?e+=1:e),0)),[s]),i((()=>Nm(d,e.products)?.id),[d,e.products]));i((()=>g?Nm(d,e.products):void 0),[d,e.products,g]);const h=i((()=>e.products?.some((e=>e.productDetails?.options?.some((e=>e.values.length>1))))||!1),[e.products]);f.volumeBundle;const x=h,y=i((()=>e?.volumeTiers||[]),[e?.volumeTiers]),b=y.findIndex((e=>e.isDefault)),[v,w]=c(-1!==b?y[b].tier:y?.[0]?.tier||1),[C,k]=c(s?.productDetails?.variants?.edges?.[0]?.node?.id||""),[E,T]=c({}),[S,B]=c(y.reduce(((e,t,n)=>(e[t.tier-1]=Array.from({length:t.minimumQuantity},(()=>s?.productDetails?.options?.map((e=>e.values[0]))||[])),e)),{})||{}),[$,z]=c(!1),[D,I]=c(window.innerWidth<550),[P,N]=c(null);o([]);const _=o([]);l((()=>{const e=()=>{I(window.innerWidth<550)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),l((()=>{const e=e=>{P&&_.current[P.index]&&_.current[P.index][P.optionIndex]&&!_.current[P.index][P.optionIndex]?.contains(e.target)&&N(null)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[P]);const O=a((e=>{if(!f.general?.trackInventory)return null;const t=y.find((t=>t.tier===e));if(!t)return null;const n=t.minimumQuantity,r=s?.productDetails?.variants?.edges||[];for(const e of r){const t=e.node;if(t.inventoryQuantity>=n&&t.availableForSale){const e=t.title.split(" / ");return Array(n).fill(e)}}const o=[],a={},i=[...r].sort(((e,t)=>t.node.inventoryQuantity-e.node.inventoryQuantity));for(let e=0;e<n&&o.length<n;e++){let e=!1;for(const t of i){const n=t.node,r=a[n.id]||0;if(n.inventoryQuantity>r&&n.availableForSale){const t=n.title.split(" / ");o.push(t),a[n.id]=r+1,e=!0;break}}if(!e)return null}return o.length===n?o:null}),[s,y]),M=a((e=>{if(!f.general?.trackInventory)return!0;const t=y.find((t=>t.tier===e));if(!t)return!1;const n=t.minimumQuantity,r=s?.productDetails?.variants?.edges||[];let o=0;for(const e of r){const t=e.node;t.availableForSale&&(o+=Math.max(0,t.inventoryQuantity))}return o>=n}),[f.general?.trackInventory,y,s]);l((()=>{const e={},t=s?.productDetails?.variants?.edges?.[0]?.node?.id||"";t&&y.forEach((n=>{e[n.tier]={};for(let r=0;r<n.minimumQuantity;r++)e[n.tier][r]=t})),T(e)}),[s?.id,y?.map((e=>`${e.tier}-${e.minimumQuantity}`)).join("|")]),l((()=>{if(!m.current[v]){const e=O(v);if(e){const t=v-1;B((n=>({...n,[t]:e})));const n={};e.forEach(((e,t)=>{const r=e.join(" / "),o=s?.productDetails?.variants?.edges?.find((e=>e.node.title===r))?.node.id||C;n[t]=o})),T((e=>({...e,[v]:n})))}m.current[v]=!0}}),[v,s,C,O]);const A=(e,t)=>e?.productDetails?.variants?.edges?.find((e=>e.node.id===t))?.node,F=a(((e,t,n,r,o)=>{if(!f?.general?.trackInventory)return!0;const a=y.find((t=>t.tier===e));if(!a)return!1;const i=a.minimumQuantity,l=e-1,c=[...n];c[r]=o;const d=c.join(" / "),p=s?.productDetails?.variants?.edges?.find((e=>e.node.title===d))?.node;if(!p||!p.availableForSale||p.inventoryQuantity<=0)return!1;const u={};for(let e=0;e<i;e++){let n;if(e===t)n=p.id;else{const t=(S[l]?.[e]||s.productDetails.options.map((e=>e.values[0]))).join(" / "),r=s?.productDetails?.variants?.edges?.find((e=>e.node.title===t));if(!r)return!1;n=r.node.id}u[n]=(u[n]||0)+1}for(const[e,t]of Object.entries(u)){const n=A(s,e);if(n&&t>n.inventoryQuantity)return!1}return!0}),[f?.general?.trackInventory,y,s,S]),R=a((e=>{if(!f.general?.trackInventory)return!0;const t=y.find((t=>t.tier===e));if(!t)return!1;const n=t.minimumQuantity,r=e-1,o={};for(let e=0;e<n;e++){const t=(S[r]?.[e]||s.productDetails.options.map((e=>e.values[0]))).join(" / "),n=s?.productDetails?.variants?.edges?.find((e=>e.node.title===t));if(!n)return!1;const a=n.node.id;o[a]=(o[a]||0)+1}for(const[e,t]of Object.entries(o)){const n=A(s,e);if(n&&t>n.inventoryQuantity)return!1}return!0}),[f.general?.trackInventory,y,s,S]),L=(e,t,n)=>{T((r=>({...r,[e]:{...r[e]||{},[t]:n}})))},j=a((()=>!1===f.general?.trackInventory?s?.productDetails?.variants?.edges?.[0]?.node:s?.productDetails?.variants?.edges?.find((e=>e.node.inventoryQuantity>0))?.node||s?.productDetails?.variants?.edges?.[0]?.node),[s]),V=a((()=>new URLSearchParams(window.location.search).get("variant")||""),[]),H=()=>{const e=V();if(e){const t=s?.productDetails?.variants?.edges?.find((t=>String(t.node.id)==="gid://shopify/ProductVariant/"+String(e)));if(t&&t.node.inventoryQuantity>0)k(String(t.node.id));else{const e=j();e&&k(String(e.id))}}};l((()=>{H();const e=new Event("urlChange");let t=!0;const n=window.history.pushState,r=window.history.replaceState;return window.history.pushState=function(){t&&(n.apply(this,arguments),window.dispatchEvent(e))},window.history.replaceState=function(){t&&(r.apply(this,arguments),window.dispatchEvent(e))},window.addEventListener("urlChange",H),()=>{t=!1,window.removeEventListener("urlChange",H),window.history.pushState=n,window.history.replaceState=r}}),[V,s?.id,j]);const W=t=>{const n=y.find((e=>e.tier===t));if(!n)return{original:0,discounted:0};let r=0,o=0;const a=E[t]||{};for(let e=0;e<n.minimumQuantity;e++){const t=a[e]||C,n=A(s,t);n&&(n.compareAtPrice?r+=Number.parseFloat(n.compareAtPrice):r+=Number.parseFloat(n.price),o+=Number.parseFloat(n.price))}return"percentOff"===e?.discountType?o*=1-n.discountValue/100:"amountOff"===e?.discountType&&(o-=n.discountValue),o<0&&(o=0),{original:r,discounted:o,discountValue:n.discountValue}},U=(e,t,n,r)=>{let o=A(e,t);if(r){const a=E[r]?.[n||0]||t;o=A(e,a)}return o?.image?.url?o.image.url:e.productDetails?.media?.edges[0]?.node.image.url||""},G=i((()=>y.find((e=>e.tier===v))),[y,v]),Q=i((()=>G?W(G.tier):null),[G,E,C]),q=i((()=>{if(!G||!Q)return;const e=E[G.tier]||{},t={};for(let n=0;n<G.minimumQuantity;n++){const r=e[n]||C;t[r]=(t[r]||0)+1}return t}),[G?.minimumQuantity,C,E,Q]),Y=i((()=>Object.entries(q??{}).map((([e,t])=>({variantId:e,quantity:t})))),[q]);if(l((()=>{if(!G||!Q)return;const e={tier:v,items:G.minimumQuantity,discountedPrice:Q.discounted,originalPrice:Q.original,variants:Y,productId:s?.id??null,tierMeta:{title:G.title,subtitle:G.subtitle,badgeTitle:G.badgeTitle},productData:s,tierData:G},t=u.current;return t&&JSON.stringify(t)===JSON.stringify(e)?void 0:(p.current&&clearTimeout(p.current),p.current=window.setTimeout((()=>{u.current=e;const t=new CustomEvent("ytBundleTierChange",{detail:e});window.dispatchEvent(t)}),50),()=>{p.current&&clearTimeout(p.current)})}),[v,G?.tier,G?.minimumQuantity,Q?.discounted,Q?.original,s?.id,JSON.stringify(Y)]),!n)return t.createElement(t.Fragment,null);const Z=f.volumeBundle?.cardStyle,K=f.general?.primaryColor,X=f.general?.secondaryColor,J=f.general.primaryContrastColor,ee=f.general.secondaryContrastColor,te="high"===e.cornerRadiusType?"20px":"medium"===e.cornerRadiusType?"6px":"0px",ne="bundles"==e.appName?e.pageHeader?.title:e?.title,re="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement(om,{verticalMargin:f.volumeBundle?.verticalMargin,backgroundColor:f.volumeBundle?.sectionBackgroundColor,className:"yt-bundle-container"},t.createElement(am,{className:"yt-bundle-header"},ne&&ne.trim().length>0&&t.createElement(im,{fontSize:f.volumeBundle?.titleFontSize,backgroundColor:f.volumeBundle?.titleBackgroundColor,textColor:f.volumeBundle?.titleTextColor,className:"yt-bundle-header-title"},ne),t.createElement(lm,{className:"yt-bundle-header-subtitle",fontSize:f.volumeBundle?.subtitleFontSize},re)),"vertical"===Z?t.createElement("div",{style:{display:"grid",gridTemplateColumns:D||4===y.length?"repeat(2, 1fr)":y.length>4?"repeat(3, 1fr)":`repeat(${y.length}, 1fr)`,justifyItems:"center",gap:D?"10px":"16px",paddingTop:"10px"},className:"yt-bundle-vertical-container"},y.map((n=>{const r=W(n.tier),o=r.original-r.discounted,a=v===n.tier,i=!M(n.tier);return t.createElement(t.Fragment,{key:n.tier},t.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",borderRadius:te||"24px",...a?{border:`2px solid ${K}`}:{border:`1px solid ${X}`},boxShadow:`6px 6px 0px -1px ${a?K:X}20`,...n.badgeTitle&&{position:"relative"},zIndex:5,backgroundColor:i?"#f5f5f5":"white",cursor:i?"not-allowed":"pointer",position:"relative",height:"100%",maxHeight:"350px",width:"100%",opacity:i?.6:1},className:"yt-volume-vertical-tier-item "+(a?"yt-volume-vertical-tier-item-active":""),"data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType,"data-minimum-quantity":n.minimumQuantity,"data-original-price":r.original.toFixed(2),"data-discounted-price":r.discounted.toFixed(2),onClick:()=>!i&&w(n.tier)},n.badgeTitle&&t.createElement("div",{style:{position:"absolute",top:"-15px",zIndex:-1,left:"0",right:"0",width:"80%",textAlign:"center",margin:"0 auto",fontSize:"10px",clipPath:"polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%)",backgroundColor:a?K:X,color:a?J:ee,padding:"2px 0",borderRadius:"12px 12px 0px 0px",lineHeight:"normal"},className:a?"yt-volume-vertical-tier-badge-active":"yt-volume-vertical-tier-badge","data-tier":n.tier,"data-badge-title":n.badgeTitle},n.badgeTitle),t.createElement("div",{style:{position:"relative",width:"100%",display:"flex",justifyContent:"center",height:"fit-content"},className:"yt-volume-vertical-tier-save-badge-container"},0!==r.discountValue&&t.createElement(t.Fragment,null,D&&o&&!!r?.discountValue&&"Enabled"===f.volumeBundle?.discountBadgeVisibility&&t.createElement("div",{style:{lineHeight:"normal",position:"absolute",right:"5px",top:"8px"}},t.createElement(um,{primaryBackgroundColorCta:a?K:X,isSelected:a,style:{height:"fit-content",fontSize:"10px",lineHeight:"normal",color:a?J:ee},className:"yt-volume-vertical-tier-save-badge","data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType}," ","percentOff"===e?.discountType?`${r.discountValue}% Off`:`Save ${Ig(f.general.currencySymbol,e.storeCurrencyCode)}${Dg(r.discountValue)}`))),n.imageUrl&&t.createElement("img",{src:n.imageUrl,style:{objectFit:"cover",aspectRatio:"1/1",width:"100%",maxHeight:"160px",maxWidth:"160px",height:"fit-content",borderTopLeftRadius:te||"24px",borderTopRightRadius:te||"24px"},className:"yt-volume-vertical-tier-badge"})),t.createElement("div",{style:{padding:"8px",paddingTop:"0"}},t.createElement(mm,{style:{display:"flex",width:"100%",gap:"4px"},className:"yt-volume-vertical-details-container"},t.createElement("div",{style:{display:"flex",alignItems:"center",position:"relative",width:"100%"},className:"yt-volume-vertical-details-title-container"},t.createElement(fm,{style:{fontSize:D?"12px":"14px",lineHeight:"normal"},className:"yt-volume-vertical-details-title"},n.title?n.title:t.createElement(t.Fragment,null,"Buy ",n.minimumQuantity,", Get"," ",n.discountValue,"% Off")),!D&&o&&!!r?.discountValue&&"Enabled"===f.volumeBundle?.discountBadgeVisibility&&t.createElement(um,{primaryBackgroundColorCta:a?K:X,isSelected:a,style:{height:"fit-content",fontSize:"10px",lineHeight:"normal",color:a?J:ee},className:"yt-volume-vertical-tier-save-badge","data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType}," ","percentOff"===e?.discountType?`${r.discountValue}% Off`:`Save ${Ig(f.general.currencySymbol,e.storeCurrencyCode)}${Dg(r.discountValue)}`),a&&n.imageUrl&&t.createElement("div",{style:{lineHeight:"normal",position:"absolute",right:"0px"},className:"yt-volume-vertical-tier-selected-check"},t.createElement("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:K,color:J,padding:"2px"}},t.createElement(Xr,{style:{paddingBottom:"1px"},size:20,fontWeight:20})))),t.createElement(gm,{style:{lineHeight:"normal",fontSize:D?"10px":"14px",color:"#666"},className:"yt-volume-vertical-details-subtitle"},n.subtitle?n.subtitle:t.createElement(t.Fragment,null))),t.createElement(hm,{style:{textAlign:"left",marginTop:"4px",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center"},className:"yt-volume-vertical-details-price","data-tier":n.tier,"data-original-price":r.original.toFixed(2),"data-discounted-price":r.discounted.toFixed(2),"data-savings":o.toFixed(2)},t.createElement(xm,{style:{marginLeft:"0",lineHeight:"normal",marginRight:"8px"},className:"yt-volume-vertical-details-price-discount"},Ig(f.general.currencySymbol,e.storeCurrencyCode),Dg(r.discounted.toFixed(2))),o?t.createElement(ym,{style:{lineHeight:"normal"},className:"yt-volume-vertical-details-price-original"},Ig(f.general.currencySymbol,e.storeCurrencyCode),Dg(r.original.toFixed(2))):"")),a&&!n.imageUrl&&t.createElement("div",{style:{lineHeight:"normal",position:"absolute",right:"10px",bottom:"10px"},className:"yt-volume-vertical-tier-selected-check"},t.createElement("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:K,color:J,padding:"2px"}},t.createElement(Xr,{style:{paddingBottom:"1px"},size:20,fontWeight:20})))))}))):t.createElement(t.Fragment,null,y.map((n=>{const r=W(n.tier),o=r.original-r.discounted,a=!M(n.tier);return t.createElement(t.Fragment,{key:n.tier},n.badgeTitle&&t.createElement(cm,{primaryTextColorCta:J,primaryBackgroundColorCta:K,style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-badge","data-tier":n.tier,"data-badge-title":n.badgeTitle},n.badgeTitle),t.createElement(dm,{cornerRadiusType:e?.cornerRadiusType??"",key:n.tier,primaryBackgroundColorCta:K??"",isSelected:v===n.tier,onClick:()=>w(n.tier),style:{borderRadius:te,cursor:"pointer",backgroundColor:a?"#f5f5f5":"white",opacity:a?.6:1},className:"yt-volume-horizontal-tier-container "+(v===n.tier?"yt-volume-horizontal-tier-container-active":""),"data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType,"data-minimum-quantity":n.minimumQuantity,"data-original-price":r.original.toFixed(2),"data-discounted-price":r.discounted.toFixed(2)},t.createElement(sm,{cornerRadiusType:e?.cornerRadiusType??"",style:{borderRadius:te,borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px"},className:"yt-volume-horizontal-tier-header"},t.createElement(pm,{className:"yt-volume-horizontal-tier-info"},t.createElement(km,{"data-active":v===n.tier,accentColor:K,className:"yt-volume-horizontal-tier-radio-wrapper"},t.createElement(Em,{name:"tier",checked:v===n.tier,onChange:()=>!a&&w(n.tier),disabled:a,className:"yt-volume-horizontal-tier-radio-hidden"}),t.createElement(Tm,{accentColor:K,className:"yt-volume-horizontal-tier-radio-custom"})),t.createElement(mm,{className:"yt-volume-horizontal-tier-details"},t.createElement("div",{style:{display:"flex"},className:"yt-volume-horizontal-tier-title-container"},t.createElement(fm,{style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-title"},n.title?n.title:t.createElement(t.Fragment,null,"Buy ",n.minimumQuantity,", Get"," ",n.discountValue,"% Off")),o&&r?.discountValue&&"Enabled"===f.volumeBundle?.discountBadgeVisibility?t.createElement(um,{primaryBackgroundColorCta:K,isSelected:v===n.tier,style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-save-badge","data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType}," ","percentOff"===e?.discountType?`${r.discountValue}% Off`:`Save ${Ig(f.general.currencySymbol,e.storeCurrencyCode)}${Dg(r.discountValue)}`):""),t.createElement(gm,{style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-subtitle"},n.subtitle?n.subtitle:t.createElement(t.Fragment,null)))),t.createElement(hm,{style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-price","data-tier":n.tier,"data-original-price":r.original.toFixed(2),"data-discounted-price":r.discounted.toFixed(2),"data-savings":o.toFixed(2)},o?t.createElement(ym,{style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-original-price"},Ig(f.general.currencySymbol,e.storeCurrencyCode),Dg(r.original.toFixed(2))):"",t.createElement(xm,{className:"yt-volume-horizontal-tier-discounted-price"},Ig(f.general.currencySymbol,e.storeCurrencyCode),Dg(r.discounted.toFixed(2))))),v===n.tier&&x&&t.createElement(bm,{className:"yt-volume-horizontal-tier-product-grid"},Array.from({length:n.minimumQuantity}).map(((r,o)=>{const i=n.tier-1,l=(S[i]||[])[o]||s.productDetails.options?.map((e=>e.values[0]))||[];return t.createElement("div",{key:o,style:{display:"flex",gap:"10px",alignItems:"center",position:"relative"},className:"yt-volume-horizontal-tier-product-item"},t.createElement(Sm,{src:U(s,C,o,n.tier),alt:s?.productDetails?.title||"Product",className:"yt-volume-horizontal-tier-product-image"}),"auto"===f?.volumeBundle?.variantSelectorType?t.createElement("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"}},s?.productDetails?.options?.map(((r,c)=>{const d=P?.tier===n.tier&&P?.index===o&&P?.optionIndex===c,p=e?.variantOptions?.options?.find((e=>e.name===r.name));let u="";return p&&"color"===p?.type&&(u=p?.values?.find((e=>e.name===l[c]))?.value||""),t.createElement(Dm,{key:c,ref:e=>{_.current[o]||(_.current[o]=[]),_.current[o][c]=e},style:{zIndex:d?1e3:"auto",display:"flex"},isActive:d},t.createElement(Im,{onClick:e=>{e.stopPropagation(),N(d?null:{tier:n.tier,index:o,optionIndex:c})},isActive:d,disabled:a},"color"===p?.type&&u&&t.createElement("div",{className:"yt-fixedBundle-product-card_color-swatch",style:{display:"inline-block",width:20,height:20,borderRadius:"50%",backgroundColor:u||"transparent",border:"1px solid #ddd"}}),l[c],t.createElement(jr,null)),d&&t.createElement(Pm,{style:{zIndex:1001}},r.values.map((e=>{const r=[...l];r[c]=e;const d=!F(n.tier,o,l,c,e)||a,u=s.productDetails.variants.edges.find((({node:e})=>e.title===r.join(" / ")))?.node,m=e=>{if(d)return void e.stopPropagation();B((e=>{const t={...e},n=[...t[i]||[]];return n[o]=r,t[i]=n,t}));const t=u?.id||C;L(n.tier,o,t),N(null)},f=p?.values.find((t=>t.name===e));return"image"===p?.type&&f?.value?t.createElement(Bm,{key:e,onClick:m,style:{opacity:d?.5:1,cursor:d?"not-allowed":"pointer"}},t.createElement($m,{src:f.value,alt:e}),e,d&&" (Out of stock)"):"color"===p?.type&&f?.value?t.createElement(Bm,{key:e,onClick:m,style:{opacity:d?.5:1,cursor:d?"not-allowed":"pointer"}},t.createElement(zm,{style:{backgroundColor:f.value}}),e,d&&"Out of stock"):t.createElement(Bm,{key:e,onClick:m,style:{opacity:d?.5:1,cursor:d?"not-allowed":"pointer"}},e,d&&" (Out of stock)")}))))}))):t.createElement(vm,{style:{display:"flex",flexDirection:"column",gap:"5px"},className:"yt-volume-horizontal-tier-variant-selector"},s?.productDetails?.options.map(((r,c)=>{const d=e.variantOptions?.options?.find((e=>e.name===r.name))||null;return r.values.length<=1?null:t.createElement("div",{key:r.name,style:{width:"100%",display:"flex",flexDirection:"row",gap:"8px",alignItems:"center"},className:"yt-volume-horizontal-tier-variant-option"},t.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",flexWrap:"wrap"},className:"yt-volume-horizontal-tier-variant-values"},r.values.map((e=>{const r=l[c]===e,p=!F(n.tier,o,l,c,e)||a,u=d?.values.find((t=>t.name===e)),m=t=>{if(t.preventDefault(),t.stopPropagation(),p)return;const r=[...l];r[c]=e,B((e=>{const t={...e},n=[...t[i]||[]];return n[o]=r,t[i]=n,t}));const a=r.join(" / "),d=s.productDetails.variants.edges.find((e=>e.node.title===a))?.node.id||C;L(n.tier,o,d)},g={opacity:p?.5:1,cursor:p?"not-allowed":"pointer"};return d&&u?"color"===d.type&&u.value?t.createElement("button",{key:e,onClick:m,style:{...g,borderRadius:"50%",padding:"1px",backgroundColor:"white",border:r?`1px solid ${f.general?.ctaBackgroundColor||"#121212"}`:"1px solid transparent",lineHeight:"normal"},className:"yt-volume-horizontal-tier-variant-color-button",disabled:p},t.createElement("div",{style:{width:r?"24px":"20px",height:r?"24px":"20px",borderRadius:"50%",backgroundColor:u.value,lineHeight:"normal",boxShadow:"rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 2px"}},t.createElement("span",null))):"image"===d.type?t.createElement("button",{key:e,onClick:m,style:{...g,border:r?`1px solid ${f.general?.ctaBackgroundColor||"#121212"}`:"1px solid #E4E4E4",borderRadius:"100%",backgroundColor:r?"#F7F7F7":"transparent",padding:"0px",width:r?"20px":"18px",height:r?"20px":"18px",overflow:"hidden"},className:"yt-volume-horizontal-tier-variant-image-button",disabled:p},t.createElement("img",{src:u.value,alt:e,style:{width:r?"26px":"24px",height:r?"26px":"24px",objectFit:"cover",borderRadius:"100%",aspectRatio:"1/1"}})):t.createElement(wm,{key:e,isSelected:r,onClick:m,style:{...g,padding:"4px 8px",border:r?`1px solid ${f.general?.ctaBackgroundColor||"#121212"}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:r?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"12px",fontWeight:"600",lineHeight:"normal"},className:"yt-volume-horizontal-tier-variant-button-default",disabled:p},e):t.createElement(wm,{key:e,isSelected:r,onClick:m,disabled:p,style:{...g,padding:"4px 8px",border:r?`1px solid ${f.general?.ctaBackgroundColor||"#121212"}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:r?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"12px",fontWeight:"600",lineHeight:"normal"},className:"yt-volume-horizontal-tier-variant-button"},e)}))))}))))})))))}))),e?.showCta&&t.createElement("div",{style:{position:"relative"}},t.createElement(Cm,{bgColor:R(v)?f.general?.ctaBackgroundColor:"#ccc",textColor:R(v)?f.general?.ctaTextColor:"#666",border:`1px solid ${R(v)?f.general?.ctaBorderColor||"#121212":"#999"}`,shadow:f.general.ctaShadowType,padding:f.general?.ctaPadding,width:f.general?.ctaWidth,hoverProperties:{customizeHoverState:!!R(v)&&f.general?.customizeHoverState,backgroundColor:f.general?.ctaHoverBackgroundColor,textColor:f.general?.ctaHoverTextColor},onClick:async()=>{if(R(v))try{z(!0);const e=y.find((e=>e.tier===v));if(!e)return;const t={},r=E[e.tier]||{};for(let n=0;n<e.minimumQuantity;n++){const e=r[n]||C;t[e]?t[e].quantity+=1:t[e]={quantity:1}}const o=W(e.tier),a=Array.from({length:e.minimumQuantity},((e,t)=>r[t]||C));n&&await n(o.original,a)}catch(e){console.error("VolumeBundle handleAddToCart error:",e)}finally{z(!1)}else console.error("Selected tier is out of stock")},borderRadius:f.general.ctaBorderRadius??"",disabled:$||!R(v),className:"yt-volume-add-to-cart-button"},R(v)?t.createElement(t.Fragment,null,$?t.createElement(Wo,{color:"white",loading:$,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):t.createElement("div",{style:{display:"flex",flexDirection:"row",gap:"8px",justifyContent:"center",alignItems:"center"}},t.createElement("span",null,f.volumeBundle?.ctaTitle??"Add Bundle to Cart")," ","•",t.createElement("div",{className:"yt-volume-add-to-cart-button-info"},(()=>{const n=W(v);return t.createElement(t.Fragment,null,Ig(f.general.currencySymbol,e.storeCurrencyCode),Dg(n.discounted.toFixed(2))," ",n?.original&&t.createElement("span",{style:{lineHeight:"normal",textDecoration:"line-through",fontWeight:"550"}},Ig(f.general.currencySymbol,e.storeCurrencyCode),Dg(n?.original.toFixed(2))," "))})()))):t.createElement(t.Fragment,null,"Out of Stock"))))}const Om=x.div`
|
|
3212
|
+
`,Nm=(e,t)=>{if(!t)return{};for(const n of t)if(n.productId==e)return n;return{}};function _m({bundle:e,addToCartFunction:n,currentProductId:r,shadowRoot:d}){const s=i((()=>{if(r){const t="gid://shopify/Product/"+r,n=e.products?.some((e=>e.productId===t));return n?t:e.products?.[0]?.productId}return e.products?.[0]?.productId}),[r,e.products]),p=i((()=>Nm(s,e.products)),[s,e.products]),u=o(null),m=o(null),f=o({}),g=e.customizations??{},h=(i((()=>p?.productDetails?.variants?.edges?.reduce(((e,{node:t})=>t.inventoryQuantity>0?e+=1:e),0)),[p]),i((()=>Nm(s,e.products)?.id),[s,e.products]));i((()=>h?Nm(s,e.products):void 0),[s,e.products,h]);const x=i((()=>e.products?.some((e=>e.productDetails?.options?.some((e=>e.values.length>1))))||!1),[e.products]);g.volumeBundle;const y=x,b=i((()=>e?.volumeTiers||[]),[e?.volumeTiers]),v=b.findIndex((e=>e.isDefault)),[w,C]=c(-1!==v?b[v].tier:b?.[0]?.tier||1),[k,E]=c(p?.productDetails?.variants?.edges?.[0]?.node?.id||""),[T,S]=c({}),[B,$]=c(b.reduce(((e,t,n)=>(e[t.tier-1]=Array.from({length:t.minimumQuantity},(()=>p?.productDetails?.options?.map((e=>e.values[0]))||[])),e)),{})||{}),[z,D]=c(!1),[I,P]=c(window.innerWidth<550),[N,_]=c(null);o([]);const O=o([]);l((()=>{const e=()=>{P(window.innerWidth<550)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),l((()=>{const e=e=>{N&&O.current[N.index]&&O.current[N.index][N.optionIndex]&&!O.current[N.index][N.optionIndex]?.contains(e.target)&&_(null)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[N]);const M=a((e=>{if(!g.general?.trackInventory)return null;const t=b.find((t=>t.tier===e));if(!t)return null;const n=t.minimumQuantity,r=p?.productDetails?.variants?.edges||[];for(const e of r){const t=e.node;if(t.inventoryQuantity>=n&&t.availableForSale){const e=t.title.split(" / ");return Array(n).fill(e)}}const o=[],a={},i=[...r].sort(((e,t)=>t.node.inventoryQuantity-e.node.inventoryQuantity));for(let e=0;e<n&&o.length<n;e++){let e=!1;for(const t of i){const n=t.node,r=a[n.id]||0;if(n.inventoryQuantity>r&&n.availableForSale){const t=n.title.split(" / ");o.push(t),a[n.id]=r+1,e=!0;break}}if(!e)return null}return o.length===n?o:null}),[p,b]),A=a((e=>{if(!g.general?.trackInventory)return!0;const t=b.find((t=>t.tier===e));if(!t)return!1;const n=t.minimumQuantity,r=p?.productDetails?.variants?.edges||[];let o=0;for(const e of r){const t=e.node;t.availableForSale&&(o+=Math.max(0,t.inventoryQuantity))}return o>=n}),[g.general?.trackInventory,b,p]);l((()=>{const e={},t=p?.productDetails?.variants?.edges?.[0]?.node?.id||"";t&&b.forEach((n=>{e[n.tier]={};for(let r=0;r<n.minimumQuantity;r++)e[n.tier][r]=t})),S(e)}),[p?.id,b?.map((e=>`${e.tier}-${e.minimumQuantity}`)).join("|")]),l((()=>{if(!f.current[w]){const e=M(w);if(e){const t=w-1;$((n=>({...n,[t]:e})));const n={};e.forEach(((e,t)=>{const r=e.join(" / "),o=p?.productDetails?.variants?.edges?.find((e=>e.node.title===r))?.node.id||k;n[t]=o})),S((e=>({...e,[w]:n})))}f.current[w]=!0}}),[w,p,k,M]);const F=(e,t)=>e?.productDetails?.variants?.edges?.find((e=>e.node.id===t))?.node,R=a(((e,t,n,r,o)=>{if(!g?.general?.trackInventory)return!0;const a=b.find((t=>t.tier===e));if(!a)return!1;const i=a.minimumQuantity,l=e-1,c=[...n];c[r]=o;const d=c.join(" / "),s=p?.productDetails?.variants?.edges?.find((e=>e.node.title===d))?.node;if(!s||!s.availableForSale||s.inventoryQuantity<=0)return!1;const u={};for(let e=0;e<i;e++){let n;if(e===t)n=s.id;else{const t=(B[l]?.[e]||p.productDetails.options.map((e=>e.values[0]))).join(" / "),r=p?.productDetails?.variants?.edges?.find((e=>e.node.title===t));if(!r)return!1;n=r.node.id}u[n]=(u[n]||0)+1}for(const[e,t]of Object.entries(u)){const n=F(p,e);if(n&&t>n.inventoryQuantity)return!1}return!0}),[g?.general?.trackInventory,b,p,B]),L=a((e=>{if(!g.general?.trackInventory)return!0;const t=b.find((t=>t.tier===e));if(!t)return!1;const n=t.minimumQuantity,r=e-1,o={};for(let e=0;e<n;e++){const t=(B[r]?.[e]||p.productDetails.options.map((e=>e.values[0]))).join(" / "),n=p?.productDetails?.variants?.edges?.find((e=>e.node.title===t));if(!n)return!1;const a=n.node.id;o[a]=(o[a]||0)+1}for(const[e,t]of Object.entries(o)){const n=F(p,e);if(n&&t>n.inventoryQuantity)return!1}return!0}),[g.general?.trackInventory,b,p,B]),j=(e,t,n)=>{S((r=>({...r,[e]:{...r[e]||{},[t]:n}})))},V=a((()=>!1===g.general?.trackInventory?p?.productDetails?.variants?.edges?.[0]?.node:p?.productDetails?.variants?.edges?.find((e=>e.node.inventoryQuantity>0))?.node||p?.productDetails?.variants?.edges?.[0]?.node),[p]),H=a((()=>new URLSearchParams(window.location.search).get("variant")||""),[]),W=()=>{const e=H();if(e){const t=p?.productDetails?.variants?.edges?.find((t=>String(t.node.id)==="gid://shopify/ProductVariant/"+String(e)));if(t&&t.node.inventoryQuantity>0)E(String(t.node.id));else{const e=V();e&&E(String(e.id))}}};l((()=>{W();const e=new Event("urlChange");let t=!0;const n=window.history.pushState,r=window.history.replaceState;return window.history.pushState=function(){t&&(n.apply(this,arguments),window.dispatchEvent(e))},window.history.replaceState=function(){t&&(r.apply(this,arguments),window.dispatchEvent(e))},window.addEventListener("urlChange",W),()=>{t=!1,window.removeEventListener("urlChange",W),window.history.pushState=n,window.history.replaceState=r}}),[H,p?.id,V]);const U=t=>{const n=b.find((e=>e.tier===t));if(!n)return{original:0,discounted:0};let r=0,o=0;const a=T[t]||{};for(let e=0;e<n.minimumQuantity;e++){const t=a[e]||k,n=F(p,t);n&&(n.compareAtPrice?r+=Number.parseFloat(n.compareAtPrice):r+=Number.parseFloat(n.price),o+=Number.parseFloat(n.price))}return"percentOff"===e?.discountType?o*=1-n.discountValue/100:"amountOff"===e?.discountType&&(o-=n.discountValue),o<0&&(o=0),{original:r,discounted:o,discountValue:n.discountValue}},G=(e,t,n,r)=>{let o=F(e,t);if(r){const a=T[r]?.[n||0]||t;o=F(e,a)}return o?.image?.url?o.image.url:e.productDetails?.media?.edges[0]?.node.image.url||""},Q=i((()=>b.find((e=>e.tier===w))),[b,w]),q=i((()=>Q?U(Q.tier):null),[Q,T,k]),Y=i((()=>{if(!Q||!q)return;const e=T[Q.tier]||{},t={};for(let n=0;n<Q.minimumQuantity;n++){const r=e[n]||k;t[r]=(t[r]||0)+1}return t}),[Q?.minimumQuantity,k,T,q]),Z=i((()=>Object.entries(Y??{}).map((([e,t])=>({variantId:e,quantity:t})))),[Y]);if(l((()=>{if(!Q||!q)return;const e={tier:w,items:Q.minimumQuantity,discountedPrice:q.discounted,originalPrice:q.original,variants:Z,productId:p?.id??null,tierMeta:{title:Q.title,subtitle:Q.subtitle,badgeTitle:Q.badgeTitle},productData:p,tierData:Q},t=m.current;return t&&JSON.stringify(t)===JSON.stringify(e)?void 0:(u.current&&clearTimeout(u.current),u.current=window.setTimeout((()=>{m.current=e;const t=new CustomEvent("ytBundleTierChange",{detail:e});window.dispatchEvent(t)}),50),()=>{u.current&&clearTimeout(u.current)})}),[w,Q?.tier,Q?.minimumQuantity,q?.discounted,q?.original,p?.id,JSON.stringify(Z)]),!n)return t.createElement(t.Fragment,null);const K=g.volumeBundle?.cardStyle,X=g.general?.primaryColor,J=g.general?.secondaryColor,ee=g.general.primaryContrastColor,te=g.general.secondaryContrastColor,ne="high"===e.cornerRadiusType?"20px":"medium"===e.cornerRadiusType?"6px":"0px",re="bundles"==e.appName?e.pageHeader?.title:e?.title,oe="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement(om,{verticalMargin:g.volumeBundle?.verticalMargin,backgroundColor:g.volumeBundle?.sectionBackgroundColor,className:"yt-bundle-container"},t.createElement(am,{className:"yt-bundle-header"},re&&re.trim().length>0&&t.createElement(im,{fontSize:g.volumeBundle?.titleFontSize,backgroundColor:g.volumeBundle?.titleBackgroundColor,textColor:g.volumeBundle?.titleTextColor,className:"yt-bundle-header-title"},re),t.createElement(lm,{className:"yt-bundle-header-subtitle",fontSize:g.volumeBundle?.subtitleFontSize},oe)),"vertical"===K?t.createElement("div",{style:{display:"grid",gridTemplateColumns:I||4===b.length?"repeat(2, 1fr)":b.length>4?"repeat(3, 1fr)":`repeat(${b.length}, 1fr)`,justifyItems:"center",gap:I?"10px":"16px",paddingTop:"10px"},className:"yt-bundle-vertical-container"},b.map((n=>{const r=U(n.tier),o=r.original-r.discounted,a=w===n.tier,i=!A(n.tier);return t.createElement(t.Fragment,{key:n.tier},t.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",borderRadius:ne||"24px",...a?{border:`2px solid ${X}`}:{border:`1px solid ${J}`},boxShadow:`6px 6px 0px -1px ${a?X:J}20`,...n.badgeTitle&&{position:"relative"},zIndex:5,backgroundColor:i?"#f5f5f5":"white",cursor:i?"not-allowed":"pointer",position:"relative",height:"100%",maxHeight:"350px",width:"100%",opacity:i?.6:1},className:"yt-volume-vertical-tier-item "+(a?"yt-volume-vertical-tier-item-active":""),"data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType,"data-minimum-quantity":n.minimumQuantity,"data-original-price":r.original.toFixed(2),"data-discounted-price":r.discounted.toFixed(2),onClick:()=>!i&&C(n.tier)},n.badgeTitle&&t.createElement("div",{style:{position:"absolute",top:"-15px",zIndex:-1,left:"0",right:"0",width:"80%",textAlign:"center",margin:"0 auto",fontSize:"10px",clipPath:"polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%)",backgroundColor:a?X:J,color:a?ee:te,padding:"2px 0",borderRadius:"12px 12px 0px 0px",lineHeight:"normal"},className:a?"yt-volume-vertical-tier-badge-active":"yt-volume-vertical-tier-badge","data-tier":n.tier,"data-badge-title":n.badgeTitle},n.badgeTitle),t.createElement("div",{style:{position:"relative",width:"100%",display:"flex",justifyContent:"center",height:"fit-content"},className:"yt-volume-vertical-tier-save-badge-container"},0!==r.discountValue&&t.createElement(t.Fragment,null,I&&o&&!!r?.discountValue&&"Enabled"===g.volumeBundle?.discountBadgeVisibility&&t.createElement("div",{style:{lineHeight:"normal",position:"absolute",right:"5px",top:"8px"}},t.createElement(um,{primaryBackgroundColorCta:a?X:J,isSelected:a,style:{height:"fit-content",fontSize:"10px",lineHeight:"normal",color:a?ee:te},className:"yt-volume-vertical-tier-save-badge","data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType}," ","percentOff"===e?.discountType?`${r.discountValue}% Off`:`Save ${Ig(g.general.currencySymbol,e.storeCurrencyCode)}${Dg(r.discountValue)}`))),n.imageUrl&&t.createElement("img",{src:n.imageUrl,style:{objectFit:"cover",aspectRatio:"1/1",width:"100%",maxHeight:"160px",maxWidth:"160px",height:"fit-content",borderTopLeftRadius:ne||"24px",borderTopRightRadius:ne||"24px"},className:"yt-volume-vertical-tier-badge"})),t.createElement("div",{style:{padding:"8px",paddingTop:"0"}},t.createElement(mm,{style:{display:"flex",width:"100%",gap:"4px"},className:"yt-volume-vertical-details-container"},t.createElement("div",{style:{display:"flex",alignItems:"center",position:"relative",width:"100%"},className:"yt-volume-vertical-details-title-container"},t.createElement(fm,{style:{fontSize:I?"12px":"14px",lineHeight:"normal"},className:"yt-volume-vertical-details-title"},n.title?n.title:t.createElement(t.Fragment,null,"Buy ",n.minimumQuantity,", Get"," ",n.discountValue,"% Off")),!I&&o&&!!r?.discountValue&&"Enabled"===g.volumeBundle?.discountBadgeVisibility&&t.createElement(um,{primaryBackgroundColorCta:a?X:J,isSelected:a,style:{height:"fit-content",fontSize:"10px",lineHeight:"normal",color:a?ee:te},className:"yt-volume-vertical-tier-save-badge","data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType}," ","percentOff"===e?.discountType?`${r.discountValue}% Off`:`Save ${Ig(g.general.currencySymbol,e.storeCurrencyCode)}${Dg(r.discountValue)}`),a&&n.imageUrl&&t.createElement("div",{style:{lineHeight:"normal",position:"absolute",right:"0px"},className:"yt-volume-vertical-tier-selected-check"},t.createElement("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:X,color:ee,padding:"2px"}},t.createElement(Xr,{style:{paddingBottom:"1px"},size:20,fontWeight:20})))),t.createElement(gm,{style:{lineHeight:"normal",fontSize:I?"10px":"14px",color:"#666"},className:"yt-volume-vertical-details-subtitle"},n.subtitle?n.subtitle:t.createElement(t.Fragment,null))),t.createElement(hm,{style:{textAlign:"left",marginTop:"4px",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center"},className:"yt-volume-vertical-details-price","data-tier":n.tier,"data-original-price":r.original.toFixed(2),"data-discounted-price":r.discounted.toFixed(2),"data-savings":o.toFixed(2)},t.createElement(xm,{style:{marginLeft:"0",lineHeight:"normal",marginRight:"8px"},className:"yt-volume-vertical-details-price-discount"},Ig(g.general.currencySymbol,e.storeCurrencyCode),Dg(r.discounted.toFixed(2))),o?t.createElement(ym,{style:{lineHeight:"normal"},className:"yt-volume-vertical-details-price-original"},Ig(g.general.currencySymbol,e.storeCurrencyCode),Dg(r.original.toFixed(2))):"")),a&&!n.imageUrl&&t.createElement("div",{style:{lineHeight:"normal",position:"absolute",right:"10px",bottom:"10px"},className:"yt-volume-vertical-tier-selected-check"},t.createElement("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:X,color:ee,padding:"2px"}},t.createElement(Xr,{style:{paddingBottom:"1px"},size:20,fontWeight:20})))))}))):t.createElement(t.Fragment,null,b.map((n=>{const r=U(n.tier),o=r.original-r.discounted,a=!A(n.tier);return t.createElement(t.Fragment,{key:n.tier},n.badgeTitle&&t.createElement(cm,{primaryTextColorCta:ee,primaryBackgroundColorCta:X,style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-badge","data-tier":n.tier,"data-badge-title":n.badgeTitle},n.badgeTitle),t.createElement(dm,{cornerRadiusType:e?.cornerRadiusType??"",key:n.tier,primaryBackgroundColorCta:X??"",isSelected:w===n.tier,onClick:()=>C(n.tier),style:{borderRadius:ne,cursor:"pointer",backgroundColor:a?"#f5f5f5":"white",opacity:a?.6:1},className:"yt-volume-horizontal-tier-container "+(w===n.tier?"yt-volume-horizontal-tier-container-active":""),"data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType,"data-minimum-quantity":n.minimumQuantity,"data-original-price":r.original.toFixed(2),"data-discounted-price":r.discounted.toFixed(2)},t.createElement(sm,{cornerRadiusType:e?.cornerRadiusType??"",style:{borderRadius:ne,borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px"},className:"yt-volume-horizontal-tier-header"},t.createElement(pm,{className:"yt-volume-horizontal-tier-info"},t.createElement(km,{"data-active":w===n.tier,accentColor:X,className:"yt-volume-horizontal-tier-radio-wrapper"},t.createElement(Em,{name:"tier",checked:w===n.tier,onChange:()=>!a&&C(n.tier),disabled:a,className:"yt-volume-horizontal-tier-radio-hidden"}),t.createElement(Tm,{accentColor:X,className:"yt-volume-horizontal-tier-radio-custom"})),t.createElement(mm,{className:"yt-volume-horizontal-tier-details"},t.createElement("div",{style:{display:"flex"},className:"yt-volume-horizontal-tier-title-container"},t.createElement(fm,{style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-title"},n.title?n.title:t.createElement(t.Fragment,null,"Buy ",n.minimumQuantity,", Get"," ",n.discountValue,"% Off")),o&&r?.discountValue&&"Enabled"===g.volumeBundle?.discountBadgeVisibility?t.createElement(um,{primaryBackgroundColorCta:X,isSelected:w===n.tier,style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-save-badge","data-tier":n.tier,"data-discount-value":r.discountValue,"data-discount-type":e?.discountType}," ","percentOff"===e?.discountType?`${r.discountValue}% Off`:`Save ${Ig(g.general.currencySymbol,e.storeCurrencyCode)}${Dg(r.discountValue)}`):""),t.createElement(gm,{style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-subtitle"},n.subtitle?n.subtitle:t.createElement(t.Fragment,null)))),t.createElement(hm,{style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-price","data-tier":n.tier,"data-original-price":r.original.toFixed(2),"data-discounted-price":r.discounted.toFixed(2),"data-savings":o.toFixed(2)},o?t.createElement(ym,{style:{lineHeight:"normal"},className:"yt-volume-horizontal-tier-original-price"},Ig(g.general.currencySymbol,e.storeCurrencyCode),Dg(r.original.toFixed(2))):"",t.createElement(xm,{className:"yt-volume-horizontal-tier-discounted-price"},Ig(g.general.currencySymbol,e.storeCurrencyCode),Dg(r.discounted.toFixed(2))))),w===n.tier&&y&&t.createElement(bm,{className:"yt-volume-horizontal-tier-product-grid"},Array.from({length:n.minimumQuantity}).map(((r,o)=>{const i=n.tier-1,l=(B[i]||[])[o]||p.productDetails.options?.map((e=>e.values[0]))||[];return t.createElement("div",{key:o,style:{display:"flex",gap:"10px",alignItems:"center",position:"relative"},className:"yt-volume-horizontal-tier-product-item"},t.createElement(Sm,{src:G(p,k,o,n.tier),alt:p?.productDetails?.title||"Product",className:"yt-volume-horizontal-tier-product-image"}),"auto"===g?.volumeBundle?.variantSelectorType?t.createElement("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"}},p?.productDetails?.options?.map(((r,c)=>{const d=N?.tier===n.tier&&N?.index===o&&N?.optionIndex===c,s=e?.variantOptions?.options?.find((e=>e.name===r.name));let u="";return s&&"color"===s?.type&&(u=s?.values?.find((e=>e.name===l[c]))?.value||""),t.createElement(Dm,{key:c,ref:e=>{O.current[o]||(O.current[o]=[]),O.current[o][c]=e},style:{zIndex:d?1e3:"auto",display:"flex"},isActive:d},t.createElement(Im,{onClick:e=>{e.stopPropagation(),_(d?null:{tier:n.tier,index:o,optionIndex:c})},isActive:d,disabled:a},"color"===s?.type&&u&&t.createElement("div",{className:"yt-fixedBundle-product-card_color-swatch",style:{display:"inline-block",width:20,height:20,borderRadius:"50%",backgroundColor:u||"transparent",border:"1px solid #ddd"}}),l[c],t.createElement(jr,null)),d&&t.createElement(Pm,{style:{zIndex:1001}},r.values.map((e=>{const r=[...l];r[c]=e;const d=!R(n.tier,o,l,c,e)||a,u=p.productDetails.variants.edges.find((({node:e})=>e.title===r.join(" / ")))?.node,m=e=>{if(console.log("clicked"),d)return void e.stopPropagation();$((e=>{const t={...e},n=[...t[i]||[]];return n[o]=r,t[i]=n,t}));const t=u?.id||k;j(n.tier,o,t),_(null)},f=s?.values.find((t=>t.name===e));return"image"===s?.type&&f?.value?t.createElement(Bm,{key:e,onClick:m,style:{opacity:d?.5:1,cursor:d?"not-allowed":"pointer"}},t.createElement($m,{src:f.value,alt:e}),e,d&&" (Out of stock)"):"color"===s?.type&&f?.value?t.createElement(Bm,{key:e,onClick:m,style:{opacity:d?.5:1,cursor:d?"not-allowed":"pointer"}},t.createElement(zm,{style:{backgroundColor:f.value}}),e,d&&"Out of stock"):t.createElement(Bm,{key:e,onClick:m,style:{opacity:d?.5:1,cursor:d?"not-allowed":"pointer"}},e,d&&" (Out of stock)")}))))}))):t.createElement(vm,{style:{display:"flex",flexDirection:"column",gap:"5px"},className:"yt-volume-horizontal-tier-variant-selector"},p?.productDetails?.options.map(((r,c)=>{const d=e.variantOptions?.options?.find((e=>e.name===r.name))||null;return r.values.length<=1?null:t.createElement("div",{key:r.name,style:{width:"100%",display:"flex",flexDirection:"row",gap:"8px",alignItems:"center"},className:"yt-volume-horizontal-tier-variant-option"},t.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",flexWrap:"wrap"},className:"yt-volume-horizontal-tier-variant-values"},r.values.map((e=>{const r=l[c]===e,s=!R(n.tier,o,l,c,e)||a,u=d?.values.find((t=>t.name===e)),m=t=>{if(t.preventDefault(),s)return;const r=[...l];r[c]=e,$((e=>{const t={...e},n=[...t[i]||[]];return n[o]=r,t[i]=n,t}));const a=r.join(" / "),d=p.productDetails.variants.edges.find((e=>e.node.title===a))?.node.id||k;j(n.tier,o,d)},f={opacity:s?.5:1,cursor:s?"not-allowed":"pointer"};return d&&u?"color"===d.type&&u.value?t.createElement("button",{key:e,onClick:m,style:{...f,borderRadius:"50%",padding:"1px",backgroundColor:"white",border:r?`1px solid ${g.general?.ctaBackgroundColor||"#121212"}`:"1px solid transparent",lineHeight:"normal"},className:"yt-volume-horizontal-tier-variant-color-button",disabled:s},t.createElement("div",{style:{width:r?"24px":"20px",height:r?"24px":"20px",borderRadius:"50%",backgroundColor:u.value,lineHeight:"normal",boxShadow:"rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 2px"}},t.createElement("span",null))):"image"===d.type?t.createElement("button",{key:e,onClick:m,style:{...f,border:r?`1px solid ${g.general?.ctaBackgroundColor||"#121212"}`:"1px solid #E4E4E4",borderRadius:"100%",backgroundColor:r?"#F7F7F7":"transparent",padding:"0px",width:r?"20px":"18px",height:r?"20px":"18px",overflow:"hidden"},className:"yt-volume-horizontal-tier-variant-image-button",disabled:s},t.createElement("img",{src:u.value,alt:e,style:{width:r?"26px":"24px",height:r?"26px":"24px",objectFit:"cover",borderRadius:"100%",aspectRatio:"1/1"}})):t.createElement(wm,{key:e,isSelected:r,onClick:m,style:{...f,padding:"4px 8px",border:r?`1px solid ${g.general?.ctaBackgroundColor||"#121212"}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:r?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"12px",fontWeight:"600",lineHeight:"normal"},className:"yt-volume-horizontal-tier-variant-button-default",disabled:s},e):t.createElement(wm,{key:e,isSelected:r,onClick:m,disabled:s,style:{...f,padding:"4px 8px",border:r?`1px solid ${g.general?.ctaBackgroundColor||"#121212"}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:r?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"12px",fontWeight:"600",lineHeight:"normal"},className:"yt-volume-horizontal-tier-variant-button"},e)}))))}))))})))))}))),e?.showCta&&t.createElement("div",{style:{position:"relative"}},t.createElement(Cm,{bgColor:L(w)?g.general?.ctaBackgroundColor:"#ccc",textColor:L(w)?g.general?.ctaTextColor:"#666",border:`1px solid ${L(w)?g.general?.ctaBorderColor||"#121212":"#999"}`,shadow:g.general.ctaShadowType,padding:g.general?.ctaPadding,width:g.general?.ctaWidth,hoverProperties:{customizeHoverState:!!L(w)&&g.general?.customizeHoverState,backgroundColor:g.general?.ctaHoverBackgroundColor,textColor:g.general?.ctaHoverTextColor},onClick:async()=>{if(L(w))try{D(!0);const e=b.find((e=>e.tier===w));if(!e)return;const t={},r=T[e.tier]||{};for(let n=0;n<e.minimumQuantity;n++){const e=r[n]||k;t[e]?t[e].quantity+=1:t[e]={quantity:1}}const o=U(e.tier),a=Array.from({length:e.minimumQuantity},((e,t)=>r[t]||k));n&&await n(o.original,a)}catch(e){console.error("VolumeBundle handleAddToCart error:",e)}finally{D(!1)}else console.error("Selected tier is out of stock")},borderRadius:g.general.ctaBorderRadius??"",disabled:z||!L(w),className:"yt-volume-add-to-cart-button"},L(w)?t.createElement(t.Fragment,null,z?t.createElement(Wo,{color:"white",loading:z,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):t.createElement("div",{style:{display:"flex",flexDirection:"row",gap:"8px",justifyContent:"center",alignItems:"center"}},t.createElement("span",null,g.volumeBundle?.ctaTitle??"Add Bundle to Cart")," ","•",t.createElement("div",{className:"yt-volume-add-to-cart-button-info"},(()=>{const n=U(w);return t.createElement(t.Fragment,null,Ig(g.general.currencySymbol,e.storeCurrencyCode),Dg(n.discounted.toFixed(2))," ",n?.original&&t.createElement("span",{style:{lineHeight:"normal",textDecoration:"line-through",fontWeight:"550"}},Ig(g.general.currencySymbol,e.storeCurrencyCode),Dg(n?.original.toFixed(2))," "))})()))):t.createElement(t.Fragment,null,"Out of Stock"))))}const Om=x.div`
|
|
3213
3213
|
container-type: inline-size;
|
|
3214
3214
|
border-radius: ${e=>e.borderRadius?e.borderRadius:"8px"};
|
|
3215
3215
|
max-width: 800px;
|
|
@@ -4262,4 +4262,4 @@ import*as e from"react";import t,{forwardRef as n,useImperativeHandle as r,useRe
|
|
|
4262
4262
|
}
|
|
4263
4263
|
`,kg=x.span`
|
|
4264
4264
|
font-size: 12px;
|
|
4265
|
-
`,Eg=({products:e,isOpen:n,onClose:r,cta:o,variantOptions:a,onVariantChange:i,handleAddToCart:d,primaryProductId:s,variantId:p,shadowRoot:u})=>{const m=u instanceof ShadowRoot?u:document.body,[f,g]=c((()=>{const t={};return e.forEach((({productId:e,productDetails:n})=>{let r=n.options.map((e=>e.values[0]??""));if(e===s&&p){const e=n.variants.edges.find((e=>e.node.id.includes(p)))?.node;e&&(r=e.title.split(" / "))}t[e]=r})),t}));l((()=>{if(!s||!p)return;const t=e.find((e=>e.productId===s));if(!t)return;const n=t.productDetails.variants.edges.find((e=>e.node.id.includes(p)))?.node;if(n){const e=n.title.split(" / ");g((t=>({...t,[s]:e}))),x((e=>({...e,[s]:{node:n}}))),i(s,n.id)}}),[p,s]);const[h,x]=c({}),y=(t,n,r)=>{const o={...f};o[t][r]=n,g(o);const a=e.find((e=>e.productId===t));if(!a?.productDetails)return;const l=a.productDetails.variants.edges.find((e=>e.node.title===o[t].join(" / ")))?.node;l&&(i(t,l.id),x((e=>({...e,[t]:{node:l}}))))};if(!n)return null;const b=t.createElement(dg,{className:"yt-fixedBundle-variant-modal_overlay",onClick:r},t.createElement(sg,{className:"yt-fixedBundle-variant-modal_container",onClick:e=>e.stopPropagation()},t.createElement(pg,{className:"yt-fixedBundle-variant-modal_header",style:{backgroundColor:o.backgroundColor,color:o.textColor}},"Select Options"),e?.map(((n,r)=>t.createElement(t.Fragment,null,t.createElement(mg,{className:"yt-fixedBundle-variant-modal_product-block"},t.createElement(fg,{className:"yt-fixedBundle-variant-modal_thumbnail",src:h[n.productId]?.node?.image?.url||n.productDetails.featuredMedia?.preview?.image?.url,alt:n.productDetails.title}),t.createElement(gg,{className:"yt-fixedBundle-variant-modal_product-info"},t.createElement(hg,{className:"yt-fixedBundle-variant-modal_product-name"},n.productDetails.title,n.productDetails.variants.edges.length>1&&t.createElement(yg,{className:"yt-fixedBundle-variant-modal_selected-value"},f[n.productId].join(" / "))),n.productDetails.options.map(((e,r)=>{const o=a&&a?.options?.find((t=>t.name===e.name));return e.values.length<=1?t.createElement(t.Fragment,null):o&&"color"===o?.type?t.createElement(bg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(kg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map(((e,a)=>t.createElement(t.Fragment,null,o.values.find((t=>t.name===e))?.value?t.createElement(vg,{className:"yt-fixedBundle-variant-modal_color-swatch",key:a,color:o.values.find((t=>t.name===e))?.value||e,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)}},t.createElement("span",null)):t.createElement(wg,{className:"yt-fixedBundle-variant-modal_text-swatch",key:a,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)}},e))))):o&&"image"===o?.type?t.createElement(bg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(kg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map(((e,a)=>t.createElement(t.Fragment,null,o.values.find((t=>t.name===e))?.value?t.createElement(Cg,{className:"yt-fixedBundle-variant-modal_image-swatch",key:a,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)},src:o.values.find((t=>t.name===e))?.value},t.createElement("span",null)):t.createElement(wg,{className:"yt-fixedBundle-variant-modal_text-swatch",key:a,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)}},e))))):t.createElement(bg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(kg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map(((e,o)=>t.createElement(wg,{className:"yt-fixedBundle-variant-modal_text-swatch",key:o,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)}},e))))})))),r<e.length-1&&t.createElement(xg,{className:"yt-fixedBundle-variant-modal_divider"})))),t.createElement(ug,{className:"yt-fixedBundle-variant-modal_confirm-button",style:{backgroundColor:o.backgroundColor,color:o.textColor},onClick:d},"Add bundle to cart")));return v.createPortal(b,m)},Tg=({options:e,selectedValue:n,onChange:r,type:a="text",shadowRoot:i})=>{const[d,s]=c(!1),p=o(null);c({top:0,left:0,width:0}),l((()=>{const e=i instanceof ShadowRoot?i:document,t=e=>{if(!p.current)return;(e.composedPath?.()||[e.target]).includes(p.current)||s(!1)};return e.addEventListener("mousedown",t),()=>e.removeEventListener("mousedown",t)}),[i]);const u=e=>"color"===a?t.createElement(eg,{className:"yt-fixedBundle-variant-dropdown-horizontal_color-swatch",$color:e.value},t.createElement("span",null)):"image"===a?t.createElement(tg,{className:"yt-fixedBundle-variant-dropdown-horizontal_image-swatch",src:e.value||"/placeholder.svg",alt:e.name},t.createElement("span",null)):null;return t.createElement(Qf,{className:"yt-fixedBundle-variant-dropdown-horizontal_container",ref:p},t.createElement(qf,{className:"yt-fixedBundle-variant-dropdown-horizontal_header",onClick:()=>s(!d)},t.createElement(Yf,{className:"yt-fixedBundle-variant-dropdown-horizontal_content"},n&&("color"===a||"image"===a)&&u(n),t.createElement("span",{className:"yt-fixedBundle-variant-dropdown-horizontal_selected-text"},n&&n.name)),t.createElement(Zf,{className:"yt-fixedBundle-variant-dropdown-horizontal_chevron-icon",$isOpen:d})),d&&t.createElement(Kf,{className:"yt-fixedBundle-variant-dropdown-horizontal_list"},e?.map((e=>t.createElement(Xf,{className:"yt-fixedBundle-variant-selector_dropdown-item "+(n?.name===e.name?"yt-fixedBundle-variant-selector_dropdown-item--selected":""),key:e.name,$isSelected:n?.name===e.name,onClick:()=>{r(e),s(!1)}},("color"===a||"image"===a)&&u(e),t.createElement(Jf,{className:"yt-fixedBundle-variant-dropdown-horizontal_item-text"},e.name))))))},Sg=({product:e,variantOptions:n,selectedVariants:r,onVariantChange:o,variantId:a,primaryProductId:i,variantType:d="dropdown",shadowRoot:s})=>{const[p,u]=c(r||[]);l((()=>{if(a&&e.variants.edges.some((e=>e.node.id.includes(a)))){const t=e.variants.edges.find((e=>e.node.id.includes(a)))?.node;if(t){const e=t.title.split(" / ");u(e)}}}),[a,e]);const m=e=>{if(!n?.options)return"text";const t=n.options.find((t=>t.name===e));return t?.type||"text"},f=(e,t)=>{if(!n?.options)return e.values.map((e=>({name:e,value:e})));const r=n.options.find((t=>t.name===e.name));return e.values.map((e=>{const t=r?.values?.find((t=>t.name===e));return{name:e,value:t?.value||e}}))},g=(e,t)=>{const n=p[t];if(!n)return null;return f(e).find((e=>e.name===n))||null};return t.createElement(ng,{className:"yt-fixedBundle-variant-selector-horizontal_container"},e.options.map(((n,r)=>t.createElement(rg,{className:"yt-fixedBundle-variant-selector-horizontal_option-row",key:n.name,$isFirst:0===r},n?.values?.length>1&&t.createElement(Tg,{options:f(n),selectedValue:g(n,r),onChange:t=>{console.log(t),((t,n)=>{const r=[...p];r[t]=n.name,u(r);const a=e.variants.edges.find((n=>n.node.title===(e.options?.length>0?r.join(" / "):r[t])))?.node.id;o(a||"")})(r,t)},type:m(n.name),shadowRoot:s})))))},Bg=({product:e,selectedVariantId:n,isChecked:r,canCustomize:o,styles:a,onVariantChange:i,onCheckChange:d,isMobile:s,isHorizontal:p,index:u,variantOptions:m,productsLength:f,handleOpenModal:g,storeCurrencyCode:h,primaryProductId:x,variantId:y,shadowRoot:b})=>{const[v,w]=c(e.variants.edges.find((e=>e.node.id===n))?.node),[C]=c(e.options?.map((e=>e.values[0]))||[]),k=e.id===x;l((()=>{if(y&&e.id===x){const t=e.variants.edges.find((e=>e.node.id.includes(y)))?.node;t&&(w(t),i(t.id))}else{const t=e.variants.edges.find((e=>e.node.id===n))?.node;w(t)}}),[e,x,n,y]);const E="undefined"!=typeof window&&"usee-shop-app.myshopify.com"===window.ytBundleApp?.storeDomain,T=v?.image?.url||e.featuredMedia?.preview?.image?.url;return t.createElement(t.Fragment,null,p?t.createElement("div",{className:""+(e.id===x?"yt-fixedBundle-product-card--horizontal-primary":"yt-fixedBundle-product-card--horizontal-associated"),style:{display:"flex",alignItems:"center",gap:"10px",backgroundColor:a.fixedBundle?.cardBackgroundColor}},o&&t.createElement(lg,{className:"yt-fixedBundle-product-card_checkbox-wrapper--horizontal"},t.createElement(ag,{className:"yt-fixedBundle-product-card_checkbox-hidden",style:{display:"none"},type:"checkbox",id:`checkbox-${e.id}`,defaultChecked:r,onChange:e=>d(e.target.checked),disabled:k}),t.createElement(ig,{className:"yt-fixedBundle-product-card_checkbox-label",htmlFor:`checkbox-${e.id}`,isChecked:r,borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.general?.ctaBackgroundColor},t.createElement(nt,null))),t.createElement(bf,{className:"yt-fixedBundle-product-card-horizontal_item",style:{borderRadius:a.fixedBundle?.borderRadius,border:`1px solid ${a.fixedBundle?.borderColor}80`,backgroundColor:a.fixedBundle?.cardBackgroundColor,boxShadow:{none:"none",spread:`8px 8px 8px -6px ${a.fixedBundle.borderColor}`,"no-spread":`4px 4px 0px -1px ${a.fixedBundle.borderColor}80`}[a.fixedBundle.shadowType]||"none"},canCustomize:o},"undefined"!=typeof window&&"usee-shop-app.myshopify.com"!==window.ytBundleApp?.storeDomain&&t.createElement(vf,{className:"yt-fixedBundle-product-card-horizontal_image",src:T,alt:e.title,style:{borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,aspectRatio:a.general.imageAspectRatio||"1/1",borderTopRightRadius:"0",borderBottomRightRadius:"0"}}),t.createElement(wf,{className:"yt-fixedBundle-product-card-horizontal_details"},t.createElement(Cf,{className:"yt-fixedBundle-product-card-horizontal_title"},e.title),a.fixedBundle.productsPriceVisibility&&t.createElement(kf,{className:"yt-fixedBundle-product-card-horizontal_price-section"},t.createElement(Ef,{className:"yt-fixedBundle-product-card-horizontal_price--new"},Ig(a.general.currencySymbol,h)," ",Dg(v?.price)),a.fixedBundle.compareAtPriceVisibility&&v?.compareAtPrice&&parseFloat(v.compareAtPrice)>parseFloat(v?.price)&&t.createElement(Tf,{className:"yt-fixedBundle-product-card-horizontal_price--old"},Ig(a.general.currencySymbol,h),Dg(v?.compareAtPrice))),t.createElement(Sg,{product:e,variantOptions:m,selectedVariants:C,onVariantChange:e=>{i(e)},variantId:y,primaryProductId:x,shadowRoot:b})))):t.createElement(t.Fragment,null,t.createElement(_f,{className:""+(e.id===x?"yt-fixedBundle-product-card--vertical-primary":"yt-fixedBundle-product-card--vertical-associated"),productsLength:f,style:{borderRadius:a.fixedBundle?.borderRadius,border:`1px solid ${a.fixedBundle?.borderColor}50`,backgroundColor:a.fixedBundle?.cardBackgroundColor,boxShadow:{none:"none",spread:`0 4px 10px -6px ${a.fixedBundle.borderColor}50`,"no-spread":`4px 4px 0px -1px ${a.fixedBundle.borderColor}50`}[a.fixedBundle.shadowType]||"none",...o&&{position:"relative"},...E&&{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",minWidth:"max-content",paddingLeft:"2px"}},borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.fixedBundle?.cardBackgroundColor},o&&t.createElement(cg,{className:"yt-fixedBundle-product-card_checkbox-wrapper--vertical",isImage:E},t.createElement(ag,{className:"yt-fixedBundle-product-card_checkbox-hidden--vertical",style:{display:"none"},type:"checkbox",id:`checkbox-${e.id}`,defaultChecked:r,onChange:e=>d(e.target.checked),disabled:k}),t.createElement(ig,{className:"yt-fixedBundle-product-card_checkbox-label--vertical",htmlFor:`checkbox-${e.id}`,isChecked:r,borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.general?.ctaBackgroundColor},t.createElement(nt,{size:10}))),"undefined"!=typeof window&&"usee-shop-app.myshopify.com"!==window.ytBundleApp?.storeDomain&&t.createElement(Of,{className:"yt-fixedBundle-product-card_image-wrapper--vertical",style:{aspectRatio:a.general.imageAspectRatio,height:"fit-content"}},t.createElement(Mf,{className:"yt-fixedBundle-product-card_image--vertical",src:T,style:{aspectRatio:a.general.imageAspectRatio},alt:e.title}),e.variants.edges.length>1&&t.createElement(Af,{className:"yt-fixedBundle-product-card_badge-container"},t.createElement(Ff,{className:"yt-fixedBundle-product-card_circle-button"},t.createElement("span",null)),t.createElement(Rf,{className:"yt-fixedBundle-product-card_circle-button-two"},t.createElement("span",null)),t.createElement(Lf,{className:"yt-fixedBundle-product-card_count-badge"},e.variants.edges.length,"+"))),t.createElement(jf,{className:"yt-fixedBundle-product-card-vertical_info"},t.createElement(Vf,{className:"yt-fixedBundle-product-card-vertical_title"},e.title),a.fixedBundle.productsPriceVisibility&&t.createElement(Wf,{className:"yt-fixedBundle-product-card-vertical_price-line"},t.createElement(Hf,{className:"yt-fixedBundle-product-card-vertical_price--new"},Ig(a.general.currencySymbol,h),Dg(v?.price)),a.fixedBundle.compareAtPriceVisibility&&v?.compareAtPrice&&parseFloat(v.compareAtPrice)>parseFloat(v?.price)&&t.createElement(Tf,{className:"yt-fixedBundle-product-card-vertical_price--old"},Ig(a.general.currencySymbol,h),Dg(v?.compareAtPrice))))),(f<=3||!s)&&u<f-1&&t.createElement(Uf,{className:"yt-fixedBundle-plus-wrapper"}," ",t.createElement(Gf,{className:"yt-fixedBundle-plus-icon"},"+")," ")))},$g=({bundle:e,addToCartFunction:n,shadowRoot:r})=>{const[o,a]=c(!1),[d,s]=c(window.innerWidth<786),[p,u]=c(null),m="undefined"!=typeof window?window.location.href:null,f=e?.products?.find((e=>e.productDetails?.handle===m?.split("/").pop()?.split("?")[0])),g=f?.productId,[h,x]=c(Object.fromEntries(e?.products?.map((e=>[e.productId,e.productDetails?.variants?.edges?.find((e=>e.node.inventoryQuantity>0))?.node?.id||e.productDetails?.variants?.edges?.[0]?.node?.id])))),[y,b]=c(!1),v="undefined"!=typeof window&&("usee-shop-app.myshopify.com"===window.ytBundleApp?.storeDomain||"devansh-test123.myshopify.com"===window.ytBundleApp?.storeDomain),w=e?.showIndividualProductSelector||!0,[C,k]=c(new Set(e.products.filter((e=>!v||(e.productId===g||w))).map((e=>e.productId))));l((()=>{const e=()=>{const e=new URL(window.location.href).searchParams.get("variant");u(e)},t=e=>{const t=history[e];return function(...n){const r=t.apply(this,n);return window.dispatchEvent(new Event(e.toLowerCase())),r}};return history.pushState=t("pushState"),history.replaceState=t("replaceState"),window.addEventListener("pushstate",e),window.addEventListener("replacestate",e),e(),()=>{window.removeEventListener("pushstate",e),window.removeEventListener("replacestate",e)}}),[]),l((()=>{if(p&&g){const t=e?.products?.find((e=>e.productId===g));if(t){const e=t.productDetails?.variants?.edges?.some((e=>e.node.id.includes(p)));e&&x((e=>({...e,[g]:p})))}}}),[p,g,e?.products]),l((()=>{const e=()=>{s(window.innerWidth<600)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const E=(e,t)=>{x((n=>({...n,[e]:t})))},T=(e,t)=>{v&&w&&t===g||k((n=>{const r=new Set(n);return e?r.add(t):r.delete(t),r}))},S=e.disableInventoryTracking||e.products.every((e=>e.productDetails.variants.edges.some((e=>e.node.inventoryQuantity>0)))),B=i((()=>e.products.some((e=>C.has(e.productId)&&e.productDetails.variants.edges.length>1))),[e.products,C]),{originalPrice:$,dealPrice:z,offerValue:D}=i((()=>{const{price:t,compareAtPrice:n}=e.products.reduce(((e,t)=>{if(!C.has(t.productId))return e;const n=t.productDetails.variants.edges?.find((e=>e.node.id===h[t.productId]))?.node,r=parseFloat(n?.price??"0"),o=parseFloat(n?.compareAtPrice||r.toString());return e.price+=r,e.compareAtPrice+=o,e}),{price:0,compareAtPrice:0}),r=Math.max(t,n);let o=Math.min(t,n);C.size===e.products.length&&(e?.percentageOff?o=t*(1-e.percentageOff/100):e?.dealAmount?o=e.dealAmount:e?.amountOff&&(o=t-e.amountOff));const a=n-o;return{originalPrice:r.toFixed(2),dealPrice:o.toFixed(2),offerValue:a.toFixed(2)}}),[e.products,h,C,e.percentageOff,e.dealAmount,e.amountOff]),I=async e=>{e.preventDefault(),e.stopPropagation(),a(!0),b(!1);try{const e=Object.entries(h).filter((([e])=>C.has(e))).map((([e,t])=>t));n&&await n(Number($),e)}catch(e){console.error("Error adding to cart:",e)}a(!1)};if(!n)return t.createElement(t.Fragment,null);if(e?.customizations.general?.trackInventory&&!S)return t.createElement(t.Fragment,null);const P=e.customizations,N=P.fixedBundle?.cardLayoutStyle||"auto",_="horizontal"===N||"auto"===N&&d,O=()=>{b(!0)},M="bundles"==e.appName?e.pageHeader?.title:e?.title,A="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement(gf,{id:"yt-fixedBundle-container",className:"yt-fixedBundle-container",style:{maxWidth:"800px",backgroundColor:P.fixedBundle.sectionBackgroundColor,..."transparent"!==P.fixedBundle.sectionBackgroundColor&&{padding:"20px"}}},M&&t.createElement(hf,{id:"yt-fixedBundle-header",className:"yt-fixedBundle-header",style:{backgroundColor:P.fixedBundle?.titleBackgroundColor||"none",color:P.fixedBundle?.titleTextColor||"black",textAlign:P.fixedBundle.infoAlignment??"center",fontSize:P.fixedBundle?.titleFontSize,..."transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingBlock:"7px"},..."left"===P.fixedBundle.infoAlignment&&"transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingLeft:"7px"},..."right"===P.fixedBundle.infoAlignment&&"transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingRight:"7px"},..."left"===P.fixedBundle.infoAlignment&&"transparent"===P.fixedBundle.titleBackgroundColor&&{paddingLeft:"0px"}}},M),A&&t.createElement(xf,{id:"yt-fixedBundle-subheader",className:"yt-fixedBundle-subheader",style:{color:"#121212",fontSize:P.fixedBundle?.subtitleFontSize,textAlign:P.fixedBundle.infoAlignment??"center",..."left"===P.fixedBundle.infoAlignment&&"transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingLeft:"7px"},..."right"===P.fixedBundle.infoAlignment&&"transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingRight:"7px"},..."left"===P.fixedBundle.infoAlignment&&"transparent"===P.fixedBundle.titleBackgroundColor&&{paddingLeft:"0px"}}},A),_?t.createElement(yf,{id:"yt-fixedBundle-horizontal-container",className:"yt-fixedBundle-horizontal-container"},e?.products?.map(((n,o)=>t.createElement(t.Fragment,{key:n.productId},t.createElement(Bg,{isChecked:C.has(n.productId),product:n.productDetails,selectedVariantId:h[n.productId],canCustomize:e?.canCustomizeFixedBundle||!1,styles:P,onVariantChange:e=>E(n.productId,e),onCheckChange:e=>{T(e,n.productId)},isMobile:d,index:o,isHorizontal:_,variantOptions:e.variantOptions,productsLength:e.products.length,storeCurrencyCode:e.storeCurrencyCode,primaryProductId:g,variantId:p||void 0,shadowRoot:r}))))):t.createElement(Pf,{id:"yt-fixedBundle-vertical-container",className:"yt-fixedBundle-vertical-container"},t.createElement(Nf,{id:"yt-fixedBundle-product-list",className:"yt-fixedBundle-product-list",style:{justifyContent:"left"===P.fixedBundle.infoAlignment?"flex-start":"right"===P.fixedBundle.infoAlignment?"flex-end":"center"}},e?.products?.map(((n,r)=>t.createElement(Bg,{isChecked:C.has(n.productId),product:n.productDetails,selectedVariantId:h[n.productId],canCustomize:e?.canCustomizeFixedBundle||!1,styles:P,onVariantChange:e=>E(n.productId,e),onCheckChange:e=>T(e,n.productId),isMobile:d,index:r,isHorizontal:_,productsLength:e.products.length,handleOpenModal:O,storeCurrencyCode:e.storeCurrencyCode,primaryProductId:g,variantId:p||void 0}))),B&&t.createElement(Eg,{products:e.products.filter((e=>C.has(e.productId))),isOpen:y,onClose:()=>b(!1),variantOptions:e.variantOptions,cta:{textColor:P.general.ctaTextColor,backgroundColor:P.general.ctaBackgroundColor},onVariantChange:E,handleAddToCart:I,primaryProductId:g,variantId:p||void 0,shadowRoot:r}))),t.createElement(Sf,{id:"yt-fixedBundle-summary",className:"yt-fixedBundle-summary",style:{alignItems:"left"===P.fixedBundle.infoAlignment?"flex-start":"right"===P.fixedBundle.infoAlignment?"flex-end":"center"}},Number($)>0&&Number(D)>0&&P.fixedBundle.compareAtPriceVisibility&&t.createElement(Bf,{className:"yt-fixedBundle-summary_original-price"},"Original Price:"," ",t.createElement(zf,{className:"yt-fixedBundle-summary_price"},Ig(P.general.currencySymbol,e?.storeCurrencyCode),Dg($))),0!==C.size&&t.createElement($f,{className:"yt-fixedBundle-summary_total-price"},"Total Price:"," ",t.createElement(zf,{className:"yt-fixedBundle-summary_price"},Ig(P.general.currencySymbol,e?.storeCurrencyCode),Dg(z))," ",Number(D)>0&&t.createElement(Df,{className:"yt-fixedBundle-summary_save-tag"},"Save:"," ",Ig(P.general.currencySymbol,e?.storeCurrencyCode),Dg(D)))),t.createElement(If,{id:"yt-fixedBundle-add-to-cart",className:"yt-fixedBundle-add-to-cart",onClick:e=>{e.preventDefault(),e.stopPropagation(),_||!B?I(e):b(!0)},disabled:C.size<1||o,style:{backgroundColor:P.general?.ctaBackgroundColor||"#121212",color:P.general?.ctaTextColor||"#FFFFFF",border:`1px solid ${P.general?.ctaBackgroundColor||"#121212"}`,boxShadow:P.general.ctaShadowType,paddingTop:P.general?.ctaPadding,paddingBottom:P.general?.ctaPadding,borderRadius:P.general.ctaBorderRadius,width:P.general.ctaWidth||"100%",textAlign:"center"},onMouseOver:e=>{P.general.customizeHoverState&&(e.currentTarget.style.backgroundColor=P.general?.ctaHoverBackgroundColor||"#F1F1F1",e.currentTarget.style.color=P.general?.ctaHoverTextColor||"#121212")},onMouseOut:e=>{P.general.customizeHoverState&&(e.currentTarget.style.backgroundColor=P.general?.ctaBackgroundColor||"#121212",e.currentTarget.style.color=P.general?.ctaTextColor||"#FFFFFF")}},o?t.createElement(Wo,{color:"white",loading:o,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):t.createElement(t.Fragment,null,P.fixedBundle?.ctaTitle??"Add Bundle to cart")))},zg=window?.Shopify?.currency||{rate:1,active:"INR"},Dg=e=>{if(!e)return;const t=navigator.language||"en-US",n=Number((Number(e)*zg.rate).toFixed(2));return new Intl.NumberFormat(t).format(n)},Ig=(e,t)=>t==zg.active?e:cn(zg.active)||zg.active,Pg=(e,t,n,r,o)=>{const a=r.findIndex((t=>t.variantId===e));o(0===n?e=>e.filter(((e,t)=>t!==a)):-1===a?r=>[...r,{product:t,variantId:e,quantity:n}]:e=>e.map(((e,t)=>t===a?{...e,quantity:e.quantity+n}:e)))},Ng=({bundle:e,currentProductId:n,addToCartFunction:r,addCustomBundleToCart:o,selectedItems:a,setSelectedItems:i,bundleAddToCartLoading:l,handleRemoveItem:c,selectedItemsQuantity:d,renderingOnPage:s,bundleSubtotal:p,shadowRoot:u})=>"fixed"!==e.type&&e.type&&0!==e?.type?.length?"builder"===e.type?t.createElement(tm,{bundleAddToCartLoading:l,bundle:e,selectedItems:a,setSelectedItems:i,handleAddToCart:o,handleRemoveItem:c,renderingOnPage:s,selectedItemsQuantity:d??0,bundleSubtotal:p??{price:0,compareAtPrice:0},shadowRoot:u}):"combo"===e.type?t.createElement(rm,{bundle:e,addToCartFunction:r}):"mixnmatch"===e.type?t.createElement(ff,{bundle:e,addToCartFunction:r}):t.createElement(_m,{bundle:e,currentProductId:n,addToCartFunction:r}):t.createElement($g,{addToCartFunction:r,bundle:e,shadowRoot:u}),_g=()=>t.createElement("div",{className:"scene"},t.createElement("div",{className:"floating"},t.createElement("div",{className:"cube"},t.createElement("div",{className:"side front"},""),t.createElement("div",{className:"side back"},""),t.createElement("div",{className:"side left"},""),t.createElement("div",{className:"side right"},""),t.createElement("div",{className:"side bottom"},""),t.createElement("div",{className:"lid"},t.createElement("div",{className:"flap north"},""),t.createElement("div",{className:"flap south"},""),t.createElement("div",{className:"flap east"},""),t.createElement("div",{className:"flap west"},"")))));const Og=()=>t.createElement("div",{className:"skeleton-container"},t.createElement("main",{className:"skeleton-main"},t.createElement("div",{className:"skeleton-grid-wrapper"},t.createElement("div",{className:"skeleton-grid"},Array.from({length:10}).map(((e,n)=>t.createElement(Mg,{key:n})))))),t.createElement("div",{className:"skeleton-cart-bar"},t.createElement("div",{className:"skeleton-cart-content"},t.createElement("div",{className:"skeleton-cart-inner"},t.createElement("div",{className:"skeleton-thumbnails"},Array.from({length:3}).map(((e,n)=>t.createElement("div",{key:n,className:"skeleton-thumbnail skeleton-pulse"}))),t.createElement("button",{className:"skeleton-add-button"},t.createElement("div",{className:"skeleton-add-icon skeleton-pulse"}))),t.createElement("div",{className:"skeleton-subtotal-section"},t.createElement("div",{className:"skeleton-subtotal-text"},t.createElement("div",{className:"skeleton-subtotal-label skeleton-pulse"}),t.createElement("div",{className:"skeleton-subtotal-amount skeleton-pulse"})),t.createElement("div",{className:"skeleton-checkout-button skeleton-pulse"}))))),t.createElement("div",{className:"skeleton-spacer"}));function Mg(){return t.createElement("div",{className:"skeleton-card"},t.createElement("div",{className:"skeleton-card-content"},t.createElement("div",{className:"skeleton-card-image"},t.createElement("div",{className:"skeleton-shimmer"})),t.createElement("div",{className:"skeleton-card-size skeleton-pulse"})))}const Ag='\n.yt-bundleBuilder-product-card {\n display: flex;\n flex-direction: column;\n width: 280px;\n row-gap: 8px;\n justify-content: space-between;\n cursor: pointer;\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n overflow: hidden;\n\n background-color: var(--card-bg, #fff);\n border-radius: var(--card-radius, 0);\n border: var(--card-border, none);\n box-shadow: var(--card-shadow, none);\n}\n\n.yt-bundleBuilder-product-card:hover {\n transform: scale(1.01);\n}\n\n.yt-bundleBuilder-image-effect_hover-image img {\n transition: transform 0.25s ease;\n will-change: transform;\n}\n\n.yt-product-card:hover img {\n transform: scale(1.05);\n}\n\n\n.yt-bundleBuilder-product-card_remove-button{\n width: 25%;\n background-color: #111;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #fff;\n height: 100%;\n cursor: pointer;\n}\n\n.yt-bundleBuilder-product-card_image-wrapper {\n display: flex;\n position: relative;\n flex-direction: column;\n padding: 0px;\n}\n\n.yt-bundleBuilder-product-card_title {\n font-size: var(--title-font-size, 18px);\n font-weight: var(--yt-bundle-font-weight, bold);\n color: #333;\n line-height: normal;\n margin-top: var(--title-margin-top, 0px);\n padding: var(--title-padding, 0 4px);\n\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.bundle-builder-variant-selector {\n border: 1px solid #c7c7c7;\n padding: 8px 8px 8px 10px;\n position: absolute;\n width: 98%;\n height: 38px;\n bottom: 4px;\n right: 3px;\n background-color: #f5f5f5;\n font-size: 14px;\n cursor: pointer;\n opacity: 0.8;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n\n background-image: none !important;\n margin-bottom: 0 !important;\n}\n\n.bundle-builder-variant-selector--coralHaze {\n appearance: auto;\n -webkit-appearance: auto;\n -moz-appearance: auto;\n}\n\n.yt-bundleBuilder-product-card_title {\n font-size: var(--title-font-size, 18px);\n font-weight: var(--yt-bundle-font-weight, bold);\n color: #333;\n line-height: normal;\n margin-top: var(--title-margin-top, 0px);\n padding: var(--title-padding, 0 4px);\n\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.yt-product-atc-wrapper {\n position: relative;\n width: 100%;\n height: 40px;\n}\n\n.yt-product-atc-button {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-quantity-selector-container--visible {\n position: absolute;\n background-color: "#e7e7e7";\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.3s ease;\n transform: translateX(-100%); /* Start off-screen to the left */\n\n &.visible {\n transform: translateX(0); /* Slide in from the left */\n }\n}\n\n.yt-bundleBuilder-product-card_add-to-bundle-button--added {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n justify-content: space-between;\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-product-card_added-button-text {\n flex: 1;\n text-align: center;\n font-size: 14px;\n background-color: #747474;\n color: #fff;\n padding: 10px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: default;\n}\n\n.yt-bundleBuilder-product-card_added-button-text {\n width: 100%;\n background-color: #747474;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #fff;\n height: 100%;\n cursor: pointer;\n}\n\n.yt-bundleBuilder-product-card_add-to-bundle-button--disabled {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-quantity-selector-container {\n display: flex;\n flex-direction: row;\n height: 100%;\n background-color: #e7e7e7;\n width: 100%;\n font-weight: 600;\n}\n\n.yt-bundleBuilder-quantity-selector_quantity {\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n width: 100%;\n font-size: 14px;\n}\n\n.yt-bundleBuilder-products-display {\n font-size: 20px;\n width: 100%;\n}\n\n.yt-bundleBuilder-header-container{\n z-index: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px;\n width: 90%;\n max-width: 1000px;\n}\n\n.bundle-builder-product-container {\n display: flex;\n flex-direction: column;\n width: 280px;\n row-gap: 8px;\n justify-content: space-between;\n cursor: pointer;\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n overflow: hidden;\n -webkit-tap-highlight-color: transparent; /* from inline style */\n}\n\n/* Hover/scale effect */\n.bundle-builder-product-container:hover {\n transform: scale(1.01);\n}\n\n.bundle-builder-product-container:active {\n transform: scale(1);\n}\n\n/* Optional shadows depending on "shadowType" */\n.bundle-builder-product-container.shadow-none {\n box-shadow: none;\n}\n\n.bundle-builder-product-container.shadow-spread {\n box-shadow: 8px 8px 8px -6px #0000004d;\n}\n\n.bundle-builder-product-container.shadow-no-spread {\n box-shadow: 6px 6px 0px -1px #00000033;\n}\n\n.yt-bundleProductModal-modal-overlay{\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n\n}\n/* bundleProductDetailsModal.style.css */\n\n.yt-bundleProductModal-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n}\n\n.yt-bundleProductModal-modal-content {\n background-color: white;\n box-shadow: 3px 6.01px 25.69px 0px rgba(0, 0, 0, 0.25);\n overflow-y: auto;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-modal-content.small-screen {\n width: 100%;\n height: 100%;\n padding: 20px;\n border-radius: 0;\n}\n\n.yt-bundleProductModal-modal-content.large-screen {\n padding: 15px;\n border-radius: 16.5px;\n max-width: min(1200px, 70%);\n max-height: 80vh;\n}\n\n.yt-bundleProductModal-selection-modal {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n z-index: 2147483644;\n background-color: white;\n overflow-y: auto;\n}\n\n.yt-bundleProductModal-modal-close-button {\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: none;\n}\n\n.yt-bundleProductModal-modal-close-button svg {\n color: #000;\n font-size: 25px;\n filter: drop-shadow(0 0 8px white) drop-shadow(0 0 5px white);\n}\n\n.yt-bundleProductModal-selection-modal.large-screen {\n display: flex;\n flex-direction: row;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen {\n flex-direction: column;\n}\n\n.yt-bundleProductModal-modal-image-section {\n width: 50%;\n height: fit-content;\n}\n.yt-bundleProductModal-modal-image-section.small-screen {\n width: 100%;\n height: fit-content;\n}\n\n.yt-bundleProductModal-selection-modal.large-screen .yt-bundleProductModal-modal-image-section {\n width: 50%;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-image-section {\n width: 100%;\n position: relative;\n justify-content: center;\n}\n\n.yt-bundleProductModal-modal-main-image {\n width: fit-content;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n cursor: zoom-in;\n border-radius: 8px;\n border: 1px solid lightgray;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-main-image {\n width: inherit;\n height: inherit;\n object-fit: cover;\n}\n\n.yt-bundleProductModal-modal-main-image:hover {\n cursor: zoom-in;\n}\n\n.yt-bundleProductModal-modal-image-gallery {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 10px;\n overflow-y: auto;\n margin-top: 10px;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-image-gallery {\n display: flex;\n flex-direction: row;\n overflow-x: auto;\n padding: 5px 20px;\n gap: 5px;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-modal-image-gallery img {\n width: 90px;\n height: 90px;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.3s ease;\n border-radius: 7px;\n border: 1px solid lightgray;\n object-fit: cover;\n}\n\n.yt-bundleProductModal-modal-image-gallery img.active,\n.yt-bundleProductModal-modal-image-gallery img:hover {\n opacity: 1;\n}\n\n.yt-bundleProductModal-modal-details-section {\n width: 50%;\n padding-left: 20px;\n max-height: 70vh;\n scrollbar-width: none;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-details-section {\n padding: 0 30px;\n margin: 15px 0;\n padding-bottom: 120px;\n width: 100%;\n}\n.yt-bundleProductModal-selection-modal.yt-variant-selection-modal.small-screen{\n height: 500px;\n}\n\n.yt-bundleProductModal-modal-details-section.small-screen {\n padding: 5px 0px 10px 10px !important;\n margin: 15px 0;\n padding-bottom: 120px;\n width: 100%;\n height: fit-content !important;\n}\n\n.yt-bundleProductModal-modal-details-section h2 {\n text-align: left !important;\n margin-bottom: 10px;\n line-height: normal !important;\n margin-top: 0;\n}\n\n.yt-bundleProductModal-modal-price-and-cta {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n\n.yt-bundleProductModal-modal-separator {\n height: 10px;\n min-height: 10px;\n border: none;\n background-color: #d9d9d96b;\n margin: 20px 0 10px 0;\n display: block !important;\n}\n\n.yt-bundleProductModal-modal-phone-close-button {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999999999;\n background-color: #ffffff;\n padding: 4px;\n border-radius: 50%;\n border: 1px solid lightgray;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-modal-phone-close-button svg {\n height: 22px;\n width: 22px;\n padding: 4px;\n color: black;\n}\n\n.yt-bundleProductModal-modal-phone-bottom-bar {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 12px 15px;\n border-top: 1px solid lightgray;\n box-shadow: 0px -4px 5px rgba(0, 0, 0, 0.1);\n background-color: #fff;\n display: flex;\n flex-direction: column;\n gap: 2px;\n z-index: 9999999999;\n}\n\n.yt-bundleProductModal-modal-select-input {\n appearance: none;\n border: none;\n background: transparent;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n padding-right: 20px;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 100%;\n opacity: 0;\n z-index: 2;\n}\n\n.yt-bundleProductModal-modal-price {\n font-size: 20px;\n font-weight: 600;\n color: #000;\n text-align: center;\n line-height: normal;\n}\n\n.yt-bundleProductModal-modal-atc-wrapper {\n width: 80%;\n}\n\n.yt-bundleProductModal-modal-atc-button {\n text-transform: uppercase;\n font-weight: 800;\n width: 100%;\n cursor: pointer;\n border: none;\n min-height: 40px;\n padding: 0 15px;\n position: relative;\n overflow: hidden;\n}\n\n/* Review rating styles */\n.yt-bundleProductModal-modal-rating {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n}\n\n.yt-bundleProductModal-modal-rating-and-review-count {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n margin-left: 10px;\n}\n\n.yt-bundleProductModal-modal-rating-and-review-count .yt-bundleProductModal-modal-rating-only {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n}\n@media (max-width: 108px) {\n .yt-fixed-bundle-price-section {\n width: 100% !important;\n }\n .yt-fixed-bundle-product-list {\n max-width: 100% !important;\n width: 100% !important;\n justify-content: center !important;\n }\n .price-text {\n text-align: center !important;\n }\n .bundle-builder-add-to-bundle-button {\n font-size: 12px !important;\n padding: 0px 8px !important;\n }\n .quantity .input-text.qty {\n width: 12px !important;\n height: 18px !important;\n }\n .quantity.buttons_added .minus,\n .quantity.buttons_added .plus {\n padding: 6px !important;\n height: 20px !important;\n }\n .bundle-builder-tracker-container {\n justify-content: center !important;\n }\n .bundle-builder-title .bundle-builder-subtitle {\n font-size: 30px !important;\n }\n .bundle-builder-title {\n font-size: 2rem !important;\n }\n .bundle-builder-tracker-item {\n width: 64px !important;\n height: 64px !important;\n }\n .bundle-builder-product-title {\n font-size: 14px !important;\n }\n}\n.hide-tracker-scrollbar {\n overflow-x: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n\n.hide-tracker-scrollbar::-webkit-scrollbar {\n display: none;\n}\n\n.yt-fixed-bundle-border {\n border: 1px solid #c7c7c7;\n}\n\n.yt-fixed-bundle-border-minor-curved {\n border-radius: 8px;\n}\n\n.yt-fixed-bundle-border-minor-curved-image {\n border-radius: 6px;\n}\n\n.yt-fixed-bundle-border-major-curved {\n border-radius: 20px;\n}\n\n.yt-fixed-bundle-border-major-curved-image {\n border-radius: 18px;\n}\n\n@media (min-width: 1200px) {\n .bundle-builder-title .bundle-builder-subtitle {\n font-size: 30px !important;\n }\n}\n@media (max-width: 540px) {\n .bundle-builder-tracker-container {\n gap: 5px !important;\n margin-block: 0 !important;\n }\n .bundle-summary {\n display: flex;\n flex-direction: column !important;\n align-items: flex-start;\n gap: 2px !important;\n }\n .bundle-summary button {\n padding-top: 2px !important;\n padding-inline: 13px !important;\n font-size: 14px !important;\n padding-inline: 10px !important;\n padding: 0px;\n width: -webkit-fill-available;\n }\n .bundle-builder-tracker-progress {\n display: block !important;\n }\n .summary-info {\n width: 100% !important;\n min-width: 200px !important;\n display: flex;\n justify-content: space-between !important;\n flex-direction: row !important;\n flex-grow: 1 !important;\n font-size: 14px !important;\n }\n}\n@media (max-width: 540px) {\n .products-display {\n justify-content: space-between !important;\n column-gap: 5px !important;\n }\n .bundle-builder-product-container {\n width: 49% !important;\n }\n .bundle-builder-title {\n font-size: 1.5rem !important;\n margin-bottom: 8px !important;\n }\n .bundle-builder-subtitle {\n padding-top: 4px;\n font-size: 1rem !important;\n }\n}\n@media (max-width: 540px) {\n .bundle-summary.bundle-filled {\n display: flex !important;\n }\n}\n.yt-bundle-builder-product-price {\n font-weight: 600;\n color: black;\n margin-bottom: 2px;\n}\n\n/* Fixed bundle block */\n.yt-fixed-bundle-fixed-bundle {\n box-sizing: unset;\n max-width: 1000px;\n margin: 0 auto;\n container-type: inline-size;\n text-align: left;\n}\n\n.yt-fixed-bundle-bundle-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n gap: 8px;\n line-height: normal;\n}\n\n.yt-fixed-bundle-bundle-title {\n font-size: 24px;\n font-weight: 600;\n text-align: center;\n width: 100%;\n}\n\n.yt-fixed-bundle-bundle-subtitle {\n font-size: 16px;\n font-weight: 300;\n text-align: center;\n}\n\n.yt-fixed-bundle-bundle-content {\n display: flex;\n flex-direction: column;\n padding: 10px 0px;\n}\n\n.yt-fixed-bundle-product-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.yt-product-main {\n width: 100%;\n}\n\n.yt-fixed-bundle-product-card {\n display: flex;\n width: 90%;\n align-items: flex-start;\n padding: 0px;\n box-shadow: 2px 2px 11.8px 0px rgba(0, 0, 0, 0.1411764706);\n transition: transform 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-fixed-bundle-product-image-container {\n margin-right: 8px;\n height: 110px;\n position: unset;\n}\n\n.yt-fixed-bundle-product-image {\n max-width: none;\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n}\n\n.yt-fixed-bundle-product-details {\n width: 100%;\n align-self: center;\n display: flex;\n flex-direction: column;\n gap: 6px;\n text-align: left;\n}\n\n.yt-fixed-bundle-product-title {\n font-size: 16px;\n font-weight: 700;\n display: block;\n line-height: 1.4;\n}\n\n.yt-fixed-bundle-product-price {\n font-size: 16px;\n display: block;\n margin-bottom: 6px;\n}\n\n.yt-fixed-bundle-original-price {\n text-decoration: line-through !important;\n color: #6b7280;\n margin-left: 4px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-mobile {\n width: 98%;\n position: relative;\n display: flex;\n}\n\n.yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n height: 100%;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-checkbox {\n display: none !important;\n}\n\n.yt-fixed-bundle-checkbox-label {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #000;\n background: white;\n cursor: pointer;\n color: white !important;\n}\n\n.yt-fixed-bundle-checkbox:checked + .yt-fixed-bundle-checkbox-label {\n border-color: #000;\n color: white !important;\n border: 0px;\n font-size: 16px;\n}\n\n.yt-fixed-bundle-variant-select {\n appearance: none;\n -webkit-appearance: none;\n width: 100%;\n padding: 4px 20px;\n background-color: #ffffff;\n font-size: 15px;\n background-image: none;\n color: #2d2d2d;\n cursor: pointer;\n transition: border-color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-fixed-bundle-variant-select:focus {\n border-color: #cac6c6;\n box-shadow: 0 0 8px 0 rgba(56, 55, 57, 0.3);\n outline: none;\n}\n\n.yt-fixed-bundle-select-dot {\n position: absolute;\n top: 50%;\n left: 10px;\n transform: translateY(-50%);\n font-weight: 700;\n color: #4d4d4d;\n width: 8px; /* Adjust size */\n font-size: 8px;\n border-radius: 50%;\n pointer-events: none;\n}\n\n.yt-fixed-bundle-select-dot::after {\n content: "";\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background-color: #1b1b1b;\n}\n\n.yt-fixed-bundle-select-icon {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n pointer-events: none;\n color: #6b7280;\n background-color: rgba(30, 57, 103, 0.1);\n font-size: 20px;\n height: 100%;\n padding: 0px 5px;\n}\n\n.yt-fixed-bundle-plus-sign {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-plus-sign span {\n display: flex;\n justify-content: center;\n width: 24px;\n height: 22px;\n align-items: center;\n padding-bottom: 2px;\n background-color: #f2f2f2;\n color: black;\n border-radius: 2px;\n font-size: 20px;\n font-weight: bold;\n}\n\n.yt-fixed-bundle-price-section {\n display: flex;\n flex-direction: column;\n margin-top: 20px;\n width: 1000px;\n}\n\n.yt-fixed-bundle-subtotal {\n font-size: 13px;\n font-weight: 400 !important;\n}\n\n.yt-fixed-bundle-subtotal-amount {\n font-weight: 600;\n font-size: 13px;\n}\n\n.yt-fixed-bundle-deal-price-container {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 12px;\n gap: 8px;\n margin-top: 3px;\n flex-direction: row;\n}\n\n.yt-fixed-bundle-deal-price {\n font-size: 16px;\n font-weight: 600;\n}\n\n.yt-fixed-bundle-extra-savings {\n font-size: 12px;\n color: #f6f8f7;\n padding: 4px 8px;\n background-color: #d3122a;\n border-radius: 2px;\n font-weight: 700 !important;\n}\n\n.yt-fixed-bundle-add-to-cart-button {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background-color: #8b5cf6;\n border: none;\n padding: 8px 0px;\n font-size: 16px;\n font-weight: 500 !important;\n cursor: pointer;\n width: 100%;\n}\n\n.yt-fixed-bundle-add-to-cart-button:disabled,\n.yt-fixed-bundle-add-to-cart-button[disabled] {\n color: #7d7d7d;\n cursor: default;\n}\n\n.yt-fixed-bundle-product-card.horizontal {\n max-width: 100%;\n flex-direction: row;\n}\n\n.yt-fixed-bundle-product-card.horizontal:hover {\n transform: none;\n}\n\n.yt-fixed-bundle-product-list.horizontal {\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n flex-wrap: wrap;\n gap: 15px;\n}\n\n.yt-product-main.horizontal {\n width: 100%;\n}\n\n.yt-fixed-bundle-product-image-container.horizontal {\n height: 110px;\n margin-bottom: 0px;\n position: unset;\n width: 30%;\n}\n\n.yt-fixed-bundle-product-image.horizontal {\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n user-select: none;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-desktop.horizontal {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-mobile.horizontal {\n width: 98%;\n position: relative;\n display: flex;\n}\n\n.yt-fixed-bundle-checkbox-container-desktop.horizontal {\n position: absolute;\n height: 100%;\n left: -8px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-product-details.horizontal {\n padding-left: 0px;\n}\n\n.yt-fixed-bundle-product-price.horizontal {\n margin-bottom: 0px;\n}\n\n@media (min-width: 100px) {\n @container (width > 100px) {\n .yt-fixed-bundle-fixed-bundle {\n padding: 40px;\n }\n .yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: flex;\n width: 100%;\n bottom: 6px;\n }\n .yt-fixed-bundle-variant-select-wrapper-mobile {\n display: none;\n width: 100%;\n }\n .yt-fixed-bundle-checkbox-label {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #000;\n background: white;\n cursor: pointer;\n color: white !important;\n }\n .yt-fixed-bundle-checkbox:checked + .yt-fixed-bundle-checkbox-label {\n border-color: #000;\n color: white !important;\n border: 0px;\n font-size: 16px;\n }\n .yt-fixed-bundle-variant-select {\n margin: 0px 4px;\n }\n .yt-fixed-bundle-select-icon {\n right: 4px;\n }\n .yt-fixed-bundle-bundle-title {\n font-size: 32px;\n }\n .yt-fixed-bundle-bundle-subtitle {\n font-size: 20px;\n }\n .yt-fixed-bundle-bundle-content {\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n }\n .yt-fixed-bundle-product-list {\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n flex-wrap: wrap;\n gap: 15px;\n }\n .yt-fixed-bundle-product-card {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n text-align: center;\n }\n .yt-fixed-bundle-product-image-container {\n width: 100%;\n height: 100%;\n margin-right: 0;\n margin-bottom: 12px;\n justify-content: center;\n position: relative;\n }\n .yt-fixed-bundle-product-details {\n width: 100%;\n align-self: center;\n display: flex;\n flex-direction: column;\n gap: 6px;\n text-align: left;\n }\n .yt-fixed-bundle-product-image {\n height: 230px;\n width: 100%;\n aspect-ratio: 1;\n align-self: center;\n }\n .yt-fixed-bundle-plus-sign {\n align-self: center;\n margin-left: 0;\n }\n .yt-fixed-bundle-price-section {\n width: 100%;\n margin-top: 32px;\n align-items: center;\n justify-content: center;\n text-align: center;\n }\n .yt-fixed-bundle-extra-savings {\n font-size: 10px;\n }\n .yt-fixed-bundle-subtotal {\n font-size: 15px;\n }\n .yt-fixed-bundle-subtotal-amount {\n font-size: 15px;\n }\n .yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n top: 8px;\n left: 10px;\n height: auto;\n display: flex;\n align-items: center;\n }\n .yt-fixed-bundle-deal-price {\n font-size: 24px;\n }\n .yt-fixed-bundle-extra-savings {\n font-size: 13px;\n padding: 4px 8px;\n }\n .yt-fixed-bundle-add-to-cart-button {\n font-size: 20px;\n padding: 10px 0px;\n width: 100%;\n }\n .yt-product-main {\n width: 29%;\n }\n .yt-fixed-bundle-product-card:hover {\n transform: translateY(-5px);\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1411764706);\n }\n }\n}\n.yt-product-main {\n display: flex;\n position: relative;\n}\n\n/* Container query */\n@container (max-width: 100px) {\n .yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n }\n .yt-product-main {\n width: 100%;\n }\n .yt-fixed-bundle-variant-select-wrapper-mobile {\n width: 98%;\n position: relative;\n display: flex;\n bottom: 6px;\n }\n .yt-fixed-bundle-product-image {\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n }\n .yt-fixed-bundle-variant-select-wrapper {\n position: relative;\n width: 100%;\n }\n .yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n height: 100%;\n left: -8px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .yt-fixed-bundle-product-image-container {\n margin-right: 8px;\n height: 110px;\n margin-bottom: 0px;\n position: unset;\n }\n .yt-fixed-bundle-product-card {\n max-width: 100%;\n flex-direction: row;\n }\n .yt-fixed-bundle-price-section {\n width: 100%;\n }\n}\n.yt-product-card-transition {\n opacity: 0;\n transform: translateY(20px);\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n}\n\n.yt-product-card-transition-up {\n opacity: 0;\n transform: translateY(-20px);\n transition: opacity 0.6s ease, transform 0.6s ease;\n}\n\n.yt-product-card-transition-active {\n opacity: 1;\n transform: translateY(0);\n}\n\n.yt-description-content img {\n max-width: 100%;\n height: auto;\n display: block;\n margin: 0 auto 15px;\n border-radius: 7px;\n}\n\n.yt-description-content {\n text-align: left;\n overflow-wrap: break-word;\n}\n.bundle-builder-tracker-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n width: 100%;\n align-items: center;\n text-align: center;\n row-gap: 4px;\n justify-content: space-between; \n padding: 4px 10px; \n}\n\n.bundle-builder-tracker-container.mobile {\n padding: 0;\n min-height: 30px;\n}\n\n@keyframes loader-default-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n* {\n animation-timing-function: linear;\n}\n\n.yt-bundleBuilderTracker-mobile-remaining{\n color: #000;\n background-color: #f5f5f5;\n padding: 10px;\n font-weight: 600;\n font-size: 18px;\n width: 100%;\n height: 80px;\n margin: 10px 0px;\n border: 1px solid #d3d3d3;\n}\n\n.yt-bundleBuilderTracker-tier-progress-container{\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-tier-progress-text{\n width: 100%;\n font-size: 14px;\n background-color: #e0e0e0;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-background{\n width: 100%;\n background-color: #e0e0e0;\n height: 6px;\n border-radius: 0;\n}\n\n.bundle-builder-tracker-progress,\n.yt-bundleBuilderTracker-progress-bar-fill {\n display: block;\n height: 100%;\n transition: width 0.3s ease-in-out, background-color 0.5s ease-in-out;\n}\n\n.yt-bundleBuilderTracker-quantity-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n font-size: 14px;\n border-radius: var(--corner-radius);\n}\n\n\n/* component.css */\n.yt-bundleBuilderTracker-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n padding: 4px 10px;\n width: 100%;\n align-items: center;\n text-align: center;\n row-gap: 4px;\n justify-content: space-between;\n}\n\n.yt-bundleBuilderTracker-container.mobile {\n padding: 0px;\n min-height: 30px;\n}\n\n.yt-bundleBuilderTracker-offer-tier-tag {\n position: absolute;\n top: -20px;\n padding: 5px 10px;\n}\n\n@media (max-width: 768px) {\n .yt-bundleBuilderTracker-offer-tier-tag {\n font-size: 12px;\n left: 0;\n }\n}\n\n.yt-bundleBuilderTracker-mobile-remaining {\n color: #000;\n background-color: #f5f5f5;\n padding: 10px;\n font-weight: 600;\n font-size: 18px;\n width: 100%;\n height: 80px;\n margin: 10px 0px;\n border: 1px solid #d3d3d3;\n}\n\n.yt-bundleBuilderTracker-tier-progress-container {\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-tier-progress-text {\n width: 100%;\n font-size: 14px;\n background-color: #e0e0e0;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-background {\n width: 100%;\n background-color: #e0e0e0;\n height: 6px;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-fill {\n display: block;\n height: 100%;\n transition: width 0.3s ease-in-out, background-color 0.5s ease-in-out;\n}\n\n.yt-bundleBuilderTracker-product-list-wrapper {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n overflow-x: auto;\n}\n\n.yt-bundleBuilderTracker-summary-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 15px;\n justify-content: center;\n row-gap: 15px;\n padding: 0px 5px;\n}\n\n.yt-bundleBuilderTracker-summary-container.mobile {\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-item-wrapper {\n position: relative;\n margin-top: 8px;\n margin-right: 5px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-item-image-box {\n position: relative;\n border: 1px solid #d3d3d3;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.yt-bundleBuilderTracker-quantity-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-remove-button {\n position: absolute;\n top: -8px;\n right: -8px;\n background-color: black;\n color: white !important;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n\n.yt-bundleBuilderTracker-detailed-item-container {\n height: 85px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 5px 15px 0 5px;\n border: 1px solid #d3d3d3;\n column-gap: 5px;\n max-width: 220px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-detailed-image {\n position: relative;\n height: 75px;\n width: 75px;\n border: 1px solid #d3d3d3;\n border-radius: 5px;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.yt-bundleBuilderTracker-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n border-radius: 2px;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-info-block {\n display: flex;\n flex-direction: column;\n row-gap: 8px;\n justify-content: flex-start;\n align-items: flex-start;\n text-align: left;\n}\n\n.yt-bundleBuilderTracker-product-title {\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n\n.yt-bundleBuilderTracker-product-price {\n font-size: 13px;\n line-height: normal;\n}\n\n.yt-bundleBuilderTracker-remove-link {\n color: red;\n font-size: 10px;\n display: flex;\n flex-direction: row;\n column-gap: 3px;\n align-items: center;\n cursor: pointer;\n}\n\n.yt-bundleBuilderTracker-placeholder-box {\n border: 1px solid #d3d3d3;\n margin-top: 10px;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n flex-shrink: 0;\n}\n\n.yt-bundleBuilderTracker-summary-info {\n display: flex;\n flex-direction: column;\n font-size: 18px;\n align-items: center;\n justify-content: center;\n}\n\n.yt-bundleBuilderTracker-subtotal-label {\n line-height: normal;\n color: black;\n align-self: center;\n justify-content: center;\n display: flex;\n font-weight: 700;\n font-size: 16px;\n}\n\n.yt-bundleBuilderTracker-save-label {\n font-size: 12px;\n color: #f6f8f7;\n padding: 4px 8px;\n background-color: #d3122a;\n border-radius: 2px;\n font-weight: 700;\n}\n\n@media (max-width: 600px) {\n .yt-bundleBuilderTracker-save-label {\n display: none;\n }\n}\n\n.yt-bundleBuilderTracker-subtotal-row {\n display: flex;\n flex-direction: row;\n column-gap: 5px;\n font-size: 16px;\n margin: 5px 0px;\n align-items: flex-end;\n}\n\n.yt-bundleBuilderTracker-total_price {\n font-weight: bold;\n text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-summary_price {\n color: #a0a0a0;\n text-decoration-line: line-through;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-checkout-button {\n padding: 5px 20px;\n height: 42px;\n outline: none;\n width: fit-content;\n min-width: 200px;\n transition: background-color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-bundleBuilderTracker-checkout-button:hover {\n background-color: var(--ctaHoverBackgroundColor, #f4f4f6);\n color: var(--ctaHoverTextColor, #000);\n}\n\n@media (max-width: 768px) {\n .yt-bundleBuilderTracker-checkout-button {\n width: 100%;\n padding: 5px 5px;\n margin-inline: 0px;\n }\n}\n\n.yt-bundleBuilderTracker-checkout-text {\n display: flex;\n flex-direction: row;\n column-gap: 6px;\n align-items: center;\n justify-content: center;\n font-weight: 650;\n}\n\n.yt-bundleBuilderTracker-product-list-tracker-item {\n position: relative;\n margin-top: 8px;\n margin-right: 5px;\n border: 1px solid #d3d3d3;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-detailed-product-item {\n height: 85px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 5px 15px 0 5px;\n border: 1px solid #d3d3d3;\n column-gap: 5px;\n max-width: 220px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-plus-icon-container {\n justify-content: center;\n align-items: center;\n margin: 0px 6px;\n text-align: center;\n display: flex;\n flex-shrink: 0;\n}\n.yt-bundleProductModal-close-button {\n position: absolute;\n top: 0px;\n right: 0px;\n cursor: pointer;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: none;\n}\n\n.yt-bundleProductModal-close-button svg {\n color: #000;\n font-size: 25px;\n filter: drop-shadow(0 0 8px white) drop-shadow(0 0 5px white);\n}\n\n@media (max-width: 540px) {\n .yt-bundleProductModal-close-button {\n top: 5px;\n right: 5px;\n }\n}\n\n.yt-bundleProductModal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n}\n\n.yt-bundleProductModal-content {\n background-color: white;\n box-shadow: 3px 6.01px 25.69px 0px rgba(0, 0, 0, 0.25);\n overflow-y: auto;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-content.small-screen {\n padding: 20px;\n border-radius: 0;\n width: 100%;\n height: 100%;\n}\n\n.yt-bundleProductModal-content.large-screen {\n padding: 15px;\n border-radius: 16.5px;\n max-width: min(1200px, 70%);\n max-height: 80vh;\n}\n\n.yt-product-selection-modal {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n}\n\n.yt-variant-selection-modal {\n position: relative;\n z-index: 2147483644;\n background-color: white;\n overflow-y: auto;\n}\n\n.yt-variant-selection-modal .details-section h2 {\n text-align: left !important;\n margin-bottom: 10px;\n line-height: normal !important;\n}\n\n.yt-variant-selection-modal .details-section .price {\n font-size: 1.7em;\n font-weight: bold;\n margin-bottom: 10px;\n}\n\n.yt-variant-selection-modal .details-section .add-to-bundle {\n margin-top: 20px;\n padding: 10px 20px;\n background-color: #4caf50;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 1em;\n transition: background-color 0.3s ease;\n}\n\n.yt-variant-selection-modal .details-section .add-to-bundle:hover {\n background-color: #45a049;\n}\n\n.yt-variant-selection-modal.small-screen {\n flex-direction: column;\n}\n\n.yt-variant-selection-modal.small-screen .yt-bundleProductModal-image-section {\n justify-content: center;\n position: relative;\n width: 100%;\n}\n\n.yt-variant-selection-modal.small-screen .yt-bundleProductModal-image-section .yt-bundleProductModal-main-image {\n width: inherit;\n height: inherit;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n}\n\n.yt-bundleProductModal-main-image:hover {\n cursor: zoom-in;\n}\n\n.yt-variant-selection-modal.large-screen {\n display: flex;\n flex-direction: row;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-section {\n width: 50%;\n height: fit-content;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-section .yt-bundleProductModal-main-image {\n width: fit-content;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n cursor: zoom-in;\n border-radius: 8px;\n border: 1px solid lightgray;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery {\n display: flex;\n flex-wrap: nowrap;\n gap: 10px;\n overflow-x: auto;\n margin-top: 10px;\n scrollbar-width: none;\n}\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery::-webkit-scrollbar {\n display: none;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img {\n width: 90px;\n height: 90px;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.3s ease;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img.active,\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img:hover {\n opacity: 1;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-details-section {\n width: 50%;\n padding-left: 20px;\n}\n\n.yt-bundleProductModal-select-input {\n width: 50%;\n padding: 5px;\n margin-bottom: 20px;\n border: 1px solid #ccc;\n border-radius: 4px;\n font-size: 1em;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-price-and-cta {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n\n.yt-bundleProductModal-atc-wrapper {\n width: 80%;\n}\n\n.yt-bundleProductModal-atc-button {\n text-transform: uppercase;\n font-weight: 800;\n width: 100%;\n cursor: pointer;\n border: none;\n min-height: 40px;\n padding: 0px 15px;\n position: relative;\n overflow: hidden;\n}\n\n.yt-bundleProductModal-separator {\n height: 10px;\n min-height: 10px;\n border: none;\n background-color: #d9d9d96b;\n margin: 20px 0 10px 0;\n display: block !important;\n}\n\n.yt-description-content {\n scroll-behavior: smooth;\n}\n\n.yt-bundleProductModal-phone-close-button {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999999999;\n background-color: #ffffff;\n padding: 4px;\n border-radius: 50%;\n border: 1px solid lightgray;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-image-indicator {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n margin: 0 3px;\n cursor: pointer;\n backdrop-filter: blur(10px);\n}\n\n.yt-bundleProductModal-image-gallery::-webkit-scrollbar {\n display: none;\n}\n/* Container Styles */\n.skeleton-container {\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n}\n\n.dark .skeleton-container {\n background-color: #1a1a1a;\n}\n\n/* Header Styles */\n.skeleton-header {\n border-bottom: 1px solid #e5e5e5;\n padding: 1rem 1.5rem;\n}\n\n.dark .skeleton-header {\n border-bottom-color: #333333;\n}\n\n.skeleton-header-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n max-width: 1600px;\n margin: 0 auto;\n}\n\n.skeleton-logo {\n height: 2rem;\n width: 8rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n}\n\n.dark .skeleton-logo {\n background-color: #2a2a2a;\n}\n\n.skeleton-icons {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n\n.skeleton-icon {\n height: 1.5rem;\n width: 1.5rem;\n background-color: #f5f5f5;\n border-radius: 50%;\n}\n\n.dark .skeleton-icon {\n background-color: #2a2a2a;\n}\n\n/* Main Content Styles */\n.skeleton-main {\n flex: 1;\n padding: 2rem 1.5rem;\n}\n\n.skeleton-grid-wrapper {\n max-width: 1600px;\n margin: 0 auto;\n}\n\n.skeleton-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 1rem;\n}\n\n@media (min-width: 640px) {\n .skeleton-grid {\n grid-template-columns: repeat(2, 1fr);\n gap: 1.5rem;\n }\n}\n\n@media (min-width: 768px) {\n .skeleton-grid {\n grid-template-columns: repeat(3, 1fr);\n }\n}\n\n@media (min-width: 1024px) {\n .skeleton-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n}\n\n@media (min-width: 1280px) {\n .skeleton-grid {\n grid-template-columns: repeat(5, 1fr);\n }\n}\n\n/* Product Card Styles */\n.skeleton-card {\n position: relative;\n}\n\n.skeleton-card-content {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n}\n\n.skeleton-card-image {\n position: relative;\n aspect-ratio: 3 / 4;\n background-color: #f5f5f5;\n border-radius: 0.75rem;\n overflow: hidden;\n}\n\n.dark .skeleton-card-image {\n background-color: #2a2a2a;\n}\n\n.skeleton-card-size {\n height: 2.5rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n}\n\n.dark .skeleton-card-size {\n background-color: #2a2a2a;\n}\n\n.skeleton-card-title-wrapper {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.skeleton-card-title {\n height: 1rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n width: 75%;\n}\n\n.dark .skeleton-card-title {\n background-color: #2a2a2a;\n}\n\n.skeleton-card-price {\n height: 1.25rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n width: 33%;\n}\n\n.dark .skeleton-card-price {\n background-color: #2a2a2a;\n}\n\n.skeleton-card-button {\n height: 3rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n}\n\n.dark .skeleton-card-button {\n background-color: #2a2a2a;\n}\n\n/* Cart Bar Styles */\n/* Updated cart bar to be 80% width, centered, and positioned 20px from bottom */\n.skeleton-cart-bar {\n position: fixed;\n bottom: 20px;\n left: 50%;\n transform: translateX(-50%);\n width: 90%;\n border: 1px solid #e5e5e5;\n border-radius: 0.75rem;\n background-color: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(10px);\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n}\n\n@media (min-width: 768px) {\n .skeleton-cart-bar {\n width: 80%;\n }\n}\n\n.dark .skeleton-cart-bar {\n border-color: #333333;\n background-color: rgba(26, 26, 26, 0.95);\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);\n}\n\n/* Made cart content responsive on mobile */\n.skeleton-cart-content {\n padding: 0.75rem 1rem;\n}\n\n@media (min-width: 768px) {\n .skeleton-cart-content {\n padding: 1rem 1.5rem;\n }\n}\n\n.skeleton-cart-inner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n flex-wrap: wrap;\n}\n\n@media (min-width: 768px) {\n .skeleton-cart-inner {\n gap: 1rem;\n flex-wrap: nowrap;\n }\n}\n\n.skeleton-thumbnails {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n flex: 1;\n overflow-x: auto;\n}\n\n@media (min-width: 768px) {\n .skeleton-thumbnails {\n gap: 0.75rem;\n }\n}\n\n/* Made thumbnails smaller on mobile */\n.skeleton-thumbnail {\n position: relative;\n height: 3rem;\n width: 3rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n flex-shrink: 0;\n}\n\n@media (min-width: 768px) {\n .skeleton-thumbnail {\n height: 4rem;\n width: 4rem;\n }\n}\n\n.dark .skeleton-thumbnail {\n background-color: #2a2a2a;\n}\n\n/* Made add button smaller on mobile */\n.skeleton-add-button {\n height: 3rem;\n width: 3rem;\n border: 2px dashed #e5e5e5;\n border-radius: 0.5rem;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n cursor: pointer;\n}\n\n@media (min-width: 768px) {\n .skeleton-add-button {\n height: 4rem;\n width: 4rem;\n }\n}\n\n.dark .skeleton-add-button {\n border-color: #333333;\n}\n\n.skeleton-add-icon {\n height: 1.5rem;\n width: 1.5rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n}\n\n@media (min-width: 768px) {\n .skeleton-add-icon {\n height: 2rem;\n width: 2rem;\n }\n}\n\n.dark .skeleton-add-icon {\n background-color: #2a2a2a;\n}\n\n.skeleton-subtotal-section {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n@media (min-width: 768px) {\n .skeleton-subtotal-section {\n gap: 1.5rem;\n }\n}\n\n.skeleton-subtotal-text {\n text-align: right;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.skeleton-subtotal-label {\n height: 1rem;\n width: 5rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n}\n\n.dark .skeleton-subtotal-label {\n background-color: #2a2a2a;\n}\n\n.skeleton-subtotal-amount {\n height: 1.5rem;\n width: 6rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n}\n\n.dark .skeleton-subtotal-amount {\n background-color: #2a2a2a;\n}\n\n/* Made checkout button smaller on mobile */\n.skeleton-checkout-button {\n height: 2.5rem;\n width: 8rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n}\n\n@media (min-width: 768px) {\n .skeleton-checkout-button {\n height: 3rem;\n width: 10rem;\n }\n}\n\n.dark .skeleton-checkout-button {\n background-color: #2a2a2a;\n}\n\n.skeleton-spacer {\n height: 6rem;\n}\n\n/* Made hero section responsive on mobile */\n.skeleton-hero {\n max-width: 1200px;\n margin: 0 auto;\n padding: 20px 15px 15px;\n text-align: center;\n}\n\n@media (min-width: 768px) {\n .skeleton-hero {\n padding: 40px 20px 20px;\n }\n}\n\n.skeleton-hero-title {\n height: 30px;\n width: 80%;\n margin: 0 auto 15px;\n background-color: #f5f5f5;\n border-radius: 8px;\n}\n\n@media (min-width: 768px) {\n .skeleton-hero-title {\n height: 40px;\n width: 50%;\n margin: 0 auto 20px;\n }\n}\n\n.dark .skeleton-hero-title {\n background-color: #2a2a2a;\n}\n\n.skeleton-hero-description {\n height: 16px;\n width: 90%;\n margin: 0 auto;\n background-color: #f5f5f5;\n border-radius: 8px;\n}\n\n@media (min-width: 768px) {\n .skeleton-hero-description {\n height: 20px;\n width: 70%;\n }\n}\n\n.dark .skeleton-hero-description {\n background-color: #2a2a2a;\n}\n\n/* Animation Styles */\n@keyframes pulse {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n}\n\n.skeleton-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\n@keyframes shimmer {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(100%);\n }\n}\n\n.skeleton-shimmer {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.1) 20%,\n rgba(255, 255, 255, 0.3) 50%,\n rgba(255, 255, 255, 0.1) 80%,\n rgba(255, 255, 255, 0) 100%\n );\n animation: shimmer 2s infinite;\n}\n\n.dark .skeleton-shimmer {\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.05) 20%,\n rgba(255, 255, 255, 0.1) 50%,\n rgba(255, 255, 255, 0.05) 80%,\n rgba(255, 255, 255, 0) 100%\n );\n}\n\n';export{Ng as Bundle,_g as BundleLoader,eu as Cart,na as CouponFrame,Ue as Nudge,Og as ProductGridSkeleton,Xe as SpinnerWheel,Ag as ytBundleShadowCss};
|
|
4265
|
+
`,Eg=({products:e,isOpen:n,onClose:r,cta:o,variantOptions:a,onVariantChange:i,handleAddToCart:d,primaryProductId:s,variantId:p,shadowRoot:u})=>{const m=u instanceof ShadowRoot?u:document.body,[f,g]=c((()=>{const t={};return e.forEach((({productId:e,productDetails:n})=>{let r=n.options.map((e=>e.values[0]??""));if(e===s&&p){const e=n.variants.edges.find((e=>e.node.id.includes(p)))?.node;e&&(r=e.title.split(" / "))}t[e]=r})),t}));l((()=>{if(!s||!p)return;const t=e.find((e=>e.productId===s));if(!t)return;const n=t.productDetails.variants.edges.find((e=>e.node.id.includes(p)))?.node;if(n){const e=n.title.split(" / ");g((t=>({...t,[s]:e}))),x((e=>({...e,[s]:{node:n}}))),i(s,n.id)}}),[p,s]);const[h,x]=c({}),y=(t,n,r)=>{const o={...f};o[t][r]=n,g(o);const a=e.find((e=>e.productId===t));if(!a?.productDetails)return;const l=a.productDetails.variants.edges.find((e=>e.node.title===o[t].join(" / ")))?.node;l&&(i(t,l.id),x((e=>({...e,[t]:{node:l}}))))};if(!n)return null;const b=t.createElement(dg,{className:"yt-fixedBundle-variant-modal_overlay",onClick:r},t.createElement(sg,{className:"yt-fixedBundle-variant-modal_container",onClick:e=>e.stopPropagation()},t.createElement(pg,{className:"yt-fixedBundle-variant-modal_header",style:{backgroundColor:o.backgroundColor,color:o.textColor}},"Select Options"),e?.map(((n,r)=>t.createElement(t.Fragment,null,t.createElement(mg,{className:"yt-fixedBundle-variant-modal_product-block"},t.createElement(fg,{className:"yt-fixedBundle-variant-modal_thumbnail",src:h[n.productId]?.node?.image?.url||n.productDetails.featuredMedia?.preview?.image?.url,alt:n.productDetails.title}),t.createElement(gg,{className:"yt-fixedBundle-variant-modal_product-info"},t.createElement(hg,{className:"yt-fixedBundle-variant-modal_product-name"},n.productDetails.title,n.productDetails.variants.edges.length>1&&t.createElement(yg,{className:"yt-fixedBundle-variant-modal_selected-value"},f[n.productId].join(" / "))),n.productDetails.options.map(((e,r)=>{const o=a&&a?.options?.find((t=>t.name===e.name));return e.values.length<=1?t.createElement(t.Fragment,null):o&&"color"===o?.type?t.createElement(bg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(kg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map(((e,a)=>t.createElement(t.Fragment,null,o.values.find((t=>t.name===e))?.value?t.createElement(vg,{className:"yt-fixedBundle-variant-modal_color-swatch",key:a,color:o.values.find((t=>t.name===e))?.value||e,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)}},t.createElement("span",null)):t.createElement(wg,{className:"yt-fixedBundle-variant-modal_text-swatch",key:a,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)}},e))))):o&&"image"===o?.type?t.createElement(bg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(kg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map(((e,a)=>t.createElement(t.Fragment,null,o.values.find((t=>t.name===e))?.value?t.createElement(Cg,{className:"yt-fixedBundle-variant-modal_image-swatch",key:a,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)},src:o.values.find((t=>t.name===e))?.value},t.createElement("span",null)):t.createElement(wg,{className:"yt-fixedBundle-variant-modal_text-swatch",key:a,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)}},e))))):t.createElement(bg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(kg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map(((e,o)=>t.createElement(wg,{className:"yt-fixedBundle-variant-modal_text-swatch",key:o,selected:f[n.productId][r]==e,onClick:()=>{y(n.productId,e,r)}},e))))})))),r<e.length-1&&t.createElement(xg,{className:"yt-fixedBundle-variant-modal_divider"})))),t.createElement(ug,{className:"yt-fixedBundle-variant-modal_confirm-button",style:{backgroundColor:o.backgroundColor,color:o.textColor},onClick:d},"Add bundle to cart")));return v.createPortal(b,m)},Tg=({options:e,selectedValue:n,onChange:r,type:a="text",shadowRoot:i})=>{const[d,s]=c(!1),p=o(null);l((()=>{const e=i instanceof ShadowRoot?i:document,t=e=>{if(!p.current)return;(e.composedPath?.()||[e.target]).includes(p.current)||s(!1)};return e.addEventListener("mousedown",t),()=>e.removeEventListener("mousedown",t)}),[i]);const u=e=>"color"===a?t.createElement(eg,{className:"yt-fixedBundle-variant-dropdown-horizontal_color-swatch",$color:e.value},t.createElement("span",null)):"image"===a?t.createElement(tg,{className:"yt-fixedBundle-variant-dropdown-horizontal_image-swatch",src:e.value||"/placeholder.svg",alt:e.name},t.createElement("span",null)):null;return t.createElement(Qf,{className:"yt-fixedBundle-variant-dropdown-horizontal_container",ref:p},t.createElement(qf,{className:"yt-fixedBundle-variant-dropdown-horizontal_header",onClick:()=>s(!d)},t.createElement(Yf,{className:"yt-fixedBundle-variant-dropdown-horizontal_content"},n&&("color"===a||"image"===a)&&u(n),t.createElement("span",{className:"yt-fixedBundle-variant-dropdown-horizontal_selected-text"},n&&n.name)),t.createElement(Zf,{className:"yt-fixedBundle-variant-dropdown-horizontal_chevron-icon",$isOpen:d})),d&&t.createElement(Kf,{className:"yt-fixedBundle-variant-dropdown-horizontal_list"},e?.map((e=>t.createElement(Xf,{className:"yt-fixedBundle-variant-selector_dropdown-item "+(n?.name===e.name?"yt-fixedBundle-variant-selector_dropdown-item--selected":""),key:e.name,$isSelected:n?.name===e.name,onClick:()=>{r(e),s(!1)}},("color"===a||"image"===a)&&u(e),t.createElement(Jf,{className:"yt-fixedBundle-variant-dropdown-horizontal_item-text"},e.name))))))},Sg=({product:e,variantOptions:n,selectedVariants:r,onVariantChange:o,variantId:a,primaryProductId:i,variantType:d="dropdown",shadowRoot:s})=>{const[p,u]=c(r||[]);l((()=>{if(a&&e.variants.edges.some((e=>e.node.id.includes(a)))){const t=e.variants.edges.find((e=>e.node.id.includes(a)))?.node;if(t){const e=t.title.split(" / ");u(e)}}}),[a,e]);const m=e=>{if(!n?.options)return"text";const t=n.options.find((t=>t.name===e));return t?.type||"text"},f=(e,t)=>{if(!n?.options)return e.values.map((e=>({name:e,value:e})));const r=n.options.find((t=>t.name===e.name));return e.values.map((e=>{const t=r?.values?.find((t=>t.name===e));return{name:e,value:t?.value||e}}))},g=(e,t)=>{const n=p[t];if(!n)return null;return f(e).find((e=>e.name===n))||null};return t.createElement(ng,{className:"yt-fixedBundle-variant-selector-horizontal_container"},e.options.map(((n,r)=>t.createElement(rg,{className:"yt-fixedBundle-variant-selector-horizontal_option-row",key:n.name,$isFirst:0===r},n?.values?.length>1&&t.createElement(Tg,{options:f(n),selectedValue:g(n,r),onChange:t=>{console.log(t),((t,n)=>{const r=[...p];r[t]=n.name,u(r);const a=e.variants.edges.find((n=>n.node.title===(e.options?.length>0?r.join(" / "):r[t])))?.node.id;o(a||"")})(r,t)},type:m(n.name),shadowRoot:s})))))},Bg=({product:e,selectedVariantId:n,isChecked:r,canCustomize:o,styles:a,onVariantChange:i,onCheckChange:d,isMobile:s,isHorizontal:p,index:u,variantOptions:m,productsLength:f,handleOpenModal:g,storeCurrencyCode:h,primaryProductId:x,variantId:y,shadowRoot:b})=>{const[v,w]=c(e.variants.edges.find((e=>e.node.id===n))?.node),[C]=c(e.options?.map((e=>e.values[0]))||[]),k=e.id===x;l((()=>{if(y&&e.id===x){const t=e.variants.edges.find((e=>e.node.id.includes(y)))?.node;t&&(w(t),i(t.id))}else{const t=e.variants.edges.find((e=>e.node.id===n))?.node;w(t)}}),[e,x,n,y]);const E="undefined"!=typeof window&&"usee-shop-app.myshopify.com"===window.ytBundleApp?.storeDomain,T=v?.image?.url||e.featuredMedia?.preview?.image?.url;return t.createElement(t.Fragment,null,p?t.createElement("div",{className:""+(e.id===x?"yt-fixedBundle-product-card--horizontal-primary":"yt-fixedBundle-product-card--horizontal-associated"),style:{display:"flex",alignItems:"center",gap:"10px",backgroundColor:a.fixedBundle?.cardBackgroundColor}},o&&t.createElement(lg,{className:"yt-fixedBundle-product-card_checkbox-wrapper--horizontal"},t.createElement(ag,{className:"yt-fixedBundle-product-card_checkbox-hidden",style:{display:"none"},type:"checkbox",id:`checkbox-${e.id}`,defaultChecked:r,onChange:e=>d(e.target.checked),disabled:k}),t.createElement(ig,{className:"yt-fixedBundle-product-card_checkbox-label",htmlFor:`checkbox-${e.id}`,isChecked:r,borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.general?.ctaBackgroundColor},t.createElement(nt,null))),t.createElement(bf,{className:"yt-fixedBundle-product-card-horizontal_item",style:{borderRadius:a.fixedBundle?.borderRadius,border:`1px solid ${a.fixedBundle?.borderColor}80`,backgroundColor:a.fixedBundle?.cardBackgroundColor,boxShadow:{none:"none",spread:`8px 8px 8px -6px ${a.fixedBundle.borderColor}`,"no-spread":`4px 4px 0px -1px ${a.fixedBundle.borderColor}80`}[a.fixedBundle.shadowType]||"none"},canCustomize:o},"undefined"!=typeof window&&"usee-shop-app.myshopify.com"!==window.ytBundleApp?.storeDomain&&t.createElement(vf,{className:"yt-fixedBundle-product-card-horizontal_image",src:T,alt:e.title,style:{borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,aspectRatio:a.general.imageAspectRatio||"1/1",borderTopRightRadius:"0",borderBottomRightRadius:"0"}}),t.createElement(wf,{className:"yt-fixedBundle-product-card-horizontal_details"},t.createElement(Cf,{className:"yt-fixedBundle-product-card-horizontal_title"},e.title),a.fixedBundle.productsPriceVisibility&&t.createElement(kf,{className:"yt-fixedBundle-product-card-horizontal_price-section"},t.createElement(Ef,{className:"yt-fixedBundle-product-card-horizontal_price--new"},Ig(a.general.currencySymbol,h)," ",Dg(v?.price)),a.fixedBundle.compareAtPriceVisibility&&v?.compareAtPrice&&parseFloat(v.compareAtPrice)>parseFloat(v?.price)&&t.createElement(Tf,{className:"yt-fixedBundle-product-card-horizontal_price--old"},Ig(a.general.currencySymbol,h),Dg(v?.compareAtPrice))),t.createElement(Sg,{product:e,variantOptions:m,selectedVariants:C,onVariantChange:e=>{i(e)},variantId:y,primaryProductId:x,shadowRoot:b})))):t.createElement(t.Fragment,null,t.createElement(_f,{className:""+(e.id===x?"yt-fixedBundle-product-card--vertical-primary":"yt-fixedBundle-product-card--vertical-associated"),productsLength:f,style:{borderRadius:a.fixedBundle?.borderRadius,border:`1px solid ${a.fixedBundle?.borderColor}50`,backgroundColor:a.fixedBundle?.cardBackgroundColor,boxShadow:{none:"none",spread:`0 4px 10px -6px ${a.fixedBundle.borderColor}50`,"no-spread":`4px 4px 0px -1px ${a.fixedBundle.borderColor}50`}[a.fixedBundle.shadowType]||"none",...o&&{position:"relative"},...E&&{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",minWidth:"max-content",paddingLeft:"2px"}},borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.fixedBundle?.cardBackgroundColor},o&&t.createElement(cg,{className:"yt-fixedBundle-product-card_checkbox-wrapper--vertical",isImage:E},t.createElement(ag,{className:"yt-fixedBundle-product-card_checkbox-hidden--vertical",style:{display:"none"},type:"checkbox",id:`checkbox-${e.id}`,defaultChecked:r,onChange:e=>d(e.target.checked),disabled:k}),t.createElement(ig,{className:"yt-fixedBundle-product-card_checkbox-label--vertical",htmlFor:`checkbox-${e.id}`,isChecked:r,borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.general?.ctaBackgroundColor},t.createElement(nt,{size:10}))),"undefined"!=typeof window&&"usee-shop-app.myshopify.com"!==window.ytBundleApp?.storeDomain&&t.createElement(Of,{className:"yt-fixedBundle-product-card_image-wrapper--vertical",style:{aspectRatio:a.general.imageAspectRatio,height:"fit-content"}},t.createElement(Mf,{className:"yt-fixedBundle-product-card_image--vertical",src:T,style:{aspectRatio:a.general.imageAspectRatio},alt:e.title}),e.variants.edges.length>1&&t.createElement(Af,{className:"yt-fixedBundle-product-card_badge-container"},t.createElement(Ff,{className:"yt-fixedBundle-product-card_circle-button"},t.createElement("span",null)),t.createElement(Rf,{className:"yt-fixedBundle-product-card_circle-button-two"},t.createElement("span",null)),t.createElement(Lf,{className:"yt-fixedBundle-product-card_count-badge"},e.variants.edges.length,"+"))),t.createElement(jf,{className:"yt-fixedBundle-product-card-vertical_info"},t.createElement(Vf,{className:"yt-fixedBundle-product-card-vertical_title"},e.title),a.fixedBundle.productsPriceVisibility&&t.createElement(Wf,{className:"yt-fixedBundle-product-card-vertical_price-line"},t.createElement(Hf,{className:"yt-fixedBundle-product-card-vertical_price--new"},Ig(a.general.currencySymbol,h),Dg(v?.price)),a.fixedBundle.compareAtPriceVisibility&&v?.compareAtPrice&&parseFloat(v.compareAtPrice)>parseFloat(v?.price)&&t.createElement(Tf,{className:"yt-fixedBundle-product-card-vertical_price--old"},Ig(a.general.currencySymbol,h),Dg(v?.compareAtPrice))))),(f<=3||!s)&&u<f-1&&t.createElement(Uf,{className:"yt-fixedBundle-plus-wrapper"}," ",t.createElement(Gf,{className:"yt-fixedBundle-plus-icon"},"+")," ")))},$g=({bundle:e,addToCartFunction:n,shadowRoot:r})=>{const[o,a]=c(!1),[d,s]=c(window.innerWidth<786),[p,u]=c(null),m="undefined"!=typeof window?window.location.href:null,f=e?.products?.find((e=>e.productDetails?.handle===m?.split("/").pop()?.split("?")[0])),g=f?.productId,[h,x]=c(Object.fromEntries(e?.products?.map((e=>[e.productId,e.productDetails?.variants?.edges?.find((e=>e.node.inventoryQuantity>0))?.node?.id||e.productDetails?.variants?.edges?.[0]?.node?.id])))),[y,b]=c(!1),v="undefined"!=typeof window&&("usee-shop-app.myshopify.com"===window.ytBundleApp?.storeDomain||"devansh-test123.myshopify.com"===window.ytBundleApp?.storeDomain),w=e?.showIndividualProductSelector||!0,[C,k]=c(new Set(e.products.filter((e=>!v||(e.productId===g||w))).map((e=>e.productId))));l((()=>{const e=()=>{const e=new URL(window.location.href).searchParams.get("variant");u(e)},t=e=>{const t=history[e];return function(...n){const r=t.apply(this,n);return window.dispatchEvent(new Event(e.toLowerCase())),r}};return history.pushState=t("pushState"),history.replaceState=t("replaceState"),window.addEventListener("pushstate",e),window.addEventListener("replacestate",e),e(),()=>{window.removeEventListener("pushstate",e),window.removeEventListener("replacestate",e)}}),[]),l((()=>{if(p&&g){const t=e?.products?.find((e=>e.productId===g));if(t){const e=t.productDetails?.variants?.edges?.some((e=>e.node.id.includes(p)));e&&x((e=>({...e,[g]:p})))}}}),[p,g,e?.products]),l((()=>{const e=()=>{s(window.innerWidth<600)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const E=(e,t)=>{x((n=>({...n,[e]:t})))},T=(e,t)=>{v&&w&&t===g||k((n=>{const r=new Set(n);return e?r.add(t):r.delete(t),r}))},S=e.disableInventoryTracking||e.products.every((e=>e.productDetails.variants.edges.some((e=>e.node.inventoryQuantity>0)))),B=i((()=>e.products.some((e=>C.has(e.productId)&&e.productDetails.variants.edges.length>1))),[e.products,C]),{originalPrice:$,dealPrice:z,offerValue:D}=i((()=>{const{price:t,compareAtPrice:n}=e.products.reduce(((e,t)=>{if(!C.has(t.productId))return e;const n=t.productDetails.variants.edges?.find((e=>e.node.id===h[t.productId]))?.node,r=parseFloat(n?.price??"0"),o=parseFloat(n?.compareAtPrice||r.toString());return e.price+=r,e.compareAtPrice+=o,e}),{price:0,compareAtPrice:0}),r=Math.max(t,n);let o=Math.min(t,n);C.size===e.products.length&&(e?.percentageOff?o=t*(1-e.percentageOff/100):e?.dealAmount?o=e.dealAmount:e?.amountOff&&(o=t-e.amountOff));const a=n-o;return{originalPrice:r.toFixed(2),dealPrice:o.toFixed(2),offerValue:a.toFixed(2)}}),[e.products,h,C,e.percentageOff,e.dealAmount,e.amountOff]),I=async e=>{e.preventDefault(),e.stopPropagation(),a(!0),b(!1);try{const e=Object.entries(h).filter((([e])=>C.has(e))).map((([e,t])=>t));n&&await n(Number($),e)}catch(e){console.error("Error adding to cart:",e)}a(!1)};if(!n)return t.createElement(t.Fragment,null);if(e?.customizations.general?.trackInventory&&!S)return t.createElement(t.Fragment,null);const P=e.customizations,N=P.fixedBundle?.cardLayoutStyle||"auto",_="horizontal"===N||"auto"===N&&d,O=()=>{b(!0)},M="bundles"==e.appName?e.pageHeader?.title:e?.title,A="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement(gf,{id:"yt-fixedBundle-container",className:"yt-fixedBundle-container",style:{maxWidth:"800px",backgroundColor:P.fixedBundle.sectionBackgroundColor,..."transparent"!==P.fixedBundle.sectionBackgroundColor&&{padding:"20px"}}},M&&t.createElement(hf,{id:"yt-fixedBundle-header",className:"yt-fixedBundle-header",style:{backgroundColor:P.fixedBundle?.titleBackgroundColor||"none",color:P.fixedBundle?.titleTextColor||"black",textAlign:P.fixedBundle.infoAlignment??"center",fontSize:P.fixedBundle?.titleFontSize,..."transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingBlock:"7px"},..."left"===P.fixedBundle.infoAlignment&&"transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingLeft:"7px"},..."right"===P.fixedBundle.infoAlignment&&"transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingRight:"7px"},..."left"===P.fixedBundle.infoAlignment&&"transparent"===P.fixedBundle.titleBackgroundColor&&{paddingLeft:"0px"}}},M),A&&t.createElement(xf,{id:"yt-fixedBundle-subheader",className:"yt-fixedBundle-subheader",style:{color:"#121212",fontSize:P.fixedBundle?.subtitleFontSize,textAlign:P.fixedBundle.infoAlignment??"center",..."left"===P.fixedBundle.infoAlignment&&"transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingLeft:"7px"},..."right"===P.fixedBundle.infoAlignment&&"transparent"!==P.fixedBundle.titleBackgroundColor&&{paddingRight:"7px"},..."left"===P.fixedBundle.infoAlignment&&"transparent"===P.fixedBundle.titleBackgroundColor&&{paddingLeft:"0px"}}},A),_?t.createElement(yf,{id:"yt-fixedBundle-horizontal-container",className:"yt-fixedBundle-horizontal-container"},e?.products?.map(((n,o)=>t.createElement(t.Fragment,{key:n.productId},t.createElement(Bg,{isChecked:C.has(n.productId),product:n.productDetails,selectedVariantId:h[n.productId],canCustomize:e?.canCustomizeFixedBundle||!1,styles:P,onVariantChange:e=>E(n.productId,e),onCheckChange:e=>{T(e,n.productId)},isMobile:d,index:o,isHorizontal:_,variantOptions:e.variantOptions,productsLength:e.products.length,storeCurrencyCode:e.storeCurrencyCode,primaryProductId:g,variantId:p||void 0,shadowRoot:r}))))):t.createElement(Pf,{id:"yt-fixedBundle-vertical-container",className:"yt-fixedBundle-vertical-container"},t.createElement(Nf,{id:"yt-fixedBundle-product-list",className:"yt-fixedBundle-product-list",style:{justifyContent:"left"===P.fixedBundle.infoAlignment?"flex-start":"right"===P.fixedBundle.infoAlignment?"flex-end":"center"}},e?.products?.map(((n,r)=>t.createElement(Bg,{isChecked:C.has(n.productId),product:n.productDetails,selectedVariantId:h[n.productId],canCustomize:e?.canCustomizeFixedBundle||!1,styles:P,onVariantChange:e=>E(n.productId,e),onCheckChange:e=>T(e,n.productId),isMobile:d,index:r,isHorizontal:_,productsLength:e.products.length,handleOpenModal:O,storeCurrencyCode:e.storeCurrencyCode,primaryProductId:g,variantId:p||void 0}))),B&&t.createElement(Eg,{products:e.products.filter((e=>C.has(e.productId))),isOpen:y,onClose:()=>b(!1),variantOptions:e.variantOptions,cta:{textColor:P.general.ctaTextColor,backgroundColor:P.general.ctaBackgroundColor},onVariantChange:E,handleAddToCart:I,primaryProductId:g,variantId:p||void 0,shadowRoot:r}))),t.createElement(Sf,{id:"yt-fixedBundle-summary",className:"yt-fixedBundle-summary",style:{alignItems:"left"===P.fixedBundle.infoAlignment?"flex-start":"right"===P.fixedBundle.infoAlignment?"flex-end":"center"}},Number($)>0&&Number(D)>0&&P.fixedBundle.compareAtPriceVisibility&&t.createElement(Bf,{className:"yt-fixedBundle-summary_original-price"},"Original Price:"," ",t.createElement(zf,{className:"yt-fixedBundle-summary_price"},Ig(P.general.currencySymbol,e?.storeCurrencyCode),Dg($))),0!==C.size&&t.createElement($f,{className:"yt-fixedBundle-summary_total-price"},"Total Price:"," ",t.createElement(zf,{className:"yt-fixedBundle-summary_price"},Ig(P.general.currencySymbol,e?.storeCurrencyCode),Dg(z))," ",Number(D)>0&&t.createElement(Df,{className:"yt-fixedBundle-summary_save-tag"},"Save:"," ",Ig(P.general.currencySymbol,e?.storeCurrencyCode),Dg(D)))),t.createElement(If,{id:"yt-fixedBundle-add-to-cart",className:"yt-fixedBundle-add-to-cart",onClick:e=>{e.preventDefault(),e.stopPropagation(),_||!B?I(e):b(!0)},disabled:C.size<1||o,style:{backgroundColor:P.general?.ctaBackgroundColor||"#121212",color:P.general?.ctaTextColor||"#FFFFFF",border:`1px solid ${P.general?.ctaBackgroundColor||"#121212"}`,boxShadow:P.general.ctaShadowType,paddingTop:P.general?.ctaPadding,paddingBottom:P.general?.ctaPadding,borderRadius:P.general.ctaBorderRadius,width:P.general.ctaWidth||"100%",textAlign:"center"},onMouseOver:e=>{P.general.customizeHoverState&&(e.currentTarget.style.backgroundColor=P.general?.ctaHoverBackgroundColor||"#F1F1F1",e.currentTarget.style.color=P.general?.ctaHoverTextColor||"#121212")},onMouseOut:e=>{P.general.customizeHoverState&&(e.currentTarget.style.backgroundColor=P.general?.ctaBackgroundColor||"#121212",e.currentTarget.style.color=P.general?.ctaTextColor||"#FFFFFF")}},o?t.createElement(Wo,{color:"white",loading:o,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):t.createElement(t.Fragment,null,P.fixedBundle?.ctaTitle??"Add Bundle to cart")))},zg=window?.Shopify?.currency||{rate:1,active:"INR"},Dg=e=>{if(!e)return;const t=navigator.language||"en-US",n=Number((Number(e)*zg.rate).toFixed(2));return new Intl.NumberFormat(t).format(n)},Ig=(e,t)=>t==zg.active?e:cn(zg.active)||zg.active,Pg=(e,t,n,r,o)=>{const a=r.findIndex((t=>t.variantId===e));o(0===n?e=>e.filter(((e,t)=>t!==a)):-1===a?r=>[...r,{product:t,variantId:e,quantity:n}]:e=>e.map(((e,t)=>t===a?{...e,quantity:e.quantity+n}:e)))},Ng=({bundle:e,currentProductId:n,addToCartFunction:r,addCustomBundleToCart:o,selectedItems:a,setSelectedItems:i,bundleAddToCartLoading:l,handleRemoveItem:c,selectedItemsQuantity:d,renderingOnPage:s,bundleSubtotal:p,shadowRoot:u})=>"fixed"!==e.type&&e.type&&0!==e?.type?.length?"builder"===e.type?t.createElement(tm,{bundleAddToCartLoading:l,bundle:e,selectedItems:a,setSelectedItems:i,handleAddToCart:o,handleRemoveItem:c,renderingOnPage:s,selectedItemsQuantity:d??0,bundleSubtotal:p??{price:0,compareAtPrice:0},shadowRoot:u}):"combo"===e.type?t.createElement(rm,{bundle:e,addToCartFunction:r}):"mixnmatch"===e.type?t.createElement(ff,{bundle:e,addToCartFunction:r}):t.createElement(_m,{bundle:e,currentProductId:n,addToCartFunction:r}):t.createElement($g,{addToCartFunction:r,bundle:e,shadowRoot:u}),_g=()=>t.createElement("div",{className:"scene"},t.createElement("div",{className:"floating"},t.createElement("div",{className:"cube"},t.createElement("div",{className:"side front"},""),t.createElement("div",{className:"side back"},""),t.createElement("div",{className:"side left"},""),t.createElement("div",{className:"side right"},""),t.createElement("div",{className:"side bottom"},""),t.createElement("div",{className:"lid"},t.createElement("div",{className:"flap north"},""),t.createElement("div",{className:"flap south"},""),t.createElement("div",{className:"flap east"},""),t.createElement("div",{className:"flap west"},"")))));const Og=()=>t.createElement("div",{className:"skeleton-container"},t.createElement("main",{className:"skeleton-main"},t.createElement("div",{className:"skeleton-grid-wrapper"},t.createElement("div",{className:"skeleton-grid"},Array.from({length:10}).map(((e,n)=>t.createElement(Mg,{key:n})))))),t.createElement("div",{className:"skeleton-cart-bar"},t.createElement("div",{className:"skeleton-cart-content"},t.createElement("div",{className:"skeleton-cart-inner"},t.createElement("div",{className:"skeleton-thumbnails"},Array.from({length:3}).map(((e,n)=>t.createElement("div",{key:n,className:"skeleton-thumbnail skeleton-pulse"}))),t.createElement("button",{className:"skeleton-add-button"},t.createElement("div",{className:"skeleton-add-icon skeleton-pulse"}))),t.createElement("div",{className:"skeleton-subtotal-section"},t.createElement("div",{className:"skeleton-subtotal-text"},t.createElement("div",{className:"skeleton-subtotal-label skeleton-pulse"}),t.createElement("div",{className:"skeleton-subtotal-amount skeleton-pulse"})),t.createElement("div",{className:"skeleton-checkout-button skeleton-pulse"}))))),t.createElement("div",{className:"skeleton-spacer"}));function Mg(){return t.createElement("div",{className:"skeleton-card"},t.createElement("div",{className:"skeleton-card-content"},t.createElement("div",{className:"skeleton-card-image"},t.createElement("div",{className:"skeleton-shimmer"})),t.createElement("div",{className:"skeleton-card-size skeleton-pulse"})))}const Ag='\n.yt-bundleBuilder-product-card {\n display: flex;\n flex-direction: column;\n width: 280px;\n row-gap: 8px;\n justify-content: space-between;\n cursor: pointer;\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n overflow: hidden;\n\n background-color: var(--card-bg, #fff);\n border-radius: var(--card-radius, 0);\n border: var(--card-border, none);\n box-shadow: var(--card-shadow, none);\n}\n\n.yt-bundleBuilder-product-card:hover {\n transform: scale(1.01);\n}\n\n.yt-bundleBuilder-image-effect_hover-image img {\n transition: transform 0.25s ease;\n will-change: transform;\n}\n\n.yt-product-card:hover img {\n transform: scale(1.05);\n}\n\n\n.yt-bundleBuilder-product-card_remove-button{\n width: 25%;\n background-color: #111;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #fff;\n height: 100%;\n cursor: pointer;\n}\n\n.yt-bundleBuilder-product-card_image-wrapper {\n display: flex;\n position: relative;\n flex-direction: column;\n padding: 0px;\n}\n\n.yt-bundleBuilder-product-card_title {\n font-size: var(--title-font-size, 18px);\n font-weight: var(--yt-bundle-font-weight, bold);\n color: #333;\n line-height: normal;\n margin-top: var(--title-margin-top, 0px);\n padding: var(--title-padding, 0 4px);\n\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.bundle-builder-variant-selector {\n border: 1px solid #c7c7c7;\n padding: 8px 8px 8px 10px;\n position: absolute;\n width: 98%;\n height: 38px;\n bottom: 4px;\n right: 3px;\n background-color: #f5f5f5;\n font-size: 14px;\n cursor: pointer;\n opacity: 0.8;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n\n background-image: none !important;\n margin-bottom: 0 !important;\n}\n\n.bundle-builder-variant-selector--coralHaze {\n appearance: auto;\n -webkit-appearance: auto;\n -moz-appearance: auto;\n}\n\n.yt-bundleBuilder-product-card_title {\n font-size: var(--title-font-size, 18px);\n font-weight: var(--yt-bundle-font-weight, bold);\n color: #333;\n line-height: normal;\n margin-top: var(--title-margin-top, 0px);\n padding: var(--title-padding, 0 4px);\n\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.yt-product-atc-wrapper {\n position: relative;\n width: 100%;\n height: 40px;\n}\n\n.yt-product-atc-button {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-quantity-selector-container--visible {\n position: absolute;\n background-color: "#e7e7e7";\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.3s ease;\n transform: translateX(-100%); /* Start off-screen to the left */\n\n &.visible {\n transform: translateX(0); /* Slide in from the left */\n }\n}\n\n.yt-bundleBuilder-product-card_add-to-bundle-button--added {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n justify-content: space-between;\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-product-card_added-button-text {\n flex: 1;\n text-align: center;\n font-size: 14px;\n background-color: #747474;\n color: #fff;\n padding: 10px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: default;\n}\n\n.yt-bundleBuilder-product-card_added-button-text {\n width: 100%;\n background-color: #747474;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #fff;\n height: 100%;\n cursor: pointer;\n}\n\n.yt-bundleBuilder-product-card_add-to-bundle-button--disabled {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-quantity-selector-container {\n display: flex;\n flex-direction: row;\n height: 100%;\n background-color: #e7e7e7;\n width: 100%;\n font-weight: 600;\n}\n\n.yt-bundleBuilder-quantity-selector_quantity {\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n width: 100%;\n font-size: 14px;\n}\n\n.yt-bundleBuilder-products-display {\n font-size: 20px;\n width: 100%;\n}\n\n.yt-bundleBuilder-header-container{\n z-index: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px;\n width: 90%;\n max-width: 1000px;\n}\n\n.bundle-builder-product-container {\n display: flex;\n flex-direction: column;\n width: 280px;\n row-gap: 8px;\n justify-content: space-between;\n cursor: pointer;\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n overflow: hidden;\n -webkit-tap-highlight-color: transparent; /* from inline style */\n}\n\n/* Hover/scale effect */\n.bundle-builder-product-container:hover {\n transform: scale(1.01);\n}\n\n.bundle-builder-product-container:active {\n transform: scale(1);\n}\n\n/* Optional shadows depending on "shadowType" */\n.bundle-builder-product-container.shadow-none {\n box-shadow: none;\n}\n\n.bundle-builder-product-container.shadow-spread {\n box-shadow: 8px 8px 8px -6px #0000004d;\n}\n\n.bundle-builder-product-container.shadow-no-spread {\n box-shadow: 6px 6px 0px -1px #00000033;\n}\n\n.yt-bundleProductModal-modal-overlay{\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n\n}\n/* bundleProductDetailsModal.style.css */\n\n.yt-bundleProductModal-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n}\n\n.yt-bundleProductModal-modal-content {\n background-color: white;\n box-shadow: 3px 6.01px 25.69px 0px rgba(0, 0, 0, 0.25);\n overflow-y: auto;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-modal-content.small-screen {\n width: 100%;\n height: 100%;\n padding: 20px;\n border-radius: 0;\n}\n\n.yt-bundleProductModal-modal-content.large-screen {\n padding: 15px;\n border-radius: 16.5px;\n max-width: min(1200px, 70%);\n max-height: 80vh;\n}\n\n.yt-bundleProductModal-selection-modal {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n z-index: 2147483644;\n background-color: white;\n overflow-y: auto;\n}\n\n.yt-bundleProductModal-modal-close-button {\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: none;\n}\n\n.yt-bundleProductModal-modal-close-button svg {\n color: #000;\n font-size: 25px;\n filter: drop-shadow(0 0 8px white) drop-shadow(0 0 5px white);\n}\n\n.yt-bundleProductModal-selection-modal.large-screen {\n display: flex;\n flex-direction: row;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen {\n flex-direction: column;\n}\n\n.yt-bundleProductModal-modal-image-section {\n width: 50%;\n height: fit-content;\n}\n.yt-bundleProductModal-modal-image-section.small-screen {\n width: 100%;\n height: fit-content;\n}\n\n.yt-bundleProductModal-selection-modal.large-screen .yt-bundleProductModal-modal-image-section {\n width: 50%;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-image-section {\n width: 100%;\n position: relative;\n justify-content: center;\n}\n\n.yt-bundleProductModal-modal-main-image {\n width: fit-content;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n cursor: zoom-in;\n border-radius: 8px;\n border: 1px solid lightgray;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-main-image {\n width: inherit;\n height: inherit;\n object-fit: cover;\n}\n\n.yt-bundleProductModal-modal-main-image:hover {\n cursor: zoom-in;\n}\n\n.yt-bundleProductModal-modal-image-gallery {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 10px;\n overflow-y: auto;\n margin-top: 10px;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-image-gallery {\n display: flex;\n flex-direction: row;\n overflow-x: auto;\n padding: 5px 20px;\n gap: 5px;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-modal-image-gallery img {\n width: 90px;\n height: 90px;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.3s ease;\n border-radius: 7px;\n border: 1px solid lightgray;\n object-fit: cover;\n}\n\n.yt-bundleProductModal-modal-image-gallery img.active,\n.yt-bundleProductModal-modal-image-gallery img:hover {\n opacity: 1;\n}\n\n.yt-bundleProductModal-modal-details-section {\n width: 50%;\n padding-left: 20px;\n max-height: 70vh;\n scrollbar-width: none;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-details-section {\n padding: 0 30px;\n margin: 15px 0;\n padding-bottom: 120px;\n width: 100%;\n}\n.yt-bundleProductModal-selection-modal.yt-variant-selection-modal.small-screen{\n height: 500px;\n}\n\n.yt-bundleProductModal-modal-details-section.small-screen {\n padding: 5px 0px 10px 10px !important;\n margin: 15px 0;\n padding-bottom: 120px;\n width: 100%;\n height: fit-content !important;\n}\n\n.yt-bundleProductModal-modal-details-section h2 {\n text-align: left !important;\n margin-bottom: 10px;\n line-height: normal !important;\n margin-top: 0;\n}\n\n.yt-bundleProductModal-modal-price-and-cta {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n\n.yt-bundleProductModal-modal-separator {\n height: 10px;\n min-height: 10px;\n border: none;\n background-color: #d9d9d96b;\n margin: 20px 0 10px 0;\n display: block !important;\n}\n\n.yt-bundleProductModal-modal-phone-close-button {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999999999;\n background-color: #ffffff;\n padding: 4px;\n border-radius: 50%;\n border: 1px solid lightgray;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-modal-phone-close-button svg {\n height: 22px;\n width: 22px;\n padding: 4px;\n color: black;\n}\n\n.yt-bundleProductModal-modal-phone-bottom-bar {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 12px 15px;\n border-top: 1px solid lightgray;\n box-shadow: 0px -4px 5px rgba(0, 0, 0, 0.1);\n background-color: #fff;\n display: flex;\n flex-direction: column;\n gap: 2px;\n z-index: 9999999999;\n}\n\n.yt-bundleProductModal-modal-select-input {\n appearance: none;\n border: none;\n background: transparent;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n padding-right: 20px;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 100%;\n opacity: 0;\n z-index: 2;\n}\n\n.yt-bundleProductModal-modal-price {\n font-size: 20px;\n font-weight: 600;\n color: #000;\n text-align: center;\n line-height: normal;\n}\n\n.yt-bundleProductModal-modal-atc-wrapper {\n width: 80%;\n}\n\n.yt-bundleProductModal-modal-atc-button {\n text-transform: uppercase;\n font-weight: 800;\n width: 100%;\n cursor: pointer;\n border: none;\n min-height: 40px;\n padding: 0 15px;\n position: relative;\n overflow: hidden;\n}\n\n/* Review rating styles */\n.yt-bundleProductModal-modal-rating {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n}\n\n.yt-bundleProductModal-modal-rating-and-review-count {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n margin-left: 10px;\n}\n\n.yt-bundleProductModal-modal-rating-and-review-count .yt-bundleProductModal-modal-rating-only {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n}\n@media (max-width: 108px) {\n .yt-fixed-bundle-price-section {\n width: 100% !important;\n }\n .yt-fixed-bundle-product-list {\n max-width: 100% !important;\n width: 100% !important;\n justify-content: center !important;\n }\n .price-text {\n text-align: center !important;\n }\n .bundle-builder-add-to-bundle-button {\n font-size: 12px !important;\n padding: 0px 8px !important;\n }\n .quantity .input-text.qty {\n width: 12px !important;\n height: 18px !important;\n }\n .quantity.buttons_added .minus,\n .quantity.buttons_added .plus {\n padding: 6px !important;\n height: 20px !important;\n }\n .bundle-builder-tracker-container {\n justify-content: center !important;\n }\n .bundle-builder-title .bundle-builder-subtitle {\n font-size: 30px !important;\n }\n .bundle-builder-title {\n font-size: 2rem !important;\n }\n .bundle-builder-tracker-item {\n width: 64px !important;\n height: 64px !important;\n }\n .bundle-builder-product-title {\n font-size: 14px !important;\n }\n}\n.hide-tracker-scrollbar {\n overflow-x: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n\n.hide-tracker-scrollbar::-webkit-scrollbar {\n display: none;\n}\n\n.yt-fixed-bundle-border {\n border: 1px solid #c7c7c7;\n}\n\n.yt-fixed-bundle-border-minor-curved {\n border-radius: 8px;\n}\n\n.yt-fixed-bundle-border-minor-curved-image {\n border-radius: 6px;\n}\n\n.yt-fixed-bundle-border-major-curved {\n border-radius: 20px;\n}\n\n.yt-fixed-bundle-border-major-curved-image {\n border-radius: 18px;\n}\n\n@media (min-width: 1200px) {\n .bundle-builder-title .bundle-builder-subtitle {\n font-size: 30px !important;\n }\n}\n@media (max-width: 540px) {\n .bundle-builder-tracker-container {\n gap: 5px !important;\n margin-block: 0 !important;\n }\n .bundle-summary {\n display: flex;\n flex-direction: column !important;\n align-items: flex-start;\n gap: 2px !important;\n }\n .bundle-summary button {\n padding-top: 2px !important;\n padding-inline: 13px !important;\n font-size: 14px !important;\n padding-inline: 10px !important;\n padding: 0px;\n width: -webkit-fill-available;\n }\n .bundle-builder-tracker-progress {\n display: block !important;\n }\n .summary-info {\n width: 100% !important;\n min-width: 200px !important;\n display: flex;\n justify-content: space-between !important;\n flex-direction: row !important;\n flex-grow: 1 !important;\n font-size: 14px !important;\n }\n}\n@media (max-width: 540px) {\n .products-display {\n justify-content: space-between !important;\n column-gap: 5px !important;\n }\n .bundle-builder-product-container {\n width: 49% !important;\n }\n .bundle-builder-title {\n font-size: 1.5rem !important;\n margin-bottom: 8px !important;\n }\n .bundle-builder-subtitle {\n padding-top: 4px;\n font-size: 1rem !important;\n }\n}\n@media (max-width: 540px) {\n .bundle-summary.bundle-filled {\n display: flex !important;\n }\n}\n.yt-bundle-builder-product-price {\n font-weight: 600;\n color: black;\n margin-bottom: 2px;\n}\n\n/* Fixed bundle block */\n.yt-fixed-bundle-fixed-bundle {\n box-sizing: unset;\n max-width: 1000px;\n margin: 0 auto;\n container-type: inline-size;\n text-align: left;\n}\n\n.yt-fixed-bundle-bundle-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n gap: 8px;\n line-height: normal;\n}\n\n.yt-fixed-bundle-bundle-title {\n font-size: 24px;\n font-weight: 600;\n text-align: center;\n width: 100%;\n}\n\n.yt-fixed-bundle-bundle-subtitle {\n font-size: 16px;\n font-weight: 300;\n text-align: center;\n}\n\n.yt-fixed-bundle-bundle-content {\n display: flex;\n flex-direction: column;\n padding: 10px 0px;\n}\n\n.yt-fixed-bundle-product-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.yt-product-main {\n width: 100%;\n}\n\n.yt-fixed-bundle-product-card {\n display: flex;\n width: 90%;\n align-items: flex-start;\n padding: 0px;\n box-shadow: 2px 2px 11.8px 0px rgba(0, 0, 0, 0.1411764706);\n transition: transform 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-fixed-bundle-product-image-container {\n margin-right: 8px;\n height: 110px;\n position: unset;\n}\n\n.yt-fixed-bundle-product-image {\n max-width: none;\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n}\n\n.yt-fixed-bundle-product-details {\n width: 100%;\n align-self: center;\n display: flex;\n flex-direction: column;\n gap: 6px;\n text-align: left;\n}\n\n.yt-fixed-bundle-product-title {\n font-size: 16px;\n font-weight: 700;\n display: block;\n line-height: 1.4;\n}\n\n.yt-fixed-bundle-product-price {\n font-size: 16px;\n display: block;\n margin-bottom: 6px;\n}\n\n.yt-fixed-bundle-original-price {\n text-decoration: line-through !important;\n color: #6b7280;\n margin-left: 4px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-mobile {\n width: 98%;\n position: relative;\n display: flex;\n}\n\n.yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n height: 100%;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-checkbox {\n display: none !important;\n}\n\n.yt-fixed-bundle-checkbox-label {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #000;\n background: white;\n cursor: pointer;\n color: white !important;\n}\n\n.yt-fixed-bundle-checkbox:checked + .yt-fixed-bundle-checkbox-label {\n border-color: #000;\n color: white !important;\n border: 0px;\n font-size: 16px;\n}\n\n.yt-fixed-bundle-variant-select {\n appearance: none;\n -webkit-appearance: none;\n width: 100%;\n padding: 4px 20px;\n background-color: #ffffff;\n font-size: 15px;\n background-image: none;\n color: #2d2d2d;\n cursor: pointer;\n transition: border-color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-fixed-bundle-variant-select:focus {\n border-color: #cac6c6;\n box-shadow: 0 0 8px 0 rgba(56, 55, 57, 0.3);\n outline: none;\n}\n\n.yt-fixed-bundle-select-dot {\n position: absolute;\n top: 50%;\n left: 10px;\n transform: translateY(-50%);\n font-weight: 700;\n color: #4d4d4d;\n width: 8px; /* Adjust size */\n font-size: 8px;\n border-radius: 50%;\n pointer-events: none;\n}\n\n.yt-fixed-bundle-select-dot::after {\n content: "";\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background-color: #1b1b1b;\n}\n\n.yt-fixed-bundle-select-icon {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n pointer-events: none;\n color: #6b7280;\n background-color: rgba(30, 57, 103, 0.1);\n font-size: 20px;\n height: 100%;\n padding: 0px 5px;\n}\n\n.yt-fixed-bundle-plus-sign {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-plus-sign span {\n display: flex;\n justify-content: center;\n width: 24px;\n height: 22px;\n align-items: center;\n padding-bottom: 2px;\n background-color: #f2f2f2;\n color: black;\n border-radius: 2px;\n font-size: 20px;\n font-weight: bold;\n}\n\n.yt-fixed-bundle-price-section {\n display: flex;\n flex-direction: column;\n margin-top: 20px;\n width: 1000px;\n}\n\n.yt-fixed-bundle-subtotal {\n font-size: 13px;\n font-weight: 400 !important;\n}\n\n.yt-fixed-bundle-subtotal-amount {\n font-weight: 600;\n font-size: 13px;\n}\n\n.yt-fixed-bundle-deal-price-container {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 12px;\n gap: 8px;\n margin-top: 3px;\n flex-direction: row;\n}\n\n.yt-fixed-bundle-deal-price {\n font-size: 16px;\n font-weight: 600;\n}\n\n.yt-fixed-bundle-extra-savings {\n font-size: 12px;\n color: #f6f8f7;\n padding: 4px 8px;\n background-color: #d3122a;\n border-radius: 2px;\n font-weight: 700 !important;\n}\n\n.yt-fixed-bundle-add-to-cart-button {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background-color: #8b5cf6;\n border: none;\n padding: 8px 0px;\n font-size: 16px;\n font-weight: 500 !important;\n cursor: pointer;\n width: 100%;\n}\n\n.yt-fixed-bundle-add-to-cart-button:disabled,\n.yt-fixed-bundle-add-to-cart-button[disabled] {\n color: #7d7d7d;\n cursor: default;\n}\n\n.yt-fixed-bundle-product-card.horizontal {\n max-width: 100%;\n flex-direction: row;\n}\n\n.yt-fixed-bundle-product-card.horizontal:hover {\n transform: none;\n}\n\n.yt-fixed-bundle-product-list.horizontal {\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n flex-wrap: wrap;\n gap: 15px;\n}\n\n.yt-product-main.horizontal {\n width: 100%;\n}\n\n.yt-fixed-bundle-product-image-container.horizontal {\n height: 110px;\n margin-bottom: 0px;\n position: unset;\n width: 30%;\n}\n\n.yt-fixed-bundle-product-image.horizontal {\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n user-select: none;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-desktop.horizontal {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-mobile.horizontal {\n width: 98%;\n position: relative;\n display: flex;\n}\n\n.yt-fixed-bundle-checkbox-container-desktop.horizontal {\n position: absolute;\n height: 100%;\n left: -8px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-product-details.horizontal {\n padding-left: 0px;\n}\n\n.yt-fixed-bundle-product-price.horizontal {\n margin-bottom: 0px;\n}\n\n@media (min-width: 100px) {\n @container (width > 100px) {\n .yt-fixed-bundle-fixed-bundle {\n padding: 40px;\n }\n .yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: flex;\n width: 100%;\n bottom: 6px;\n }\n .yt-fixed-bundle-variant-select-wrapper-mobile {\n display: none;\n width: 100%;\n }\n .yt-fixed-bundle-checkbox-label {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #000;\n background: white;\n cursor: pointer;\n color: white !important;\n }\n .yt-fixed-bundle-checkbox:checked + .yt-fixed-bundle-checkbox-label {\n border-color: #000;\n color: white !important;\n border: 0px;\n font-size: 16px;\n }\n .yt-fixed-bundle-variant-select {\n margin: 0px 4px;\n }\n .yt-fixed-bundle-select-icon {\n right: 4px;\n }\n .yt-fixed-bundle-bundle-title {\n font-size: 32px;\n }\n .yt-fixed-bundle-bundle-subtitle {\n font-size: 20px;\n }\n .yt-fixed-bundle-bundle-content {\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n }\n .yt-fixed-bundle-product-list {\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n flex-wrap: wrap;\n gap: 15px;\n }\n .yt-fixed-bundle-product-card {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n text-align: center;\n }\n .yt-fixed-bundle-product-image-container {\n width: 100%;\n height: 100%;\n margin-right: 0;\n margin-bottom: 12px;\n justify-content: center;\n position: relative;\n }\n .yt-fixed-bundle-product-details {\n width: 100%;\n align-self: center;\n display: flex;\n flex-direction: column;\n gap: 6px;\n text-align: left;\n }\n .yt-fixed-bundle-product-image {\n height: 230px;\n width: 100%;\n aspect-ratio: 1;\n align-self: center;\n }\n .yt-fixed-bundle-plus-sign {\n align-self: center;\n margin-left: 0;\n }\n .yt-fixed-bundle-price-section {\n width: 100%;\n margin-top: 32px;\n align-items: center;\n justify-content: center;\n text-align: center;\n }\n .yt-fixed-bundle-extra-savings {\n font-size: 10px;\n }\n .yt-fixed-bundle-subtotal {\n font-size: 15px;\n }\n .yt-fixed-bundle-subtotal-amount {\n font-size: 15px;\n }\n .yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n top: 8px;\n left: 10px;\n height: auto;\n display: flex;\n align-items: center;\n }\n .yt-fixed-bundle-deal-price {\n font-size: 24px;\n }\n .yt-fixed-bundle-extra-savings {\n font-size: 13px;\n padding: 4px 8px;\n }\n .yt-fixed-bundle-add-to-cart-button {\n font-size: 20px;\n padding: 10px 0px;\n width: 100%;\n }\n .yt-product-main {\n width: 29%;\n }\n .yt-fixed-bundle-product-card:hover {\n transform: translateY(-5px);\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1411764706);\n }\n }\n}\n.yt-product-main {\n display: flex;\n position: relative;\n}\n\n/* Container query */\n@container (max-width: 100px) {\n .yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n }\n .yt-product-main {\n width: 100%;\n }\n .yt-fixed-bundle-variant-select-wrapper-mobile {\n width: 98%;\n position: relative;\n display: flex;\n bottom: 6px;\n }\n .yt-fixed-bundle-product-image {\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n }\n .yt-fixed-bundle-variant-select-wrapper {\n position: relative;\n width: 100%;\n }\n .yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n height: 100%;\n left: -8px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .yt-fixed-bundle-product-image-container {\n margin-right: 8px;\n height: 110px;\n margin-bottom: 0px;\n position: unset;\n }\n .yt-fixed-bundle-product-card {\n max-width: 100%;\n flex-direction: row;\n }\n .yt-fixed-bundle-price-section {\n width: 100%;\n }\n}\n.yt-product-card-transition {\n opacity: 0;\n transform: translateY(20px);\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n}\n\n.yt-product-card-transition-up {\n opacity: 0;\n transform: translateY(-20px);\n transition: opacity 0.6s ease, transform 0.6s ease;\n}\n\n.yt-product-card-transition-active {\n opacity: 1;\n transform: translateY(0);\n}\n\n.yt-description-content img {\n max-width: 100%;\n height: auto;\n display: block;\n margin: 0 auto 15px;\n border-radius: 7px;\n}\n\n.yt-description-content {\n text-align: left;\n overflow-wrap: break-word;\n}\n.bundle-builder-tracker-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n width: 100%;\n align-items: center;\n text-align: center;\n row-gap: 4px;\n justify-content: space-between; \n padding: 4px 10px; \n}\n\n.bundle-builder-tracker-container.mobile {\n padding: 0;\n min-height: 30px;\n}\n\n@keyframes loader-default-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n}\n\n* {\n animation-timing-function: linear;\n}\n\n.yt-bundleBuilderTracker-mobile-remaining{\n color: #000;\n background-color: #f5f5f5;\n padding: 10px;\n font-weight: 600;\n font-size: 18px;\n width: 100%;\n height: 80px;\n margin: 10px 0px;\n border: 1px solid #d3d3d3;\n}\n\n.yt-bundleBuilderTracker-tier-progress-container{\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-tier-progress-text{\n width: 100%;\n font-size: 14px;\n background-color: #e0e0e0;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-background{\n width: 100%;\n background-color: #e0e0e0;\n height: 6px;\n border-radius: 0;\n}\n\n.bundle-builder-tracker-progress,\n.yt-bundleBuilderTracker-progress-bar-fill {\n display: block;\n height: 100%;\n transition: width 0.3s ease-in-out, background-color 0.5s ease-in-out;\n}\n\n.yt-bundleBuilderTracker-quantity-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n font-size: 14px;\n border-radius: var(--corner-radius);\n}\n\n\n/* component.css */\n.yt-bundleBuilderTracker-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n padding: 4px 10px;\n width: 100%;\n align-items: center;\n text-align: center;\n row-gap: 4px;\n justify-content: space-between;\n}\n\n.yt-bundleBuilderTracker-container.mobile {\n padding: 0px;\n min-height: 30px;\n}\n\n.yt-bundleBuilderTracker-offer-tier-tag {\n position: absolute;\n top: -20px;\n padding: 5px 10px;\n}\n\n@media (max-width: 768px) {\n .yt-bundleBuilderTracker-offer-tier-tag {\n font-size: 12px;\n left: 0;\n }\n}\n\n.yt-bundleBuilderTracker-mobile-remaining {\n color: #000;\n background-color: #f5f5f5;\n padding: 10px;\n font-weight: 600;\n font-size: 18px;\n width: 100%;\n height: 80px;\n margin: 10px 0px;\n border: 1px solid #d3d3d3;\n}\n\n.yt-bundleBuilderTracker-tier-progress-container {\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-tier-progress-text {\n width: 100%;\n font-size: 14px;\n background-color: #e0e0e0;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-background {\n width: 100%;\n background-color: #e0e0e0;\n height: 6px;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-fill {\n display: block;\n height: 100%;\n transition: width 0.3s ease-in-out, background-color 0.5s ease-in-out;\n}\n\n.yt-bundleBuilderTracker-product-list-wrapper {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n overflow-x: auto;\n}\n\n.yt-bundleBuilderTracker-summary-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 15px;\n justify-content: center;\n row-gap: 15px;\n padding: 0px 5px;\n}\n\n.yt-bundleBuilderTracker-summary-container.mobile {\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-item-wrapper {\n position: relative;\n margin-top: 8px;\n margin-right: 5px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-item-image-box {\n position: relative;\n border: 1px solid #d3d3d3;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.yt-bundleBuilderTracker-quantity-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-remove-button {\n position: absolute;\n top: -8px;\n right: -8px;\n background-color: black;\n color: white !important;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n\n.yt-bundleBuilderTracker-detailed-item-container {\n height: 85px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 5px 15px 0 5px;\n border: 1px solid #d3d3d3;\n column-gap: 5px;\n max-width: 220px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-detailed-image {\n position: relative;\n height: 75px;\n width: 75px;\n border: 1px solid #d3d3d3;\n border-radius: 5px;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.yt-bundleBuilderTracker-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n border-radius: 2px;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-info-block {\n display: flex;\n flex-direction: column;\n row-gap: 8px;\n justify-content: flex-start;\n align-items: flex-start;\n text-align: left;\n}\n\n.yt-bundleBuilderTracker-product-title {\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n\n.yt-bundleBuilderTracker-product-price {\n font-size: 13px;\n line-height: normal;\n}\n\n.yt-bundleBuilderTracker-remove-link {\n color: red;\n font-size: 10px;\n display: flex;\n flex-direction: row;\n column-gap: 3px;\n align-items: center;\n cursor: pointer;\n}\n\n.yt-bundleBuilderTracker-placeholder-box {\n border: 1px solid #d3d3d3;\n margin-top: 10px;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n flex-shrink: 0;\n}\n\n.yt-bundleBuilderTracker-summary-info {\n display: flex;\n flex-direction: column;\n font-size: 18px;\n align-items: center;\n justify-content: center;\n}\n\n.yt-bundleBuilderTracker-subtotal-label {\n line-height: normal;\n color: black;\n align-self: center;\n justify-content: center;\n display: flex;\n font-weight: 700;\n font-size: 16px;\n}\n\n.yt-bundleBuilderTracker-save-label {\n font-size: 12px;\n color: #f6f8f7;\n padding: 4px 8px;\n background-color: #d3122a;\n border-radius: 2px;\n font-weight: 700;\n}\n\n@media (max-width: 600px) {\n .yt-bundleBuilderTracker-save-label {\n display: none;\n }\n}\n\n.yt-bundleBuilderTracker-subtotal-row {\n display: flex;\n flex-direction: row;\n column-gap: 5px;\n font-size: 16px;\n margin: 5px 0px;\n align-items: flex-end;\n}\n\n.yt-bundleBuilderTracker-total_price {\n font-weight: bold;\n text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-summary_price {\n color: #a0a0a0;\n text-decoration-line: line-through;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-checkout-button {\n padding: 5px 20px;\n height: 42px;\n outline: none;\n width: fit-content;\n min-width: 200px;\n transition: background-color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-bundleBuilderTracker-checkout-button:hover {\n background-color: var(--ctaHoverBackgroundColor, #f4f4f6);\n color: var(--ctaHoverTextColor, #000);\n}\n\n@media (max-width: 768px) {\n .yt-bundleBuilderTracker-checkout-button {\n width: 100%;\n padding: 5px 5px;\n margin-inline: 0px;\n }\n}\n\n.yt-bundleBuilderTracker-checkout-text {\n display: flex;\n flex-direction: row;\n column-gap: 6px;\n align-items: center;\n justify-content: center;\n font-weight: 650;\n}\n\n.yt-bundleBuilderTracker-product-list-tracker-item {\n position: relative;\n margin-top: 8px;\n margin-right: 5px;\n border: 1px solid #d3d3d3;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-detailed-product-item {\n height: 85px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 5px 15px 0 5px;\n border: 1px solid #d3d3d3;\n column-gap: 5px;\n max-width: 220px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-plus-icon-container {\n justify-content: center;\n align-items: center;\n margin: 0px 6px;\n text-align: center;\n display: flex;\n flex-shrink: 0;\n}\n.yt-bundleProductModal-close-button {\n position: absolute;\n top: 0px;\n right: 0px;\n cursor: pointer;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: none;\n}\n\n.yt-bundleProductModal-close-button svg {\n color: #000;\n font-size: 25px;\n filter: drop-shadow(0 0 8px white) drop-shadow(0 0 5px white);\n}\n\n@media (max-width: 540px) {\n .yt-bundleProductModal-close-button {\n top: 5px;\n right: 5px;\n }\n}\n\n.yt-bundleProductModal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n}\n\n.yt-bundleProductModal-content {\n background-color: white;\n box-shadow: 3px 6.01px 25.69px 0px rgba(0, 0, 0, 0.25);\n overflow-y: auto;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-content.small-screen {\n padding: 20px;\n border-radius: 0;\n width: 100%;\n height: 100%;\n}\n\n.yt-bundleProductModal-content.large-screen {\n padding: 15px;\n border-radius: 16.5px;\n max-width: min(1200px, 70%);\n max-height: 80vh;\n}\n\n.yt-product-selection-modal {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n}\n\n.yt-variant-selection-modal {\n position: relative;\n z-index: 2147483644;\n background-color: white;\n overflow-y: auto;\n}\n\n.yt-variant-selection-modal .details-section h2 {\n text-align: left !important;\n margin-bottom: 10px;\n line-height: normal !important;\n}\n\n.yt-variant-selection-modal .details-section .price {\n font-size: 1.7em;\n font-weight: bold;\n margin-bottom: 10px;\n}\n\n.yt-variant-selection-modal .details-section .add-to-bundle {\n margin-top: 20px;\n padding: 10px 20px;\n background-color: #4caf50;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 1em;\n transition: background-color 0.3s ease;\n}\n\n.yt-variant-selection-modal .details-section .add-to-bundle:hover {\n background-color: #45a049;\n}\n\n.yt-variant-selection-modal.small-screen {\n flex-direction: column;\n}\n\n.yt-variant-selection-modal.small-screen .yt-bundleProductModal-image-section {\n justify-content: center;\n position: relative;\n width: 100%;\n}\n\n.yt-variant-selection-modal.small-screen .yt-bundleProductModal-image-section .yt-bundleProductModal-main-image {\n width: inherit;\n height: inherit;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n}\n\n.yt-bundleProductModal-main-image:hover {\n cursor: zoom-in;\n}\n\n.yt-variant-selection-modal.large-screen {\n display: flex;\n flex-direction: row;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-section {\n width: 50%;\n height: fit-content;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-section .yt-bundleProductModal-main-image {\n width: fit-content;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n cursor: zoom-in;\n border-radius: 8px;\n border: 1px solid lightgray;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery {\n display: flex;\n flex-wrap: nowrap;\n gap: 10px;\n overflow-x: auto;\n margin-top: 10px;\n scrollbar-width: none;\n}\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery::-webkit-scrollbar {\n display: none;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img {\n width: 90px;\n height: 90px;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.3s ease;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img.active,\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img:hover {\n opacity: 1;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-details-section {\n width: 50%;\n padding-left: 20px;\n}\n\n.yt-bundleProductModal-select-input {\n width: 50%;\n padding: 5px;\n margin-bottom: 20px;\n border: 1px solid #ccc;\n border-radius: 4px;\n font-size: 1em;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-price-and-cta {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n\n.yt-bundleProductModal-atc-wrapper {\n width: 80%;\n}\n\n.yt-bundleProductModal-atc-button {\n text-transform: uppercase;\n font-weight: 800;\n width: 100%;\n cursor: pointer;\n border: none;\n min-height: 40px;\n padding: 0px 15px;\n position: relative;\n overflow: hidden;\n}\n\n.yt-bundleProductModal-separator {\n height: 10px;\n min-height: 10px;\n border: none;\n background-color: #d9d9d96b;\n margin: 20px 0 10px 0;\n display: block !important;\n}\n\n.yt-description-content {\n scroll-behavior: smooth;\n}\n\n.yt-bundleProductModal-phone-close-button {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999999999;\n background-color: #ffffff;\n padding: 4px;\n border-radius: 50%;\n border: 1px solid lightgray;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-image-indicator {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n margin: 0 3px;\n cursor: pointer;\n backdrop-filter: blur(10px);\n}\n\n.yt-bundleProductModal-image-gallery::-webkit-scrollbar {\n display: none;\n}\n/* Container Styles */\n.skeleton-container {\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n}\n\n.dark .skeleton-container {\n background-color: #1a1a1a;\n}\n\n/* Header Styles */\n.skeleton-header {\n border-bottom: 1px solid #e5e5e5;\n padding: 1rem 1.5rem;\n}\n\n.dark .skeleton-header {\n border-bottom-color: #333333;\n}\n\n.skeleton-header-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n max-width: 1600px;\n margin: 0 auto;\n}\n\n.skeleton-logo {\n height: 2rem;\n width: 8rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n}\n\n.dark .skeleton-logo {\n background-color: #2a2a2a;\n}\n\n.skeleton-icons {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n\n.skeleton-icon {\n height: 1.5rem;\n width: 1.5rem;\n background-color: #f5f5f5;\n border-radius: 50%;\n}\n\n.dark .skeleton-icon {\n background-color: #2a2a2a;\n}\n\n/* Main Content Styles */\n.skeleton-main {\n flex: 1;\n padding: 2rem 1.5rem;\n}\n\n.skeleton-grid-wrapper {\n max-width: 1600px;\n margin: 0 auto;\n}\n\n.skeleton-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 1rem;\n}\n\n@media (min-width: 640px) {\n .skeleton-grid {\n grid-template-columns: repeat(2, 1fr);\n gap: 1.5rem;\n }\n}\n\n@media (min-width: 768px) {\n .skeleton-grid {\n grid-template-columns: repeat(3, 1fr);\n }\n}\n\n@media (min-width: 1024px) {\n .skeleton-grid {\n grid-template-columns: repeat(4, 1fr);\n }\n}\n\n@media (min-width: 1280px) {\n .skeleton-grid {\n grid-template-columns: repeat(5, 1fr);\n }\n}\n\n/* Product Card Styles */\n.skeleton-card {\n position: relative;\n}\n\n.skeleton-card-content {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n}\n\n.skeleton-card-image {\n position: relative;\n aspect-ratio: 3 / 4;\n background-color: #f5f5f5;\n border-radius: 0.75rem;\n overflow: hidden;\n}\n\n.dark .skeleton-card-image {\n background-color: #2a2a2a;\n}\n\n.skeleton-card-size {\n height: 2.5rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n}\n\n.dark .skeleton-card-size {\n background-color: #2a2a2a;\n}\n\n.skeleton-card-title-wrapper {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.skeleton-card-title {\n height: 1rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n width: 75%;\n}\n\n.dark .skeleton-card-title {\n background-color: #2a2a2a;\n}\n\n.skeleton-card-price {\n height: 1.25rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n width: 33%;\n}\n\n.dark .skeleton-card-price {\n background-color: #2a2a2a;\n}\n\n.skeleton-card-button {\n height: 3rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n}\n\n.dark .skeleton-card-button {\n background-color: #2a2a2a;\n}\n\n/* Cart Bar Styles */\n/* Updated cart bar to be 80% width, centered, and positioned 20px from bottom */\n.skeleton-cart-bar {\n position: fixed;\n bottom: 20px;\n left: 50%;\n transform: translateX(-50%);\n width: 90%;\n border: 1px solid #e5e5e5;\n border-radius: 0.75rem;\n background-color: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(10px);\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n}\n\n@media (min-width: 768px) {\n .skeleton-cart-bar {\n width: 80%;\n }\n}\n\n.dark .skeleton-cart-bar {\n border-color: #333333;\n background-color: rgba(26, 26, 26, 0.95);\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);\n}\n\n/* Made cart content responsive on mobile */\n.skeleton-cart-content {\n padding: 0.75rem 1rem;\n}\n\n@media (min-width: 768px) {\n .skeleton-cart-content {\n padding: 1rem 1.5rem;\n }\n}\n\n.skeleton-cart-inner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n flex-wrap: wrap;\n}\n\n@media (min-width: 768px) {\n .skeleton-cart-inner {\n gap: 1rem;\n flex-wrap: nowrap;\n }\n}\n\n.skeleton-thumbnails {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n flex: 1;\n overflow-x: auto;\n}\n\n@media (min-width: 768px) {\n .skeleton-thumbnails {\n gap: 0.75rem;\n }\n}\n\n/* Made thumbnails smaller on mobile */\n.skeleton-thumbnail {\n position: relative;\n height: 3rem;\n width: 3rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n flex-shrink: 0;\n}\n\n@media (min-width: 768px) {\n .skeleton-thumbnail {\n height: 4rem;\n width: 4rem;\n }\n}\n\n.dark .skeleton-thumbnail {\n background-color: #2a2a2a;\n}\n\n/* Made add button smaller on mobile */\n.skeleton-add-button {\n height: 3rem;\n width: 3rem;\n border: 2px dashed #e5e5e5;\n border-radius: 0.5rem;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n cursor: pointer;\n}\n\n@media (min-width: 768px) {\n .skeleton-add-button {\n height: 4rem;\n width: 4rem;\n }\n}\n\n.dark .skeleton-add-button {\n border-color: #333333;\n}\n\n.skeleton-add-icon {\n height: 1.5rem;\n width: 1.5rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n}\n\n@media (min-width: 768px) {\n .skeleton-add-icon {\n height: 2rem;\n width: 2rem;\n }\n}\n\n.dark .skeleton-add-icon {\n background-color: #2a2a2a;\n}\n\n.skeleton-subtotal-section {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n}\n\n@media (min-width: 768px) {\n .skeleton-subtotal-section {\n gap: 1.5rem;\n }\n}\n\n.skeleton-subtotal-text {\n text-align: right;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.skeleton-subtotal-label {\n height: 1rem;\n width: 5rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n}\n\n.dark .skeleton-subtotal-label {\n background-color: #2a2a2a;\n}\n\n.skeleton-subtotal-amount {\n height: 1.5rem;\n width: 6rem;\n background-color: #f5f5f5;\n border-radius: 0.25rem;\n}\n\n.dark .skeleton-subtotal-amount {\n background-color: #2a2a2a;\n}\n\n/* Made checkout button smaller on mobile */\n.skeleton-checkout-button {\n height: 2.5rem;\n width: 8rem;\n background-color: #f5f5f5;\n border-radius: 0.5rem;\n}\n\n@media (min-width: 768px) {\n .skeleton-checkout-button {\n height: 3rem;\n width: 10rem;\n }\n}\n\n.dark .skeleton-checkout-button {\n background-color: #2a2a2a;\n}\n\n.skeleton-spacer {\n height: 6rem;\n}\n\n/* Made hero section responsive on mobile */\n.skeleton-hero {\n max-width: 1200px;\n margin: 0 auto;\n padding: 20px 15px 15px;\n text-align: center;\n}\n\n@media (min-width: 768px) {\n .skeleton-hero {\n padding: 40px 20px 20px;\n }\n}\n\n.skeleton-hero-title {\n height: 30px;\n width: 80%;\n margin: 0 auto 15px;\n background-color: #f5f5f5;\n border-radius: 8px;\n}\n\n@media (min-width: 768px) {\n .skeleton-hero-title {\n height: 40px;\n width: 50%;\n margin: 0 auto 20px;\n }\n}\n\n.dark .skeleton-hero-title {\n background-color: #2a2a2a;\n}\n\n.skeleton-hero-description {\n height: 16px;\n width: 90%;\n margin: 0 auto;\n background-color: #f5f5f5;\n border-radius: 8px;\n}\n\n@media (min-width: 768px) {\n .skeleton-hero-description {\n height: 20px;\n width: 70%;\n }\n}\n\n.dark .skeleton-hero-description {\n background-color: #2a2a2a;\n}\n\n/* Animation Styles */\n@keyframes pulse {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n}\n\n.skeleton-pulse {\n animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\n@keyframes shimmer {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(100%);\n }\n}\n\n.skeleton-shimmer {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.1) 20%,\n rgba(255, 255, 255, 0.3) 50%,\n rgba(255, 255, 255, 0.1) 80%,\n rgba(255, 255, 255, 0) 100%\n );\n animation: shimmer 2s infinite;\n}\n\n.dark .skeleton-shimmer {\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.05) 20%,\n rgba(255, 255, 255, 0.1) 50%,\n rgba(255, 255, 255, 0.05) 80%,\n rgba(255, 255, 255, 0) 100%\n );\n}\n\n';export{Ng as Bundle,_g as BundleLoader,eu as Cart,na as CouponFrame,Ue as Nudge,Og as ProductGridSkeleton,Xe as SpinnerWheel,Ag as ytBundleShadowCss};
|
|
@@ -92,6 +92,8 @@ export type BundleConfig = {
|
|
|
92
92
|
hideSelectedProducts: boolean;
|
|
93
93
|
allowMultipleQty: boolean;
|
|
94
94
|
hideOutOfStockProducts: boolean;
|
|
95
|
+
bundleRedirection: "cart-drawer" | "checkout";
|
|
96
|
+
checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
|
|
95
97
|
};
|
|
96
98
|
};
|
|
97
99
|
interface CollectionBundleProps {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BundleProps } from "../Bundle";
|
|
3
|
-
export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, }: BundleProps): React.JSX.Element;
|
|
3
|
+
export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, shadowRoot }: BundleProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
interface ProductOffersCouponProps {
|
|
5
|
+
offersToShow: CartCheckpoint[];
|
|
6
|
+
offersConfig?: ProductsOffersConfigType | null;
|
|
7
|
+
getOfferCardMessage: (offer: CartCheckpoint) => string;
|
|
8
|
+
setSelectedOffer: (offer: CartCheckpoint | null) => void;
|
|
9
|
+
setShowPopup: (show: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProductOffersCoupon: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersCouponProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
interface ProductOffersListProps {
|
|
5
|
+
offersToShow: CartCheckpoint[];
|
|
6
|
+
offersConfig: ProductsOffersConfigType;
|
|
7
|
+
getOfferCardMessage: (offer: CartCheckpoint) => string;
|
|
8
|
+
setSelectedOffer: (offer: CartCheckpoint | null) => void;
|
|
9
|
+
setShowPopup: (show: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProductOffersList: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersListProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
export declare const ProductOffersTermsMobilePopover: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
|
|
5
|
+
showPopup: boolean;
|
|
6
|
+
selectedOffer: CartCheckpoint | null;
|
|
7
|
+
selectedOfferTerms: OfferTermsAndConditions | null;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
10
|
+
}) => React.ReactPortal | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
export declare const ProductOffersTermsPopup: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
|
|
5
|
+
showPopup: boolean;
|
|
6
|
+
selectedOffer: CartCheckpoint | null;
|
|
7
|
+
selectedOfferTerms: OfferTermsAndConditions | null;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
10
|
+
}) => React.ReactPortal | null;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "../Cart/Cart";
|
|
3
|
+
export interface ProductsOffersConfigType {
|
|
4
|
+
sectionType?: "coupon" | "list";
|
|
5
|
+
sectionTitle?: string;
|
|
6
|
+
sectionBackgroundColor?: string;
|
|
7
|
+
sectionBgContrastColor?: string;
|
|
8
|
+
cardBackgroundColor?: string;
|
|
9
|
+
cardBackgroundTransparent?: boolean;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
accentColor?: string;
|
|
12
|
+
roundness?: number;
|
|
13
|
+
cardPadding?: number;
|
|
14
|
+
viewDetailsTitle?: string;
|
|
15
|
+
alignment?: "left" | "middle" | "right";
|
|
16
|
+
iconVisibility?: boolean;
|
|
17
|
+
popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
|
|
18
|
+
}
|
|
19
|
+
export interface CartCheckpoint extends Checkpoint {
|
|
20
|
+
customCartProgressBarCriteria?: string | null;
|
|
21
|
+
discountPercentage?: number | null;
|
|
22
|
+
discountId?: number | null;
|
|
23
|
+
}
|
|
24
|
+
export interface OfferTermsAndConditions {
|
|
25
|
+
offerMessage: string;
|
|
26
|
+
terms: string[];
|
|
27
|
+
}
|
|
28
|
+
declare const ProductsOffers: ({ offersConfig, offers, }: {
|
|
29
|
+
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
30
|
+
offers: CartCheckpoint[];
|
|
31
|
+
}) => React.JSX.Element;
|
|
32
|
+
export default ProductsOffers;
|