/* Soft Key Pro assistant, scoped to avoid theme/plugin collisions. */
#skpa-chat-root{--skpa-night:#090E1C;--skpa-panel:#10172B;--skpa-border:rgba(201,135,241,.31);--skpa-purple:#B47EF2;--skpa-pink:#F049BF;--skpa-text:#fff8ff;--skpa-muted:#c6b6d2;position:fixed;z-index:1500;left:24px;bottom:24px;font-family:'Manrope',system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.45;color:var(--skpa-text);font-size:14px;text-align:left;direction:ltr;box-sizing:border-box}
#skpa-chat-root *,#skpa-chat-root *::before,#skpa-chat-root *::after{box-sizing:border-box}
#skpa-chat-root button,#skpa-chat-root textarea{font-family:inherit;letter-spacing:normal;text-transform:none}
#skpa-chat-root button{cursor:pointer}
#skpa-chat-root button:focus-visible,#skpa-chat-root a:focus-visible,#skpa-chat-root textarea:focus-visible{outline:3px solid #F049BF;outline-offset:3px}
#skpa-chat-root .skpa-launch{display:inline-flex;gap:10px;align-items:center;justify-content:center;min-width:144px;min-height:57px;border:1px solid rgba(255,255,255,.28);border-radius:18px;padding:10px 20px;background:linear-gradient(115deg,#B47EF2 5%,#C56DE8 50%,#F049BF 95%);color:#160923;box-shadow:0 12px 32px #0a0317a8,0 0 28px #b47ef238;font-size:15px;font-weight:800;transition:transform .24s ease,box-shadow .24s ease;position:relative}
#skpa-chat-root .skpa-launch:hover{transform:translateY(-3px);box-shadow:0 15px 34px #0a0317c4,0 0 40px #b47ef260}
#skpa-chat-root .skpa-launch svg{height:24px;width:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#skpa-chat-root .skpa-launch i{position:absolute;right:10px;top:9px;width:7px;height:7px;border-radius:50%;background:#e6ffd1;box-shadow:0 0 0 3px #1d183533}
#skpa-chat-root .skpa-launch[aria-expanded="true"]{opacity:0;pointer-events:none}
#skpa-chat-root .skpa-panel[hidden]{display:none!important}
#skpa-chat-root .skpa-panel{position:absolute;left:0;bottom:0;width:min(400px,calc(100vw - 32px));height:min(655px,calc(100dvh - 36px));display:flex;flex-direction:column;border:1px solid var(--skpa-border);border-radius:24px;overflow:hidden;background:linear-gradient(155deg,rgba(32,18,51,.99),rgba(15,8,29,.99));box-shadow:0 30px 100px #07020dce,0 0 50px rgba(180,126,242,.16);backdrop-filter:blur(24px);animation:skpa-show .28s cubic-bezier(.22,1,.36,1) both}
#skpa-chat-root .skpa-panel::before{content:'';height:2px;position:absolute;top:0;left:0;right:0;z-index:2;background:linear-gradient(90deg,#B47EF2,#F049BF)}
@keyframes skpa-show{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
#skpa-chat-root .skpa-head{display:flex;align-items:center;gap:12px;min-height:84px;padding:15px 18px;border-bottom:1px solid rgba(194,153,226,.18);background:radial-gradient(ellipse 120% 100% at 0% 0%,rgba(181,99,241,.16),transparent 66%)}
#skpa-chat-root .skpa-avatar{flex:0 0 47px;height:47px;border:1px solid #bf7eeb;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:21px;font-weight:800;letter-spacing:-.09em;background:#201333;position:relative}
#skpa-chat-root .skpa-avatar span{position:absolute;font-size:11px;color:#ee9fe2;top:3px;right:4px}
#skpa-chat-root .skpa-head-text{min-width:0;display:flex;flex-direction:column;gap:3px}
#skpa-chat-root .skpa-head-text strong{font-size:15px;line-height:1.3;letter-spacing:-.035em;color:#fff;font-weight:800}
#skpa-chat-root .skpa-head-text small{font-size:11px;color:#c7b6d4;font-weight:600;line-height:1.5}
#skpa-chat-root .skpa-close{width:37px;height:37px;flex:0 0 37px;padding:0;border:1px solid #ffffff22;border-radius:11px;background:rgba(255,255,255,.05);color:#fff;margin-left:auto;font-size:25px;line-height:1}
#skpa-chat-root .skpa-feed{flex:1;min-height:100px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:19px 18px 10px;scrollbar-width:thin;scrollbar-color:#8f68b5 #10172B}
#skpa-chat-root .skpa-msg{max-width:91%;width:max-content;padding:12px 14px;border:1px solid #ffffff22;border-radius:15px;font-size:13px;font-weight:500;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
#skpa-chat-root .skpa-msg--bot{align-self:flex-start;background:rgba(124,75,168,.19);color:#f4ebfa;border-bottom-left-radius:4px}
#skpa-chat-root .skpa-msg--user{align-self:flex-end;background:linear-gradient(135deg,#B47EF2,#F049BF);color:#1c1027;border:0;font-weight:700;border-bottom-right-radius:4px}
#skpa-chat-root .skpa-msg--loading{color:#dcbdea;font-weight:700;animation:skpa-blink 1s ease-in-out infinite alternate}
@keyframes skpa-blink{to{opacity:.42}}
#skpa-chat-root .skpa-msg--error{border-color:#b33b62;color:#ffe4eb}
#skpa-chat-root .skpa-suggestions{display:flex;gap:6px;overflow-x:auto;flex-shrink:0;padding:8px 18px 10px;scrollbar-width:none}
#skpa-chat-root .skpa-suggestions::-webkit-scrollbar{display:none}
#skpa-chat-root .skpa-suggestions button{border-radius:50px;border:1px solid #b47ef265;background:rgba(180,126,242,.09);color:#e1c8ef;padding:7px 11px;white-space:nowrap;font-size:11px;font-weight:700;line-height:1.3;transition:background .2s,color .2s}
#skpa-chat-root .skpa-suggestions button:hover{background:#b47ef23d;color:white}
#skpa-chat-root .skpa-privacy-link a{display:inline-block;color:#c7b6d4;text-decoration:underline;text-underline-offset:3px;font-size:10px}
#skpa-chat-root .skpa-form{display:flex;align-items:flex-end;gap:9px;padding:10px 16px 8px;margin:0;border-top:1px solid #ffffff20}
#skpa-chat-root .skpa-form textarea{display:block;resize:none;max-height:110px;min-height:46px;flex:1;width:100%;padding:12px 13px;border-radius:13px;border:1px solid #b47ef245;color:#fff;font-size:13px;background:#0C1326;box-shadow:none;line-height:1.5;outline:none}
#skpa-chat-root .skpa-form textarea::placeholder{color:#9587a5}
#skpa-chat-root .skpa-form textarea:focus{border-color:#F049BF}
#skpa-chat-root .skpa-send{border:0;background:linear-gradient(135deg,#B47EF2,#F049BF);width:46px;height:46px;flex:0 0 46px;border-radius:13px;color:#1c0a25;display:grid;place-items:center;transition:opacity .2s}
#skpa-chat-root .skpa-send:disabled{opacity:.35;cursor:not-allowed}
#skpa-chat-root .skpa-send svg{height:20px;width:20px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
#skpa-chat-root .skpa-actions{display:grid;grid-template-columns:1.1fr 1fr;gap:8px;padding:6px 16px 9px}
#skpa-chat-root .skpa-actions a{display:flex;justify-content:center;align-items:center;border:1px solid #b47ef27a;border-radius:12px;min-height:39px;color:#fff;font-size:11px;font-weight:800;text-decoration:none;letter-spacing:0;transition:transform .2s,background .2s;line-height:1.2}
#skpa-chat-root .skpa-actions a:hover{transform:translateY(-2px);color:white;background:#b47ef226}
#skpa-chat-root .skpa-actions .skpa-whatsapp{background:linear-gradient(120deg,#b47ef237,#f049bf34)}
#skpa-chat-root .skpa-foot{text-align:center;color:#9c8eac;font-size:9px;padding:0 14px 10px;line-height:1.4;display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}
#skpa-chat-root .skpa-lead-hint{margin:2px 18px 8px;font-size:11px;color:#ffc8f6;font-weight:700}
@media(max-width:640px){#skpa-chat-root{left:12px;bottom:14px}#skpa-chat-root .skpa-launch{min-width:53px;width:55px;height:55px;min-height:55px;padding:0;border-radius:17px}#skpa-chat-root .skpa-launch span{display:none}#skpa-chat-root .skpa-launch i{right:8px;top:7px}#skpa-chat-root .skpa-panel{left:0;bottom:0;width:min(390px,calc(100vw - 24px));height:min(655px,calc(100dvh - 32px));border-radius:19px}#skpa-chat-root .skpa-head{min-height:75px}#skpa-chat-root .skpa-feed{padding:14px 14px 8px}#skpa-chat-root .skpa-form{padding-inline:12px}#skpa-chat-root .skpa-actions{padding-inline:12px}}
@media (max-height:620px){#skpa-chat-root .skpa-panel{height:calc(100dvh - 25px)}#skpa-chat-root .skpa-head{min-height:62px;padding-block:8px}#skpa-chat-root .skpa-suggestions{padding-top:4px;padding-bottom:4px}}
@media(prefers-reduced-motion:reduce){#skpa-chat-root *,#skpa-chat-root *::before,#skpa-chat-root *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Ensure accessibility labels remain screen-reader-only even if the theme doesn't define the WP utility class. */
#skpa-chat-root .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* v1.1 — sitewide floating robot and reliable touch targets. Overrides generic theme button rules. */
#skpa-chat-root{z-index:16000!important;pointer-events:none}
#skpa-chat-root .skpa-launch,
#skpa-chat-root .skpa-panel{pointer-events:auto}
#skpa-chat-root .skpa-launch{appearance:none;-webkit-appearance:none;min-width:154px;border-radius:19px;touch-action:manipulation;isolation:isolate;white-space:nowrap}
#skpa-chat-root .skpa-robot-icon{width:30px;height:30px;flex:0 0 30px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transform:none}
#skpa-chat-root .skpa-robot-icon circle{fill:currentColor;stroke:none}
#skpa-chat-root .skpa-robot-icon circle:first-of-type{fill:#431959}
#skpa-chat-root .skpa-launch .skpa-robot-icon{width:30px;height:30px}
#skpa-chat-root .skpa-launch span{font-size:14px;font-weight:800;color:#180925;line-height:1.25}
#skpa-chat-root .skpa-launch:hover .skpa-robot-icon{transform:translateY(-1px);transition:transform .2s ease}
#skpa-chat-root .skpa-avatar{color:#eac0ff;letter-spacing:normal}
#skpa-chat-root .skpa-avatar .skpa-robot-icon{width:33px;height:33px}
#skpa-chat-root .skpa-launch:focus-visible{outline:3px solid #fff;outline-offset:3px}
#skpa-chat-root .skpa-panel{z-index:3}
@media(max-width:640px){
 #skpa-chat-root{left:16px;bottom:max(18px,env(safe-area-inset-bottom));}
 #skpa-chat-root .skpa-launch{width:64px;min-width:64px;height:64px;min-height:64px;border-radius:21px;padding:0}
 #skpa-chat-root .skpa-launch .skpa-robot-icon{width:33px;height:33px}
 #skpa-chat-root .skpa-panel{width:min(390px,calc(100vw - 32px));height:min(660px,calc(100dvh - 36px));max-height:calc(100dvh - 36px)}
}

/* v1.2.0 — iOS Safari input zoom & virtual keyboard layout fix.
   We preserve manual pinch zoom; never set user-scalable=no or maximum-scale=1.
   High-specificity selectors isolate our mobile sizing from theme/Elementor rules. */
#skpa-chat-root { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
#skpa-chat-root .skpa-form textarea,
#skpa-chat-root #skpa-input {
  font-size:16px !important; /* Safari auto-zooms form fields under 16px. */
  line-height:1.45 !important;
  -webkit-appearance:none;
  appearance:none;
  touch-action:manipulation;
  min-width:0;
  -webkit-text-size-adjust:100%;
}
#skpa-chat-root .skpa-feed {
  min-height:0;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
@media(max-width:640px){
  #skpa-chat-root .skpa-panel {
    position:fixed;
    top:var(--skpa-vv-top, 12px);
    bottom:auto;
    left:12px;
    right:auto;
    width:min(420px, calc(100vw - 24px));
    height:var(--skpa-vv-height, calc(100dvh - 24px));
    max-height:var(--skpa-vv-height, calc(100dvh - 24px));
    min-height:0;
    max-width:calc(100vw - 24px);
    display:flex;
    flex-direction:column;
  }
  #skpa-chat-root .skpa-form {
    flex-shrink:0;
  }
  #skpa-chat-root .skpa-feed {
    flex:1 1 auto;
  }
  #skpa-chat-root.skpa-keyboard-visible .skpa-head {
    min-height:52px;
    padding:7px 12px;
    flex-shrink:0;
  }
  #skpa-chat-root.skpa-keyboard-visible .skpa-head-text small,
  #skpa-chat-root.skpa-keyboard-visible .skpa-suggestions,
  #skpa-chat-root.skpa-keyboard-visible .skpa-actions,
  #skpa-chat-root.skpa-keyboard-visible .skpa-foot {
    display:none !important;
  }
  #skpa-chat-root.skpa-keyboard-visible .skpa-head-text strong {font-size:13px}
  #skpa-chat-root.skpa-keyboard-visible .skpa-avatar {height:36px;flex-basis:36px;border-radius:10px}
  #skpa-chat-root.skpa-keyboard-visible .skpa-avatar .skpa-robot-icon {width:27px;height:27px}
  #skpa-chat-root.skpa-keyboard-visible .skpa-feed {padding:8px 12px;gap:8px}
  
  #skpa-chat-root.skpa-keyboard-visible .skpa-form {padding:7px 10px 10px}
  #skpa-chat-root.skpa-keyboard-visible .skpa-form textarea {min-height:43px}
  #skpa-chat-root.skpa-keyboard-visible .skpa-send {height:44px;flex-basis:44px;width:44px}
}


