:root {
  --telfron-support-blue: #1e63ff;
  --telfron-support-blue-dark: #164ecc;
  --telfron-support-ink: #0d1b34;
  --telfron-support-muted: #68758a;
  --telfron-support-line: #dce4ef;
  --telfron-support-surface: #f4f7fb;
  --telfron-support-green: #1aa977;
}

.telfron-live-support,
.telfron-live-support * { box-sizing: border-box; }

.telfron-live-support {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

html[dir="rtl"] .telfron-live-support {
  right: auto;
  left: 24px;
  align-items: flex-start;
  font-family: 'Noto Sans Arabic', Tahoma, 'Segoe UI', Arial, sans-serif;
}
html[dir="rtl"] .telfron-support-popup,
html[dir="rtl"] .telfron-support-form input,
html[dir="rtl"] .telfron-support-form select,
html[dir="rtl"] .telfron-support-form textarea,
html[dir="rtl"] .telfron-support-button {
  font-family: 'Noto Sans Arabic', Tahoma, 'Segoe UI', Arial, sans-serif;
}
html[dir="rtl"] .telfron-support-header small,
html[dir="rtl"] .telfron-support-success small {
  letter-spacing: 0;
}
html[dir="rtl"] .telfron-support-header h2,
html[dir="rtl"] .telfron-support-success h3 {
  letter-spacing: 0;
}
html[dir="rtl"] .telfron-support-button svg,
html[dir="rtl"] .telfron-support-footer a:last-child svg {
  transform: scaleX(-1);
}

.telfron-support-launcher {
  position: relative;
  min-width: 68px;
  height: 66px;
  padding: 0 17px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--telfron-support-blue), var(--telfron-support-blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(30,99,255,.36), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.telfron-support-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 23px 52px rgba(30,99,255,.42), inset 0 1px 0 rgba(255,255,255,.3);
}

.telfron-support-launcher:focus-visible,
.telfron-support-close:focus-visible,
.telfron-support-form input:focus,
.telfron-support-form select:focus,
.telfron-support-form textarea:focus,
.telfron-support-button:focus-visible {
  outline: 3px solid rgba(30,99,255,.22);
  outline-offset: 2px;
}

.telfron-support-launcher svg { width: 27px; height: 27px; flex: 0 0 auto; }
.telfron-support-launcher-label { font: 800 11px 'Manrope', Arial, sans-serif; letter-spacing: .05em; }
.telfron-support-launcher-pulse {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #33d39a;
  border: 3px solid #fff;
  right: -2px;
  top: -2px;
  box-shadow: 0 0 0 0 rgba(51,211,154,.5);
  animation: telfron-support-pulse 2s infinite;
}

@keyframes telfron-support-pulse {
  70% { box-shadow: 0 0 0 9px rgba(51,211,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,211,154,0); }
}

.telfron-support-popup {
  width: min(410px, calc(100vw - 32px));
  max-height: calc(100vh - 118px);
  overflow: auto;
  border: 1px solid rgba(203,214,228,.95);
  border-radius: 24px;
  background: #fff;
  color: var(--telfron-support-ink);
  box-shadow: 0 28px 90px rgba(13,27,52,.24);
  animation: telfron-support-in .22s ease-out both;
}

@keyframes telfron-support-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.telfron-support-header {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 34px;
  gap: 13px;
  align-items: center;
  padding: 22px;
  color: #fff;
  background: radial-gradient(circle at 85% 5%,rgba(72,132,255,.52),transparent 36%), var(--telfron-support-ink);
  border-radius: 23px 23px 0 0;
  overflow: hidden;
}

.telfron-support-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.telfron-support-header > * { position: relative; z-index: 1; }
.telfron-support-agent {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #a8c5ff;
  background: rgba(30,99,255,.2);
  border: 1px solid rgba(121,166,255,.25);
  position: relative;
}
.telfron-support-agent svg { width: 25px; height: 25px; }
.telfron-support-agent-status {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #33d39a;
  border: 2px solid var(--telfron-support-ink);
  right: -2px;
  bottom: 2px;
}
.telfron-support-header small {
  display: block;
  color: #7fa9fa;
  font: 800 7px 'Manrope', Arial, sans-serif;
  letter-spacing: .16em;
  margin-bottom: 5px;
}
.telfron-support-header h2 {
  color: #fff;
  font: 800 19px/1.2 'Manrope', Arial, sans-serif;
  letter-spacing: -.025em;
  margin: 0 0 5px;
}
.telfron-support-header p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #91a2bd;
  font-size: 9px;
  margin: 0;
}
.telfron-support-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #33d39a; }
.telfron-support-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #c9d6e8;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.telfron-support-close svg { width: 20px; height: 20px; }

