/* SaltaConectada Pro 2026 · 1.0.64 · Community Floating Panels Stabilization V1 */
html.jc-ccj438-open,html.jc-ccj438-open body{overflow:hidden!important}

/* Única geometría del cuadro: mismo eje público de 1024 px. */
.jc-ccj438-dialog{
  width:min(1024px,calc(100vw - 24px))!important;
  max-width:1024px!important;
  height:min(86dvh,840px)!important;
  max-height:840px!important;
  margin:auto!important;padding:0!important;border:0!important;
  border-radius:22px!important;background:transparent!important;overflow:visible!important;color:#183d5d!important;
}
.jc-ccj438-dialog::backdrop{background:rgba(7,23,43,.64)!important;backdrop-filter:blur(4px)}
.jc-ccj438-dialog__card{display:grid;grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;overflow:hidden;border:1px solid rgba(255,255,255,.5);border-radius:22px;background:#fff;box-shadow:0 28px 85px rgba(0,29,68,.34)}
.jc-ccj438-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;padding:10px 14px 10px 18px;border-bottom:1px solid #dfe8f3;background:linear-gradient(180deg,#fff,#f7faff)}
.jc-ccj438-dialog__head>div{min-width:0}.jc-ccj438-dialog__head span{display:block;color:#1769e0;font-size:9px;font-weight:950;letter-spacing:.11em;text-transform:uppercase}.jc-ccj438-dialog__head h2{margin:2px 0 0;overflow:hidden;color:#173d61;font-size:19px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.jc-ccj438-dialog__close{flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #d8e2ed;border-radius:50%;background:#eef4fa;color:#234766;font-size:25px;line-height:1;cursor:pointer}.jc-ccj438-dialog__close:hover,.jc-ccj438-dialog__close:focus-visible{background:#e3edf7;color:#003399;outline:2px solid rgba(23,105,224,.18);outline-offset:2px}
.jc-ccj438-dialog__body{position:relative;min-height:0;overflow:hidden;background:#f5f7fb}.jc-ccj438-dialog__frame{display:block;width:100%;height:100%;border:0;background:#f5f7fb;visibility:hidden}.jc-ccj438-dialog__loading{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:10px;background:#f5f7fb;color:#557087;font-size:12px}.jc-ccj438-dialog__loading[hidden]{display:none!important}.jc-ccj438-dialog__loading span{width:22px;height:22px;border:3px solid #d6e3f1;border-top-color:#1769e0;border-radius:50%;animation:scCCJ164Spin .8s linear infinite}@keyframes scCCJ164Spin{to{transform:rotate(360deg)}}

/* Frame limpio: ninguna estructura global puede volver a entrar dentro del modal. */
body.jc-ccj-floating-frame-v164 .jcx-header433,
body.jc-ccj-floating-frame-v164 .sc-header129,
body.jc-ccj-floating-frame-v164 .jcx-header433-spacer,
body.jc-ccj-floating-frame-v164 .jcx-header428-spacer,
body.jc-ccj-floating-frame-v164 .sc-header129-spacer,
body.jc-ccj-floating-frame-v164 .jcx-header433__drawer,
body.jc-ccj-floating-frame-v164 .jcx-header433__backdrop,
body.jc-ccj-floating-frame-v164 .jcx-header433-onboarding,
body.jc-ccj-floating-frame-v164 .jcx-header433-tour,
body.jc-ccj-floating-frame-v164 .jc-ccj5-header,
body.jc-ccj-floating-frame-v164 .jc-web-footer-v2,
body.jc-ccj-floating-frame-v164 .jc-footer,
body.jc-ccj-floating-frame-v164 .jc-mobile-tabbar-v2,
body.jc-ccj-floating-frame-v164 .jc-footer-nav-mobile-app,
body.jc-ccj-floating-frame-v164 .jc-footer-nav-webwin,
body.jc-ccj-floating-frame-v164 .jc-portal-auto-ads,
body.jc-ccj-floating-frame-v164 .jc-portal-auto-banners,
body.jc-ccj-floating-frame-v164 .jc-portal-auto-carousel,
body.jc-ccj-floating-frame-v164 [data-jc-app-launch-loader],
body.jc-ccj-floating-frame-v164 [data-jc-permissions-modal],
body.jc-ccj-floating-frame-v164 #wpadminbar{display:none!important}

html.jc-ccj-floating-html-v164{margin-top:0!important;padding-top:0!important;scroll-padding-top:0!important}
html.jc-ccj-floating-html-v164 body.jc-ccj-floating-frame-v164{margin:0!important;padding:0!important;min-height:100%!important;background:#f5f7fb!important;overflow-x:hidden!important}
body.jc-ccj-floating-frame-v164 .jc-main{min-height:0!important;margin:0!important;padding:10px 0 18px!important;transform:none!important;top:auto!important}
body.jc-ccj-floating-frame-v164 .jc-main>.jc-container,
body.jc-ccj-floating-frame-v164 main>.jc-container,
body.jc-ccj-floating-frame-v164 .jc-container{max-width:1024px!important;margin-inline:auto!important;box-sizing:border-box!important}
body.jc-ccj-floating-frame-v164 .jc-container{width:min(calc(100% - 24px),1024px)!important}
body.jc-ccj-floating-frame-v164 .jc-ccj5-homebar{position:relative!important;top:auto!important;margin-top:0!important}
body.jc-ccj-floating-frame-v164 .jc-ccj5-homebar>.jc-ccj5-shell{width:min(calc(100% - 24px),1024px)!important;max-width:1024px!important;margin-inline:auto!important}

/* Comercios/Mensajes dentro del cuadro no deben heredar offsets del portal externo. */
body.jc-ccj-floating-frame-v164[class*="comer"] .jc-main,
body.jc-ccj-floating-frame-v164[class*="mensaj"] .jc-main{padding-top:10px!important}

@media(max-width:760px){
  .jc-ccj438-dialog{width:calc(100vw - 12px)!important;max-width:none!important;height:calc(100dvh - 12px)!important;max-height:none!important;margin:6px!important;border-radius:19px!important}
  .jc-ccj438-dialog__card{border-radius:19px}.jc-ccj438-dialog__head{min-height:56px;padding:8px 8px 8px 13px}.jc-ccj438-dialog__head h2{font-size:16px}.jc-ccj438-dialog__head span{font-size:8px}.jc-ccj438-dialog__close{flex-basis:36px;width:36px;height:36px;font-size:22px}
  body.jc-ccj-floating-frame-v164 .jc-main{padding:6px 0 12px!important}
  body.jc-ccj-floating-frame-v164 .jc-container{width:min(calc(100% - 12px),1024px)!important}
}
@media(prefers-reduced-motion:reduce){.jc-ccj438-dialog__loading span{animation:none}}
