@charset "UTF-8";
/* CSS Document */

  :root{
    --nx-chat-bg: #ffffff;
    --nx-chat-border: rgba(0,0,0,0.12);
    --nx-chat-shadow: 0 30px 80px rgba(0,0,0,0.20),	0 10px 25px rgba(0,0,0,0.12);
    --nx-chat-radius: 14px;
    --nx-accent: #111111;
    --nx-accent-2: #f2f2f2;
    --nx-text: #111111;
    --nx-muted: rgba(0,0,0,0.55);	
  }

  #nx-chat-launcher{
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    border: 0;
    background: #84C40E;
    color: #fff;
    width: 58px;
    height: 58px;
    padding-top: 4px;
    border-radius: 18px;
    box-shadow: var(--nx-chat-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
  }
  #nx-chat-launcher:hover{ filter: brightness(1.05); }
  #nx-chat-launcher:active{ transform: translateY(1px); }

  #nx-chat-panel{
    position: fixed;
    right: 18px;
    bottom: 86px;
    width: 360px;
    max-width: calc(100vw - 36px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--nx-chat-bg);
    border: 1px solid var(--nx-chat-border);
		box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    var(--nx-chat-shadow);
    border-radius: var(--nx-chat-radius);
    /*box-shadow: var(--nx-chat-shadow);*/
    z-index: 99999;
    overflow: hidden;
    display: none;
  }
  #nx-chat-panel.nx-open{ display: flex; flex-direction: column; }

  #nx-chat-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 10px 12px;
    /*border-bottom: 1px solid var(--nx-chat-border);*/
    background: #84C40E;
  }
  #nx-chat-title{
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
  }
  #nx-chat-title strong{ font-size: 16.2px; color: #fff; }
  #nx-chat-title span{ font-size: 13.5px; color: #d8f7ab; }

  #nx-chat-close{
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--nx-text);
  }
  #nx-chat-close:hover{ background: var(--nx-accent-2); }

  #nx-chat-messages{
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: linear-gradient(#ffffff, #fbfbfb);
  }

  .nx-msg{ display: flex; margin: 8px 0; }
  .nx-msg.nx-user{ justify-content: flex-end; }
  .nx-msg.nx-bot{ justify-content: flex-start; }

  .nx-bubble{
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.35;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid var(--nx-chat-border);
  }

  .nx-user .nx-bubble{
    background: var(--nx-accent);
    color: #fff;
    border-color: rgba(0,0,0,0.2);
    border-bottom-right-radius: 6px;
  }
  .nx-bot .nx-bubble{
    background: #fff;
    color: var(--nx-text);
    border-bottom-left-radius: 6px;
  }

  #nx-chat-footer{
    border-top: 1px solid var(--nx-chat-border);
    padding: 10px;
    background: #fff;
  }

  #nx-chat-form{
    display: flex;
    gap: 8px;
    align-items: flex-end;
  }

  #nx-chat-input{
    flex: 1;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    padding: 7px 10px;
    border-radius: 12px;
    border: 1px solid var(--nx-chat-border);
    outline: none;
    font-size: 13px;
    line-height: 1.2;
  }
  #nx-chat-input:focus{ border-color: rgba(0,0,0,0.25); }

  #nx-chat-send{
    border: 0;
    background: #FF4E01;
    color: #fff;
    padding: 11px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
  }
  #nx-chat-send:disabled{ opacity: 0.6; cursor: not-allowed; }

  #nx-chat-hint{
    margin-top: 8px;
    font-size: 11px;
    color: var(--nx-muted);
  }

  /* Lead panel */
  #nx-lead-panel{
    margin-top:10px;
    border:1px solid rgba(0,0,0,0.12);
    border-radius:12px;
    padding:10px;
    background:#fff;
  }
  #nx-lead-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  #nx-lead-top .nx-lead-text{
    font-size:12px;
    color:rgba(0,0,0,0.75);
    line-height:1.2;
  }
  #nx-lead-top .nx-lead-text strong{
    font-size:13px;
    color:#111;
  }
  #nx-lead-top .nx-lead-text span{
    color:rgba(0,0,0,0.55);
    font-size:12px;
  }
  #nx-lead-toggle{
    border:1px solid rgba(0,0,0,0.12);
    background:#fff;
    color:#111;
    padding:8px 10px;
    border-radius:10px;
    cursor:pointer;
    white-space:nowrap;
  }
  #nx-lead-toggle:hover{ background: #84C40E; color: #fff; }

  #nx-lead-formwrap{ display:none; margin-top:10px; }

  #nx-lead-row{
    display:flex;
    gap:8px;
  }
  #nx-lead-email, #nx-lead-name{
    flex:1;
    border:1px solid rgba(0,0,0,0.12);
    border-radius:10px;
    padding:10px;
    font-size:13px;
    outline:none;
  }
  #nx-lead-email:focus, #nx-lead-name:focus{ border-color: rgba(0,0,0,0.25); }

  #nx-chat-lead{
    margin-top:10px;
    width:100%;
    border:0;
    background:#111;
    color:#fff;
    padding:10px 12px;
    border-radius:12px;
    cursor:pointer;
  }
  #nx-chat-lead:disabled{ opacity:0.55; cursor:not-allowed; }

  #nx-lead-status{
    margin-top:8px;
    font-size:11px;
    color:rgba(0,0,0,0.65);
    line-height:1.3;
  }

  @media (max-width: 520px){
    #nx-chat-panel{
      right: 12px;
      left: 12px;
      width: auto;
      bottom: 86px;
      height: 68vh;
    }
    #nx-chat-launcher{
      right: 12px;
      bottom: 12px;
    }
    #nx-lead-row{ flex-direction: column; }
  }

  /* ======================================================
     BEILLESZTÉS (ÚJ): Lead siker MODAL (CSS) — TISZTA, DUPLIKÁCIÓ NÉLKÜL
     ====================================================== */
  #nx-lead-modal{
    position: fixed;
    inset: 0;
    z-index: 100000; /* a chat fölé */
    display: none;

    align-items: center;
    justify-content: center;
    padding: 14px;
  }
  #nx-lead-modal.nx-open{ display: flex; }

  #nx-lead-modal .nx-modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 0;
  }

  #nx-lead-modal .nx-modal-panel{
    position: relative;
    z-index: 1;
    width: min(520px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.12);
  }

  #nx-lead-modal .nx-modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    background: #84C40E;
  }
  #nx-lead-modal .nx-modal-header strong{
    color: #fff;
    font-size: 15px;
  }
  #nx-lead-modal .nx-modal-close{
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 20px;
    padding: 6px 10px;
    border-radius: 10px;
    color: #fff;
  }
  #nx-lead-modal .nx-modal-close:hover{ filter: brightness(0.95); }

  #nx-lead-modal .nx-modal-body{
    padding: 14px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(0,0,0,0.85);

    /* ha hosszabb lenne: görgethető */
    max-height: calc(100vh - 28px - 52px - 56px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  #nx-lead-modal .nx-modal-footer{
    padding: 12px 14px;
    border-top: 1px solid rgba(0,0,0,0.10);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  #nx-lead-modal .nx-modal-ok{
    border: 0;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
  }

  /* ======================================================
     BEILLESZTÉS (ÚJ): iOS input zoom tiltás
     iPhone Safari 16px alatt automatikusan zoomol.
     ====================================================== */
  @supports (-webkit-touch-callout: none){
    #nx-chat-input,
    #nx-lead-email,
    #nx-lead-name{
      font-size: 16px !important;
    }
  }

  @media (max-width: 520px){
    #nx-chat-input,
    #nx-lead-email,
    #nx-lead-name{
      font-size: 16px !important;
    }
  }
	
	/* ======================================================
   DESKTOP KIEMELÉS – csak 521px felett
   ====================================================== */
@media (min-width: 521px){
  #nx-chat-launcher{
    right: 40px;   /* beljebb */
    bottom: 70px;  /* feljebb */
  }
}
@media (min-width: 521px){

  #nx-chat-launcher{
    right: 35px;
    bottom: 43px;
    animation: nxPulse 2.4s infinite;
  }

  @keyframes nxPulse{
    0% { box-shadow: 0 0 0 0 rgba(132,196,14,0.6); }
    70% { box-shadow: 0 0 0 14px rgba(132,196,14,0); }
    100% { box-shadow: 0 0 0 0 rgba(132,196,14,0); }
  }

}
	
