/* Teli live chat + WhatsApp floating buttons (Telecel Liberia) */
  #telecel-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999998;
    transition: transform 0.2s ease;
    text-decoration: none !important;
  }

  #telecel-whatsapp-btn:hover {
    transform: scale(1.08);
  }

  #telecel-whatsapp-btn svg {
    width: 32px;
    height: 32px;
    display: block !important;
    pointer-events: none;
  }

  @media (max-width: 480px) {
    #telecel-whatsapp-btn {
      left: 16px;
      bottom: 16px;
    }
  }
  #telecel-chat-bubble, #telecel-chat-window, #telecel-chat-window * {
    box-sizing: border-box;
    font-family: var(--tcl-font, 'Century Gothic', CenturyGothic, 'Urbanist', sans-serif);
  }

  #telecel-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #E32526 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(227, 37, 38, 0.4);
    z-index: 999998;
    transition: transform 0.2s ease;
  }

  #telecel-chat-bubble:hover {
    transform: scale(1.08);
  }

  #telecel-chat-bubble.attention-bounce {
    animation: telecelBubbleBounce 0.9s ease-in-out 2;
  }

  @keyframes telecelBubbleBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-16px) scale(1.05); }
    40% { transform: translateY(0) scale(0.96); }
    55% { transform: translateY(-8px) scale(1.02); }
    70% { transform: translateY(0) scale(1); }
  }

  #telecel-chat-bubble svg {
    width: 28px;
    height: 28px;
    display: block !important;
    pointer-events: none;
  }

  #telecel-chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
  }

  #telecel-chat-window {
    position: fixed;
    bottom: 98px;
    right: 24px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
  }

  #telecel-chat-window.is-open {
    display: flex;
  }

  #telecel-chat-header {
    background-color: #E32526 !important;
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .telecel-chat-header-text strong {
    display: block;
    font-size: 15px;
    color: #fff;
  }

  .telecel-chat-header-text span {
    display: block;
    font-size: 11.5px;
    opacity: 0.9;
    margin-top: 2px;
    color: #fff;
  }

  #telecel-chat-close {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  #telecel-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FAFAFA;
  }

  .telecel-msg {
    display: flex;
    flex-direction: column;
  }

  .telecel-msg.visitor {
    align-items: flex-end;
  }

  .telecel-msg.staff, .telecel-msg.bot {
    align-items: flex-start;
  }

  .telecel-msg-bubble {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.4;
  }

  .telecel-msg.visitor .telecel-msg-bubble {
    background-color: #E32526 !important;
    color: #fff !important;
    border-bottom-right-radius: 3px;
  }

  .telecel-msg.staff .telecel-msg-bubble,
  .telecel-msg.bot .telecel-msg-bubble {
    background-color: #F0F0F0 !important;
    color: #333 !important;
    border-bottom-left-radius: 3px;
  }

  .telecel-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }

  .telecel-quick-btn {
    background-color: #fff !important;
    border: 1.5px solid #E32526 !important;
    color: #E32526 !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 18px !important;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .telecel-quick-btn:hover {
    background-color: #E32526 !important;
    color: #fff !important;
  }

  .telecel-quick-btn:disabled {
    opacity: 0.4;
    cursor: default;
  }

  #telecel-chat-input-row {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
    gap: 8px;
    flex-shrink: 0;
  }

  #telecel-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13.5px;
    outline: none;
  }

  #telecel-chat-input:focus {
    border-color: #E32526;
  }

  #telecel-chat-input:disabled {
    background: #F5F5F5;
  }

  #telecel-chat-send {
    background-color: #E32526 !important;
    border: none !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  #telecel-chat-send svg {
    width: 16px;
    height: 16px;
    display: block !important;
    pointer-events: none;
    transform: scaleX(-1);
  }

  @media (max-width: 480px) {
    #telecel-chat-window {
      right: 16px;
      bottom: 90px;
      width: calc(100vw - 32px);
    }
    #telecel-chat-bubble {
      right: 16px;
      bottom: 16px;
    }
  }