.telfron-support-intro { padding: 20px 22px 0; }
.telfron-support-intro strong { font: 800 13px 'Manrope', Arial, sans-serif; }
.telfron-support-intro p { color: var(--telfron-support-muted); font-size: 10px; line-height: 1.6; margin: 5px 0 0; }

.telfron-support-form { padding: 17px 22px 19px; display: grid; gap: 13px; }
.telfron-support-honeypot { position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important; }
.telfron-support-form label { display: grid; gap: 6px; min-width: 0; }
.telfron-support-form label > span { color: #536178; font-size: 9px; font-weight: 700; }
.telfron-support-form input,
.telfron-support-form select,
.telfron-support-form textarea {
  width: 100%;
  border: 1px solid var(--telfron-support-line);
  border-radius: 9px;
  background: var(--telfron-support-surface);
  color: var(--telfron-support-ink);
  font: 11px 'Inter', Arial, sans-serif;
  outline: 0;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.telfron-support-form input,
.telfron-support-form select { height: 42px; padding: 0 11px; }
.telfron-support-form textarea { padding: 11px; resize: vertical; min-height: 88px; }
.telfron-support-form input:focus,
.telfron-support-form select:focus,
.telfron-support-form textarea:focus {
  border-color: var(--telfron-support-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,99,255,.08);
}
.telfron-support-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.telfron-support-button {
  min-height: 44px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--telfron-support-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 800 11px 'Inter', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 27px rgba(30,99,255,.24);
}
.telfron-support-button:hover { background: var(--telfron-support-blue-dark); }
.telfron-support-button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.telfron-support-privacy { display: flex; align-items: flex-start; gap: 7px; color: #7b899d; font-size: 8px; line-height: 1.5; margin: 0; }
.telfron-support-privacy svg { width: 14px; height: 14px; color: var(--telfron-support-blue); flex: 0 0 auto; margin-top: 1px; }
.telfron-support-error { margin:0;padding:10px 12px;border:1px solid #f0b7b2;border-radius:8px;background:#fff2f1;color:#a63a32;font-size:9px;line-height:1.55; }

.telfron-support-success {
  min-height: 365px;
  padding: 42px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.telfron-support-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #e9f8f2;
  color: var(--telfron-support-green);
  margin-bottom: 17px;
}
.telfron-support-success-icon svg { width: 31px; height: 31px; }
.telfron-support-success small { color: var(--telfron-support-blue); font: 800 8px 'Manrope', Arial, sans-serif; letter-spacing: .14em; }
.telfron-support-success h3 { font: 800 22px 'Manrope', Arial, sans-serif; letter-spacing: -.025em; margin: 9px 0 7px; }
.telfron-support-success p { color: var(--telfron-support-muted); font-size: 11px; line-height: 1.65; max-width: 290px; }
.telfron-support-secondary {
  min-height: 41px;
  border: 1px solid var(--telfron-support-line);
  border-radius: 9px;
  background: #fff;
  color: var(--telfron-support-ink);
  padding: 0 16px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.telfron-support-footer {
  min-height: 51px;
  padding: 10px 21px;
  border-top: 1px solid var(--telfron-support-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafd;
  border-radius: 0 0 23px 23px;
}
.telfron-support-footer a { display: inline-flex; align-items: center; gap: 7px; color: #536178; font-size: 9px; font-weight: 700; text-decoration: none; }
.telfron-support-footer a:hover { color: var(--telfron-support-blue); }
.telfron-support-footer svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .telfron-live-support { right: 14px; bottom: 14px; }
  .telfron-support-launcher { min-width: 60px; width: 60px; height: 60px; border-radius: 19px; padding: 0; }
  .telfron-support-launcher-label { display: none; }
  .telfron-support-popup { width: calc(100vw - 28px); max-height: calc(100vh - 88px); border-radius: 21px; }
  .telfron-support-header { grid-template-columns: 44px 1fr 32px; padding: 18px; border-radius: 20px 20px 0 0; }
  .telfron-support-agent { width: 44px; height: 44px; border-radius: 13px; }
  .telfron-support-fields { grid-template-columns: 1fr; }
  .telfron-support-intro { padding: 18px 18px 0; }
  .telfron-support-form { padding: 15px 18px 17px; }
  .telfron-support-footer { padding: 10px 17px; border-radius: 0 0 20px 20px; }
  html[dir="rtl"] .telfron-live-support { right:auto;left:14px; }
}
