/* Fil: /public_html/assets/assistent.css  (yükleme yeri / upload her) */
/* Ordna — "Spørg Ordna" assistent: knap nederst til højre + samtalepanel (asistan butonu + sohbet paneli) */
.sp-knap{position:fixed;right:20px;bottom:20px;z-index:900;display:flex;align-items:center;gap:10px;height:54px;padding:0 20px 0 8px;border:0;border-radius:999px;background:#0E6B66;color:#fff;font:700 15px/1 Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 14px 34px -10px rgba(14,107,102,.6),0 2px 6px rgba(17,24,39,.15);transition:transform .18s,box-shadow .18s}
.sp-knap:hover{transform:translateY(-2px);box-shadow:0 18px 38px -10px rgba(14,107,102,.7),0 2px 6px rgba(17,24,39,.15)}
.sp-knap .sp-ikon{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.16);display:grid;place-items:center}
.sp-knap .sp-prik{width:9px;height:9px;border-radius:50%;background:#7FE3C9;box-shadow:0 0 0 3px rgba(127,227,201,.25);margin-left:-2px}
.sp-knap[aria-expanded="true"]{opacity:0;pointer-events:none;transform:scale(.9)}

.sp-panel{position:fixed;right:20px;bottom:20px;z-index:901;width:390px;max-width:calc(100vw - 24px);height:min(620px,calc(100vh - 40px));display:flex;flex-direction:column;background:#fff;border-radius:22px;box-shadow:0 30px 70px -20px rgba(17,24,39,.45),0 0 0 1px rgba(17,24,39,.06);overflow:hidden;font-family:Inter,system-ui,sans-serif;transform-origin:bottom right;animation:spInd .22s ease-out}
@keyframes spInd{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
.sp-hoved{display:flex;align-items:center;gap:12px;padding:16px 16px 14px 18px;background:#0E6B66;color:#fff}
.sp-hoved .sp-avatar{width:40px;height:40px;border-radius:12px;background:#fff;display:grid;place-items:center;flex:0 0 auto}
.sp-hoved b{display:block;font-size:16px;letter-spacing:-.01em}
.sp-hoved small{display:block;font-size:12.5px;opacity:.85;margin-top:2px}
.sp-luk{margin-left:auto;width:36px;height:36px;border:0;border-radius:10px;background:rgba(255,255,255,.14);color:#fff;font-size:18px;cursor:pointer}
.sp-luk:hover{background:rgba(255,255,255,.24)}

.sp-stroem{flex:1;overflow-y:auto;padding:18px 16px 8px;background:#F7F8FA;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.sp-b{max-width:86%;padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.sp-b.o{align-self:flex-start;background:#fff;color:#111827;border-bottom-left-radius:6px;box-shadow:0 1px 2px rgba(17,24,39,.06)}
.sp-b.k{align-self:flex-end;background:#0E6B66;color:#fff;border-bottom-right-radius:6px}
.sp-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sp-links a{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:#E7F3F1;color:#0A4F4B;font-weight:600;font-size:13px;text-decoration:none}
.sp-links a:hover{background:#DDEFEC}
.sp-skriver{align-self:flex-start;display:flex;gap:4px;padding:14px 16px;background:#fff;border-radius:16px;border-bottom-left-radius:6px}
.sp-skriver i{width:7px;height:7px;border-radius:50%;background:#9AA3AE;animation:spPrik 1s infinite}
.sp-skriver i:nth-child(2){animation-delay:.15s}.sp-skriver i:nth-child(3){animation-delay:.3s}
@keyframes spPrik{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}

.sp-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0 2px}
.sp-chips button{border:1px solid #DDE1E7;background:#fff;color:#111827;border-radius:999px;padding:8px 12px;font:600 13px Inter,system-ui,sans-serif;cursor:pointer}
.sp-chips button:hover{border-color:#0E6B66;color:#0E6B66}

.sp-ring{align-self:stretch;background:#fff;border-radius:16px;padding:14px;box-shadow:0 1px 2px rgba(17,24,39,.06);border:1.5px solid #DDEFEC}
.sp-ring b{display:block;font-size:15px;margin-bottom:2px}
.sp-ring p{margin:0 0 10px;font-size:13px;color:#4A5260}
.sp-ring label{display:block;font-size:12px;font-weight:600;color:#4A5260;margin:8px 0 4px}
.sp-ring input,.sp-ring textarea{width:100%;height:42px;border:1.5px solid #DDE1E7;border-radius:10px;padding:0 12px;font:15px Inter,system-ui,sans-serif;background:#FBFBFC;box-sizing:border-box}
.sp-ring textarea{height:60px;padding:8px 12px;resize:none}
.sp-ring input:focus,.sp-ring textarea:focus{outline:2px solid #0E6B66;outline-offset:0;border-color:transparent}
.sp-ring .sp-ring-knap{margin-top:12px;width:100%;height:46px;border:0;border-radius:12px;background:#0E6B66;color:#fff;font:700 15px Inter,system-ui,sans-serif;cursor:pointer}
.sp-ring .sp-ring-knap:disabled{opacity:.6}
.sp-ring .sp-fejl{color:#B3261E;font-size:13px;margin-top:8px}
.sp-ok{align-self:stretch;display:flex;gap:12px;align-items:flex-start;background:#E7F3F1;color:#0A4F4B;border-radius:16px;padding:14px;font-size:14px}
.sp-ok svg{flex:0 0 auto}

.sp-fod{padding:10px 12px 12px;background:#fff;border-top:1px solid #EEF0F3}
.sp-form{display:flex;gap:8px;align-items:flex-end}
.sp-form textarea{flex:1;min-height:46px;max-height:120px;border:1.5px solid #DDE1E7;border-radius:14px;padding:12px 14px;font:15px/1.35 Inter,system-ui,sans-serif;resize:none;background:#FBFBFC;box-sizing:border-box}
.sp-form textarea:focus{outline:2px solid #0E6B66;outline-offset:0;border-color:transparent}
.sp-send{width:46px;height:46px;flex:0 0 46px;border:0;border-radius:14px;background:#0E6B66;color:#fff;display:grid;place-items:center;cursor:pointer}
.sp-send:disabled{background:#C9CED8}
.sp-ringlink{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:8px;border:0;background:none;color:#0E6B66;font:600 13px Inter,system-ui,sans-serif;cursor:pointer;width:100%}
.sp-ringlink:hover{text-decoration:underline}

@media (max-width:560px){
  .sp-knap{right:14px;bottom:14px;height:50px;padding:0 16px 0 6px;font-size:14px}
  .sp-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100dvh;border-radius:0}
  .sp-form textarea{font-size:16px} /* iOS zoomer ikke ind (iOS yakınlaştırmaz) */
  .sp-ring input,.sp-ring textarea{font-size:16px}
}
@media print{.sp-knap,.sp-panel{display:none!important}}