/* v1.4.0 — Restore the original single-line composer with automatic height.
   Scoped to the assistant so site/theme textareas are untouched. */
#skpa-chat-root .skpa-form textarea#skpa-input {
  display: block;
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  height: 46px;
  min-height: 46px !important;
  max-height: 132px !important;
  padding: 11px 13px;
  box-sizing: border-box;
  resize: none !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  line-height: 1.45 !important;
  font-size: 16px !important;
}
#skpa-chat-root .skpa-form textarea#skpa-input::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* V1.5 — opt-in chat history; new visits start with a clean conversation.
   These styles are scoped to the plugin and preserve the previous appearance. */
#skpa-chat-root .skpa-head-text{flex:1 1 auto;}
#skpa-chat-root .skpa-history-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  flex:0 0 auto;padding:9px 11px;min-height:36px;
  border:1px solid rgba(180,126,242,.46);border-radius:11px;
  background:rgba(180,126,242,.11);color:#edccff;
  font-size:12px;font-weight:800;letter-spacing:0;line-height:1;
}
#skpa-chat-root .skpa-history-toggle svg{
  width:18px;height:18px;flex:0 0 18px;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#skpa-chat-root .skpa-history-toggle:hover,
#skpa-chat-root .skpa-history-toggle[aria-expanded="true"]{
  color:white;background:rgba(180,126,242,.27);border-color:#b47ef2;
}
#skpa-chat-root .skpa-close{margin-left:0;}
#skpa-chat-root .skpa-history-view[hidden]{display:none!important;}
#skpa-chat-root .skpa-history-view{
  display:flex;flex-direction:column;flex:1 1 auto;min-height:0;
  padding:18px 17px 16px;overflow:hidden;
}
#skpa-chat-root .skpa-history-top{
  display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:7px;
}
#skpa-chat-root .skpa-history-top strong{font-size:18px;color:#fff;letter-spacing:-.03em}
#skpa-chat-root .skpa-history-back{
  flex:0 0 auto;padding:8px 9px;border:1px solid #b47ef263;
  border-radius:9px;background:#2b1b41;color:#f6e2ff;font-size:12px;font-weight:700;
}
#skpa-chat-root .skpa-history-note{color:#c2acd1;font-size:11px;line-height:1.55;margin:0 0 16px}
#skpa-chat-root .skpa-history-list{
  flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;
  padding:2px 2px 10px;scrollbar-width:thin;scrollbar-color:#8855ad transparent;
}
#skpa-chat-root .skpa-history-entry{
  width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:7px;
  padding:13px 14px;text-align:left;min-width:0;flex:0 0 auto;
  border-radius:13px;border:1px solid #b47ef244;
  background:rgba(180,126,242,.09);color:#fff;
  transition:background .2s,border-color .2s;
}
#skpa-chat-root .skpa-history-entry:hover,
#skpa-chat-root .skpa-history-entry:focus-visible{
  border-color:#f049bf;background:rgba(180,126,242,.19);
}
#skpa-chat-root .skpa-history-entry strong{
  width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#fff;font-size:13px;line-height:1.4;font-weight:700;
}
#skpa-chat-root .skpa-history-entry small{font-size:11px;color:#c7b6d4;line-height:1.4}
#skpa-chat-root .skpa-history-empty{margin:22px auto;max-width:250px;text-align:center;color:#d1c0dd;font-size:13px;line-height:1.6}
#skpa-chat-root .skpa-history-new{
  width:100%;flex:0 0 auto;min-height:48px;margin-top:12px;
  border:1px solid #b47ef2;border-radius:13px;
  background:linear-gradient(120deg,#B47EF2,#F049BF);
  color:#180c22;font-size:13px;font-weight:800;
}
#skpa-chat-root.skpa-history-open .skpa-feed,
#skpa-chat-root.skpa-history-open .skpa-suggestions,
#skpa-chat-root.skpa-history-open .skpa-form,
#skpa-chat-root.skpa-history-open .skpa-actions,
#skpa-chat-root.skpa-history-open .skpa-foot,
#skpa-chat-root.skpa-history-open .skpa-lead-hint{display:none!important;}
@media(max-width:640px){
  #skpa-chat-root .skpa-head{gap:8px;padding:11px 12px;}
  #skpa-chat-root .skpa-head-text{min-width:0;}
  #skpa-chat-root .skpa-head-text strong{font-size:13px;}
  #skpa-chat-root .skpa-head-text small{font-size:10px;}
  #skpa-chat-root .skpa-avatar{flex:0 0 40px;height:40px;border-radius:11px;}
  #skpa-chat-root .skpa-history-toggle{min-width:39px;min-height:39px;padding:8px;}
  #skpa-chat-root .skpa-history-toggle span{display:none;}
  #skpa-chat-root .skpa-history-view{padding:13px 12px 12px;}
  #skpa-chat-root .skpa-history-entry strong{font-size:13px;}
}


