/* ============ Base ============ */
:root {
  --simplicity-chat-bg: #ffffff;
  --simplicity-chat-text: #222;
  --simplicity-chat-accent: #001456;
  --simplicity-chat-accent-2: #319aa5;
  --simplicity-chat-shadow: 0 10px 30px rgba(0,0,0,0.18);
  --simplicity-chat-radius: 14px;
  --simplicity-chat-z: 999999; /* stay on top of most UI stacks */
  --simplicity-focus: 0 0 0 3px rgb(0 19 87);
}

ul {
    padding: 10px 12% 0px;
}

li {font-size:18px;}

.simplicity-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ============ Toggle Button ============ */
.simplicity-chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--simplicity-chat-z);
  width: 74px;
  height: 74px;
  line-height: 54px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid var(--simplicity-chat-accent-2);
  background: var(--simplicity-chat-accent);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  box-shadow: var(--simplicity-chat-shadow);
  transition: transform .15s ease, background .15s ease;
}
.simplicity-chat-toggle:hover,
.simplicity-chat-toggle:focus {
  background: var(--simplicity-chat-accent-2);
  outline: none;
  box-shadow: var(--simplicity-focus), var(--simplicity-chat-shadow);
}
.simplicity-chat-toggle:active { transform: scale(.98); }

/* ============ Chat Window ============ */
.simplicity-chat {
  position: fixed;
  right: 22px;
  bottom: 86px; /* sits above the toggle */
  z-index: var(--simplicity-chat-z);
  width: min(92vw, 360px);
  max-height: min(78vh, 640px);
  display: none; /* JS toggles to block */
  background: var(--simplicity-chat-bg);
  color: var(--simplicity-chat-text);
  border: 1px solid #e7e7e7;
  border-radius: var(--simplicity-chat-radius);
  box-shadow: var(--simplicity-chat-shadow);
  overflow: hidden;
}

/* Header */
.simplicity-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #f7f7f8;
  border-bottom: 1px solid #eee;
}
.simplicity-chat-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--simplicity-chat-accent);
}
.simplicity-chat-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
  color: #666;
}
.simplicity-chat-close:hover,
.simplicity-chat-close:focus {
  color: var(--simplicity-chat-accent);
  outline: none;
  box-shadow: var(--simplicity-focus);
}

/* Output area */
.simplicity-chat-output {
  padding: 12px;
  height: 100%;
  max-height: calc(min(78vh, 640px) - 48px - 54px); /* minus header/footer */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Footer spacer (reserved for future input) */
.simplicity-chat-footer {
  padding: 8px 12px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

/* ============ Message Bubbles ============ */
.bot-msg,
.user-msg {
  position: relative;
  display: inline-block;
  margin: 6px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.35;
}

.bot-msg {
  background: #f3f4f6;
  color: #222;
}

.user-msg {
  background: #e9f5ff;
  color: #0b3757;
}

/* ============ Action Buttons ============ */
.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chat-actions > button {
  appearance: none;
  border: 1px solid var(--simplicity-chat-accent);
  background: var(--simplicity-chat-accent);
  color: #fff;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.chat-actions > button:hover,
.chat-actions > button:focus {
  background: var(--simplicity-chat-accent-2);
  outline: none;
  box-shadow: var(--simplicity-focus);
}
.chat-actions > button:active { transform: translateY(1px); }

/* Links inside messages */
.simplicity-chat-output a {
  color: var(--simplicity-chat-accent);
  font-weight: 600;
  text-decoration: underline;
}
.simplicity-chat-output a:hover,
.simplicity-chat-output a:focus {
  color: var(--simplicity-chat-accent-2);
  outline: none;
}

/* ============ Responsive ============ */
@media (max-width: 420px) {
  .simplicity-chat {
    right: 12px;
    left: 12px;
    width: auto;
  }
  .simplicity-chat-toggle {
    right: 16px;
    bottom: 16px;
  }
}


/* === Injected by ChatGPT: Add icon to .simplicityChatTitle === */


#simplicityChatTitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.simplicity-chat-header h2::before {
    content: "";
    width: 48px;
    height: 48px;
    background-image: url(https://gosbc.net/wp-content/uploads/2026/02/chris.png);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    flex: 0 0 48px;
}
/* === End injection === */