:root{
    --sm-blue:#0d5aa3;
    --sm-blue-dark:#0a4175;
    --sm-green:#5ba740;
    --sm-panel:#f4f9ff;
    --sm-bot-icon-size:18px;
    --sm-bot-icon-size-mobile:16px;
  }

  .sm-chat-btn{position:fixed;right:18px;bottom:18px;z-index:9999;width:88px;height:44px;padding:0;border:0;background:transparent;cursor:pointer;box-shadow:none;overflow:visible}
  .sm-chat-btn img{display:block;width:100%;height:100%;padding:2px;box-sizing:border-box;object-fit:contain;object-position:center;pointer-events:none}

  .sm-chat{position:fixed;right:18px;bottom:72px;width:min(380px,calc(100vw - 24px));max-width:92vw;height:460px;max-height:70vh;background:#fff;border:1px solid #d6e6f8;border-radius:14px;box-shadow:0 14px 36px rgba(13,90,163,.28);display:none;flex-direction:column;overflow:hidden;z-index:9999}

  .sm-chat-h{padding:12px 14px;font-weight:700;color:#fff;border-bottom:1px solid #0b4f8f;display:flex;justify-content:space-between;align-items:center;background:#121546}
  .sm-chat-title{display:flex;align-items:center;gap:8px;min-width:0}
  .sm-bot-name{display:inline-flex;align-items:center;gap:7px;line-height:1.15}
  .sm-bot-icon{width:var(--sm-bot-icon-size);height:var(--sm-bot-icon-size);object-fit:contain;flex:0 0 auto}

  .sm-chat-b{padding:12px;overflow:auto;flex:1;background:linear-gradient(180deg,var(--sm-panel),#ffffff 55%)}
  .sm-msg{margin:8px 0;line-height:1.35}
  .sm-u{font-weight:700;font-size:12px;margin-bottom:4px;color:var(--sm-blue-dark)}
  .sm-u .sm-bot-icon{width:14px;height:14px}
  .sm-card{background:#fff;border:1px solid #d9e7f5;color:#333;border-radius:10px;padding:10px;box-shadow:0 2px 10px rgba(13,90,163,.08)}

  .sm-chat-f{display:flex;gap:8px;padding:10px;border-top:1px solid #dce9f8;background:#f8fbff}
  .sm-in{flex:1;padding:10px;border-radius:10px;border:1px solid #bdd6ef;font-size:16px;background:#fff;color:#333;}
  .sm-in:focus{outline:none;border-color:var(--sm-blue);box-shadow:0 0 0 3px rgba(13,90,163,.15)}
  .sm-send{padding:10px 12px;min-height:44px;border-radius:10px;border:0;cursor:pointer;background:linear-gradient(120deg,var(--sm-blue),var(--sm-blue-dark));color:#fff;font-weight:700}
  .sm-send:hover{filter:brightness(1.05)}

  .sm-x{border:0;background:rgba(255,255,255,.18);color:#fff;cursor:pointer;font-size:18px;line-height:1;border-radius:8px}
  .sm-options{margin-top:8px;display:flex;flex-direction:column;gap:8px}
  .sm-opt{display:block;width:100%;text-align:left;border:1px solid #c7ddf3;background:#fff;border-radius:10px;padding:8px;cursor:pointer;color:#1f2937}
  .sm-opt:hover{background:#f0f7ff;border-color:#a9caeb}

  .sm-opt-title{font-weight:700;font-size:13px;color:#0f172a}
  .sm-opt-meta{font-size:12px;color:#666;margin-top:2px}
    #smChatOpen.sm-chat-btn{
		background:#fff;
		border-radius:5px;
		bottom:30px;
	}
  @media (max-width: 900px), (hover: none) and (pointer: coarse) {
    #smChatOpen.sm-chat-btn{
      position: fixed !important;
      right:12px;
      bottom: max(20px, env(safe-area-inset-bottom)) !important;
      width:112px !important;
      height:56px !important;
      min-width:112px !important;
      min-height:56px !important;
      padding:0 !important;
      line-height:1 !important;
      border-radius:10px;
    }

    .sm-chat{
      position: fixed !important;
      inset: 0 !important;
      width:100vw !important;
      max-width:none;
      height:100dvh !important;
      max-height:100dvh !important;
      border-radius:0;
      box-shadow:none;
      font-size:16px;
    }
    .sm-chat-h{
      padding: max(14px, env(safe-area-inset-top)) 16px 14px;
      font-size:20px;
    }
    .sm-bot-icon{width:var(--sm-bot-icon-size-mobile);height:var(--sm-bot-icon-size-mobile)}
    .sm-chat-b{padding:12px 14px}
    .sm-msg{line-height:1.5}
    .sm-u{font-size:14px;margin-bottom:6px}
    .sm-u .sm-bot-icon{width:14px;height:14px}
    .sm-card{padding:12px;font-size:15px;border-radius:12px}

    .sm-chat-f{
      gap:10px;
      padding:10px 12px max(10px, env(safe-area-inset-bottom));
    }
    .sm-in{
      min-height:52px;
      font-size:17px;
      padding:12px;
    }
    .sm-send{
      min-width:96px;
      min-height:52px;
      font-size:17px;
      font-weight:700;
    }

    .sm-x{
      min-width:40px;
      min-height:40px;
      font-size:24px;
    }
  }
/* END CHATBOT */