/* v1.6.0 — Full-screen mobile assistant. Desktop intentionally unchanged.
   The chat fills the visible browser viewport and follows the iOS keyboard.
   Do not disable native pinch-to-zoom and do not lock body overflow. */
@media (max-width:767px), (max-height:500px) and (pointer:coarse) {
  #skpa-chat-root .skpa-panel,
  #skpa-chat-root .skpa-panel:not([hidden]) {
    position:fixed !important;
    inset:auto !important;
    top:var(--skpa-vv-top, 0px) !important;
    left:0 !important;
    right:0 !important;
    bottom:auto !important;
    width:100vw !important;
    width:100dvw !important;
    max-width:none !important;
    min-width:0 !important;
    height:var(--skpa-vv-height, 100dvh) !important;
    max-height:var(--skpa-vv-height, 100dvh) !important;
    min-height:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:hidden !important;
    overscroll-behavior:contain;
    display:flex;
    flex-direction:column;
    /* No scaling: mobile input/keyboard interactions must not alter zoom. */
    animation:skpa-fullscreen-enter .18s ease-out both;
  }
  #skpa-chat-root .skpa-panel[hidden] { display:none !important; }
  #skpa-chat-root .skpa-head {
    flex:0 0 auto;
    padding: max(12px,env(safe-area-inset-top,0px)) 14px 11px;
    min-height:72px;
    gap:9px;
    align-items:center;
  }
  #skpa-chat-root .skpa-head-text { flex:1 1 auto;min-width:0; }
  #skpa-chat-root .skpa-close,
  #skpa-chat-root .skpa-history-toggle {
    width:43px;min-width:43px;height:43px;min-height:43px;
    flex:0 0 43px;margin:0;padding:0;
    border-radius:12px;display:inline-flex;
    justify-content:center;align-items:center;
    touch-action:manipulation;
  }
  #skpa-chat-root .skpa-close {
    color:#fff;
    background:rgba(180,126,242,.13);
    border-color:rgba(180,126,242,.45);
    font-size:26px;
    line-height:1;
  }
  #skpa-chat-root .skpa-close:hover,
  #skpa-chat-root .skpa-close:focus-visible {
    background:rgba(220,91,208,.24);border-color:#F049BF;
  }
  #skpa-chat-root .skpa-history-toggle span{display:none !important}
  #skpa-chat-root .skpa-feed{flex:1 1 auto;min-height:0;overflow-y:auto;}
  #skpa-chat-root .skpa-form{flex:0 0 auto;padding-bottom:max(10px,env(safe-area-inset-bottom,0px));}
  #skpa-chat-root .skpa-foot{padding-bottom:max(12px,env(safe-area-inset-bottom,0px));}
  #skpa-chat-root .skpa-history-view{flex:1 1 auto;min-height:0;overflow-y:hidden;}
  #skpa-chat-root.skpa-keyboard-visible .skpa-head{
    min-height:51px;padding:6px 12px;
  }
  #skpa-chat-root.skpa-keyboard-visible .skpa-form{
    padding-bottom:max(8px,env(safe-area-inset-bottom,0px));
  }
}
@keyframes skpa-fullscreen-enter {from{opacity:.94}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
  #skpa-chat-root .skpa-panel{animation:none !important}
}

