.solar-chat,
.solar-chat *{box-sizing:border-box}
.solar-chat{--chat-forest:#183d31;--chat-deep:#102a24;--chat-leaf:#477b58;--chat-lime:#d8e69e;--chat-paper:#fbfaf6;--chat-ink:#1c2923;--chat-muted:#788278;--chat-line:#e9ebe4;position:fixed;z-index:1200;right:clamp(16px,3vw,38px);bottom:clamp(16px,3vw,30px);font-family:"DM Sans",Arial,sans-serif;color:var(--chat-ink)}
.solar-chat button,.solar-chat input{font:inherit}
.solar-chat button{color:inherit}
.solar-chat-launcher{position:relative;display:flex;align-items:center;gap:12px;width:248px;min-height:68px;padding:9px 16px 9px 10px;border:1px solid #ffffffcf;border-radius:19px;background:linear-gradient(145deg,#244a3b,#153329);box-shadow:0 15px 38px #14271e42,0 2px 6px #10221b25;color:#fff;text-align:left;cursor:pointer;transition:transform .25s,box-shadow .25s,opacity .2s}
.solar-chat-launcher:hover{transform:translateY(-3px);box-shadow:0 20px 42px #14271e50,0 2px 6px #10221b25}
.solar-chat-launcher-icon{width:47px;height:47px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #ffffff40;border-radius:15px;background:linear-gradient(145deg,#dce9ac,#a9bf77);color:#193d2e;box-shadow:inset 0 1px #ffffffad}
.solar-chat-launcher-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.solar-chat-launcher-copy{display:flex;flex:1;flex-direction:column;gap:3px}
.solar-chat-launcher-copy strong{font-size:12px;font-weight:700;letter-spacing:.01em}
.solar-chat-launcher-copy small{color:#d1ddcf;font-size:10px;letter-spacing:.02em}
.solar-chat-launcher-status{align-self:flex-start;width:7px;height:7px;margin-top:8px;border-radius:50%;background:#c9e38e;box-shadow:0 0 0 4px #c9e38e24,0 0 15px #c9e38e8a}
.solar-chat-panel[hidden]{display:none!important}
.solar-chat-panel{position:absolute;right:0;bottom:84px;display:flex;width:min(390px,calc(100vw - 32px));height:min(680px,calc(100dvh - 118px));min-height:450px;flex-direction:column;overflow:hidden;border:1px solid #ffffffa6;border-radius:24px;background:var(--chat-paper);box-shadow:0 26px 85px #15271f3d,0 4px 16px #1a2d211c;animation:solar-chat-in .34s cubic-bezier(.18,.74,.26,1) both}
.solar-chat-header{position:relative;display:flex;align-items:center;gap:13px;min-height:88px;padding:18px 18px 16px;overflow:hidden;background:radial-gradient(ellipse at 92% 0%,#77946a55,transparent 47%),linear-gradient(119deg,#1c4738,#14372d 58%,#102c26);color:#f8f7ed}
.solar-chat-header::after{position:absolute;right:68px;top:-61px;width:170px;height:170px;border:1px solid #d6e4b323;border-radius:50%;content:"";box-shadow:0 0 0 18px #d6e4b30b,0 0 0 39px #d6e4b308}
.solar-chat-header-glow{position:absolute;right:87px;top:-26px;width:89px;height:89px;border-radius:50%;background:#d9eaa124;filter:blur(8px)}
.solar-chat-brandmark{position:relative;z-index:1;width:43px;height:43px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #ffffff48;border-radius:14px;background:linear-gradient(145deg,#e3edbb,#b4c985);color:#1c4434;box-shadow:0 6px 20px #081a1533}
.solar-chat-brandmark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.solar-chat-heading{position:relative;z-index:1;display:flex;flex:1;flex-direction:column;gap:2px}
.solar-chat-heading>span{color:#c5d6c4;font-size:8px;font-weight:600;letter-spacing:.16em}
.solar-chat-heading strong{font-family:"Space Grotesk","DM Sans",sans-serif;font-size:15px;font-weight:600;letter-spacing:.08em}
.solar-chat-heading strong i{color:#d9eaa7;font-size:11px;font-style:normal;font-weight:400;letter-spacing:.12em}
.solar-chat-heading small{display:flex;align-items:center;gap:6px;color:#d8e3d4;font-size:10px}
.solar-chat-heading small b{width:6px;height:6px;border-radius:50%;background:#c8e296;box-shadow:0 0 9px #c8e296a6}
.solar-chat-close{position:relative;z-index:2;width:34px;height:34px;display:grid;place-items:center;border:1px solid #ffffff30;border-radius:50%;background:#ffffff0d;color:#f7f6ed;cursor:pointer;transition:background .2s,transform .2s}
.solar-chat-close:hover{transform:rotate(90deg);background:#ffffff20}
.solar-chat-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.solar-chat-context{display:flex;align-items:center;gap:8px;padding:10px 17px;border-bottom:1px solid var(--chat-line);background:#f6f6ef;color:#637264;font-size:9px;letter-spacing:.01em}
.solar-chat-context-icon{width:18px;height:18px;display:grid;place-items:center;border-radius:6px;background:#e5ebd5;color:#426248}
.solar-chat-context-icon svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.solar-chat-context-time{margin-left:auto;color:#929a90;font-size:8px;letter-spacing:.06em;text-transform:uppercase}
.solar-chat-messages{display:flex;flex:1;flex-direction:column;gap:12px;overflow-x:hidden;overflow-y:auto;padding:20px 16px 17px;scroll-behavior:smooth;scrollbar-color:#ccd4c3 transparent;scrollbar-width:thin}
.solar-chat-message{display:flex;align-items:flex-end;gap:8px;max-width:94%;animation:solar-chat-message-in .25s ease both}
.solar-chat-message-user{align-self:flex-end}
.solar-chat-message-assistant{align-self:flex-start}
.solar-chat-avatar{width:25px;height:25px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #dce5cd;border-radius:9px;background:#edf1e1;color:#47724e}
.solar-chat-avatar svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.solar-chat-bubble{max-width:100%;padding:11px 13px;border:1px solid #eaede5;border-radius:15px 15px 15px 4px;background:#fff;color:#48544c;font-size:11px;line-height:1.65;box-shadow:0 3px 10px #24342908;white-space:pre-wrap;overflow-wrap:anywhere}
.solar-chat-message-user .solar-chat-bubble{border-color:#dbe5c8;border-radius:15px 15px 4px 15px;background:#eaf0df;color:#304638}
.solar-chat-choices{display:flex;align-self:flex-start;flex-wrap:wrap;gap:7px;margin:0 0 2px 33px;animation:solar-chat-message-in .25s ease both}
.solar-chat-choice{min-height:32px;padding:7px 11px;border:1px solid #dce5d2;border-radius:20px;background:#fff;color:#435d47!important;font-size:9px;font-weight:600;line-height:1.35;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.solar-chat-choice:hover{transform:translateY(-1px);border-color:#aabe91;background:#f3f6eb}
.solar-chat-choice:focus-visible,.solar-chat-launcher:focus-visible,.solar-chat-close:focus-visible,.solar-chat-compose button:focus-visible{outline:2px solid #a8bd79;outline-offset:3px}
.solar-chat-typing{display:flex;align-items:center;gap:4px;min-width:52px;padding:13px}
.solar-chat-typing i{width:5px;height:5px;border-radius:50%;background:#81947d;animation:solar-chat-dot .9s ease-in-out infinite}
.solar-chat-typing i:nth-child(2){animation-delay:.13s}.solar-chat-typing i:nth-child(3){animation-delay:.26s}
.solar-chat-compose-wrap{padding:11px 14px 10px;border-top:1px solid var(--chat-line);background:#fff}
.solar-chat-compose{height:44px;display:flex;align-items:center;gap:7px;padding:4px 5px 4px 13px;border:1px solid #e4e8df;border-radius:14px;background:#fbfcf8;transition:border-color .18s,box-shadow .18s}
.solar-chat-compose:focus-within{border-color:#b6c69e;box-shadow:0 0 0 3px #e8efdb}
.solar-chat-compose input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--chat-ink);font-size:11px}
.solar-chat-compose input::placeholder{color:#9aa39a}
.solar-chat-compose button{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border:0;border-radius:11px;background:#294e3b;color:#f8f7ed;cursor:pointer;transition:background .18s,transform .18s}
.solar-chat-compose button:hover{transform:translateY(-1px);background:#3b684c}
.solar-chat-compose button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.solar-chat-compose.is-busy input,.solar-chat-compose.is-busy button{opacity:.55;pointer-events:none}
.solar-chat-compose-wrap>p{margin:7px 0 0;color:#929990;font-size:8px;text-align:center;letter-spacing:.01em}
.solar-chat-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes solar-chat-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes solar-chat-message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes solar-chat-dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@media(max-width:600px){.solar-chat{right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}.solar-chat-launcher{width:auto;min-width:61px;min-height:61px;justify-content:center;padding:7px;border-radius:19px}.solar-chat-launcher-icon{width:45px;height:45px}.solar-chat-launcher-copy,.solar-chat-launcher-status{display:none}.solar-chat-panel{position:fixed;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));width:calc(100vw - 20px);height:min(690px,calc(100dvh - 20px - env(safe-area-inset-bottom)));min-height:min(450px,calc(100dvh - 20px));border-radius:22px}.solar-chat.is-open .solar-chat-launcher{opacity:0;pointer-events:none;transform:scale(.85)}.solar-chat-messages{padding:17px 13px 15px}.solar-chat-header{min-height:83px}}
@media(max-width:360px){.solar-chat-panel{right:7px;bottom:calc(7px + env(safe-area-inset-bottom));width:calc(100vw - 14px);height:calc(100dvh - 14px - env(safe-area-inset-bottom));min-height:0}.solar-chat-messages{gap:10px;padding-right:11px;padding-left:11px}.solar-chat-bubble{font-size:10px}.solar-chat-choice{font-size:8px;padding:6px 9px}}
@media(prefers-reduced-motion:reduce){.solar-chat *,.solar-chat *::before,.solar-chat *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Cinematic opening scene and softer, paced motion. */
.solar-chat-launcher{overflow:hidden}
.solar-chat-launcher::after{position:absolute;inset:-40% auto -40% -35%;width:30%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,#ffffff20,transparent);content:"";pointer-events:none;animation:solar-chat-sheen 8s ease-in-out infinite}
.solar-chat-launcher-icon svg{animation:solar-chat-sparkle-turn 22s linear infinite}
.solar-chat-launcher-status{animation:solar-chat-status 2.8s ease-in-out infinite}
.solar-chat-panel{width:min(414px,calc(100vw - 32px));height:min(730px,calc(100dvh - 118px))}
.solar-chat-header-glow{animation:solar-chat-glow 7s ease-in-out infinite}
.solar-chat-header::after{animation:solar-chat-ring 20s linear infinite}
.solar-chat-brandmark svg{animation:solar-chat-sparkle-turn 28s linear infinite}
.solar-chat-hero{position:relative;height:164px;min-height:164px;margin:12px 14px 0;overflow:hidden;border:1px solid #ffffff26;border-radius:17px;background:linear-gradient(90deg,#112c25f2 0%,#17382edb 43%,#372e1a66 100%),url("assets/solar-panel-detail.webp") center 57%/cover;color:#fffdf2;transition:height .4s ease,min-height .4s ease,margin .4s ease,opacity .3s ease;isolation:isolate}
.solar-chat-hero::before{position:absolute;z-index:-1;inset:0;background:linear-gradient(115deg,transparent 25%,#d9e9aa12 49%,transparent 70%);content:"";transform:translateX(-105%);animation:solar-chat-sunbeam 9s ease-in-out 1.2s infinite}
.solar-chat-hero::after{position:absolute;z-index:-1;right:-55px;top:-105px;width:250px;height:250px;border:1px solid #e6edc221;border-radius:50%;content:"";box-shadow:0 0 0 23px #e6edc20a,0 0 0 51px #e6edc208;animation:solar-chat-ring 34s linear infinite reverse}
.solar-chat-hero-sun{position:absolute;right:44px;top:24px;width:60px;height:60px;border-radius:50%;background:radial-gradient(circle at 38% 36%,#fff6d5 0,#f4df9a 22%,#dfc67e8c 52%,#dfc67e00 72%);filter:drop-shadow(0 0 18px #f4df9a70);animation:solar-chat-sun 6s ease-in-out infinite}
.solar-chat-hero-copy{position:absolute;left:18px;top:17px;display:flex;flex-direction:column;gap:8px;animation:solar-chat-copy-in .7s cubic-bezier(.2,.7,.2,1) .12s both}
.solar-chat-hero-copy>span{color:#d7e3c8;font-size:7px;font-weight:700;letter-spacing:.18em}
.solar-chat-hero-copy strong{font-family:"DM Serif Display",Georgia,serif;font-size:23px;font-weight:400;line-height:.98;letter-spacing:-.03em;text-shadow:0 2px 15px #10251d66}
.solar-chat-hero-copy em{color:#d9e8ab;font-weight:400}
.solar-chat-hero-foot{position:absolute;right:12px;bottom:11px;left:14px;display:flex;align-items:center;gap:7px;color:#f4f3e8;font-size:6px;font-weight:600;letter-spacing:.1em;white-space:nowrap;animation:solar-chat-copy-in .65s ease .32s both}
.solar-chat-hero-foot i{width:3px;height:3px;flex:0 0 auto;border-radius:50%;background:#d9e8ab;box-shadow:0 0 7px #d9e8ab}
.solar-chat-hero-orbit{position:absolute;right:16px;top:12px;width:116px;height:86px;border:1px solid #f0edce27;border-radius:50%;transform:rotate(-24deg);animation:solar-chat-orbit 18s linear infinite}
.solar-chat-hero-orbit::after{position:absolute;right:6px;top:9px;width:5px;height:5px;border-radius:50%;background:#e8d79a;box-shadow:0 0 11px 3px #e8d79a88;content:""}
.solar-chat.is-open .solar-chat-hero{animation:solar-chat-hero-in .75s cubic-bezier(.2,.75,.2,1) .05s both}
.solar-chat.has-conversation .solar-chat-hero{height:0;min-height:0;margin-top:0;margin-bottom:0;border-width:0;opacity:0}
.solar-chat-message{animation-duration:.34s}
.solar-chat-choice{transition:border-color .22s,background .22s,transform .22s,box-shadow .22s}
.solar-chat-choice:hover{box-shadow:0 5px 13px #30433210}
@keyframes solar-chat-sheen{0%,68%{transform:translateX(0) skewX(-18deg);opacity:0}74%{opacity:1}90%,100%{transform:translateX(520%) skewX(-18deg);opacity:0}}
@keyframes solar-chat-sparkle-turn{to{transform:rotate(360deg)}}
@keyframes solar-chat-status{0%,100%{box-shadow:0 0 0 3px #c9e38e1f,0 0 12px #c9e38e60}50%{box-shadow:0 0 0 6px #c9e38e12,0 0 18px #c9e38e9c}}
@keyframes solar-chat-glow{0%,100%{opacity:.5;transform:scale(.9)}50%{opacity:1;transform:scale(1.15)}}
@keyframes solar-chat-ring{to{transform:rotate(360deg)}}
@keyframes solar-chat-sun{0%,100%{transform:scale(.95);filter:drop-shadow(0 0 13px #f4df9a58)}50%{transform:scale(1.07);filter:drop-shadow(0 0 23px #f4df9a99)}}
@keyframes solar-chat-sunbeam{0%,18%{transform:translateX(-105%);opacity:0}28%{opacity:1}48%,100%{transform:translateX(105%);opacity:0}}
@keyframes solar-chat-orbit{to{transform:rotate(336deg)}}
@keyframes solar-chat-copy-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes solar-chat-hero-in{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.solar-chat-panel{height:min(730px,calc(100dvh - 20px - env(safe-area-inset-bottom)))}.solar-chat-hero{height:148px;min-height:148px;margin-right:12px;margin-left:12px}.solar-chat-hero-copy{left:15px;top:15px}.solar-chat-hero-copy strong{font-size:22px}.solar-chat-hero-sun{right:35px;top:20px;width:55px;height:55px}.solar-chat-hero-foot{left:12px;gap:6px;font-size:5.5px}.solar-chat.has-conversation .solar-chat-hero{margin-right:12px;margin-left:12px}}
@media(max-width:360px){.solar-chat-panel{height:calc(100dvh - 14px - env(safe-area-inset-bottom))}.solar-chat-hero{height:137px;min-height:137px}.solar-chat-hero-foot{gap:4px;font-size:5px}}
@media(prefers-reduced-motion:reduce){.solar-chat-launcher::after,.solar-chat-launcher-icon svg,.solar-chat-launcher-status,.solar-chat-header-glow,.solar-chat-header::after,.solar-chat-brandmark svg,.solar-chat-hero::before,.solar-chat-hero::after,.solar-chat-hero-sun,.solar-chat-hero-orbit{animation:none!important}.solar-chat-hero,.solar-chat-hero-copy,.solar-chat-hero-foot{transition:none!important;animation:none!important}}
@media(max-width:600px){.solar-chat-panel{top:calc(80px + env(safe-area-inset-top));right:10px;bottom:auto;height:min(730px,calc(100dvh - 90px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));min-height:0}.solar-chat.is-over-contact-form:not(.is-open) .solar-chat-launcher{opacity:0;pointer-events:none;transform:scale(.85)}}


html[lang="ar"] .solar-chat,
html[lang="ar"] .solar-chat * { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
html[lang="ar"] .solar-chat-launcher,
html[lang="ar"] .solar-chat-choice,
html[lang="ar"] .solar-chat-compose input { text-align: right; }

/* Match the compact chat surface to the SUN BUY site palette. */
.solar-chat {
  --chat-forest: #173b78;
  --chat-deep: #102c5b;
  --chat-leaf: #2c5594;
  --chat-lime: #f2c83d;
  --chat-paper: #f5f4ed;
  --chat-ink: #202e29;
  --chat-muted: #737c70;
  --chat-line: #d8dbcf;
  font-family: var(--sans, "DM Sans"), Arial, sans-serif;
}
.solar-chat-launcher { border-radius: 14px; background: linear-gradient(145deg, #244e8c, #173b78); }
.solar-chat-launcher-icon { background: linear-gradient(145deg, #fff0a3, #f2c83d); color: #173b78; }
.solar-chat-launcher-status { background: #f2c83d; box-shadow: 0 0 0 4px #f2c83d24, 0 0 15px #f2c83d8a; }
.solar-chat-panel {
  width: min(350px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 150px));
  min-height: min(370px, calc(100dvh - 150px));
  border-color: #fffdf5;
  border-radius: 18px;
  background: var(--chat-paper);
}
.solar-chat-header {
  min-height: 76px;
  padding: 14px 16px;
  background: radial-gradient(ellipse at 92% 0%, #f2c83d38, transparent 47%), linear-gradient(119deg, #173b78, #102c5b 72%);
}
.solar-chat-header::after { border-color: #f2c83d2b; box-shadow: 0 0 0 18px #f2c83d0b, 0 0 0 39px #f2c83d08; }
.solar-chat-brandmark { background: linear-gradient(145deg, #fff0a3, #f2c83d); color: #173b78; }
.solar-chat-heading strong i, .solar-chat-hero-copy em { color: #f2c83d; }
.solar-chat-context { background: #eeeee5; }
.solar-chat-hero {
  height: 124px;
  min-height: 124px;
  background: linear-gradient(90deg, #102c5bf2 0%, #173b78db 43%, #372e1a66 100%), url("assets/solar-panel-detail.webp") center 57%/cover;
}
.solar-chat-hero-copy { top: 13px; }
.solar-chat-hero-copy strong { font-size: 20px; }
.solar-chat-hero-foot i { background: #f2c83d; box-shadow: 0 0 7px #f2c83d; }
.solar-chat-bubble { font-size: 12px; }
.solar-chat-message-user .solar-chat-bubble { border-color: #d5deec; background: #e8edf6; color: #263f67; }
.solar-chat-choice { border-color: #d5deec; color: #173b78 !important; font-size: 10px; }
.solar-chat-choice:hover { border-color: #e0b623; background: #fff7d6; }
.solar-chat-compose button { background: #173b78; }
.solar-chat-compose button:hover { background: #2c5594; }
.solar-chat-compose input { font-size: 12px; }
@media (max-width: 600px) {
  .solar-chat { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .solar-chat-panel {
    top: auto;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(350px, calc(100vw - 24px));
    height: min(470px, 54dvh, calc(100dvh - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    min-height: min(320px, 54dvh, calc(100dvh - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    border-radius: 18px;
  }
  .solar-chat-header { min-height: 74px; }
  .solar-chat-context, .solar-chat-hero { display: none; }
  .solar-chat-messages { padding: 13px 12px; gap: 9px; }
}
@media (max-width: 360px) {
  .solar-chat-panel {
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(350px, calc(100vw - 24px));
    height: min(420px, 54dvh, calc(100dvh - 145px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    min-height: min(300px, 54dvh, calc(100dvh - 145px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  }
  .solar-chat-bubble { font-size: 11px; }
  .solar-chat-choice { padding: 6px 9px; font-size: 9px; }
}
