.alv-chat{position:fixed;right:20px;bottom:20px;z-index:99998;font-family:Arial,sans-serif;color:#24324a}.alv-chat *{box-sizing:border-box}.alv-chat__toggle{position:relative;width:62px;height:62px;border:0;border-radius:50%;background:linear-gradient(135deg,#8e44ad,#6f42c1);color:#fff;box-shadow:0 12px 32px rgba(111,66,193,.38);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s,box-shadow .2s}.alv-chat__toggle:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(111,66,193,.45)}.alv-chat__toggle-icon{font-size:25px;line-height:1}.alv-chat__badge{position:absolute;top:-5px;right:-4px;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;border:2px solid #fff;font-size:11px;font-weight:700;display:none;align-items:center;justify-content:center}.alv-chat.has-unread .alv-chat__badge{display:flex}.alv-chat__panel{position:absolute;right:0;bottom:78px;width:min(390px,calc(100vw - 24px));height:min(650px,calc(100vh - 110px));background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 24px 70px rgba(17,24,39,.25);border:1px solid rgba(111,66,193,.14);display:none;flex-direction:column}.alv-chat--open .alv-chat__panel{display:flex}.alv-chat__header{position:relative;padding:17px 50px 15px 17px;background:linear-gradient(135deg,#8e44ad,#6f42c1);color:#fff}.alv-chat__brand{display:flex;align-items:center;gap:11px}.alv-chat__avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;color:#7c3faf;font-size:20px;font-weight:800;box-shadow:0 5px 15px rgba(0,0,0,.14)}.alv-chat__header strong{display:block;font-size:17px;line-height:1.25;margin-bottom:3px}.alv-chat__header small{display:block;font-size:12px;line-height:1.35;opacity:.92}.alv-chat__close{position:absolute;right:14px;top:13px;border:0;background:transparent;color:#fff;font-size:25px;cursor:pointer;line-height:1}.alv-chat__body{flex:1;display:flex;flex-direction:column;min-height:0;background:#f6f4fa}.alv-chat__status{padding:9px 14px;background:#fff;border-bottom:1px solid #ece7f6;color:#57657d;font-size:12px;display:flex;align-items:center}.alv-chat__dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22c55e;margin-right:7px;box-shadow:0 0 0 4px rgba(34,197,94,.13)}.alv-chat__dot--offline{background:#94a3b8;box-shadow:none}.alv-chat__messages{flex:1;min-height:120px;overflow:auto;padding:15px;display:flex;flex-direction:column;gap:10px}.alv-chat__msg{max-width:86%;padding:10px 12px;border-radius:16px;box-shadow:0 5px 16px rgba(17,24,39,.06);line-height:1.42;font-size:14px;word-break:break-word}.alv-chat__msg--operator{background:#fff;color:#24324a;align-self:flex-start;border-bottom-left-radius:5px}.alv-chat__msg--visitor{background:linear-gradient(135deg,#8e44ad,#6f42c1);color:#fff;align-self:flex-end;border-bottom-right-radius:5px}.alv-chat__meta{display:block;font-size:10px;opacity:.7;margin-top:5px}.alv-chat__empty{margin:auto;text-align:center;color:#65738b;padding:22px 18px;display:flex;flex-direction:column;gap:7px}.alv-chat__empty>span{font-size:30px}.alv-chat__empty>b{font-size:14px;color:#38475e}.alv-chat__empty>small{font-size:12px}.alv-chat__intro{padding:14px 14px 2px;background:#fff;border-top:1px solid #ece7f6}.alv-chat__intro p{margin:0 0 12px;color:#51607a;font-size:13px;line-height:1.45}.alv-chat__field{margin-bottom:10px}.alv-chat__field label{display:block;font-size:11px;font-weight:700;color:#536179;margin-bottom:5px}.alv-chat__field input,.alv-chat__field textarea,.alv-chat__footer textarea{width:100%;border:1px solid #d8dced;border-radius:11px;padding:10px 12px;font-size:14px;color:#24324a;background:#fff;outline:none}.alv-chat__field textarea{min-height:72px;max-height:120px;resize:vertical}.alv-chat__field input:focus,.alv-chat__field textarea:focus,.alv-chat__footer textarea:focus{border-color:#8e44ad;box-shadow:0 0 0 3px rgba(142,68,173,.1)}.alv-chat__row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.alv-chat__composer-wrap{padding:11px 14px 14px;background:#fff}.alv-chat__footer{display:flex;gap:9px;align-items:flex-end}.alv-chat__footer textarea{flex:1;min-height:44px;max-height:110px;resize:none}.alv-chat__btn{border:0;border-radius:12px;padding:11px 15px;font-size:13px;font-weight:700;cursor:pointer;background:linear-gradient(135deg,#8e44ad,#6f42c1);color:#fff;box-shadow:0 8px 20px rgba(111,66,193,.22)}.alv-chat__btn--start{width:100%}.alv-chat__btn--send{width:46px;height:44px;padding:0;font-size:18px}.alv-chat__btn[disabled]{opacity:.6;cursor:not-allowed}.alv-chat__notice{padding:9px 14px;background:#fff;color:#7a869b;font-size:10px;line-height:1.4;border-top:1px solid #ece7f6;text-align:center}.alv-chat__offline-card{padding:16px;border-radius:12px;background:#f1f5f9;color:#64748b;text-align:center;font-size:13px;margin-bottom:12px}@media(max-width:600px){.alv-chat{right:11px;left:11px;bottom:11px}.alv-chat__toggle{margin-left:auto}.alv-chat__panel{left:0;right:0;width:auto;height:calc(100vh - 88px);bottom:73px;border-radius:18px}.alv-chat__row{grid-template-columns:1fr}}

/* Alverstur Live Chat v3: formular simplificat + mod mobil full-screen */
html.alv-chat-page-lock,
body.alv-chat-page-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.alv-chat__field input,
.alv-chat__field textarea,
.alv-chat__footer textarea {
  -webkit-user-select: text !important;
  user-select: text !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  caret-color: #24324a;
}

.alv-chat__field--message {
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .alv-chat {
    right: 10px;
    left: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .alv-chat.alv-chat--open {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483000;
  }

  .alv-chat--open .alv-chat__toggle {
    display: none !important;
  }

  .alv-chat__panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--alv-chat-mobile-top, 0px);
    bottom: auto;
    width: 100vw;
    width: 100dvw;
    height: var(--alv-chat-mobile-height, 100vh);
    height: var(--alv-chat-mobile-height, 100dvh);
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .alv-chat__header {
    flex: 0 0 auto;
    padding-top: max(15px, env(safe-area-inset-top));
  }

  .alv-chat__body {
    min-height: 0;
    overflow: hidden;
  }

  .alv-chat[data-chat-mode="start"] .alv-chat__messages {
    display: none;
  }

  .alv-chat[data-chat-mode="start"] .alv-chat__intro {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 16px 8px;
  }

  .alv-chat__messages {
    min-height: 0;
    padding: 13px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .alv-chat__intro {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .alv-chat__composer-wrap {
    flex: 0 0 auto;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  }

  .alv-chat__notice {
    flex: 0 0 auto;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .alv-chat__field input,
  .alv-chat__field textarea,
  .alv-chat__footer textarea {
    position: relative;
    z-index: 2;
    font-size: 16px !important;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    touch-action: auto !important;
  }

  .alv-chat__field textarea.alv-chat__start-message {
    min-height: 128px;
    max-height: 38vh;
    resize: none;
  }

  .alv-chat__footer textarea.alv-chat__composer {
    min-height: 48px;
    max-height: 120px;
  }

  .alv-chat__btn--send {
    min-width: 48px;
    height: 48px;
  }
}


/* Alverstur Live Chat v3.1: mobil compact, text lizibil */
@media (max-width: 600px) {
  .alv-chat__header {
    padding: max(10px, env(safe-area-inset-top)) 44px 9px 12px;
  }

  .alv-chat__brand {
    gap: 9px;
  }

  .alv-chat__avatar {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .alv-chat__header strong {
    margin-bottom: 1px;
    font-size: 17px;
    line-height: 1.15;
  }

  .alv-chat__header small {
    font-size: 12.5px;
    line-height: 1.25;
  }

  .alv-chat__close {
    top: max(8px, env(safe-area-inset-top));
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .alv-chat__status {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.25;
  }

  .alv-chat[data-chat-mode="start"] .alv-chat__intro {
    flex: 0 0 auto;
    padding: 10px 12px 4px;
  }

  .alv-chat__intro {
    padding: 10px 12px 4px;
  }

  .alv-chat__intro p,
  .alv-chat__notice {
    display: none !important;
  }

  .alv-chat__field {
    margin-bottom: 8px;
  }

  .alv-chat__field label {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.2;
  }

  .alv-chat__field input,
  .alv-chat__field textarea,
  .alv-chat__footer textarea {
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 16px !important;
    line-height: 1.35;
  }

  .alv-chat__field input {
    min-height: 43px;
  }

  .alv-chat__field textarea.alv-chat__start-message {
    min-height: 88px;
    max-height: 28vh;
  }

  .alv-chat__messages {
    gap: 8px;
    padding: 10px 11px;
  }

  .alv-chat__empty {
    gap: 5px;
    padding: 12px;
  }

  .alv-chat__empty > span {
    font-size: 26px;
  }

  .alv-chat__empty > small {
    font-size: 14px;
  }

  .alv-chat__msg {
    max-width: 90%;
    padding: 9px 11px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.35;
  }

  .alv-chat__meta {
    margin-top: 4px;
    font-size: 11px;
  }

  .alv-chat__composer-wrap {
    padding: 8px 10px max(9px, env(safe-area-inset-bottom));
  }

  .alv-chat__footer {
    gap: 7px;
  }

  .alv-chat__footer textarea.alv-chat__composer {
    min-height: 44px;
    max-height: 104px;
  }

  .alv-chat__btn {
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 15px;
  }

  .alv-chat__btn--send {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 18px;
  }
}


/* Alverstur Live Chat v3.2: invitație automată după 30 secunde */
.alv-chat__proactive {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid rgba(111,66,193,.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(142,68,173,.10), rgba(111,66,193,.06));
  color: #51307d;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: 0 5px 16px rgba(111,66,193,.08);
}
.alv-chat__proactive-icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}
.alv-chat__proactive strong {
  font-weight: 700;
}
@media (max-width: 600px) {
  .alv-chat__proactive {
    margin-bottom: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 16px;
  }
  .alv-chat__proactive-icon {
    font-size: 19px;
  }
}

/* Alverstur Live Chat v4.2: elimină spațiile moștenite de la stilurile globale ale secțiunilor */
.alv-chat__panel {
  padding: 0 !important;
  margin: 0 !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
}

.alv-chat__panel::before,
.alv-chat__panel::after {
  content: none !important;
  display: none !important;
}

.alv-chat__panel > .alv-chat__header,
.alv-chat__panel > .alv-chat__body {
  width: 100% !important;
  margin: 0 !important;
}

.alv-chat__header {
  flex: 0 0 auto !important;
}

.alv-chat__body {
  padding: 0 !important;
  margin: 0 !important;
}

.alv-chat__composer-wrap,
.alv-chat__footer {
  margin: 0 !important;
}