/* Soft Key Pro v2.0 — bilingual controls, readable type and explicit consent. */
#skpa-chat-root{font-family:Inter,'Segoe UI',Tahoma,Arial,sans-serif;font-size:14px}
#skpa-chat-root .skpa-head-text strong{font-size:16px}
#skpa-chat-root .skpa-msg{font-size:14px;line-height:1.7}
#skpa-chat-root .skpa-suggestions button{font-size:12px}
#skpa-chat-root .skpa-consent{margin:0 14px 7px;padding:12px 13px;border:1px solid #B47EF255;border-radius:12px;background:#15142A;color:#e5dcef;font-size:12px;line-height:1.75}
#skpa-chat-root .skpa-consent[hidden]{display:none!important}
#skpa-chat-root .skpa-consent label{display:flex;align-items:flex-start;gap:9px;cursor:pointer}
#skpa-chat-root .skpa-consent input{flex:0 0 18px;width:18px;height:18px;margin-top:2px;accent-color:#B47EF2;cursor:pointer}
#skpa-chat-root .skpa-form textarea:disabled{opacity:.56;cursor:not-allowed}
#skpa-chat-root[dir="rtl"]{direction:rtl;text-align:right;font-family:Tahoma,'Segoe UI',Arial,sans-serif}
#skpa-chat-root[dir="rtl"] .skpa-panel{direction:rtl;text-align:right}
#skpa-chat-root[dir="rtl"] .skpa-head{direction:rtl}
#skpa-chat-root[dir="rtl"] .skpa-close{margin-left:0;margin-right:auto}
#skpa-chat-root[dir="rtl"] .skpa-history-toggle{direction:rtl}
#skpa-chat-root[dir="rtl"] .skpa-history-top{direction:rtl}
#skpa-chat-root[dir="rtl"] .skpa-history-entry{text-align:right}
#skpa-chat-root[dir="rtl"] .skpa-history-list{text-align:right}
#skpa-chat-root[dir="rtl"] .skpa-suggestions{direction:rtl}
#skpa-chat-root[dir="rtl"] .skpa-msg--bot{align-self:flex-start;border-bottom-right-radius:4px;border-bottom-left-radius:15px}
#skpa-chat-root[dir="rtl"] .skpa-msg--user{align-self:flex-end;border-bottom-left-radius:4px;border-bottom-right-radius:15px}
#skpa-chat-root[dir="rtl"] .skpa-form textarea{text-align:right;direction:rtl}
#skpa-chat-root[dir="rtl"] .skpa-lead-hint{text-align:right}
#skpa-chat-root[dir="rtl"] .skpa-foot{direction:rtl}
@media(max-width:767px){
 #skpa-chat-root .skpa-msg{font-size:15px}
 #skpa-chat-root .skpa-head-text strong{font-size:16px}
 #skpa-chat-root .skpa-head-text small{font-size:12px}
 #skpa-chat-root .skpa-suggestions button{font-size:13px}
 #skpa-chat-root .skpa-actions a{font-size:12px}
 #skpa-chat-root .skpa-consent{font-size:12px}
 #skpa-chat-root[dir="rtl"] .skpa-msg{font-size:15px;line-height:1.85}
}



