.text-widget{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:120;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
  font-family:"Nunito Sans",Arial,sans-serif;
}
.text-widget,
.text-widget *{
  box-sizing:border-box;
}
.text-widget-card{
  width:min(342px,calc(100vw - 34px));
  position:relative;
  background:#fff;
  color:#161616;
  border:1px solid rgba(228,224,216,.92);
  border-radius:8px;
  padding:26px 26px 24px;
  box-shadow:0 22px 60px rgba(13,12,11,.18);
  transform-origin:bottom right;
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
}
.text-widget-card::after{
  content:"";
  position:absolute;
  right:48px;
  bottom:-13px;
  width:26px;
  height:26px;
  background:#fff;
  border-right:1px solid rgba(228,224,216,.92);
  border-bottom:1px solid rgba(228,224,216,.92);
  transform:rotate(45deg);
}
.text-widget.is-closed .text-widget-card{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px) scale(.97);
}
.text-widget-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.text-widget-avatar{
  width:54px;
  height:54px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid rgba(228,224,216,.95);
  box-shadow:0 8px 20px rgba(13,12,11,.12);
  position:relative;
}
.text-widget-avatar img{
  width:44px;
  height:44px;
  object-fit:contain;
}
.text-widget-avatar::after{
  content:"";
  position:absolute;
  right:0;
  bottom:4px;
  width:13px;
  height:13px;
  border-radius:50%;
  background:#19b86a;
  border:2px solid #fff;
}
.text-widget-close{
  width:32px;
  height:32px;
  border:0;
  background:transparent;
  color:#8b817b;
  cursor:pointer;
  display:grid;
  place-items:center;
  border-radius:4px;
  transition:background .18s,color .18s;
}
.text-widget-close:hover{
  background:#f4f1ed;
  color:#161616;
}
.text-widget-close svg,
.text-widget-link svg,
.text-widget-pill svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.text-widget-title{
  font-size:32px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.02em;
  margin:0 0 18px;
}
.text-widget-copy{
  font-size:19px;
  line-height:1.28;
  font-weight:800;
  color:#4b4845;
  margin:0 0 24px;
}
.text-widget-link{
  position:relative;
  z-index:1;
  min-height:56px;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#171514;
  color:#fff;
  font-size:20px;
  font-weight:900;
  text-decoration:none;
  transition:background .18s,transform .18s;
}
.text-widget-link:hover{
  background:#D81E1E;
  transform:translateY(-1px);
}
.text-widget-pill{
  min-height:58px;
  border:0;
  border-radius:7px;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:#D81E1E;
  color:#fff;
  box-shadow:0 16px 34px rgba(216,30,30,.28);
  font-size:18px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s,transform .18s,box-shadow .18s;
}
.text-widget-pill:hover{
  background:#A81616;
  transform:translateY(-1px);
  box-shadow:0 18px 38px rgba(168,22,22,.3);
}
.text-widget-pill-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.14);
}
@media(max-width:700px){
  .text-widget{
    right:14px;
    bottom:14px;
  }
  .text-widget-card{
    padding:22px 22px 21px;
  }
  .text-widget-title{
    font-size:28px;
  }
  .text-widget-copy{
    font-size:17px;
  }
  .text-widget-link{
    min-height:52px;
    font-size:18px;
  }
  .text-widget-pill{
    min-height:52px;
    padding:0 20px;
  }
}
@media(max-width:420px){
  .text-widget{
    right:10px;
    bottom:10px;
  }
  .text-widget-card{
    width:min(342px,calc(100vw - 28px));
  }
}
