/* Adapted from the supplied animation; scoped so it never changes the rest of the storefront. */
.product-finder .pfv-stage {
    --pfv-red: var(--front-red, #ee0000);
    --pfv-red-light: #ff5a4d;
    --pfv-line: rgba(238, 0, 0, .32);
    --pfv-card: rgba(255,255,255,.83);
    --pfv-scale: .73;
    position: relative;
    isolation: isolate;
    width: min(100%, 380px);
    aspect-ratio: 1;
    justify-self: center;
    color: #1b1630;
    font-family: Vazirmatn, Tahoma, sans-serif;
}
.pfv-stage > * { position: absolute; }
.pfv-blob { border-radius: 50%; filter: blur(40px); opacity: .38; animation: pfv-drift 9s ease-in-out infinite alternate; pointer-events: none; }
.pfv-b1 { width: 55%; height: 55%; left: -5%; top: 5%; background: #ff7a6b; }
.pfv-b2 { width: 45%; height: 45%; right: 0; bottom: 0; background: #ff2d3d; animation-delay: -4s; }
.pfv-b3 { width: 35%; height: 35%; right: 15%; top: 0; background: #ffb199; animation-delay: -2s; }
.pfv-center { left: 50%; top: 50%; width: 0; height: 0; direction: ltr; transform: scale(var(--pfv-scale)); transform-origin: center; }
.pfv-circle { position: absolute; width: calc(var(--d) * 1px); aspect-ratio: 1; border: 1.5px dashed var(--pfv-line); border-radius: 50%; transform: translate(-50%, -50%); }
.pfv-pulse { position: absolute; left: 0; top: 0; width: 150px; height: 150px; margin: -75px; border: 2px solid var(--pfv-red); border-radius: 50%; opacity: 0; animation: pfv-pulse 4s ease-out infinite; }
.pfv-pulse:nth-child(2) { animation-delay: 1.33s; }
.pfv-pulse:nth-child(3) { animation-delay: 2.66s; }
.pfv-ring { position: absolute; left: 0; top: 0; animation: pfv-spin var(--t) linear infinite; }
.pfv-ring.pfv-rev { animation-direction: reverse; }
.pfv-slot { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateX(var(--r)); }
.pfv-node { position: absolute; width: 54px; height: 54px; margin: -27px; transform: rotate(calc(var(--a) * -1)); }
.pfv-node-in { display: grid; width: 100%; height: 100%; place-items: center; border: 1px solid rgba(255,255,255,.85); border-radius: 18px; background: var(--pfv-card); box-shadow: 0 11px 25px rgba(29,37,50,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: pfv-spin var(--t) linear infinite reverse; }
.pfv-ring.pfv-rev .pfv-node-in { animation-direction: normal; }
.pfv-node svg { width: 26px; height: 26px; fill: none; stroke: var(--pfv-red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pfv-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--pfv-red); box-shadow: 0 0 0 6px rgba(238,0,0,.15); animation: pfv-blink 2.4s ease-in-out infinite; }
.pfv-card { position: absolute; left: 50%; top: 50%; width: min(68%, 250px); margin: 0; transform: translate(-50%, -50%); animation: pfv-float 5s ease-in-out infinite; }
.pfv-glass { position: relative; overflow: hidden; padding: 19px 16px 16px; border: 1px solid rgba(255,255,255,.9); border-radius: 29px; background: var(--pfv-card); box-shadow: 0 23px 42px rgba(29,37,50,.18), inset 0 1px rgba(255,255,255,.95); text-align: center; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.pfv-glass::after { position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg,transparent,rgba(255,255,255,.65),transparent); content: ""; transform: skewX(-20deg); animation: pfv-shine 5s ease-in-out infinite; pointer-events: none; }
.pfv-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 10px; border-radius: 19px; background: linear-gradient(135deg,var(--pfv-red-light),var(--pfv-red)); box-shadow: 0 9px 20px rgba(29,37,50,.18); }
.pfv-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pfv-glass h3 { margin: 0; color: #1b1630; font-size: 16px; font-weight: 800; line-height: 1.6; }
.pfv-glass p { margin: 4px 0 11px; color: #656079; font-size: 14px; line-height: 1.5; }
.pfv-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 10px; }
.pfv-steps i { position: relative; overflow: hidden; height: 5px; border-radius: 5px; background: rgba(238,0,0,.15); }
.pfv-steps i::after { position: absolute; inset: 0; background: linear-gradient(90deg,var(--pfv-red-light),var(--pfv-red)); content: ""; transform: scaleX(0); transform-origin: right; animation: pfv-fill 8s infinite; }
.pfv-steps i:nth-child(2)::after { animation-delay: .9s; }
.pfv-steps i:nth-child(3)::after { animation-delay: 1.8s; }
.pfv-steps i:nth-child(4)::after { animation-delay: 2.7s; }
.pfv-q { position: relative; height: 25px; font-size: 14px; font-weight: 700; }
.pfv-q span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; animation: pfv-questions 8s infinite; }
.pfv-q span:nth-child(2) { animation-delay: 2s; }
.pfv-q span:nth-child(3) { animation-delay: 4s; }
.pfv-q span:nth-child(4) { animation-delay: 6s; }
.pfv-q b { color: var(--pfv-red); }
.pfv-chip { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.8); border-radius: 99px; background: var(--pfv-card); box-shadow: 0 9px 23px rgba(29,37,50,.12); font-size: 14px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: pfv-bob 4.5s ease-in-out infinite; }
.pfv-chip em { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #22a769; color: #fff; font-size: 14px; font-style: normal; }
.pfv-ch1 { right: 0; top: 9%; }
.pfv-ch2 { left: 0; bottom: 9%; animation-delay: -2s; }
.pfv-px { width: 6px; height: 6px; border-radius: 50%; background: var(--pfv-red-light); opacity: 0; animation: pfv-rise 6s linear infinite; pointer-events: none; }
@keyframes pfv-drift { to { transform: translate(8%,-6%) scale(1.15); } }
@keyframes pfv-pulse { 0% { transform: scale(.8); opacity: .4; } 100% { transform: scale(3); opacity: 0; } }
@keyframes pfv-spin { to { transform: rotate(360deg); } }
@keyframes pfv-blink { 50% { transform: scale(1.5); opacity: .6; } }
@keyframes pfv-float { 50% { transform: translate(-50%,calc(-50% - 10px)); } }
@keyframes pfv-shine { 0%,60% { left: -60%; } 100% { left: 130%; } }
@keyframes pfv-fill { 0% { transform: scaleX(0); } 8%,80% { transform: scaleX(1); } 92%,100% { transform: scaleX(0); } }
@keyframes pfv-questions { 0% { opacity: 0; transform: translateY(8px); } 4%,22% { opacity: 1; transform: none; } 26%,100% { opacity: 0; transform: translateY(-8px); } }
@keyframes pfv-bob { 50% { transform: translateY(-9px); } }
@keyframes pfv-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-120px); opacity: 0; } }
@media (min-width: 781px) and (max-width: 1050px) { .product-finder .pfv-stage { width: min(100%, 300px); } .pfv-chip { display: none; } }
@media (max-width: 780px) { .product-finder .pfv-stage { width: min(100%, 360px); } }
@media (max-width: 540px) { .product-finder .pfv-stage { width: min(100%, 310px); } .pfv-chip { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) {
    .pfv-stage *,.pfv-stage *::before,.pfv-stage *::after { animation: none !important; transition: none !important; }
    .pfv-steps i::after { transform: scaleX(1); }
    .pfv-q span:first-child { opacity: 1; }
    .pfv-glass::after,.pfv-px { display: none; }
}