/*
 * Soft Key Pro Chatbot v2.4 — clean, isolated final layout.
 * Historical v2.1/v2.2/v2.3 positioning overrides have been removed.
 * Button order in HTML: WhatsApp above AI chatbot.
 */
#skpa-chat-root {
  --skpa-button-size: 60px;
  --skpa-button-gap: 12px;
  position: fixed !important;
  inset: auto auto 24px 24px !important;
  width: 60px !important;
  height: auto !important;
  min-width: 60px !important;
  max-width: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  isolation: isolate;
  z-index: 2147483000 !important;
  pointer-events: none;
}
#skpa-chat-root[dir="rtl"] {
  inset: auto 24px 24px auto !important;
  direction: rtl;
  text-align: right;
  font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
}
#skpa-chat-root[dir="ltr"] {
  direction: ltr;
  text-align: left;
}
#skpa-chat-root .skpa-floating-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: var(--skpa-button-gap) !important;
  width: var(--skpa-button-size) !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  pointer-events: none;
}
#skpa-chat-root .skpa-floating-actions > .skpa-float-whatsapp,
#skpa-chat-root .skpa-floating-actions > .skpa-launch {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 var(--skpa-button-size) !important;
  width: var(--skpa-button-size) !important;
  min-width: var(--skpa-button-size) !important;
  max-width: var(--skpa-button-size) !important;
  height: var(--skpa-button-size) !important;
  min-height: var(--skpa-button-size) !important;
  max-height: var(--skpa-button-size) !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 18px !important;
  gap: 0 !important;
  position: relative !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer !important;
  touch-action: manipulation;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
