/* Boton "Generar" unificado (generadores sueltos + formatos de Material Didactico): una fila, borde blanco grueso, brillo y total a la derecha. */
body .ckg-page .ckg-submit,body .ckg-page.ck-generator-studio .cm-submit{
  position:relative;overflow:hidden;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  width:100%;min-width:0!important;min-height:58px!important;margin:0!important;padding:9px 14px!important;
  border:3px solid #fff!important;border-radius:20px!important;
  background:linear-gradient(180deg,#ff63bc 0%,#e6007e 100%)!important;
  box-shadow:0 4px 0 #a8005a,0 12px 22px rgba(230,0,126,.3)!important;
  color:#fff!important;font:900 17px/1.15 'Outfit',sans-serif!important;letter-spacing:.01em;text-shadow:0 1px 0 rgba(0,0,0,.18);
  cursor:pointer;transform:none!important;transition:transform .12s,box-shadow .12s,filter .12s}
body .ckg-page .ckg-submit::before,body .ckg-page.ck-generator-studio .cm-submit::before{content:"";position:absolute;left:0;right:0;top:0;height:52%;background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0));border-radius:17px 17px 0 0;pointer-events:none}
body .ckg-page .ckg-submit:hover:not(:disabled),body .ckg-page.ck-generator-studio .cm-submit:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-2px)!important;box-shadow:0 6px 0 #a8005a,0 16px 26px rgba(230,0,126,.34)!important}
body .ckg-page .ckg-submit:active:not(:disabled),body .ckg-page.ck-generator-studio .cm-submit:active:not(:disabled){transform:translateY(3px)!important;box-shadow:0 1px 0 #a8005a,0 5px 10px rgba(230,0,126,.3)!important}
body .ckg-page .ckg-submit:disabled,body .ckg-page.ck-generator-studio .cm-submit:disabled{opacity:.72;filter:saturate(.8);cursor:wait}
/* texto / icono a la izquierda y total amarillo a la derecha */
body .ckg-page .ckg-submit>span:first-child,body .ckg-page .ckg-submit .exb-main{display:flex;align-items:center;justify-content:center;gap:10px;flex:0 1 auto;min-width:0;color:#fff!important}
body .ckg-page .ckg-submit .ck-generator-cost-button-total,body .ckg-page .ckg-submit [class*="-submit-cost"]{flex:0 0 auto;margin:0 0 0 auto!important;padding:6px 11px!important;border:2px solid #fff!important;border-radius:999px!important;background:#ffe066!important;box-shadow:0 2px 0 #d9a900!important;color:#103d82!important;font:800 12px/1 'Outfit',sans-serif!important;text-shadow:none!important;white-space:nowrap}
body #exSubmitBtn.ckg-submit .exb-ico{width:38px!important;height:38px!important;border-radius:13px!important}
body #exSubmitBtn.ckg-submit .exb-txt{font:900 18px/1.1 'Outfit',sans-serif!important}
body .ckg-page .ckg-submit svg,body .ckg-page.ck-generator-studio .cm-submit svg{flex:0 0 auto}
/* Examenes: el boton va dentro del resumen, a todo el ancho y sin quedar fijo */
body .ckg-page.ck-gs-wide form .ckg-submit{position:relative!important;width:100%!important;bottom:auto!important;margin:12px 0 0!important}
@media (max-width:700px){
  body .ckg-page .ckg-submit,body .ckg-page.ck-generator-studio .cm-submit{min-height:56px!important;font-size:16px!important;padding:8px 12px!important;border-radius:18px!important}
  body #exSubmitBtn.ckg-submit .exb-txt{font-size:17px!important}
  body #exSubmitBtn.ckg-submit .exb-ico{width:34px!important;height:34px!important}
  body .ckg-page .ckg-submit .ck-generator-cost-button-total,body .ckg-page .ckg-submit [class*="-submit-cost"]{padding:5px 9px!important;font-size:11.5px!important}
}

/* movil: boton a todo el ancho y en su sitio (sin recorte para el chat ni posicion fija) */
@media (max-width:700px){
  html body .ckg-page.ckg-page.ck-gs-skin form .ckg-submit{position:relative!important;bottom:auto!important;width:100%!important;margin:14px 0 0!important}
  html body .ckg-page.ckg-page.ck-generator-studio .cgs-submit-row{position:static!important;display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:14px 0 0!important;padding:14px 0 0!important;background:none!important;border-top:1px solid #d8e2ed}
  html body .ckg-page.ckg-page.ck-generator-studio .cm-submit{width:100%!important;flex:0 0 auto!important}
  html body .ckg-page.ckg-page.ck-generator-studio .cm-cost-banner{text-align:center}
  html body .ckg-page .ckg-submit>span:first-child{white-space:nowrap}
  html body .ckg-page{padding-bottom:84px!important}
}

/* Selector de paginas agregado por el JS (clase gs-stepper) */
body .ckg-page .gs-stepper{display:inline-flex!important;align-items:stretch;overflow:hidden;border:1px solid #cdd9e5;border-radius:11px;background:#fff;max-width:190px}
body .ckg-page .gs-stepper input[type=number]{order:2;flex:0 0 64px;width:64px!important;min-height:46px!important;height:46px!important;padding:0!important;border:0!important;border-left:1px solid #dbe3ed!important;border-right:1px solid #dbe3ed!important;border-radius:0!important;box-shadow:none!important;text-align:center;font:800 18px/1 'Outfit',sans-serif!important;color:#103d82;-moz-appearance:textfield;appearance:textfield}
body .ckg-page .gs-stepper input[type=number]::-webkit-inner-spin-button,body .ckg-page .gs-stepper input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body .ckg-page .gs-stepper button{order:1;flex:0 0 52px;width:52px!important;height:46px!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#f1f7ff!important;color:#103d82!important;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .12s}
body .ckg-page .gs-stepper button:last-of-type{order:3}
body .ckg-page .gs-stepper button:hover:not(:disabled){background:#ddeeff!important}
body .ckg-page .gs-stepper button:active:not(:disabled){background:#c9e3ff!important}
body .ckg-page .gs-stepper button:disabled{opacity:.35;cursor:default}
body .ckg-page .gs-stepper button .cgs-svg{width:20px;height:20px;stroke-width:2.4}
