/* MyWaqf news card photos and isolated real chat UI, 2026-11-06 */
.news-section .news-grid .news-visual {
  position:relative!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center!important;
  overflow:hidden!important;
}
.news-section .news-grid .news-visual-one {
  background-image:linear-gradient(180deg,rgba(4,62,66,.02) 40%,rgba(4,62,66,.68) 100%),url("/assets/mywaqf-news-informasi.jpg")!important;
}
.news-section .news-grid .news-visual-two {
  background-image:linear-gradient(180deg,rgba(4,62,66,.02) 40%,rgba(4,62,66,.68) 100%),url("/assets/mywaqf-news-kegiatan.jpg")!important;
}
.news-section .news-grid .news-visual-three {
  background-image:linear-gradient(180deg,rgba(4,62,66,.02) 40%,rgba(4,62,66,.68) 100%),url("/assets/mywaqf-news-edukasi.jpg")!important;
}
.news-section .news-visual > span {
  position:absolute!important;bottom:15px!important;left:18px!important;
  z-index:1!important;color:white!important;
  text-shadow:0 1px 7px rgba(0,0,0,.45)!important;
}
.mywaqf-chat-root {--mw-chat-teal:#087f83;--mw-chat-deep:#075d64;font-family:Manrope,"DM Sans",sans-serif}
.mywaqf-chat-root [hidden]{display:none!important}
.mywaqf-chat-launcher {
  position:fixed;z-index:110;right:25px;bottom:24px;
  display:flex;align-items:center;gap:9px;border:0;
  min-height:54px;border-radius:28px;padding:0 19px;
  background:linear-gradient(105deg,#087f83,#075f6e);
  color:#fff;font-size:14px;font-weight:800;
  box-shadow:0 12px 29px rgba(3,92,100,.26);cursor:pointer;
}
.mywaqf-chat-launcher svg{width:21px;height:21px}
.mywaqf-chat-shade{
  position:fixed;inset:0;z-index:111;
  background:rgba(4,36,40,.32);
}
.mywaqf-chat-panel{
  position:fixed;z-index:112;bottom:90px;right:24px;
  width:min(415px,calc(100vw - 28px));
  max-height:min(710px,calc(100dvh - 105px));
  display:flex;flex-direction:column;
  color:#17383a;background:#fff;
  border-radius:21px;overflow:hidden;
  box-shadow:0 24px 76px rgba(4,48,54,.25);
  border:1px solid #d9e9e8;
}
.mywaqf-chat-top{
  flex:0 0 auto;position:relative;
  display:flex;align-items:flex-start;justify-content:space-between;
  padding:23px 22px 20px;
  background:linear-gradient(110deg,#075b64,#087f83);
  color:#fff;
}
.mywaqf-chat-top h2{margin:0 35px 5px 0;color:#fff;font-size:21px;line-height:1.18}
.mywaqf-chat-top p{margin:0;color:#e1f6f4;font-size:12px;line-height:1.55}
.mywaqf-chat-close{
  position:absolute;top:15px;right:15px;width:34px;height:34px;
  border:1px solid rgba(255,255,255,.27);border-radius:50%;
  background:rgba(0,0,0,.12);color:#fff;font-size:21px;cursor:pointer;
}
.mywaqf-chat-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.mywaqf-chat-identity{padding:23px 22px 24px;display:grid;gap:13px}
.mywaqf-chat-field{display:grid;gap:6px;font-size:12px;font-weight:700;color:#235557}
.mywaqf-chat-field input {
  display:block;width:100%;height:47px;border:1px solid #ccdedd;
  border-radius:11px;background:#fbfefd;padding:0 13px;
  color:#17383a;font:500 13px "DM Sans",sans-serif;outline:0;
}
.mywaqf-chat-field input:focus{border-color:#0b9597;box-shadow:0 0 0 3px rgba(8,127,131,.12)}
.mywaqf-chat-field input::placeholder{color:#819494}
.mywaqf-chat-required{color:#c24a48}
.mywaqf-chat-note{margin:0;padding:11px 13px;border-radius:10px;background:#e9f5f3;color:#397474;font-size:11px;line-height:1.5}
.mywaqf-chat-primary{
  width:100%;min-height:48px;border-radius:11px;border:0;
  background:#087f83;color:#fff;cursor:pointer;font-size:14px;font-weight:800;
}
.mywaqf-chat-primary:disabled{opacity:.6;cursor:wait}
.mywaqf-chat-error{color:#ad3039;font-size:11px;line-height:1.5;margin:0}
.mywaqf-chat-conversation{display:flex;flex-direction:column;min-height:320px;height:100%}
.mywaqf-chat-messages{
  flex:1 1 auto;min-height:210px;max-height:360px;overflow-y:auto;
  padding:19px 17px;display:flex;flex-direction:column;gap:10px;
  background:#f6fbf9;
}
.mywaqf-chat-bubble{
  max-width:87%;padding:10px 13px;border-radius:14px;
  background:#fff;border:1px solid #dcece9;
  align-self:flex-start;font:12px/1.6 "DM Sans",sans-serif;
  word-break:break-word;white-space:pre-wrap;
}
.mywaqf-chat-bubble.visitor{align-self:flex-end;border-color:#0c888a;background:#087f83;color:white}
.mywaqf-chat-bubble.operator{background:white;color:#17383a}
.mywaqf-chat-bubble.system{font-size:11px;color:#477371;background:#ecf7f4}
.mywaqf-chat-composer{display:flex;gap:8px;padding:13px;border-top:1px solid #dcebe8;background:white}
.mywaqf-chat-composer textarea{
  resize:none;flex:1;min-height:45px;max-height:110px;
  border:1px solid #d0e2df;border-radius:10px;padding:11px;
  color:#17383a;font:12px/1.45 "DM Sans",sans-serif;
}
.mywaqf-chat-composer button{flex:0 0 auto;border:0;border-radius:10px;background:#087f83;color:white;font-weight:800;padding:0 15px;cursor:pointer}
.mywaqf-chat-foot{margin:0;padding:0 16px 12px;color:#718d8c;background:white;font-size:10px}
.mywaqf-chat-open-mobile{overflow:hidden}
@media(max-width:760px){
  .mywaqf-chat-launcher{display:none!important}
  .mywaqf-chat-panel{
    width:100%!important;max-width:none!important;
    max-height:min(88dvh,790px)!important;
    height:min(680px,88dvh)!important;
    left:0!important;right:0!important;bottom:0!important;
    border-radius:23px 23px 0 0!important;
    border-bottom:0!important;
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  .mywaqf-chat-top{padding:20px 20px 17px}
  .mywaqf-chat-top h2{font-size:19px}
  .mywaqf-chat-identity{padding:22px 20px 28px}
  .mywaqf-chat-messages{max-height:none}
}
@media(prefers-reduced-motion:reduce){.mywaqf-chat-root *{scroll-behavior:auto!important}}

/* Form labels stay inline with required marks; mobile sheet follows content. */
.mywaqf-chat-field{display:block!important}
.mywaqf-chat-field input{margin-top:7px!important}
@media(max-width:760px){.mywaqf-chat-panel{height:auto!important}}