#skpa-chat-root .skpa-floating-actions > .skpa-launch {
  background: linear-gradient(135deg, #B47EF2, #F049BF) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #180a28 !important;
  box-shadow: 0 14px 28px rgba(6,2,17,.38) !important;
}
#skpa-chat-root .skpa-floating-actions > .skpa-float-whatsapp {
  background: #10172B !important;
  color: #35DA7B !important;
  border: 1px solid rgba(180,126,242,.60) !important;
  box-shadow: 0 14px 28px rgba(6,2,17,.38) !important;
}
#skpa-chat-root .skpa-floating-actions > .skpa-launch:hover,
#skpa-chat-root .skpa-floating-actions > .skpa-float-whatsapp:hover {transform:translateY(-2px)!important}
#skpa-chat-root .skpa-floating-actions > .skpa-launch[aria-expanded="true"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: 0 0 0 3px rgba(244,135,223,.22),0 14px 28px rgba(6,2,17,.38) !important;
}
#skpa-chat-root .skpa-floating-actions > .skpa-launch span,
#skpa-chat-root .skpa-floating-actions > .skpa-float-whatsapp span,
#skpa-chat-root .skpa-floating-actions > .skpa-launch i {display:none!important}
#skpa-chat-root .skpa-floating-actions > .skpa-launch svg.skpa-robot-icon,
#skpa-chat-root .skpa-floating-actions > .skpa-float-whatsapp svg.skpa-whatsapp-icon {
  display: block !important;
  flex: 0 0 29px !important;
  width: 29px !important;
  min-width: 29px !important;
  height: 29px !important;
  min-height: 29px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#skpa-chat-root .skpa-floating-actions > .skpa-float-whatsapp svg.skpa-whatsapp-icon {
  fill: none !important;
  stroke: #35DA7B !important;
  stroke-width: 1.65 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#skpa-chat-root .skpa-floating-actions > .skpa-launch svg.skpa-robot-icon {
  color: #180925 !important;
}

