.ask-librarian-widget{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:450;
  font-family:"Heebo","Segoe UI",Arial,sans-serif;
}
.ask-librarian-fab{
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--orange),#f39a12);
  color:#fff;
  padding:13px 18px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(15,30,74,.20),0 8px 18px rgba(229,138,0,.18);
  transition:.2s ease;
}
.ask-librarian-fab:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg,#cf7900,var(--orange));
}
.ask-librarian-fab i{font-size:18px}
.ask-librarian-panel{
  position:absolute;
  right:0;
  bottom:66px;
  width:min(370px,calc(100vw - 28px));
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 22px 55px rgba(15,30,74,.24);
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  transform:translateY(16px) scale(.98);
  transform-origin:bottom right;
  transition:.22s ease;
}
.ask-librarian-panel.open{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.ask-panel-head{
  position:relative;
  display:grid;
  grid-template-columns:52px 1fr 32px;
  gap:12px;
  align-items:center;
  padding:18px;
  background:linear-gradient(135deg,var(--navy-dark),var(--navy) 62%,#1f4b87);
  color:#fff;
}
.ask-avatar{
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  color:#ffc66b;
  font-size:22px;
}
.ask-panel-head small{
  color:#ffc66b;
  font-size:9px;
  letter-spacing:.11em;
  font-weight:800;
}
.ask-panel-head h3{
  margin:2px 0 1px;
  color:#fff;
  font-size:20px;
}
.ask-panel-head p{
  margin:0;
  font-size:11px;
  color:rgba(255,255,255,.75);
}
.ask-online-dot{
  display:inline-block;
  width:7px;height:7px;border-radius:50%;
  background:#3bd279;
  margin-right:5px;
}
.ask-panel-close{
  width:30px;height:30px;border:0;border-radius:50%;
  background:rgba(255,255,255,.10);
  color:#fff;font-size:22px;line-height:1;cursor:pointer;
}
.ask-panel-close:hover{background:rgba(255,255,255,.18)}
.ask-panel-body{padding:17px}
.ask-welcome{
  padding:14px;
  background:#f8f9fc;
  border:1px solid var(--border);
  border-radius:11px;
  margin-bottom:13px;
}
.ask-welcome strong{color:var(--navy);font-size:14px}
.ask-welcome p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.ask-options{display:grid;gap:8px}
.ask-option{
  display:grid;
  grid-template-columns:38px 1fr 14px;
  gap:10px;
  align-items:center;
  padding:10px 11px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  transition:.18s ease;
}
.ask-option:hover{
  background:var(--cream);
  border-color:#efc77f;
  transform:translateX(2px);
}
.ask-option-icon{
  width:36px;height:36px;border-radius:9px;
  display:grid;place-items:center;
  background:#eef3fb;
  color:var(--navy);
}
.ask-option:hover .ask-option-icon{
  background:#fff0d8;
  color:var(--orange-dark);
}
.ask-option strong{
  display:block;
  color:var(--navy);
  font-size:13px;
}
.ask-option small{
  display:block;
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}
.ask-option > i{
  color:#a3adba;
  font-size:10px;
}
.ask-hours{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:13px;
  padding:11px 12px;
  background:var(--cream);
  border-radius:9px;
  color:#7a5a24;
  font-size:11px;
}
.ask-hours i{color:var(--orange-dark);margin-top:2px}

.ask-email-form{
  display:grid;
  gap:10px;
}
.ask-form-row{
  display:grid;
  gap:5px;
}
.ask-form-row label{
  color:var(--navy);
  font-size:11px;
  font-weight:700;
}
.ask-form-row input,
.ask-form-row select,
.ask-form-row textarea{
  width:100%;
  border:1px solid #d8dee8;
  border-radius:8px;
  padding:9px 10px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:12px;
}
.ask-form-row textarea{
  resize:vertical;
  min-height:86px;
}
.ask-form-row input:focus,
.ask-form-row select:focus,
.ask-form-row textarea:focus{
  outline:0;
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(229,138,0,.10);
}
.ask-submit-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  border:0;
  border-radius:9px;
  background:linear-gradient(135deg,var(--orange),#f29a16);
  color:#fff;
  padding:11px 15px;
  font-weight:800;
  cursor:pointer;
  margin-top:3px;
}
.ask-submit-btn:hover{
  background:linear-gradient(135deg,#ca7600,var(--orange));
}
.ask-form-note{
  display:flex;
  align-items:center;
  gap:6px;
  color:#8390a1;
  font-size:9px;
  line-height:1.35;
}
.ask-form-note i{color:#2f7a4e}
.ask-alt-contact{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--border);
}
.ask-alt-contact > span{
  width:100%;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
}
.ask-alt-contact a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:7px;
  background:#f5f7fb;
  color:var(--navy);
  font-size:10px;
  font-weight:700;
}
.ask-alt-contact a:hover{
  background:var(--cream);
  color:var(--orange-dark);
}

.ask-panel-foot{
  padding:10px 16px;
  background:#f7f8fb;
  border-top:1px solid var(--border);
  color:#8b95a3;
  text-align:center;
  font-size:9px;
  letter-spacing:.03em;
}
@media(max-width:600px){
  .ask-librarian-widget{right:14px;bottom:14px}
  .ask-librarian-fab span{display:none}
  .ask-librarian-fab{
    width:52px;height:52px;padding:0;
    justify-content:center;
  }
  .ask-librarian-panel{
    position:fixed;
    left:14px;right:14px;bottom:76px;
    width:auto;
    max-height:calc(100vh - 100px);
    overflow:auto;
  }
}
