/* Click Chat privado V2 · seguidores mutuos */
.click-chat{position:relative;z-index:1180;font-family:inherit}
.click-chat [hidden]{display:none!important}
.click-chat-launcher{position:fixed;right:22px;bottom:22px;z-index:1181;min-width:64px;height:64px;border:0;border-radius:22px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(145deg,#744df6 0%,#8b49ff 50%,#a34fff 100%);color:#fff;box-shadow:0 20px 42px rgba(78,47,199,.36);cursor:pointer;font-weight:900}
.click-chat-launcher svg{width:26px;height:26px;flex:0 0 auto}
.click-chat-launcher-label{font-size:13px;letter-spacing:.01em}
.click-chat-badge{display:none;position:absolute;right:-5px;top:-6px;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#ff4f74;color:#fff;border:3px solid #fff;align-items:center;justify-content:center;font-size:10px;font-weight:1000}
.click-chat-badge.is-visible{display:flex}

.click-chat-panel{position:fixed;right:22px;bottom:96px;z-index:1182;width:min(400px,calc(100vw - 32px));height:min(680px,calc(100vh - 130px));display:flex;flex-direction:column;overflow:hidden;border-radius:30px;border:1px solid rgba(123,92,240,.16);background:rgba(255,255,255,.98);box-shadow:0 30px 85px rgba(26,20,80,.28);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);transform:translateY(16px) scale(.985);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.click-chat.is-open .click-chat-panel{opacity:1;pointer-events:auto;transform:none}

.click-chat-header{flex:0 0 auto;padding:16px 16px 12px;border-bottom:1px solid #ece9f5;background:linear-gradient(180deg,#fff 0%,#faf8ff 100%)}
.click-chat-header-main,.click-chat-header-thread{display:flex;align-items:center;gap:12px}
.click-chat-header-main>div,.click-chat-person span{min-width:0;flex:1;display:grid}
.click-chat-header strong{font-size:18px;color:#261f4d;line-height:1.1}
.click-chat-header small{font-size:11px;color:#8882a1;margin-top:3px}
.click-chat-close,.click-chat-back{width:42px;height:42px;border:0;border-radius:14px;background:#f1edfc;color:#624ecb;font-size:24px;cursor:pointer;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(92,65,191,.05)}
.click-chat-back{font-size:20px}
.click-chat-person{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.click-chat-person:hover{text-decoration:none}
.click-chat-person img{width:44px;height:44px;border-radius:15px;object-fit:cover;background:#eeeafd;box-shadow:0 6px 18px rgba(61,44,138,.08)}
.click-chat-person strong,.click-chat-person small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.click-chat-list-view,.click-chat-thread-view{min-height:0;flex:1;display:flex;flex-direction:column}
.click-chat-intro{margin:12px 14px 0;padding:12px 14px;border-radius:16px;background:linear-gradient(180deg,#f6f1ff,#f8f5ff);border:1px solid #ece4ff;color:#61597c;font-size:12px;line-height:1.4}
.click-chat-intro b{color:#503eb1}
.click-chat-section-label{display:flex;align-items:center;justify-content:space-between;padding:10px 16px 8px;color:#7d7697;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.click-chat-section-label.is-first{padding-top:12px}
.click-chat-section-label button{border:0;background:transparent;color:#7455e8;font-weight:900;cursor:pointer}

.click-chat-mutuals{display:flex;gap:10px;overflow:auto;padding:0 14px 10px 14px;scrollbar-width:thin}
.click-chat-mutual{min-width:120px;max-width:140px;border:1px solid #ebe4fb;border-radius:20px;padding:12px 10px;background:linear-gradient(180deg,#fff 0%,#fbf9ff 100%);display:grid;justify-items:center;gap:5px;cursor:pointer;text-align:center;box-shadow:0 10px 24px rgba(53,40,119,.06)}
.click-chat-mutual:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(53,40,119,.10)}
.click-chat-mutual img{width:52px;height:52px;border-radius:17px;object-fit:cover;background:#eeeafd}
.click-chat-mutual strong,.click-chat-mutual small,.click-chat-mutual-preview{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.click-chat-mutual strong{font-size:13px;color:#2c2650}
.click-chat-mutual small{font-size:11px;color:#8982a1}
.click-chat-mutual-preview{margin-top:2px;padding:4px 9px;border-radius:999px;background:#f2edff;color:#694fe0;font-size:10px;font-weight:800}

.click-chat-search-wrap{margin:0 14px 8px;height:48px;border-radius:17px;background:#f7f4fc;border:1px solid #e7e3f4;display:flex;align-items:center;gap:9px;padding:0 13px}
.click-chat-search-wrap span{color:#745ae0}
.click-chat-search-wrap input{min-width:0;flex:1;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;font-size:15px;color:#2e294f}
.click-chat-search-results{margin:0 14px 8px;border:1px solid #e7e2f3;border-radius:16px;overflow:auto;max-height:220px;background:#fff}
.click-chat-user-result{width:100%;border:0;background:#fff;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;text-align:left;cursor:pointer}
.click-chat-user-result+.click-chat-user-result{border-top:1px solid #efedf7}
.click-chat-user-result:hover{background:#f7f4ff}
.click-chat-user-result img{width:42px;height:42px;border-radius:13px;object-fit:cover}
.click-chat-user-result span{min-width:0}.click-chat-user-result strong,.click-chat-user-result small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.click-chat-user-result strong{font-size:13px;color:#302a55}
.click-chat-user-result small{font-size:11px;color:#918aa3;margin-top:3px}
.click-chat-user-result b{font-size:11px;color:#704fe0}

.click-chat-conversations{min-height:0;flex:1;overflow:auto;padding:0 8px 12px}
.click-chat-row{width:100%;border:0;background:transparent;border-radius:18px;padding:10px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center;text-align:left;cursor:pointer;color:inherit}
.click-chat-row:hover{background:#f6f3ff}
.click-chat-row img{width:48px;height:48px;border-radius:15px;object-fit:cover;background:#eeeafd}
.click-chat-row-copy{min-width:0}
.click-chat-row-copy strong{display:block;color:#312b56;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.click-chat-row-copy span{display:block;margin-top:4px;color:#8a849c;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.click-chat-row-meta{display:grid;justify-items:end;gap:6px}
.click-chat-row-meta time{font-size:10px;color:#9b95aa}
.click-chat-unread{min-width:22px;height:22px;border-radius:999px;display:grid;place-items:center;padding:0 6px;background:#7549eb;color:#fff;font-size:10px;font-weight:1000}

.click-chat-loading,.click-chat-empty{padding:26px 18px;text-align:center;color:#928ba7;font-size:12px}
.click-chat-empty.compact{padding:18px 14px}
.click-chat-empty strong{display:block;color:#51486e;font-size:14px;margin-bottom:5px}
.click-chat-empty span{display:block;line-height:1.45}

.click-chat-messages{min-height:0;flex:1;overflow:auto;padding:16px 13px 12px;background:linear-gradient(180deg,#faf9ff,#f5f2fb);display:flex;flex-direction:column;gap:10px}
.click-chat-message{max-width:84%;display:grid;gap:5px;align-self:flex-start}
.click-chat-message.mine{align-self:flex-end}
.click-chat-message-bubble{padding:10px 12px;border-radius:18px 18px 18px 7px;background:#fff;border:1px solid #e8e3f2;color:#393253;font-size:13px;line-height:1.44;overflow-wrap:anywhere;box-shadow:0 7px 18px rgba(45,35,93,.05)}
.click-chat-message.mine .click-chat-message-bubble{border:0;border-radius:18px 18px 7px 18px;background:linear-gradient(145deg,#704be7,#944df7);color:#fff;box-shadow:0 10px 22px rgba(103,67,220,.22)}
.click-chat-message-author{display:block;margin-bottom:7px;font-size:11px;font-weight:900;color:#6857b8}
.click-chat-message.mine .click-chat-message-author{display:none}
.click-chat-message-body{white-space:pre-wrap}
.click-chat-message time{padding:0 4px;color:#9c96a8;font-size:9px}
.click-chat-message.mine time{text-align:right}
.click-chat-message-image{display:block;max-width:260px;width:100%;height:auto;border-radius:14px;margin-bottom:7px}

.click-chat-composer{flex:0 0 auto;position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:end;padding:10px 12px max(10px,env(safe-area-inset-bottom));border-top:1px solid #e9e5f2;background:#fff}
.click-chat-image-button{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#f0edfb;color:#7254df;font-size:25px;font-weight:500;cursor:pointer}
.click-chat-image-button input{display:none}
.click-chat-composer textarea{min-height:44px;max-height:108px;resize:none;border:1px solid #e3dff0!important;border-radius:15px!important;background:#f7f5fb!important;color:#312b50!important;padding:11px 12px!important;font-size:15px!important;line-height:1.3!important;outline:0!important}
.click-chat-send{width:44px;height:44px;border:0;border-radius:14px;background:linear-gradient(145deg,#704be7,#9646f3);color:#fff;font-size:18px;cursor:pointer}
.click-chat-send:disabled{opacity:.6;cursor:wait}
.click-chat-file-preview{grid-column:1/-1;padding:7px 10px;border-radius:12px;background:#f3effd;color:#635684;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.click-chat-toast{position:fixed;right:22px;bottom:104px;z-index:1184;max-width:300px;padding:12px 14px;border-radius:16px;background:#201a43;color:#fff;box-shadow:0 14px 34px rgba(20,14,63,.25);font-size:12px;font-weight:800}
.click-chat-toast[hidden]{display:none!important}

html[data-theme="dark"] .click-chat-panel{background:rgba(18,18,49,.99);border-color:rgba(255,255,255,.10);box-shadow:0 30px 80px rgba(3,3,24,.58)}
html[data-theme="dark"] .click-chat-header{background:linear-gradient(180deg,#232356,#18183f);border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .click-chat-header strong,
html[data-theme="dark"] .click-chat-row-copy strong,
html[data-theme="dark"] .click-chat-user-result strong,
html[data-theme="dark"] .click-chat-mutual strong{color:#f6f3ff!important}
html[data-theme="dark"] .click-chat-header small,
html[data-theme="dark"] .click-chat-row-copy span,
html[data-theme="dark"] .click-chat-user-result small,
html[data-theme="dark"] .click-chat-mutual small,
html[data-theme="dark"] .click-chat-empty,
html[data-theme="dark"] .click-chat-loading{color:#aaa5bd!important}
html[data-theme="dark"] .click-chat-close,
html[data-theme="dark"] .click-chat-back,
html[data-theme="dark"] .click-chat-image-button{background:rgba(255,255,255,.08);color:#d4c6ff;box-shadow:none}
html[data-theme="dark"] .click-chat-intro{background:linear-gradient(180deg,rgba(133,92,255,.12),rgba(255,255,255,.04));border-color:rgba(255,255,255,.09);color:#cbc6dc}
html[data-theme="dark"] .click-chat-intro b{color:#f3edff}
html[data-theme="dark"] .click-chat-mutual{background:linear-gradient(180deg,#201d4b,#17153a);border-color:rgba(255,255,255,.08);box-shadow:none}
html[data-theme="dark"] .click-chat-mutual-preview{background:rgba(145,103,255,.16);color:#ddd0ff}
html[data-theme="dark"] .click-chat-search-wrap{background:#10112d;border-color:rgba(255,255,255,.09)}
html[data-theme="dark"] .click-chat-search-wrap input{color:#f6f2ff!important}
html[data-theme="dark"] .click-chat-search-results{background:#17173b;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .click-chat-user-result{background:#17173b;color:#fff}
html[data-theme="dark"] .click-chat-user-result:hover,
html[data-theme="dark"] .click-chat-row:hover{background:rgba(117,78,226,.14)}
html[data-theme="dark"] .click-chat-messages{background:linear-gradient(180deg,#11122f,#151638)}
html[data-theme="dark"] .click-chat-message-bubble{background:#23234a;border-color:rgba(255,255,255,.08);color:#f2effa}
html[data-theme="dark"] .click-chat-message-author{color:#d5ccff}
html[data-theme="dark"] .click-chat-composer{background:#17173b;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .click-chat-composer textarea{background:#10112d!important;border-color:rgba(255,255,255,.09)!important;color:#f6f3ff!important}
html[data-theme="dark"] .click-chat-file-preview{background:rgba(255,255,255,.07);color:#c8c2d7}
html[data-theme="dark"] .click-chat-badge{border-color:#151638}

@media(max-width:720px){
  .click-chat-launcher{right:14px;bottom:104px;width:58px;min-width:58px;height:58px;padding:0;border-radius:19px}
  .click-chat-launcher-label{display:none}
  .click-chat-launcher svg{width:25px;height:25px}
  .click-chat-panel{left:8px;right:8px;bottom:8px;width:auto;height:min(80dvh,720px);max-height:calc(100dvh - 70px);border-radius:28px}
  .click-chat-toast{right:14px;left:14px;bottom:170px;max-width:none}
  .click-chat-message{max-width:89%}
  .click-chat-message-image{max-width:230px}
  .click-chat-mutual{min-width:114px}
}
@media(max-width:390px){
  .click-chat-panel{left:5px;right:5px;bottom:5px;border-radius:24px}
  .click-chat-header{padding:13px 12px 10px}
  .click-chat-search-wrap{margin-left:10px;margin-right:10px}
  .click-chat-intro{margin-left:10px;margin-right:10px}
  .click-chat-mutuals{padding-left:10px;padding-right:10px}
  .click-chat-conversations{padding-left:4px;padding-right:4px}
}

/* CLICK V3 · móvil: el chat siempre queda por encima de la barra inferior */
@media (max-width:900px){
  .click-chat-panel{
    bottom:calc(94px + env(safe-area-inset-bottom))!important;
    height:min(72dvh,680px)!important;
    max-height:calc(100dvh - 118px - env(safe-area-inset-bottom))!important;
    z-index:1215!important;
  }
  .click-chat-toast{
    bottom:calc(164px + env(safe-area-inset-bottom))!important;
    z-index:1220!important;
  }
  .click-chat-launcher{
    bottom:calc(96px + env(safe-area-inset-bottom))!important;
    z-index:1210!important;
  }
  .click-chat-composer{
    padding-bottom:12px!important;
  }
}
@media (max-width:390px){
  .click-chat-panel{
    bottom:calc(88px + env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - 108px - env(safe-area-inset-bottom))!important;
  }
  .click-chat-launcher{
    bottom:calc(91px + env(safe-area-inset-bottom))!important;
  }
}

/* CLICK V4 · FIX DEFINITIVO: chat por encima de la barra móvil */
@media (max-width:900px){
  /* El padre del panel debe estar por encima del z-index 1200 de la barra. */
  .click-chat{
    z-index:5000!important;
  }
  .click-chat.is-open{
    z-index:5000!important;
  }

  /* Mientras el chat está abierto, la navegación inferior se retira para liberar
     completamente el compositor y el botón Enviar. */
  body.click-chat-mobile-open .mobile-nav-v39,
  body.click-chat-mobile-open .mobile-nav,
  body:has(.click-chat.is-open) .mobile-nav-v39,
  body:has(.click-chat.is-open) .mobile-nav{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(130%)!important;
  }

  body.click-chat-mobile-open{
    overflow:hidden!important;
  }

  .click-chat.is-open .click-chat-panel{
    z-index:5002!important;
    left:8px!important;
    right:8px!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    width:auto!important;
    height:min(86dvh,760px)!important;
    max-height:calc(100dvh - 16px - env(safe-area-inset-bottom))!important;
  }

  .click-chat.is-open .click-chat-thread-view{
    min-height:0!important;
    overflow:hidden!important;
  }

  .click-chat.is-open .click-chat-messages{
    min-height:0!important;
    flex:1 1 auto!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    padding-bottom:14px!important;
  }

  .click-chat.is-open .click-chat-composer{
    position:relative!important;
    z-index:5004!important;
    flex:0 0 auto!important;
    background:#fff!important;
    padding:10px 12px max(12px,env(safe-area-inset-bottom))!important;
    box-shadow:0 -10px 30px rgba(24,18,70,.08)!important;
  }

  html[data-theme="dark"] .click-chat.is-open .click-chat-composer{
    background:#17173b!important;
  }

  .click-chat.is-open .click-chat-send,
  .click-chat.is-open .click-chat-image-button,
  .click-chat.is-open .click-chat-composer textarea{
    position:relative!important;
    z-index:5005!important;
    pointer-events:auto!important;
  }

  .click-chat-toast{
    z-index:5010!important;
  }
}

@media (max-width:390px){
  .click-chat.is-open .click-chat-panel{
    left:5px!important;
    right:5px!important;
    bottom:max(5px,env(safe-area-inset-bottom))!important;
    height:min(88dvh,760px)!important;
    max-height:calc(100dvh - 10px - env(safe-area-inset-bottom))!important;
  }
}

/* CLICK V5 · móvil: sacar el chat a la capa máxima del viewport */
@media (max-width:900px){
  .click-chat{
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    z-index:2147483640!important;
    pointer-events:none!important;
    isolation:isolate!important;
    transform:none!important;
    filter:none!important;
    opacity:1!important;
  }
  .click-chat .click-chat-launcher{
    pointer-events:auto!important;
    z-index:2147483641!important;
  }
  .click-chat.is-open .click-chat-launcher{
    display:none!important;
  }
  .click-chat.is-open .click-chat-panel{
    position:fixed!important;
    z-index:2147483646!important;
    pointer-events:auto!important;
    left:6px!important;
    right:6px!important;
    top:calc(var(--click-chat-vv-top, 0px) + 6px)!important;
    bottom:auto!important;
    width:auto!important;
    height:calc(var(--click-chat-vv-height, 100dvh) - 12px)!important;
    max-height:none!important;
    min-height:0!important;
    margin:0!important;
    border-radius:24px!important;
    transform:none!important;
    opacity:1!important;
    overflow:hidden!important;
  }
  .click-chat.is-open .click-chat-thread-view,
  .click-chat.is-open .click-chat-list-view{
    min-height:0!important;
    height:auto!important;
    flex:1 1 auto!important;
    overflow:hidden!important;
  }
  .click-chat.is-open .click-chat-messages,
  .click-chat.is-open .click-chat-conversations{
    min-height:0!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .click-chat.is-open .click-chat-composer{
    position:relative!important;
    z-index:2147483647!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    padding:10px 10px max(10px,env(safe-area-inset-bottom))!important;
    transform:none!important;
  }
  .click-chat.is-open .click-chat-send,
  .click-chat.is-open .click-chat-image-button,
  .click-chat.is-open .click-chat-composer textarea{
    position:relative!important;
    z-index:2!important;
    pointer-events:auto!important;
  }

  /* La barra inferior sale completamente mientras el chat está abierto. */
  body.click-chat-mobile-open nav.mobile-nav,
  body.click-chat-mobile-open nav.mobile-nav-v39,
  body.click-chat-mobile-open .mobile-nav,
  body.click-chat-mobile-open .mobile-nav-v39{
    display:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body.click-chat-mobile-open .mobile-menu-backdrop,
  body.click-chat-mobile-open .mobile-menu-sheet{
    z-index:1!important;
  }
  body.click-chat-mobile-open{
    overflow:hidden!important;
    touch-action:manipulation;
  }
}

/* CLICK V6 · móvil: elevar el chat para dejar libre toda la zona inferior */
@media (max-width:900px){
  .click-chat.is-open .click-chat-panel{
    top:calc(var(--click-chat-vv-top, 0px) + 10px)!important;
    bottom:auto!important;
    height:calc(var(--click-chat-vv-height, 100dvh) - 125px)!important;
    max-height:calc(var(--click-chat-vv-height, 100dvh) - 125px)!important;
  }
  .click-chat.is-open .click-chat-composer{
    padding-bottom:12px!important;
  }
}
@media (max-width:430px){
  .click-chat.is-open .click-chat-panel{
    top:calc(var(--click-chat-vv-top, 0px) + 8px)!important;
    height:calc(var(--click-chat-vv-height, 100dvh) - 135px)!important;
    max-height:calc(var(--click-chat-vv-height, 100dvh) - 135px)!important;
  }
}

/* CLICK CHAT V7 · móvil: lista de amigos + conversación en burbuja interna */
@media (max-width:900px){
  /* La pantalla principal del chat sigue siendo la lista. */
  .click-chat.is-open .click-chat-panel{
    overflow:hidden!important;
  }
  .click-chat.is-open .click-chat-list-view{
    position:relative!important;
    z-index:1!important;
    display:flex!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .click-chat.is-thread .click-chat-list-view{
    display:flex!important;
    pointer-events:none!important;
    user-select:none!important;
  }
  .click-chat.is-thread .click-chat-list-view::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:8;
    pointer-events:none;
    background:rgba(16,10,54,.16);
    backdrop-filter:blur(1.2px);
    -webkit-backdrop-filter:blur(1.2px);
  }

  /* En móvil la explicación ocupa demasiado: dejamos amigos + búsqueda + conversaciones. */
  .click-chat-intro{display:none!important}
  .click-chat-section-label.is-first{padding-top:10px!important}

  /* Seguidores mutuos como burbujas horizontales, no como tarjetas grandes. */
  .click-chat-mutuals{
    flex:0 0 auto!important;
    gap:12px!important;
    padding:2px 12px 11px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  .click-chat-mutuals::-webkit-scrollbar{display:none!important}
  .click-chat-mutual{
    min-width:66px!important;
    max-width:72px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    justify-items:center!important;
    gap:5px!important;
    transform:none!important;
  }
  .click-chat-mutual img{
    width:54px!important;
    height:54px!important;
    border-radius:50%!important;
    object-fit:cover!important;
    padding:2px!important;
    border:2px solid rgba(132,82,255,.78)!important;
    background:#fff!important;
    box-shadow:0 7px 18px rgba(78,49,180,.18)!important;
  }
  .click-chat-mutual strong{
    width:100%!important;
    font-size:10px!important;
    line-height:1.15!important;
    text-align:center!important;
  }
  .click-chat-mutual small,
  .click-chat-mutual-preview{display:none!important}

  /* Conversaciones como burbujas/lista. */
  .click-chat-conversations{
    padding:2px 10px 14px!important;
  }
  .click-chat-row{
    margin:0 0 8px!important;
    padding:10px 11px!important;
    border-radius:18px!important;
    border:1px solid rgba(105,78,192,.10)!important;
    background:rgba(247,244,255,.82)!important;
    box-shadow:0 5px 16px rgba(43,29,104,.05)!important;
  }
  .click-chat-row.is-active{
    border-color:rgba(129,75,255,.50)!important;
    background:linear-gradient(135deg,rgba(124,76,244,.16),rgba(177,82,255,.10))!important;
    box-shadow:0 8px 20px rgba(100,60,220,.12)!important;
  }
  .click-chat-row img{
    width:46px!important;
    height:46px!important;
    border-radius:50%!important;
  }

  /* La cabecera normal de Mensajes queda detrás; la cabecera del chat es parte de la burbuja interna. */
  .click-chat.is-thread [data-chat-list-header]{
    display:flex!important;
  }
  .click-chat.is-thread .click-chat-header-thread{
    --click-chat-thread-top:24%;
    display:flex!important;
    position:absolute!important;
    z-index:30!important;
    left:14px!important;
    right:14px!important;
    top:var(--click-chat-thread-top)!important;
    height:64px!important;
    padding:9px 10px!important;
    border:1px solid rgba(115,80,220,.16)!important;
    border-bottom:0!important;
    border-radius:24px 24px 0 0!important;
    background:rgba(255,255,255,.985)!important;
    box-shadow:0 -2px 34px rgba(27,17,86,.22)!important;
    align-items:center!important;
    pointer-events:auto!important;
  }
  .click-chat.is-thread .click-chat-header-thread .click-chat-person img{
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
  }
  .click-chat.is-thread .click-chat-header-thread .click-chat-back,
  .click-chat.is-thread .click-chat-header-thread .click-chat-thread-close{
    width:40px!important;
    height:40px!important;
    flex:0 0 40px!important;
    border-radius:14px!important;
  }

  /* El hilo aparece encima de la lista como una segunda burbuja interna. */
  .click-chat.is-thread .click-chat-thread-view{
    --click-chat-thread-top:24%;
    display:flex!important;
    position:absolute!important;
    z-index:29!important;
    left:14px!important;
    right:14px!important;
    top:calc(var(--click-chat-thread-top) + 63px)!important;
    bottom:12px!important;
    width:auto!important;
    min-height:0!important;
    overflow:hidden!important;
    border:1px solid rgba(115,80,220,.16)!important;
    border-top:0!important;
    border-radius:0 0 24px 24px!important;
    background:rgba(252,251,255,.995)!important;
    box-shadow:0 22px 48px rgba(27,17,86,.25)!important;
    pointer-events:auto!important;
  }
  .click-chat.is-thread .click-chat-messages{
    flex:1 1 auto!important;
    min-height:0!important;
    padding:14px 11px 10px!important;
    overflow-y:auto!important;
    background:linear-gradient(180deg,#faf8ff 0%,#f4f0fc 100%)!important;
  }
  .click-chat.is-thread .click-chat-composer{
    flex:0 0 auto!important;
    position:relative!important;
    z-index:31!important;
    width:100%!important;
    padding:9px 9px max(9px,env(safe-area-inset-bottom))!important;
    border-radius:0 0 23px 23px!important;
    box-shadow:0 -8px 24px rgba(40,26,110,.06)!important;
  }

  html[data-theme="dark"] .click-chat-row{
    background:rgba(37,31,79,.82)!important;
    border-color:rgba(255,255,255,.07)!important;
  }
  html[data-theme="dark"] .click-chat-row.is-active{
    background:linear-gradient(135deg,rgba(116,69,236,.34),rgba(147,72,255,.20))!important;
    border-color:rgba(150,103,255,.52)!important;
  }
  html[data-theme="dark"] .click-chat-mutual img{
    background:#18183f!important;
    border-color:#925fff!important;
  }
  html[data-theme="dark"] .click-chat.is-thread .click-chat-header-thread{
    background:linear-gradient(180deg,rgba(39,33,83,.995),rgba(29,26,67,.995))!important;
    border-color:rgba(171,133,255,.22)!important;
    box-shadow:0 -2px 34px rgba(0,0,0,.34)!important;
  }
  html[data-theme="dark"] .click-chat.is-thread .click-chat-thread-view{
    background:#151534!important;
    border-color:rgba(171,133,255,.22)!important;
    box-shadow:0 22px 48px rgba(0,0,0,.36)!important;
  }
  html[data-theme="dark"] .click-chat.is-thread .click-chat-messages{
    background:linear-gradient(180deg,#141432,#11112c)!important;
  }
}

@media (max-width:430px){
  .click-chat.is-thread .click-chat-header-thread,
  .click-chat.is-thread .click-chat-thread-view{
    --click-chat-thread-top:21%;
    left:9px!important;
    right:9px!important;
  }
}

/* =========================================================
   V8 · MÓVIL A PANTALLA COMPLETA
   Hoja 1: lista de mensajes ocupa todo el viewport visible.
   Hoja 2: conversación ocupa exactamente el mismo viewport,
   cubriendo por completo la hoja anterior.
   PC conserva el comportamiento anterior.
   ========================================================= */
@media (max-width:900px){
  html.click-chat-mobile-open,
  body.click-chat-mobile-open{
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }

  body.click-chat-mobile-open .mobile-nav,
  body.click-chat-mobile-open .mobile-nav-v39,
  body.click-chat-mobile-open nav.mobile-nav,
  body.click-chat-mobile-open nav.mobile-nav-v39,
  body.click-chat-mobile-open .mobile-bottom-nav,
  body.click-chat-mobile-open .bottom-nav,
  body.click-chat-mobile-open [data-mobile-nav],
  body.click-chat-mobile-open .mobile-menu-sheet,
  body.click-chat-mobile-open .mobile-menu-backdrop{
    display:none!important;
  }

  .click-chat.is-open{
    position:fixed!important;
    inset:0!important;
    z-index:2147483000!important;
    width:100%!important;
    height:100%!important;
    pointer-events:none!important;
  }

  .click-chat.is-open .click-chat-launcher{
    display:none!important;
  }

  /* HOJA 1: Mensajes, a pantalla completa. */
  .click-chat.is-open .click-chat-panel{
    position:fixed!important;
    z-index:2147483001!important;
    top:var(--click-chat-vv-top,0px)!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    width:100vw!important;
    max-width:none!important;
    height:var(--click-chat-vv-height,100dvh)!important;
    max-height:none!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    transform:none!important;
    opacity:1!important;
    overflow:hidden!important;
    pointer-events:auto!important;
    box-shadow:none!important;
  }

  .click-chat.is-open .click-chat-header{
    position:relative!important;
    z-index:4!important;
    flex:0 0 auto!important;
    min-height:82px!important;
    padding:18px 18px 14px!important;
    border-radius:0!important;
    box-sizing:border-box!important;
  }

  .click-chat.is-open .click-chat-list-view{
    position:relative!important;
    z-index:2!important;
    flex:1 1 auto!important;
    min-height:0!important;
    width:100%!important;
    overflow:hidden!important;
    border-radius:0!important;
  }

  .click-chat.is-open .click-chat-conversations{
    min-height:0!important;
    flex:1 1 auto!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    padding-bottom:max(18px,env(safe-area-inset-bottom))!important;
  }

  .click-chat.is-open .click-chat-mutuals,
  .click-chat.is-open .click-chat-search-results{
    -webkit-overflow-scrolling:touch!important;
  }

  /* HOJA 2: conversación. Mismo tamaño exacto que HOJA 1. */
  .click-chat.is-thread .click-chat-header-thread{
    display:flex!important;
    position:fixed!important;
    z-index:2147483011!important;
    top:var(--click-chat-vv-top,0px)!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    width:100vw!important;
    height:82px!important;
    min-height:82px!important;
    margin:0!important;
    padding:14px 14px!important;
    box-sizing:border-box!important;
    border:0!important;
    border-bottom:1px solid rgba(118,89,211,.15)!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:rgba(255,255,255,.995)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    align-items:center!important;
    pointer-events:auto!important;
  }

  .click-chat.is-thread .click-chat-thread-view{
    display:flex!important;
    position:fixed!important;
    z-index:2147483010!important;
    top:calc(var(--click-chat-vv-top,0px) + 82px)!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    width:100vw!important;
    height:calc(var(--click-chat-vv-height,100dvh) - 82px)!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:hidden!important;
    box-shadow:none!important;
    background:#fbfaff!important;
    pointer-events:auto!important;
  }

  .click-chat.is-thread .click-chat-messages{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    padding:16px 13px 12px!important;
  }

  .click-chat.is-thread .click-chat-composer{
    position:relative!important;
    z-index:2!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    padding:10px 12px max(10px,env(safe-area-inset-bottom))!important;
    border-radius:0!important;
    box-sizing:border-box!important;
  }

  .click-chat.is-thread .click-chat-header-thread .click-chat-back,
  .click-chat.is-thread .click-chat-header-thread .click-chat-thread-close{
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
    border-radius:15px!important;
  }

  .click-chat.is-thread .click-chat-header-thread .click-chat-person img{
    width:46px!important;
    height:46px!important;
    border-radius:50%!important;
  }

  /* Tema oscuro: las dos hojas siguen viéndose como una encima de otra. */
  html[data-theme="dark"] .click-chat.is-open .click-chat-panel{
    background:#12122f!important;
  }
  html[data-theme="dark"] .click-chat.is-thread .click-chat-header-thread{
    background:#23204f!important;
    border-bottom-color:rgba(255,255,255,.08)!important;
  }
  html[data-theme="dark"] .click-chat.is-thread .click-chat-thread-view{
    background:#11112d!important;
  }
  html[data-theme="dark"] .click-chat.is-thread .click-chat-messages{
    background:linear-gradient(180deg,#11112d 0%,#151534 100%)!important;
  }
}


/* =========================================================
   V12 · MÓVIL: DOS HOJAS REALES DEL MISMO TAMAÑO
   La hoja de conversación cubre 100% la hoja de Mensajes.
   ========================================================= */
@media (max-width:900px){
  html.click-chat-mobile-open,
  body.click-chat-mobile-open{
    overflow:hidden!important;
    width:100%!important;
    height:100%!important;
    touch-action:none;
  }

  .click-chat.is-open{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:var(--click-chat-vv-height,100dvh)!important;
    z-index:2147483600!important;
    pointer-events:none!important;
  }

  .click-chat.is-open .click-chat-panel{
    position:fixed!important;
    inset:0!important;
    top:var(--click-chat-vv-top,0px)!important;
    width:100vw!important;
    height:var(--click-chat-vv-height,100dvh)!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    transform:none!important;
    opacity:1!important;
    overflow:hidden!important;
    pointer-events:auto!important;
  }

  .click-chat.is-open .click-chat-header{
    height:84px!important;
    min-height:84px!important;
    padding:18px 18px 14px!important;
    border-radius:0!important;
  }

  .click-chat.is-open .click-chat-list-view{
    display:flex!important;
    flex:1 1 auto!important;
    min-height:0!important;
    width:100%!important;
    overflow:hidden!important;
  }

  .click-chat.is-open .click-chat-intro[hidden]{display:none!important}

  /* HOJA 2: cubre exactamente toda la hoja principal */
  .click-chat.is-thread .click-chat-header-thread{
    display:flex!important;
    position:fixed!important;
    top:var(--click-chat-vv-top,0px)!important;
    left:0!important;
    right:0!important;
    width:100vw!important;
    height:84px!important;
    min-height:84px!important;
    margin:0!important;
    padding:14px 14px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.08)!important;
    border-radius:0!important;
    z-index:2147483642!important;
    pointer-events:auto!important;
  }

  .click-chat.is-thread .click-chat-thread-view{
    display:flex!important;
    position:fixed!important;
    top:calc(var(--click-chat-vv-top,0px) + 84px)!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    width:100vw!important;
    height:calc(var(--click-chat-vv-height,100dvh) - 84px)!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    z-index:2147483641!important;
    pointer-events:auto!important;
  }

  .click-chat.is-thread .click-chat-messages{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }

  .click-chat.is-thread .click-chat-composer{
    position:relative!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    margin:0!important;
    border-radius:0!important;
    flex:0 0 auto!important;
    padding:10px 12px max(12px,env(safe-area-inset-bottom))!important;
  }

  /* Aunque la hoja 1 siga viva detrás, no debe verse en absoluto. */
  .click-chat.is-thread .click-chat-list-view,
  .click-chat.is-thread .click-chat-header-main{
    visibility:hidden!important;
    pointer-events:none!important;
  }

  html[data-theme="dark"] .click-chat.is-open .click-chat-panel{
    background:#12122f!important;
  }
  html[data-theme="dark"] .click-chat.is-thread .click-chat-header-thread{
    background:#23204f!important;
  }
  html[data-theme="dark"] .click-chat.is-thread .click-chat-thread-view{
    background:#11112d!important;
  }
}

/* V14 · PC: Usuarios de Click muestra únicamente avatar + nombre */
@media (min-width:721px){
  .click-chat-mutual small,
  .click-chat-mutual .click-chat-mutual-preview{
    display:none!important;
  }
  .click-chat-mutual{
    align-content:center;
    gap:7px;
    padding-top:12px;
    padding-bottom:12px;
  }
  .click-chat-mutual strong{
    margin:0;
    line-height:1.2;
  }
}

/* =========================================================
   V20 · MÓVIL: evitar zoom automático al levantar teclado
   iOS amplía inputs con tipografía menor a 16px.
   ========================================================= */
@media (max-width:900px){
  .click-chat.is-open .click-chat-search-wrap input,
  .click-chat.is-open .click-chat-composer textarea{
    font-size:16px!important;
    line-height:1.35!important;
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }

  .click-chat.is-open .click-chat-search-wrap,
  .click-chat.is-open .click-chat-composer,
  .click-chat.is-open .click-chat-composer textarea{
    transform:none!important;
    zoom:1!important;
  }

  /* Al aparecer el teclado, mantener la segunda hoja dentro del viewport visible. */
  .click-chat.is-keyboard-open.is-thread .click-chat-thread-view{
    height:calc(var(--click-chat-vv-height,100dvh) - 84px)!important;
    max-height:calc(var(--click-chat-vv-height,100dvh) - 84px)!important;
  }

  .click-chat.is-keyboard-open.is-thread .click-chat-messages{
    min-height:0!important;
    overflow-y:auto!important;
  }

  .click-chat.is-keyboard-open .click-chat-composer{
    flex:0 0 auto!important;
    padding-bottom:max(10px,env(safe-area-inset-bottom))!important;
  }
}


/* =========================================================
   V24 · MÓVIL: chat estable durante pinch-zoom
   Usa el Visual Viewport completo (alto, ancho y desplazamiento).
   ========================================================= */
@media (max-width:900px){
  .click-chat.is-open{
    inset:auto!important;
    top:var(--click-chat-vv-top,0px)!important;
    left:var(--click-chat-vv-left,0px)!important;
    right:auto!important;
    bottom:auto!important;
    width:var(--click-chat-vv-width,100vw)!important;
    height:var(--click-chat-vv-height,100dvh)!important;
  }

  .click-chat.is-open .click-chat-panel{
    inset:auto!important;
    top:var(--click-chat-vv-top,0px)!important;
    left:var(--click-chat-vv-left,0px)!important;
    right:auto!important;
    bottom:auto!important;
    width:var(--click-chat-vv-width,100vw)!important;
    height:var(--click-chat-vv-height,100dvh)!important;
  }

  .click-chat.is-thread .click-chat-header-thread{
    left:var(--click-chat-vv-left,0px)!important;
    right:auto!important;
    width:var(--click-chat-vv-width,100vw)!important;
  }

  .click-chat.is-thread .click-chat-thread-view{
    left:var(--click-chat-vv-left,0px)!important;
    right:auto!important;
    width:var(--click-chat-vv-width,100vw)!important;
  }
}


/* V25: estabilidad del chat ante pinch-zoom en móviles.
   El zoom normal del sitio sigue disponible al cerrar el chat. */
@media (max-width: 900px){
  [data-click-chat].is-open,
  [data-click-chat].is-open [data-chat-panel]{
    touch-action: pan-x pan-y;
    overscroll-behavior: none;
  }
}

/* CLICK CHAT V48 · imágenes efímeras de 1 hora */
.click-chat-image-expired{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:210px;
  max-width:280px;
  padding:11px 12px;
  margin-bottom:7px;
  border:1px dashed rgba(116,77,224,.35);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(127,79,232,.08),rgba(236,94,185,.06));
}
.click-chat-image-expired-icon{
  flex:0 0 auto;
  font-size:28px;
  line-height:1;
  filter:drop-shadow(0 3px 7px rgba(73,48,160,.15));
}
.click-chat-image-expired-copy{display:grid;gap:2px;min-width:0}
.click-chat-image-expired-copy strong{font-size:12px;line-height:1.25;font-weight:900}
.click-chat-image-expired-copy small{font-size:9px;line-height:1.3;opacity:.68}
.click-chat-message.mine .click-chat-image-expired{
  border-color:rgba(255,255,255,.35);
  background:rgba(255,255,255,.10);
}
html[data-theme="dark"] .click-chat-image-expired{
  border-color:rgba(181,142,255,.35);
  background:linear-gradient(135deg,rgba(118,76,219,.16),rgba(221,72,178,.10));
}
@media (max-width:900px){
  .click-chat-image-expired{min-width:0;width:min(250px,100%);max-width:100%}
}

/* CLICK CHAT V47 · conversaciones pausadas por administración */
.click-chat-paused-notice{flex:0 0 auto;display:flex;align-items:center;gap:9px;padding:9px 12px;background:#fff4d7;border-bottom:1px solid #f0d28a;color:#7c5200;font-size:12px;line-height:1.25}
.click-chat-paused-notice[hidden]{display:none!important}
.click-chat-paused-notice>span{display:grid;gap:2px}.click-chat-paused-notice b{font-size:12px}.click-chat-paused-notice small{font-size:10px;color:#936f29}
.click-chat-row.is-paused{border-color:rgba(220,157,47,.35)!important;background:linear-gradient(135deg,rgba(255,245,218,.9),rgba(252,249,255,.92))!important}
.click-chat-paused-mini{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:2px 6px!important;border-radius:999px!important;background:#fff0c9!important;color:#8b5a00!important;font-size:8px!important;font-weight:900!important;line-height:1.1!important}
.click-chat.is-conversation-paused .click-chat-composer{background:#f8f6fb!important}
.click-chat.is-conversation-paused .click-chat-composer textarea{opacity:.7!important;cursor:not-allowed!important}
.click-chat.is-conversation-paused .click-chat-image-button,.click-chat.is-conversation-paused .click-chat-send{opacity:.42!important;cursor:not-allowed!important;pointer-events:none!important}
html[data-theme="dark"] .click-chat-paused-notice{background:#3c2e13;border-color:#6f5322;color:#ffd98a}
html[data-theme="dark"] .click-chat-paused-notice small{color:#dfbd78}
html[data-theme="dark"] .click-chat-row.is-paused{background:linear-gradient(135deg,rgba(88,64,22,.58),rgba(35,30,75,.88))!important;border-color:rgba(231,179,80,.35)!important}
html[data-theme="dark"] .click-chat-paused-mini{background:#5d4518!important;color:#ffd687!important}
html[data-theme="dark"] .click-chat.is-conversation-paused .click-chat-composer{background:#16162f!important}
@media(max-width:900px){.click-chat-paused-notice{padding:8px 11px;font-size:11px}.click-chat-paused-notice b{font-size:11px}.click-chat-paused-notice small{font-size:9px}}


/* CLICK CHAT V48 · consentimiento inicial del chat */
html.click-chat-terms-open,body.click-chat-terms-open{overflow:hidden!important}
.click-chat-terms-gate[hidden]{display:none!important}
.click-chat-terms-gate{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;padding:18px}
.click-chat-terms-backdrop{position:absolute;inset:0;background:rgba(10,8,31,.68);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.click-chat-terms-card{position:relative;z-index:1;width:min(510px,100%);max-height:min(720px,calc(100dvh - 34px));overflow:auto;border:1px solid rgba(118,78,229,.2);border-radius:28px;padding:28px;background:#fff;color:#211b3d;box-shadow:0 35px 100px rgba(10,6,42,.36);text-align:center}
.click-chat-terms-icon{width:64px;height:64px;margin:0 auto 13px;border-radius:22px;display:grid;place-items:center;font-size:31px;background:linear-gradient(135deg,#efe8ff,#ffe8f7);box-shadow:inset 0 0 0 1px rgba(111,75,221,.12)}
.click-chat-terms-card h2{margin:0 0 10px;font-size:24px;line-height:1.15;color:#241b49}
.click-chat-terms-card>p{margin:0 auto 16px;max-width:430px;font-size:14px;line-height:1.55;color:#635d76}
.click-chat-terms-points{display:grid;gap:8px;margin:18px 0;text-align:left}
.click-chat-terms-points span{display:block;padding:11px 13px;border-radius:14px;background:#f7f4ff;color:#4b4068;font-size:13px;font-weight:700}
.click-chat-terms-card .click-chat-terms-legal{font-size:11px;line-height:1.5;color:#777083;margin-bottom:19px}
.click-chat-terms-legal a{color:#6e4bd8;font-weight:800;text-decoration:none}
.click-chat-terms-legal a:hover{text-decoration:underline}
.click-chat-terms-actions{display:grid;grid-template-columns:1fr 1.45fr;gap:9px}
.click-chat-terms-actions button{min-height:46px;border:0;border-radius:15px;padding:0 14px;font:inherit;font-size:13px;font-weight:900;cursor:pointer}
.click-chat-terms-secondary{background:#f0edf7;color:#625a73}
.click-chat-terms-accept{background:linear-gradient(135deg,#7454e8,#b247dd);color:#fff;box-shadow:0 10px 25px rgba(112,71,218,.24)}
.click-chat-terms-accept:disabled{opacity:.55;cursor:wait}
html[data-theme="dark"] .click-chat-terms-card{background:#17162f;color:#f6f2ff;border-color:rgba(177,143,255,.22);box-shadow:0 35px 100px rgba(0,0,0,.58)}
html[data-theme="dark"] .click-chat-terms-card h2{color:#fff}
html[data-theme="dark"] .click-chat-terms-card>p{color:#bbb4d1}
html[data-theme="dark"] .click-chat-terms-points span{background:rgba(255,255,255,.065);color:#e0d9ef}
html[data-theme="dark"] .click-chat-terms-card .click-chat-terms-legal{color:#9f98b4}
html[data-theme="dark"] .click-chat-terms-legal a{color:#c3a9ff}
html[data-theme="dark"] .click-chat-terms-secondary{background:rgba(255,255,255,.09);color:#ddd6ec}
@media(max-width:600px){
  .click-chat-terms-gate{padding:12px;align-items:end}
  .click-chat-terms-card{width:100%;max-height:calc(var(--click-chat-vv-height,100dvh) - 18px);border-radius:26px 26px 20px 20px;padding:24px 18px calc(18px + env(safe-area-inset-bottom))}
  .click-chat-terms-icon{width:58px;height:58px;border-radius:19px;font-size:28px}
  .click-chat-terms-card h2{font-size:22px}
  .click-chat-terms-actions{grid-template-columns:1fr}
  .click-chat-terms-accept{order:-1}
}

/* CLICK CHAT V49 · consentimiento móvil realmente modal */
html.click-chat-terms-open,
body.click-chat-terms-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.click-chat-terms-open > *:not(.click-chat-terms-gate){
  pointer-events:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
body.click-chat-terms-open > .click-chat-terms-gate{
  pointer-events:auto!important;
  user-select:auto!important;
  -webkit-user-select:auto!important;
}
.click-chat-terms-gate{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  z-index:2147483647!important;
  isolation:isolate!important;
  overflow:hidden!important;
  touch-action:none;
}
.click-chat-terms-backdrop{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  pointer-events:auto!important;
}
.click-chat-terms-card{
  pointer-events:auto!important;
  touch-action:pan-y!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
}
.click-chat-terms-actions button{
  position:relative;
  z-index:3;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent;
}
@media(max-width:900px){
  .click-chat-terms-gate{
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    padding:12px 10px max(12px,env(safe-area-inset-bottom))!important;
  }
  .click-chat-terms-card{
    width:min(100%,560px)!important;
    max-height:calc(100dvh - 24px - env(safe-area-inset-bottom))!important;
    margin:0!important;
    border-radius:28px 28px 20px 20px!important;
  }
  .click-chat-terms-actions{
    position:sticky;
    bottom:0;
    z-index:6;
    padding-top:10px;
    background:inherit;
  }
  .click-chat-terms-actions button{
    min-height:52px!important;
    font-size:14px!important;
  }
}