/* Desktop popup stays inside the viewport and above the TWO launchers. */
#skpa-chat-root .skpa-panel,
#skpa-chat-root[dir="rtl"] .skpa-panel {
  position: fixed !important;
  inset: auto auto 172px 24px !important;
  width: min(390px,calc(100vw - 48px)) !important;
  max-width: min(390px,calc(100vw - 48px)) !important;
  height: min(510px,calc(100dvh - 192px)) !important;
  max-height: calc(100dvh - 192px) !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  border-radius: 22px !important;
  z-index: 2147483001 !important;
  pointer-events: auto !important;
  direction: inherit;
  text-align: inherit;
}
#skpa-chat-root[dir="rtl"] .skpa-panel {
  inset: auto 24px 172px auto !important;
}
#skpa-chat-root .skpa-panel[hidden] {display:none!important}
#skpa-chat-root .skpa-head {
  flex: 0 0 auto;
  min-height: 72px;
  padding: 12px 14px;
  gap: 9px;
}
#skpa-chat-root .skpa-head-text {flex:1 1 auto;min-width:0}
#skpa-chat-root .skpa-head-text strong {font-size:15px!important;letter-spacing:0!important;line-height:1.45!important}
#skpa-chat-root[dir="rtl"] .skpa-head-text strong {font-weight:800!important}
#skpa-chat-root .skpa-head-text small {font-size:10px!important;line-height:1.5!important;letter-spacing:0!important}
#skpa-chat-root .skpa-avatar {flex:0 0 40px;height:40px;border-radius:12px}
#skpa-chat-root .skpa-history-toggle {flex:0 0 auto;min-height:39px;padding:8px!important;gap:6px}
#skpa-chat-root .skpa-history-toggle span {display:inline!important}
#skpa-chat-root .skpa-close {flex:0 0 39px;width:39px;height:39px;padding:0!important;margin:0!important}
#skpa-chat-root .skpa-feed {flex:1 1 auto;min-height:0;padding:14px 14px 8px}
#skpa-chat-root .skpa-msg {max-width:95%;line-height:1.7;font-size:13.5px}
#skpa-chat-root[dir="rtl"] .skpa-msg {direction:rtl;text-align:right;line-height:1.9}
#skpa-chat-root[dir="ltr"] .skpa-msg {direction:ltr;text-align:left}
#skpa-chat-root .skpa-suggestions {
  flex:0 0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  overflow:visible;
  gap:7px;
  padding:7px 14px 9px;
}
#skpa-chat-root .skpa-suggestions button {
  flex:0 0 auto;
  white-space:nowrap;
  padding:7px 10px;
  font-size:11px;
}
#skpa-chat-root .skpa-consent {flex:0 0 auto;margin:0 14px 6px;padding:10px 12px;font-size:11px;line-height:1.65}
#skpa-chat-root[dir="rtl"] .skpa-consent,
#skpa-chat-root[dir="rtl"] .skpa-history-note,
#skpa-chat-root[dir="rtl"] .skpa-history-entry,
#skpa-chat-root[dir="rtl"] .skpa-form textarea {direction:rtl;text-align:right}
#skpa-chat-root[dir="ltr"] .skpa-consent,
#skpa-chat-root[dir="ltr"] .skpa-history-note,
#skpa-chat-root[dir="ltr"] .skpa-history-entry,
#skpa-chat-root[dir="ltr"] .skpa-form textarea {direction:ltr;text-align:left}
#skpa-chat-root .skpa-form {flex:0 0 auto;padding:8px 13px 6px;gap:8px}
#skpa-chat-root .skpa-actions {flex:0 0 auto;padding:6px 13px 8px;gap:8px}
#skpa-chat-root .skpa-actions a {min-height:40px;padding:7px 7px;font-size:11px;text-align:center}
#skpa-chat-root .skpa-foot {flex:0 0 auto;padding:0 12px 9px;line-height:1.45}
#skpa-chat-root[dir="rtl"] .skpa-head,
#skpa-chat-root[dir="rtl"] .skpa-head-text,
#skpa-chat-root[dir="rtl"] .skpa-suggestions,
#skpa-chat-root[dir="rtl"] .skpa-actions {direction:rtl;text-align:right}
#skpa-chat-root[dir="ltr"] .skpa-head,
#skpa-chat-root[dir="ltr"] .skpa-head-text,
#skpa-chat-root[dir="ltr"] .skpa-suggestions,
#skpa-chat-root[dir="ltr"] .skpa-actions {direction:ltr;text-align:left}

