/* Gifty: the corner helper and its chat (build-lighty.mjs), on the designed shop pages. Locked look: yellow, ink, white, Outfit.
   The pages' own sheets set `.shop button{font:inherit}` and `.shop p{margin:0}`, so the rules here that set a font on a
   button or a margin on a paragraph name their parent too. */
.lighty-dock,.lighty-dock *,.lighty-panel,.lighty-panel *,.lighty-wait,.lighty-wait *{box-sizing:border-box}
.lighty-dock{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px) + var(--lighty-lift,0px));z-index:14;display:flex;align-items:flex-end;gap:10px;font-family:'Outfit',sans-serif;transition:bottom .25s ease;pointer-events:none}
.lighty-dock>*{pointer-events:auto}
.lighty-dock[hidden]{display:none}
.lighty-btn{width:64px;height:64px;flex:none;display:grid;place-items:center;padding:0;border:1px solid #E2E7DA;border-radius:50%;background:#fff;box-shadow:0 8px 24px #101A1426;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lighty-btn:hover{border-color:#101A14}
.lighty-btn:focus-visible,.lighty-panel button:focus-visible,.lighty-panel a:focus-visible,.lighty-say button:focus-visible{outline:3px solid #101A14;outline-offset:2px}
.lighty-btn .lighty{width:46px;height:auto}
.lighty-say{display:flex;align-items:stretch;max-width:230px;margin-bottom:8px;border:1px solid #E2E7DA;border-radius:18px 18px 4px 18px;background:#fff;box-shadow:0 8px 24px #101A1426;overflow:hidden;animation:lighty-in .3s ease-out both}
.lighty-say .lighty-say-go{flex:1;padding:12px 4px 12px 14px;border:0;background:none;color:#101A14;font:500 14px/1.35 'Outfit',sans-serif;text-align:left;cursor:pointer}
.lighty-say .lighty-say-x{flex:none;width:36px;border:0;background:none;color:#4A5A4E;font:400 20px/1 'Outfit',sans-serif;cursor:pointer}

/* the drawing */
.lighty{display:block;overflow:visible}
.lighty .ln{stroke-dasharray:1.02;stroke-dashoffset:0}
.lighty .glow,.lighty .eyes{transform-origin:50% 50%;transform-box:fill-box}
.lighty .body{animation:lighty-bob 3.2s ease-in-out infinite;transform-origin:50% 100%;transform-box:fill-box}
.lighty .eye{animation:lighty-blink 4.6s infinite;transform-origin:50% 50%;transform-box:fill-box}
.lighty .bow{animation:lighty-bow 3.2s ease-in-out infinite;transform-origin:50% 100%;transform-box:fill-box}
.lighty.draw .ln{animation:lighty-draw var(--d,.4s) ease-in-out var(--t,0s) both}
.lighty.draw .glow{animation:lighty-patch .5s ease-out 1.6s both}
.lighty.draw .eyes{animation:lighty-pop .35s cubic-bezier(.3,1.6,.5,1) 1.9s both}
@keyframes lighty-bob{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(-4px) rotate(1.5deg)}}
@keyframes lighty-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes lighty-bow{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes lighty-draw{from{stroke-dashoffset:1.02}to{stroke-dashoffset:0}}
@keyframes lighty-patch{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:scale(1)}}
@keyframes lighty-pop{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}
@keyframes lighty-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* the chat: a head, the talk (it scrolls), two small links, and the box for a typed question */
.lighty-shade{position:fixed;inset:0;z-index:58;background:transparent}
.lighty-panel{position:fixed;z-index:60;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;width:380px;max-width:calc(100vw - 32px);max-height:min(640px,calc(100vh - 32px));overflow:hidden;border:1px solid #E2E7DA;border-radius:24px;background:#fff;color:#101A14;box-shadow:0 20px 60px #101A1433;font-family:'Outfit',sans-serif;animation:lighty-in .25s ease-out both}
.lighty-head{flex:none;display:flex;align-items:center;gap:12px;padding:12px 12px 12px 16px;border-bottom:1px solid #E2E7DA}
.lighty-head .lighty{width:40px;height:auto;flex:none}
.lighty-who{flex:1;min-width:0}
.lighty-who h2{margin:0;font:600 18px/1.2 'Outfit',sans-serif;color:#101A14;letter-spacing:0}
.lighty-who p{margin:2px 0 0;color:#4A5A4E;font:400 13px/1.3 'Outfit',sans-serif}
.lighty-head .lighty-x{flex:none;width:44px;height:44px;border:1px solid #E2E7DA;border-radius:50%;background:#fff;color:#101A14;font:400 22px/1 'Outfit',sans-serif;cursor:pointer}
.lighty-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:16px;overflow-y:auto;overscroll-behavior:contain}
.lighty-row{display:flex;align-items:flex-end;gap:8px}
.lighty-face{flex:none;width:30px}
.lighty-face .lighty{width:30px;height:auto}
.lighty-face .lighty .body,.lighty-face .lighty .eye,.lighty-face .lighty .bow{animation:none}
.lighty-msg{max-width:84%;margin:0;padding:10px 14px;border-radius:18px 18px 18px 4px;background:#F3F4EF;color:#101A14;font:400 16px/1.4 'Outfit',sans-serif;overflow-wrap:anywhere;animation:lighty-in .2s ease-out both}
.lighty-msg a{color:#101A14;font-weight:500;text-underline-offset:3px}
.lighty-msg.me{align-self:flex-end;border-radius:18px 18px 4px 18px;background:#101A14;color:#fff}
.lighty-q:focus{outline:none}
.lighty-dots{display:flex;align-items:center;gap:5px;padding:15px 14px}
.lighty-dots i{width:7px;height:7px;border-radius:50%;background:#4A5A4E;animation:lighty-dot 1s infinite}
.lighty-dots i:nth-child(2){animation-delay:.15s}.lighty-dots i:nth-child(3){animation-delay:.3s}
@keyframes lighty-dot{0%,60%,100%{opacity:.3}30%{opacity:1}}
.lighty-body .lighty-count{margin:6px 0 0;color:#4A5A4E;font:500 13px/1.3 'Outfit',sans-serif;text-align:right}
.lighty-options{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:4px 0 0;padding:0 0 0 38px;list-style:none}
.lighty-body .lighty-options button{min-height:52px;padding:10px 18px;border:1.5px solid #101A14;border-radius:999px;background:#fff;color:#101A14;font:500 16px/1.2 'Outfit',sans-serif;cursor:pointer}
.lighty-options button:hover{background:#F7FCDD}
.lighty-options button:active{background:#D2F20D}
.lighty-card{flex:1;min-width:0;padding:12px;border:1px solid #E2E7DA;border-radius:18px 18px 18px 4px;background:#fff;animation:lighty-in .2s ease-out both}
.lighty-card h3{margin:0 0 10px;font:600 16px/1.25 'Outfit',sans-serif;color:#101A14}
.lighty-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
.lighty-pick{display:block;color:#101A14;text-decoration:none}
.lighty-pick img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border:1px solid #E2E7DA;border-radius:12px;background:#F3F4EF}
.lighty-pick:hover img{border-color:#101A14}
.lighty-pick b{display:block;margin-top:6px;font:600 13px/1.25 'Outfit',sans-serif}
.lighty-pick small{display:block;margin-top:2px;color:#4A5A4E;font:400 12px/1.3 'Outfit',sans-serif}
.lighty-card .lighty-note{margin:0 0 12px;color:#4A5A4E;font:400 14px/1.45 'Outfit',sans-serif}
.lighty-panel .lighty-all{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;border-radius:999px;background:#D2F20D;color:#101A14;font:600 16px/1.2 'Outfit',sans-serif;text-decoration:none}
.lighty-panel .lighty-all:hover{background:#C3E20C}
/* the form shown when Gifty cannot answer */
.lighty-form{display:grid;gap:10px}
.lighty-form label{display:grid;gap:4px;color:#101A14;font:500 14px/1.3 'Outfit',sans-serif}
.lighty-panel .lighty-form input{min-height:48px;width:100%;padding:10px 14px;border:1px solid #E2E7DA;border-radius:12px;background:#fff;color:#101A14;font:400 16px/1.2 'Outfit',sans-serif}
.lighty-form input:focus{outline:none;border-color:#101A14}
.lighty-form-q,.lighty-form-note{margin:0;color:#4A5A4E;font:400 13px/1.4 'Outfit',sans-serif;overflow-wrap:anywhere}
.lighty-form-note{text-align:center}
.lighty-form-err{margin:0;color:#101A14;font:600 14px/1.4 'Outfit',sans-serif}
.lighty-panel .lighty-form button.lighty-all{width:100%;border:0;cursor:pointer}
.lighty-panel .lighty-form button.lighty-all:disabled{opacity:.6;cursor:default}
.lighty-foot{flex:none;display:flex;justify-content:space-between;gap:12px;padding:0 16px;border-top:1px solid #E2E7DA}
.lighty-foot .lighty-link{padding:12px 0;border:0;background:none;color:#4A5A4E;font:500 14px/1.2 'Outfit',sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.lighty-foot .lighty-link:hover{color:#101A14}
.lighty-ask{flex:none;display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.lighty-ask[hidden]{display:none}
.lighty-panel .lighty-ask input{flex:1;min-width:0;min-height:48px;padding:10px 16px;border:1px solid #E2E7DA;border-radius:999px;background:#F3F4EF;color:#101A14;font:400 16px/1.2 'Outfit',sans-serif}
.lighty-ask input::placeholder{color:#4A5A4E;opacity:1}
.lighty-ask input:focus{outline:none;border-color:#101A14;background:#fff}
.lighty-panel .lighty-ask button{flex:none;width:48px;height:48px;border:0;border-radius:50%;background:#D2F20D;color:#101A14;font:600 20px/1 'Outfit',sans-serif;cursor:pointer}
.lighty-ask button:hover{background:#C3E20C}
.lighty-ask p{flex:0 0 100%;margin:0;color:#4A5A4E;font:400 12px/1.4 'Outfit',sans-serif;text-align:center}

/* on the waiting card */
.lighty-wait{display:flex;align-items:center;gap:12px;margin:14px 0;max-width:380px;text-align:left;font-family:'Outfit',sans-serif}
.lighty-wait .lighty{width:52px;height:auto;flex:none}
.lighty-wait p{margin:0;padding:10px 14px;border:1px solid #E2E7DA;border-radius:18px 18px 18px 4px;background:#fff;color:#101A14;font:500 14px/1.35 'Outfit',sans-serif}

@media(max-width:650px){
 .lighty-shade{background:#101A1466}
 .lighty-btn{width:58px;height:58px}.lighty-btn .lighty{width:42px}
 .lighty-panel{left:0;right:0;bottom:0;width:auto;max-width:none;max-height:88vh;max-height:88dvh;padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);border-radius:24px 24px 0 0;border-width:1px 0 0}
}
@media(prefers-reduced-motion:reduce){
 .lighty .body,.lighty .eye,.lighty .bow,.lighty.draw .ln,.lighty.draw .glow,.lighty.draw .eyes,.lighty-say,.lighty-panel,.lighty-msg,.lighty-card,.lighty-dots i{animation:none}
 .lighty-dock{transition:none}
}
