.scc-chatbot {
  --scc-bg: #f4f1ea;
  --scc-surface: #fffdf8;
  --scc-surface-2: #F1F7F9;
  --scc-border: rgba(52, 64, 84, 0.12);
  --scc-text: #243042;
  --scc-muted: #667085;
  --scc-primary: #00558F;
  --scc-primary-hover: #115e59;
  --scc-primary-soft: rgba(15, 118, 110, 0.1);
  --scc-shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --scc-radius: 20px;

  color: var(--scc-text);
  font-family: inherit;
}

.scc-chatbot__shell {
  border: 1px solid var(--scc-border);
  overflow: hidden;
}

.scc-chatbot__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--scc-border);
}

.scc-chatbot__eyebrow {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scc-chatbot__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color:#00558F;
  line-height: 1.2;
}

.scc-chatbot__subtitle {
  margin: 0;
  color: var(--scc-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.scc-chatbot__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  min-height: 260px;
  max-height: 560px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.95));
}

.scc-chatbot__message {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.scc-chatbot__message--user {
  align-self: flex-end;
}

.scc-chatbot__message--assistant {
  align-self: flex-start;
}

.scc-chatbot__bubble {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--scc-border);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-size: 0.98rem;
}

.scc-chatbot__message--user .scc-chatbot__bubble {
  background: linear-gradient(180deg, rgba(115, 147, 174, 0.96), rgba(115, 147, 174, 0.96));
  color: #ffffff;
  border-color: transparent;
  border-bottom-right-radius: 6px;
}

.scc-chatbot__message--assistant .scc-chatbot__bubble {
  background: var(--scc-surface-2);
  color: var(--scc-text);
  border-bottom-left-radius: 6px;
}

.scc-chatbot__message--error .scc-chatbot__bubble {
  background: #fff5f5;
  border-color: rgba(220, 38, 38, 0.18);
  color: #991b1b;
}

.scc-chatbot__suggestion {
  margin-top: 6px;
}

.scc-chatbot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--scc-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.scc-chatbot__link:hover,
.scc-chatbot__link:focus {
  color: var(--scc-primary-hover);
  text-decoration: underline;
}

.scc-chatbot__form {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--scc-border);
  background: rgba(255, 255, 255, 0.8);
}

.scc-chatbot__input {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(52, 64, 84, 0.18);
  background: #ffffff;
  color: var(--scc-text);
  font: inherit;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
}

.scc-chatbot__input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: rgba(15, 118, 110, 0.45);
}

.scc-chatbot__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.scc-chatbot__button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--scc-primary);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.scc-chatbot__button:hover,
.scc-chatbot__button:focus {
  background: var(--scc-primary-hover);
  transform: translateY(-1px);
}

.scc-chatbot__button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.scc-chatbot__status {
  min-height: 1.2em;
  margin-top: 10px;
  color: var(--scc-muted);
  font-size: 0.9rem;
}

.scc-chatbot__status--loading {
  color: var(--scc-primary);
}

.scc-chatbot__status--success {
  color: #127a5a;
}

.scc-chatbot__status--error {
  color: #b42318;
}

.scc-chatbot.is-writing .scc-chatbot__messages::after {
  content: '';
  display: block;
  width: 110px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.25), rgba(15, 118, 110, 0.12));
  background-size: 200% 100%;
  animation: scc-pulse 1.1s ease-in-out infinite;
}

@keyframes scc-pulse {
  0% {
    background-position: 0% 50%;
    opacity: 0.55;
  }

  50% {
    background-position: 100% 50%;
    opacity: 1;
  }

  100% {
    background-position: 0% 50%;
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .scc-chatbot__header,
  .scc-chatbot__messages,
  .scc-chatbot__form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .scc-chatbot__messages {
    min-height: 220px;
    max-height: 460px;
  }

  .scc-chatbot__message {
    max-width: 100%;
  }
}
