/* IslamHashtag Guide – every rule is scoped under #ihg and key ones use !important,
   so the theme's own link/image/span styles can't break the widget (esp. on mobile). */
#ihg{--ihg-main:#14595b;--ihg-accent:#c9962b;position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:99999;color:#17302f;font-size:15px;line-height:1.4}
#ihg.ihg-right{right:16px}
#ihg.ihg-left{left:16px}
#ihg,#ihg *{box-sizing:border-box;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:normal;text-transform:none;writing-mode:horizontal-tb;word-break:normal}
#ihg button{cursor:pointer;font-size:15px;line-height:1.3;margin:0}
#ihg button:focus-visible,#ihg a:focus-visible,#ihg input:focus-visible{outline:3px solid var(--ihg-accent);outline-offset:2px}

#ihg .ihg-fabwrap{position:relative;display:inline-block}
#ihg .ihg-fabx{position:absolute;top:-10px;right:-8px;width:28px;height:28px;padding:0;border-radius:50%;background:#fff;color:#17302f;border:1px solid #cfe0dd;font-size:18px;line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center}
#ihg .ihg-fabx:hover{background:#eef5f4}
#ihg .ihg-fab{display:flex;align-items:center;gap:8px;background:var(--ihg-main);color:#fff;border:0;border-radius:999px;padding:12px 18px;box-shadow:0 4px 14px rgba(0,0,0,.2)}
#ihg .ihg-fab-ic{font-size:18px;line-height:1}
/* phones: small round icon button (text stays available to screen readers) */
@media (max-width:600px){
  #ihg.ihg-compact .ihg-fab{width:56px;height:56px;padding:0;justify-content:center;border-radius:50%}
  #ihg.ihg-compact .ihg-fab-ic{font-size:26px}
  #ihg.ihg-compact .ihg-fab-tx{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  #ihg.ihg-compact .ihg-fabx{top:-6px;right:-6px;width:24px;height:24px;font-size:16px}
}

#ihg .ihg-card{width:min(350px,calc(100vw - 32px));max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;-webkit-overflow-scrolling:touch;background:#f7faf9;border:1px solid #cfe0dd;border-radius:14px;padding:16px;box-shadow:0 8px 28px rgba(0,0,0,.18);margin-bottom:10px}
#ihg .ihg-card p{margin:0 0 12px;font-size:15px;line-height:1.5;color:#17302f}
#ihg .ihg-opts{display:flex;flex-direction:column;gap:8px}

/* buttons and links */
#ihg button.ihg-opt{display:block;width:100%;text-align:left;color:var(--ihg-main);background:#fff;border:1px solid var(--ihg-main);border-radius:10px;padding:11px 12px;min-height:44px}
#ihg a.ihg-link{display:flex!important;align-items:center;gap:10px;width:100%;min-height:44px;text-align:left;text-decoration:none!important;color:var(--ihg-main)!important;background:#fff;border:1px solid var(--ihg-main);border-radius:10px;padding:10px 12px;font-size:15px;line-height:1.35;box-shadow:none}
#ihg a.ihg-link.tool{border-color:var(--ihg-accent)}
#ihg button.ihg-opt:hover,#ihg a.ihg-link:hover{background:#eef5f4}
#ihg a.ihg-link span{color:inherit!important;float:none!important;display:inline}
#ihg a.ihg-link .ic{flex:none;margin-right:-2px}
#ihg a.ihg-link .ihg-badge{margin-left:auto;flex:none;background:var(--ihg-accent);color:#17302f!important;font-size:11px;font-weight:700;letter-spacing:.03em;border-radius:999px;padding:2px 8px}

/* search box */
#ihg .ihg-input{display:block;width:100%;height:auto;padding:10px 12px;border:1px solid #9db5b2;border-radius:10px;font-size:16px;margin:0 0 10px;background:#fff;color:#17302f;box-shadow:none}

/* search results: small square thumbnail + title + type/price */
#ihg a.ihg-res{padding:8px 10px}
#ihg .ihg-thumb{display:block!important;flex:none;width:48px;height:48px;border-radius:8px;background-color:#e6efed;background-position:center;background-size:cover;background-repeat:no-repeat}
#ihg .ihg-rt{display:flex!important;flex-direction:column;flex:1 1 auto;min-width:0}
#ihg .ihg-rtitle{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600;line-height:1.3;overflow-wrap:break-word}
#ihg a.ihg-link .ihg-rmeta{display:block;font-size:12px;color:#4d6664!important;margin-top:2px}
#ihg a.ihg-link .ihg-rmeta strong{color:#17302f;font-weight:700}

#ihg .ihg-quiet{background:none;border:0;color:#4d6664;text-decoration:underline;padding:8px 0;margin-top:4px;font-size:14px;min-height:36px}
#ihg .ihg-row2{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
#ihg .ihg-x{float:right;background:none;border:0;font-size:22px;line-height:1;color:#4d6664;padding:4px 8px;min-height:36px}

@media (prefers-reduced-motion:no-preference){
  #ihg .ihg-card{animation:ihgin .25s ease-out}
  @keyframes ihgin{from{opacity:0;transform:translateY(8px)}}
}
@media print{#ihg{display:none}}
