/* css/ask.css
   Self-contained styling for the "Ask a question" widget. Hardcoded colors
   (not CSS variables from styles.css) matching AL_DIALOG_CSS in shared.js,
   since some pages (e.g. rate-card.html) don't load css/styles.css at all. */

#askWidget {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9998;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#askWidget .ask-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #8c2f2f;
  background: #8c2f2f;
  color: #fffaf3;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43,35,32,.25);
}
#askWidget .ask-toggle:hover { background: #7a2828; }

#askWidget .ask-panel {
  position: absolute;
  bottom: 54px;
  left: 0;
  width: 320px;
  max-height: 420px;
  background: #fffaf3;
  border: 1px solid #e2cfae;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#askWidget .ask-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fbf1e2;
  border-bottom: 1px solid #e2cfae;
  color: #8c2f2f;
  font-size: 13px;
  font-weight: 700;
}
#askWidget .ask-close {
  border: none;
  background: transparent;
  color: #8a7458;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
#askWidget .ask-close:hover { color: #3a2a1e; }

#askWidget .ask-history {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  min-height: 80px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#askWidget .ask-empty {
  color: #8a7458;
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
}

#askWidget .ask-msg {
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 8px;
  max-width: 88%;
  white-space: pre-wrap;
}
#askWidget .ask-msg-user {
  align-self: flex-end;
  background: #8c2f2f;
  color: #fffaf3;
  border-bottom-right-radius: 2px;
}
#askWidget .ask-msg-bot {
  align-self: flex-start;
  background: #fbf1e2;
  color: #3a2a1e;
  border: 1px solid #e2cfae;
  border-bottom-left-radius: 2px;
}

#askWidget .ask-input-row {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #e2cfae;
  background: #fffaf3;
}
#askWidget .ask-input-row input {
  flex: 1;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #e2cfae;
  border-radius: 6px;
  background: #fbf1e2;
  color: #3a2a1e;
  font-size: 13px;
  font-family: inherit;
}
#askWidget .ask-input-row input:focus {
  outline: none;
  border-color: #8c2f2f;
}
#askWidget .ask-send {
  background: #f3ddd8;
  color: #8c2f2f;
  border: 1px solid #8c2f2f;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#askWidget .ask-send:hover { background: #eccac4; }
#askWidget .ask-send:disabled,
#askWidget .ask-input-row input:disabled { opacity: .6; cursor: default; }