@media (max-width:767px), (max-height:500px) and (pointer:coarse) {
  #skpa-chat-root {--skpa-button-size:58px;inset:auto auto max(18px,env(safe-area-inset-bottom)) 18px!important;width:58px!important;min-width:58px!important;max-width:58px!important}
  #skpa-chat-root[dir="rtl"] {inset:auto 18px max(18px,env(safe-area-inset-bottom)) auto!important}
  #skpa-chat-root .skpa-panel,
  #skpa-chat-root[dir="rtl"] .skpa-panel,
  #skpa-chat-root .skpa-panel:not([hidden]) {
    position:fixed!important;
    inset:var(--skpa-vv-top,0px) 0 auto 0!important;
    width:100vw!important;width:100dvw!important;max-width:100dvw!important;
    height:var(--skpa-vv-height,100dvh)!important;
    max-height:var(--skpa-vv-height,100dvh)!important;
    border-radius:0!important;
    border:0!important;
    animation:skpa-fullscreen-enter .18s ease-out both;
  }
  #skpa-chat-root .skpa-panel[hidden] {display:none!important}
  #skpa-chat-root .skpa-head {padding:max(12px,env(safe-area-inset-top)) 13px 9px;min-height:70px}
  #skpa-chat-root .skpa-head-text strong {font-size:15px!important}
  #skpa-chat-root .skpa-head-text small {font-size:10px!important}
  #skpa-chat-root .skpa-history-toggle {width:41px!important;min-width:41px!important;height:41px!important;min-height:41px!important;flex:0 0 41px!important;padding:0!important;gap:0!important}
  #skpa-chat-root .skpa-history-toggle span {display:none!important}
  #skpa-chat-root .skpa-history-toggle svg {width:21px!important;height:21px!important}
  #skpa-chat-root .skpa-close {width:41px!important;height:41px!important;flex:0 0 41px!important}
  #skpa-chat-root .skpa-feed {flex:1 1 auto;min-height:0}
  #skpa-chat-root .skpa-suggestions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px 12px}
  #skpa-chat-root .skpa-suggestions button {width:100%;max-width:100%;white-space:normal;min-height:37px;font-size:12px;line-height:1.4}
  #skpa-chat-root .skpa-consent {font-size:12px;margin:0 12px 6px;padding:10px 12px}
  #skpa-chat-root .skpa-form {padding:8px 12px 9px}
  #skpa-chat-root .skpa-actions {padding:6px 12px 9px}
  #skpa-chat-root .skpa-actions a {font-size:11.5px}
  #skpa-chat-root .skpa-foot {padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){
  #skpa-chat-root .skpa-panel {animation:none!important}
  #skpa-chat-root .skpa-floating-actions > .skpa-launch,
  #skpa-chat-root .skpa-floating-actions > .skpa-float-whatsapp{transition:none!important}
}


/* v2.5: clean chat without a duplicated policy consent block. */
#skpa-chat-root .skpa-consent,
#skpa-chat-root #skpa-consent,
#skpa-chat-root .skpa-privacy-link { display:none!important; }
#skpa-chat-root .skpa-panel,
#skpa-chat-root[dir="rtl"] .skpa-panel {width:min(425px,calc(100vw - 48px))!important;max-width:min(425px,calc(100vw - 48px))!important;height:min(530px,calc(100dvh - 190px))!important;max-height:calc(100dvh - 190px)!important}
#skpa-chat-root .skpa-msg {font-size:14.5px!important;line-height:1.75!important}
#skpa-chat-root[dir="rtl"] .skpa-msg {line-height:1.85!important}
#skpa-chat-root .skpa-suggestions button {font-size:12px!important}
#skpa-chat-root .skpa-actions a {font-size:12px!important}
#skpa-chat-root .skpa-form textarea {font-size:16px!important}
@media (max-width:767px), (max-height:500px) and (pointer:coarse){
  #skpa-chat-root .skpa-panel,
  #skpa-chat-root[dir="rtl"] .skpa-panel,
  #skpa-chat-root .skpa-panel:not([hidden]){
    width:100dvw!important;max-width:100dvw!important;
    height:var(--skpa-vv-height,100dvh)!important;
    max-height:var(--skpa-vv-height,100dvh)!important;
  }
  #skpa-chat-root .skpa-history-toggle span {display:none!important}
}
