#alc-root{--alc-color:#b8860b;position:fixed;bottom:20px;z-index:999999;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1f2328}
#alc-root.alc-pos-right{right:20px}
#alc-root.alc-pos-left{left:20px}
#alc-root *{box-sizing:border-box}
#alc-root [hidden]{display:none!important}
.alc-launch{position:relative;width:60px;height:60px;border-radius:50%;border:0;background:var(--alc-color);color:#fff;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;padding:0;transition:transform .15s}
.alc-launch:hover{transform:scale(1.06)}
.alc-pos-left .alc-launch{margin-right:auto}
.alc-pos-right .alc-launch{margin-left:auto}
.alc-is-closed .alc-launch{filter:grayscale(.35)}
.alc-badge{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;border-radius:10px;background:#d63638;color:#fff;font-size:12px;font-weight:700;line-height:20px;padding:0 5px}
.alc-panel{width:360px;max-width:calc(100vw - 32px);height:600px;max-height:calc(100vh - 110px);background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.25);margin-bottom:12px;display:flex;flex-direction:column;overflow:hidden}
.alc-head{background:var(--alc-color);color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:flex-start}
.alc-title{font-weight:700;font-size:16px}
.alc-sub{font-size:12px;opacity:.9}
.alc-x{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.alc-body{flex:1;overflow-y:auto;padding:14px;background:#f6f7f9}
.alc-msg{display:flex;flex-direction:column;margin-bottom:10px;max-width:85%}
.alc-me{margin-left:auto;align-items:flex-end}
.alc-agent{align-items:flex-start}
.alc-bubble{padding:9px 12px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word}
.alc-me .alc-bubble{background:var(--alc-color);color:#fff;border-bottom-right-radius:4px}
.alc-agent .alc-bubble{background:#fff;border:1px solid #e3e5e8;border-bottom-left-radius:4px}
.alc-time{font-size:11px;color:#8a8f98;margin-top:2px}
.alc-notice{background:#fff;border:1px solid #e3e5e8;border-radius:10px;padding:12px;margin-bottom:12px}
.alc-notice p{margin:0 0 8px}
.alc-notice-msg{font-weight:600}
.alc-phone a{color:var(--alc-color);font-weight:700}
.alc-hours{width:100%;border-collapse:collapse;font-size:12px;margin:0}
.alc-hours td{padding:3px 0;border:0;border-top:1px solid #f0f1f3;background:none}
.alc-hours td:first-child{font-weight:600;padding-right:8px;white-space:nowrap}
.alc-start{padding:12px;display:flex;flex-direction:column;gap:8px;border-top:1px solid #e3e5e8;background:#fff}
.alc-start input,.alc-start textarea,.alc-reply textarea{width:100%;border:1px solid #cfd3d8;border-radius:8px;padding:9px 10px;font:inherit;color:inherit;background:#fff;margin:0}
.alc-start button,.alc-reply button{background:var(--alc-color);color:#fff;border:0;border-radius:8px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer}
.alc-start button:disabled,.alc-reply button:disabled{opacity:.6}
.alc-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important}
.alc-reply{display:flex;gap:8px;padding:10px;border-top:1px solid #e3e5e8;background:#fff}
.alc-reply textarea{resize:none;min-height:40px;max-height:110px}
.alc-disc{font-size:11px;color:#6b7078;text-align:center;padding:6px 12px 8px;background:#fff}
.alc-row{display:flex;gap:8px}
.alc-row input{min-width:0}
.alc-start-intro{margin:0;font-size:13px;color:#50575e}
.alc-head{flex-shrink:0}
.alc-body{min-height:0}
.alc-x{width:40px;height:40px;margin:-8px -8px 0 0;display:flex;align-items:center;justify-content:center;border-radius:50%}
.alc-x:hover,.alc-x:focus-visible{background:rgba(255,255,255,.2)}

/* ---- Móvil: el chat ocupa toda la pantalla, con el botón de cerrar siempre visible ---- */
@media (max-width:600px){
	#alc-root{bottom:12px}
	#alc-root.alc-pos-right{right:12px}
	#alc-root.alc-pos-left{left:12px}
	#alc-root.alc-open .alc-launch{display:none}
	.alc-panel{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;border-radius:0}
	.alc-head{padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top))}
	.alc-x{width:48px;height:48px;font-size:34px;background:rgba(255,255,255,.18)}
	.alc-start{max-height:65%;overflow-y:auto;flex-shrink:0}
	.alc-disc{padding-bottom:max(8px,env(safe-area-inset-bottom))}
	/* 16px evita que el iPhone haga zoom al escribir */
	.alc-start input,.alc-start textarea,.alc-reply textarea{font-size:16px}
}
body.alc-lock{overflow:hidden!important}

