{"version":3,"file":"b05lVGEKx.DsWhtKI7.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/UCw8Eh0NMdJi4oZFCZ3f/W8ZYOwn8LVwwJ4dVgfOp/FAQAccordion.js","https:/framerusercontent.com/modules/w4rkTVCNgHVeD050BBec/LQOyZKDNLUrhDRUjbN5X/b05lVGEKx.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useRef,useEffect}from\"react\";export default function FAQAccordion({faqJson,borderColor,questionColor,answerColor,title,titleColor}){const[openIndex,setOpenIndex]=useState(null);const[isMobile,setIsMobile]=useState(false);useEffect(()=>{const check=()=>setIsMobile(window.innerWidth<768);check();window.addEventListener(\"resize\",check);return()=>window.removeEventListener(\"resize\",check);},[]);let items=[];try{items=JSON.parse(faqJson);}catch{items=[];}const toggle=i=>setOpenIndex(openIndex===i?null:i);if(items.length===0){return /*#__PURE__*/_jsx(\"div\",{style:{padding:\"16px\",color:\"#999\",fontSize:\"14px\",fontFamily:\"BDO Grotesk, sans-serif\"},children:\"No FAQ items found. Check your JSON.\"});}return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",fontFamily:\"BDO Grotesk, sans-serif\"},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:isMobile?\"8px\":\"12px\",width:\"100%\"},children:items.map((item,i)=>/*#__PURE__*/_jsx(AccordionItem,{item:item,isOpen:openIndex===i,onToggle:()=>toggle(i),borderColor:borderColor,questionColor:questionColor,answerColor:answerColor,isMobile:isMobile},i))})});}function AccordionItem({item,isOpen,onToggle,borderColor,questionColor,answerColor,isMobile}){const contentRef=useRef(null);const[height,setHeight]=useState(0);useEffect(()=>{if(contentRef.current){setHeight(isOpen?contentRef.current.scrollHeight:0);}},[isOpen]);return /*#__PURE__*/_jsxs(\"div\",{style:{border:`1px solid ${borderColor}`,borderRadius:isMobile?\"10px\":\"12px\",overflow:\"hidden\",width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:onToggle,style:{width:\"100%\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",padding:isMobile?\"16px 18px\":\"22px 28px\",background:\"none\",border:\"none\",cursor:\"pointer\",textAlign:\"left\",fontSize:isMobile?\"15px\":\"17px\",fontWeight:500,color:questionColor,fontFamily:\"BDO Grotesk, sans-serif\",lineHeight:1.4,boxSizing:\"border-box\"},children:[item.question,/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,marginLeft:\"16px\",width:isMobile?\"24px\":\"28px\",height:isMobile?\"24px\":\"28px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:isMobile?\"18px\":\"20px\",color:questionColor,fontWeight:300,transition:\"transform 0.3s ease\",transform:isOpen?\"rotate(45deg)\":\"rotate(0deg)\"},children:\"+\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:`${height}px`,overflow:\"hidden\",transition:\"height 0.35s cubic-bezier(0.4, 0, 0.2, 1)\"},children:/*#__PURE__*/_jsx(\"div\",{ref:contentRef,style:{padding:isMobile?\"0 18px 16px\":\"0 28px 22px\",fontSize:isMobile?\"14px\":\"15px\",color:answerColor,lineHeight:1.7,fontFamily:\"BDO Grotesk, sans-serif\"},children:item.answer})})]});}FAQAccordion.defaultProps={faqJson:'[{\"question\":\"What is your return policy?\",\"answer\":\"You can return items within 30 days.\"},{\"question\":\"Do you ship internationally?\",\"answer\":\"Yes, we ship to over 50 countries.\"}]',title:\"Frequently Asked Questions\",borderColor:\"#EBEDF0\",questionColor:\"#111111\",answerColor:\"#555555\",titleColor:\"#111111\"};addPropertyControls(FAQAccordion,{title:{type:ControlType.String,title:\"Title\"},titleColor:{type:ControlType.Color,title:\"Title Color\"},faqJson:{type:ControlType.String,title:\"FAQ JSON\",displayTextArea:true},borderColor:{type:ControlType.Color,title:\"Border Color\"},questionColor:{type:ControlType.Color,title:\"Question Color\"},answerColor:{type:ControlType.Color,title:\"Answer Color\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQAccordion\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQAccordion.map","// Generated by Framer (8b16de8)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOMV2;BDO Grotesk Light\",\"CUSTOMV2;BDO Grotesk DemiBold\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"BDO Grotesk Light\",source:\"custom\",style:\"normal\",uiFamilyName:\"BDO Grotesk\",url:\"https://framerusercontent.com/assets/sla06QVCMAO3gEA7xuIYoQwWkc.woff2\",weight:\"300\"},{cssFamilyName:\"BDO Grotesk DemiBold\",source:\"custom\",style:\"normal\",uiFamilyName:\"BDO Grotesk\",url:\"https://framerusercontent.com/assets/V28Um02zWDDL48uOSPzAOp8wM0.woff2\",weight:\"600\"}]}];export const css=['.framer-n6o1K .framer-styles-preset-1vunsi:not(.rich-text-wrapper), .framer-n6o1K .framer-styles-preset-1vunsi.rich-text-wrapper p { --framer-font-family: \"BDO Grotesk Light\", \"BDO Grotesk Light Placeholder\", sans-serif; --framer-font-family-bold: \"BDO Grotesk DemiBold\", \"BDO Grotesk DemiBold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 300; --framer-font-weight-bold: 600; --framer-letter-spacing: 0.02em; --framer-line-height: 170%; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-background-corner-shape: superellipse(1); --framer-text-color: var(--token-06036281-286d-4185-a668-a8d62f47632b, #1e1e1e); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1439px) and (min-width: 768px) { .framer-n6o1K .framer-styles-preset-1vunsi:not(.rich-text-wrapper), .framer-n6o1K .framer-styles-preset-1vunsi.rich-text-wrapper p { --framer-font-family: \"BDO Grotesk Light\", \"BDO Grotesk Light Placeholder\", sans-serif; --framer-font-family-bold: \"BDO Grotesk DemiBold\", \"BDO Grotesk DemiBold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 300; --framer-font-weight-bold: 600; --framer-letter-spacing: 0.02em; --framer-line-height: 170%; --framer-paragraph-spacing: 18px; --framer-text-alignment: left; --framer-text-background-corner-shape: superellipse(1); --framer-text-color: var(--token-06036281-286d-4185-a668-a8d62f47632b, #1e1e1e); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 767px) and (min-width: 0px) { .framer-n6o1K .framer-styles-preset-1vunsi:not(.rich-text-wrapper), .framer-n6o1K .framer-styles-preset-1vunsi.rich-text-wrapper p { --framer-font-family: \"BDO Grotesk Light\", \"BDO Grotesk Light Placeholder\", sans-serif; --framer-font-family-bold: \"BDO Grotesk DemiBold\", \"BDO Grotesk DemiBold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 300; --framer-font-weight-bold: 600; --framer-letter-spacing: 0.02em; --framer-line-height: 170%; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-background-corner-shape: superellipse(1); --framer-text-color: var(--token-06036281-286d-4185-a668-a8d62f47632b, #1e1e1e); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-n6o1K\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable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