/* Asistente Sin Gluten · widget. Prefijo .asg- para no chocar con el tema/WooCommerce. */
#asg-chat-root { position: fixed; right: 20px; bottom: 20px; z-index: 99999; font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }

.asg-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; background: #2e7d32; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.asg-fab:hover { background: #276b2b; }

.asg-panel { width: 340px; max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

.asg-header { display: flex; align-items: center; justify-content: space-between; background: #2e7d32; color: #fff; padding: 12px 14px; }
.asg-title { font-weight: 600; font-size: 15px; }
.asg-close { background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

.asg-log { flex: 1; overflow-y: auto; padding: 12px; background: #f6f7f6; display: flex; flex-direction: column; gap: 8px; }

.asg-msg { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 14px; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap; }
.asg-bot { align-self: flex-start; background: #fff; border: 1px solid #e3e6e3; color: #1c1c1c; }
.asg-user { align-self: flex-end; background: #2e7d32; color: #fff; }
.asg-typing { opacity: .6; font-style: italic; }

.asg-options { display: flex; flex-wrap: wrap; gap: 6px; }
.asg-opt { background: #fff; border: 1px solid #2e7d32; color: #2e7d32; border-radius: 16px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.asg-opt:hover { background: #2e7d32; color: #fff; }

.asg-form { display: flex; border-top: 1px solid #e3e6e3; }
.asg-input { flex: 1; border: 0; padding: 12px; font-size: 14px; outline: none; }
.asg-send { border: 0; background: #2e7d32; color: #fff; padding: 0 16px; cursor: pointer; font-size: 14px; }
.asg-send:disabled { opacity: .6; cursor: default; }
