@font-face {
  font-family: 'Gotham';
  src: url('./font/gotham-rounded-book.otf') format('otf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:root {
  --chatbot-primary: #0d2a6a;
  --chatbot-primary-text: #fafafa;
  --chatbot-heading-text-color: #dfe8ff;
  --chatbot-bot-bg: #94e3b7;
  --chatbot-notification-text: #333333;
  --chatbot-bot-text: #444444;
  --chatbot-input-bg: #f5f8ff;
  --chatbot-input-text: #444444;
  --chatbot-input-placeholder: #a3a8b9;
  --chatbot-main-bg: #fafafa;
  --chatbot-divider-color: #dfe3ed;
  --chatbot-user-bg: #0d2a6a;
  --chatbot-user-text: #ffffff;
  --chatbot-user-border-color: #d0dafb;
  --chatbot-footer-background-color: #dfe8ff;
  --chatbot-scroll-background: #dfe8ff;
  --chatbot-scroll-thumb: #233a89;
  --chatbot-action-button-bg: #ffffff;
  --chatbot-action-button-border: #d0dafb;
  --chatbot-action-button-text-color: #233a89;
  --chatbot-footer-text-color: #2f333d;
  --chatbot-disabled-bg: #e8e8e8;
  --chatbot-disabled-text-color: #999999;
  --chatbot-disabled-border-color: #bbbbbb;
  --chatbot-secondary-color: #36A466;
}

#chatbot-widget-container * {
  box-sizing: border-box;
}

#chatbot-widget-container {
  position: fixed;
  bottom: 70px;
  right: 80px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
    'Helvetica Neue', sans-serif;
}

#chatbot-widget-container.left-position {
  left: 20px;
  right: auto;
}

#chatbot-widget {
  width: 402px;
  max-width: 402px;
  max-height: 600px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideInUp 0.3s ease-out;
}

#chatbot-widget.chatbot-open {
  display: flex;
}

.chatbot-header {
  background-color: var(--chatbot-primary);
  color: var(--chatbot-heading-text-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 24px;
  padding: 2px 0;
}

.chatbot-logo {
  height: 26px;
  width: 48px;
}

.chatbot-title {
  font-family: 'Gotham', sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  margin: 0;
  flex: 1;
}

.chatbot-minimize-btn {
  background: transparent;
  border: none;
  color: var(--chatbot-primary-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  min-width: 24px;
  padding: 0;
}

.chatbot-minimize-btn:hover {
  opacity: 0.8;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  background: var(--chatbot-main-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-messages .logo-wrapper {
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--chatbot-divider-color);
}

.chatbot-messages::-webkit-scrollbar {
  width: 7px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: var(--chatbot-scroll-background);
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--chatbot-scroll-thumb);
  border-radius: 3px;
}

.chatbot-message {
  display: flex;
  margin-bottom: 8px;
}

.chatbot-message.bot {
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
}

.chatbot-message.user {
  justify-content: flex-end;
}

.chatbot-message-bubble {
  max-width: calc(80% + 31px);
  padding: 12px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1px;
  word-wrap: break-word;
}

.chatbot-message.bot .chatbot-message-bubble {
  background-color: var(--chatbot-bot-bg);
  color: var(--chatbot-bot-text);
}

.chatbot-message.user .chatbot-message-bubble {
  background-color: var(--chatbot-user-bg);
  color: var(--chatbot-user-text);
  border: 1px solid var(--chatbot-user-border-color);
}

.chatbot-typing {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background-color: var(--chatbot-bot-bg);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  max-width: 80px;
}

.chatbot-typing.active {
  display: flex;
}

.chatbot-typing-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--chatbot-primary);
  border-radius: 50%;
  animation: typingAnimation 1.4s infinite;
}

.chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-8px);
  }
}

.chatbot-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  background: var(--chatbot-input-bg);
  padding: 6px 22px 12px 22px;
}

.chatbot-action-btn {
  flex: 1;
  padding: 5px 10px;
  background: var(--chatbot-action-button-bg);
  border: 1px solid var(--chatbot-action-button-border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1px;
  color: var(--chatbot-action-button-text-color);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}

.chatbot-action-btn:hover {
  border-color: darker(var(--chatbot-action-button-border), 5%);
  background: darker(var(--chatbot-action-button-bg), 5%);
}

.chatbot-action-btn:active {
  transform: translateY(1px);
}

.chatbot-input-area {
  background: var(--chatbot-input-bg);
  border-top: 1px solid var(--chatbot-divider-color);
  padding: 12px 22px;
}

.chatbot-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.chatbot-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--chatbot-input-text);
  outline: none;
}

.chatbot-input::placeholder {
  color: var(--chatbot-input-placeholder);
}

.chatbot-send-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border-radius: 50%;
}

.chatbot-send-btn:hover {
  background: var(--chatbot-disabled-bg);
}

.chatbot-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--chatbot-footer-background-color);
  padding: 8px 22px;
  gap: 12px;
  font-size: 12px;
}

.chatbot-powered-by {
  color: var(--chatbot-footer-text-color);
}

.chatbot-brand {
  font-weight: 700;
  color: var(--chatbot-primary);
  letter-spacing: 0.5px;
}

#chatbot-icon {
  width: 152px;
  height: 71px;
  display: flex;
  background-image: url(./img/widget_toggle_button.svg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  animation: scaleIn 0.3s ease-out;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#chatbot-icon:hover {
  transform: scale(1.05);
}

#chatbot-icon.hidden {
  display: none;
}

.chatbot-welcome-prompt {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--chatbot-secondary-color);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--chatbot-notification-text);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 99998;
}

.chatbot-welcome-prompt.visible {
  opacity: 1;
  transform: translateY(0);
}

.chatbot-welcome-prompt::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 101px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 8px solid #ffffff;
  z-index: 999;
}

.chatbot-welcome-prompt::before {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 100px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 9px solid var(--chatbot-secondary-color);
  z-index: 999;
}

#chatbot-widget-container.mobile-view .chatbot-welcome-prompt {
  right: -10px;
  max-width: calc(100vw - 40px);
  white-space: normal;
}

#chatbot-widget-container.mobile-view .chatbot-welcome-prompt::after,
#chatbot-widget-container.mobile-view .chatbot-welcome-prompt::before {
  right: 30px;
}

.chatbot-icon-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--chatbot-primary-text);
  letter-spacing: -1px;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.chatbot-list-choice-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.chatbot-list-choice-btn {
  text-align: left;
  padding: 5px 10px;
  background: var(--chatbot-primary-text);
  border: 1px solid var(--chatbot-action-button-border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--chatbot-primary);
  cursor: pointer;
  transition: all 0.2s;
  word-wrap: break-word;
  white-space: normal;
}

.chatbot-list-choice-btn:hover {
  background: darken(5%, var(--chatbot-primary-text));
  border-color: var(--chatbot-primary);
}

.chatbot-list-choice-btn:active {
  transform: translateY(1px);
}

.chatbot-list-choice-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--chatbot-disabled-bg);
  border-color: var(--chatbot-disabled-border-color);
  color: var(--chatbot-disabled-text-color);
}

.chatbot-yes-no-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 12px;
}

.chatbot-yes-no-btn {
  padding: 5px 10px;
  border: 1px solid var(--chatbot-primary);
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.1px;
  background: transparent;
  transition: background-color 0.2s;
}

.chatbot-yes-no-btn:hover {
  background-color: color-mix(in srgb, var(--chatbot-main-bg) 95%, black 5%);
}

.chatbot-yes-no-btn:active {
  background-color: color-mix(in srgb, var(--chatbot-main-bg) 90%, black 10%);
}

.chatbot-select-container {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.chatbot-select {
  padding: 5px 10px;
  border: 1px solid var(--chatbot-primary);
  border-radius: 4px;
  font-size: 12px;
  background: var(--chatbot-primary-text);
  color: var(--chatbot-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23233a89' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  min-width: 150px;
  transition: all 0.2s;
}

.chatbot-select:hover {
  border-color: var(--chatbot-primary);
  background-color: var(--chatbot-main-bg);
}

.chatbot-select:focus {
  outline: none;
  border-color: var(--chatbot-primary);
  box-shadow: 0 0 0 2px rgba(13, 42, 106, 0.1);
}

.chatbot-select option {
  padding: 8px 12px;
  background: var(--chatbot-user-text);
  color: var(--chatbot-primary);
  font-size: 12px;
  line-height: 1.5;
}

.chatbot-select option:checked {
  background: linear-gradient(var(--chatbot-action-button-border), var(--chatbot-action-button-border));
  background-color: var(--chatbot-primary-text);
  color: var(--chatbot-primary);
}

.chatbot-select option:hover {
  background-color: #f5f8ff;
  color: var(--chatbot-primary);
}

.chatbot-select option:disabled {
  color: var(--chatbot-input-placeholder);
  background-color: var(--chatbot-main-bg);
}

.chatbot-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--chatbot-disabled-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  border-color: var(--chatbot-disabled-border-color);
  color: var(--chatbot-disabled-text-color);
}

/* Date picker styles */
.chatbot-date-picker-container {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  position: relative;
}

.chatbot-custom-datepicker {
  position: relative;
  display: inline-block;
}

.chatbot-custom-datepicker-input {
  padding: 5px 32px 5px 10px;
  border: 1px solid var(--chatbot-primary);
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 20px;
  background: var(--chatbot-user-text) url('./img/clock_icon_chatbot.svg') no-repeat right 10px center;
  background-size: 17px 17px;
  color: var(--chatbot-input-placeholder);
  cursor: pointer;
  max-width: 120px;
  text-align: center;
}

.chatbot-custom-datepicker-input::placeholder {
  color: var(--chatbot-input-placeholder);
}

.chatbot-custom-datepicker-input:hover {
  border-color: var(--chatbot-primary);
  background-color: var(--chatbot-main-bg);
  background-image: url('./img/clock_icon_chatbot.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 17px 17px;
}

.chatbot-custom-datepicker-input:focus {
  outline: none;
  border-color: var(--chatbot-primary);
  box-shadow: 0 0 0 2px rgba(13, 42, 106, 0.1);
}

.chatbot-custom-datepicker-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--chatbot-disabled-bg);
  border-color: var(--chatbot-disabled-border-color);
  color: var(--chatbot-disabled-text-color);
}

.chatbot-datepicker-modal {
  display: none;
  position: fixed;
  z-index: 2147483647;
}

.chatbot-datepicker-modal.active {
  display: block;
}

.chatbot-datepicker-modal-content {
  background: var(--chatbot-user-text);
  border: 1px solid var(--chatbot-divider-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
  padding: 16px;
  min-width: 280px;
  transform: translateY(-10px);
}

.chatbot-datepicker-triangle {
  position: absolute;
  bottom: 3px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--chatbot-user-text);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
  z-index: 2147483646;
}

.chatbot-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.chatbot-datepicker-nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chatbot-primary);
  transition: background 0.2s;
  border-radius: 4px;
}

.chatbot-datepicker-nav-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.chatbot-datepicker-month-year {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--chatbot-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  font-family: 'Roboto', sans-serif;
}

.chatbot-datepicker-month-year:hover {
  background: rgba(0, 0, 0, 0.05);
}

.chatbot-datepicker-body {
  margin-bottom: 12px;
}

.chatbot-datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.chatbot-datepicker-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--chatbot-input-placeholder);
  padding: 4px;
}

.chatbot-datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.chatbot-datepicker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--chatbot-bot-text);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: 'Roboto', sans-serif;
}

.chatbot-datepicker-day:not(.empty):hover {
  background: var(--chatbot-main-bg);
  color: var(--chatbot-primary);
}

.chatbot-datepicker-day.empty {
  cursor: default;
  pointer-events: none;
}

.chatbot-datepicker-day.today {
  border: 2px solid var(--chatbot-secondary-color);
  font-weight: 600;
}

.chatbot-datepicker-day.selected {
  background: var(--chatbot-secondary-color);
  color: var(--chatbot-user-text);
  font-weight: 600;
}

.chatbot-datepicker-months,
.chatbot-datepicker-years {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chatbot-datepicker-month,
.chatbot-datepicker-year {
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--chatbot-bot-text);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

.chatbot-datepicker-month:hover,
.chatbot-datepicker-year:hover {
  background: var(--chatbot-main-bg);
  color: var(--chatbot-primary);
}

.chatbot-datepicker-month.current,
.chatbot-datepicker-year.current {
  background: var(--chatbot-secondary-color);
  color: var(--chatbot-user-text);
  font-weight: 600;
}

.chatbot-datepicker-clear-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--chatbot-divider-color);
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  color: var(--chatbot-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: underline;
}

.chatbot-datepicker-clear-btn:hover {
  background: var(--chatbot-main-bg);
  border-color: var(--chatbot-primary);
}

/* Time picker styles */
.chatbot-time-picker-container {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* Clock-timepicker component styles */
.chatbot-time-picker {
  --clock-timepicker-accent-color: var(--chatbot-primary);
  --clock-timepicker-font-family: inherit;
  --clock-timepicker-popup-size: 200px;
  --clock-timepicker-popup-border: 1px solid var(--chatbot-divider-color);
  --clock-timepicker-popup-border-radius: 8px;
  --clock-timepicker-popup-background: var(--chatbot-user-text);
  --clock-timepicker-popup-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
  --clock-timepicker-header-background: var(--chatbot-primary);
  --clock-timepicker-header-font-color: var(--chatbot-user-text);
  --clock-timepicker-button-color: var(--chatbot-primary);
  --clock-timepicker-button-ok-color: var(--chatbot-primary);
  --clock-timepicker-button-cancel-color: var(--chatbot-bot-text);
  --clock-timepicker-face-color: #eeeeee;
  --clock-timepicker-face-hover-color: #dddddd;
  --clock-timepicker-face-selection-color: var(--chatbot-primary);

  display: inline-block;
}

.chatbot-time-picker input {
  padding: 5px 32px 5px 10px;
  border: 1px solid var(--chatbot-primary);
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 20px;
  background: var(--chatbot-user-text) url('./img/clock_icon_chatbot.svg') no-repeat right 10px center;
  background-size: 17px 17px;
  color: var(--chatbot-input-placeholder);
  cursor: pointer;
  max-width: 80px;
}

.chatbot-time-picker input:hover {
  border-color: var(--chatbot-primary);
  background-color: var(--chatbot-main-bg);
}

.chatbot-time-picker input:focus {
  outline: none;
  border-color: var(--chatbot-primary);
  box-shadow: 0 0 0 2px rgba(13, 42, 106, 0.1);
  color: var(--chatbot-input-placeholder);
  background-color: var(--chatbot-user-text);
  background-image: url('./img/clock_icon_chatbot.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 17px 17px;
}

.chatbot-time-picker input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--chatbot-disabled-bg);
  border-color: var(--chatbot-disabled-border-color);
  color: var(--chatbot-disabled-text-color);
}

.chatbot-time-picker-custom-tabs {
  display: flex;
  background: var(--chatbot-user-text);
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.chatbot-time-picker-custom-tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
  font-family: 'Roboto', sans-serif;
}

.chatbot-time-picker-custom-tab:hover {
  background: rgba(0, 0, 0, 0.05);
}

.chatbot-time-picker-custom-tab.active {
  color: var(--chatbot-primary);
  text-decoration: none;
}

.chatbot-time-picker-popup-offset {
  transform: translateY(-10px) !important;
}

/* Authentication code styles */
.chatbot-auth-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.chatbot-auth-code-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.chatbot-auth-code-box {
  width: 48px;
  height: 48px;
}

.chatbot-auth-code-input {
  width: 100%;
  height: 100%;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 48px;
  border: 1px solid var(--chatbot-primary);
  border-radius: 4px;
  background: var(--chatbot-primary-text);
  color: #000000;
  outline: none;
  transition: all 0.2s;
}

.chatbot-auth-code-input:focus {
  border-color: var(--chatbot-secondary-color);
  box-shadow: 0 0 0 2px rgba(54, 164, 102, 0.2);
}

.chatbot-auth-code-input.error {
  border-color: #e74c3c;
  background-color: #ffe6e6;
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.chatbot-auth-code-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--chatbot-disabled-bg);
  border-color: var(--chatbot-disabled-border-color);
  color: var(--chatbot-disabled-text-color);
}

/* Auth buttons in input area (replacing input and send button) */
.chatbot-auth-resend-btn-input,
.chatbot-auth-confirm-btn-input {
  font-family: 'Roboto', sans-serif;
  line-height: 20px;
  letter-spacing: 0.1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  padding: 8px 16px;
}

.chatbot-auth-resend-btn-input {
  background: transparent;
  color: #7082C0;
  text-decoration: none;
  border: 1px solid #D0DAFB;
  margin-right: auto;
  font-size: 14px;
  font-weight: 400;
}

.chatbot-auth-resend-btn-input:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.chatbot-auth-confirm-btn-input {
  background: #233A89;
  color: var(--chatbot-primary-text);
  padding: 8px 16px;
  min-width: 80px;
  border: none;
  font-size: 12px;
  font-weight: 400;
}

.chatbot-auth-confirm-btn-input:hover {
  background: #1c2e6e;
}

.chatbot-auth-resend-btn-input:active,
.chatbot-auth-confirm-btn-input:active {
  transform: translateY(1px);
}

.chatbot-auth-resend-btn-input:disabled,
.chatbot-auth-confirm-btn-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--chatbot-disabled-bg);
  color: var(--chatbot-disabled-text-color);
}

/* Filterable select styles */
.chatbot-filterable-select-container {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.chatbot-filterable-select-wrapper {
  position: relative;
  width: 100%;
}

.chatbot-filterable-select-input {
  width: 100%;
  padding: 5px 10px;
  padding-right: 28px;
  border: 1px solid var(--chatbot-primary);
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.1px;
  background: var(--chatbot-primary-text);
  color: var(--chatbot-primary);
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  text-align: center;
}

.chatbot-filterable-select-input::placeholder {
  color: var(--chatbot-primary);
  font-weight: 700;
}

.chatbot-filterable-select-wrapper.open .chatbot-filterable-select-input {
  text-align: left;
}

.chatbot-filterable-select-wrapper.open .chatbot-filterable-select-input::placeholder {
  color: var(--chatbot-input-placeholder);
  font-weight: 400;
}

.chatbot-filterable-select-input:hover {
  background-color: color-mix(in srgb, var(--chatbot-primary) 95%, black 5%);
  background-color: var(--chatbot-main-bg);
}

.chatbot-filterable-select-input:focus {
  border-color: var(--chatbot-primary);
  box-shadow: 0 0 0 2px rgba(13, 42, 106, 0.1);
  cursor: text;
}

.chatbot-filterable-select-wrapper.open .chatbot-filterable-select-input {
  border-color: var(--chatbot-primary);
}

.chatbot-filterable-select-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--chatbot-disabled-bg);
  border-color: var(--chatbot-disabled-border-color);
  color: var(--chatbot-disabled-text-color);
}

.chatbot-filterable-select-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 12px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chatbot-filterable-select-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: var(--chatbot-primary);
}

.chatbot-filterable-select-wrapper.open .chatbot-filterable-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.chatbot-filterable-select-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--chatbot-primary-text);
  border: 1px solid var(--chatbot-user-border-color);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  padding: 5px 0;
}

.chatbot-filterable-select-wrapper.open .chatbot-filterable-select-dropdown {
  display: block;
}

.chatbot-filterable-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.chatbot-filterable-select-dropdown::-webkit-scrollbar-track {
  background: var(--chatbot-scroll-background);
}

.chatbot-filterable-select-dropdown::-webkit-scrollbar-thumb {
  background: var(--chatbot-scroll-thumb);
  border-radius: 3px;
}

.chatbot-filterable-select-option {
  padding: 5px 10px;
  margin: 0 5px 10px 5px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--chatbot-primary);
  cursor: pointer;
  transition: background-color 0.15s;
  word-wrap: break-word;
  white-space: normal;
  text-align: left;
}

.chatbot-filterable-select-option:last-child {
  margin-bottom: 0;
}

.chatbot-filterable-select-option:hover,
.chatbot-filterable-select-option.highlighted {
  background-color: color-mix(in srgb, var(--chatbot-main-bg) 95%, black 5%);
}

.chatbot-filterable-select-option.selected {
  background-color: var(--chatbot-action-button-border);
  font-weight: 500;
}

.chatbot-filterable-select-no-results {
  padding: 12px 10px;
  font-size: 12px;
  color: var(--chatbot-input-placeholder);
  text-align: center;
  font-style: italic;
}

/* Mobile view styles - applied via JS class instead of @media query for iframe support */
#chatbot-widget-container.mobile-view {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

#chatbot-widget-container.mobile-view #chatbot-widget {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: unset;
  border-radius: 0;
  box-shadow: none;
}

#chatbot-widget-container.mobile-view .chatbot-actions {
  flex-direction: column;
  gap: 8px;
}

#chatbot-widget-container.mobile-view .chatbot-action-btn {
  width: 100%;
  min-width: unset;
  flex: unset;
}

#chatbot-widget-container.mobile-view .chatbot-primary-btn {
  width: 100%;
}

#chatbot-widget-container.mobile-view #chatbot-icon {
  width: 93px;
  height: 71px;
  position: fixed;
  bottom: 16px;
  right: 16px;
  background-image: url(./img/widget_toggle_button_mobile.svg);
}

#chatbot-widget-container.mobile-view .chatbot-icon-text {
  font-size: 20px;
}

#chatbot-widget-container.mobile-view .chatbot-filterable-select-wrapper {
  min-width: 100%;
}

/* ========================================
   DEV ONLY: Settings UI - REMOVE BEFORE PRODUCTION
   ======================================== */

/* Restart Conversation Button */
.chatbot-restart-btn {
  background: transparent;
  border: none;
  color: var(--chatbot-heading-text-color);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.chatbot-restart-btn:hover {
  opacity: 0.8;
}

.chatbot-restart-btn img {
  width: 23px;
  height: 24px;
}

/* Settings Button */
.chatbot-settings-btn {
  background: transparent;
  border: none;
  color: var(--chatbot-heading-text-color);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  margin-left: auto;
}

.chatbot-settings-btn:hover {
  opacity: 0.8;
}

.chatbot-settings-btn svg {
  width: 20px;
  height: 20px;
}

/* Settings Modal */
.chatbot-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  align-items: center;
  justify-content: center;
}

.chatbot-modal.active {
  display: flex;
}

.chatbot-modal-content {
  background-color: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slideInUp 0.3s ease-out;
}

.chatbot-modal-header {
  background-color: var(--chatbot-primary);
  color: var(--chatbot-heading-text-color);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.chatbot-modal-close {
  background: transparent;
  border: none;
  color: var(--chatbot-heading-text-color);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.chatbot-modal-close:hover {
  opacity: 0.8;
}

.chatbot-modal-body {
  padding: 24px;
}

.chatbot-modal-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #444444;
}

.chatbot-modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--chatbot-user-border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--chatbot-input-text);
  background-color: var(--chatbot-input-bg);
  transition: border-color 0.2s ease;
}

.chatbot-modal-input:focus {
  outline: none;
  border-color: var(--chatbot-primary);
}

.chatbot-modal-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #666666;
}

.chatbot-modal-footer {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid var(--chatbot-divider-color);
}

.chatbot-modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.chatbot-modal-btn-cancel {
  background-color: #f5f5f5;
  color: #444444;
}

.chatbot-modal-btn-cancel:hover {
  background-color: #e8e8e8;
}

.chatbot-modal-btn-save {
  background-color: var(--chatbot-primary);
  color: var(--chatbot-primary-text);
}

.chatbot-modal-btn-save:hover {
  opacity: 0.9;
}

/* ======================================== END DEV ONLY ======================================== */

/* Chatbot Launch Status Screen */
.chatbot-launch-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 24px;
}

.chatbot-launch-logo {
  width: 160px;
  height: auto;
  margin-bottom: 32px;
}

.chatbot-launch-logo img {
  width: 100%;
  height: auto;
}

.chatbot-launch-title {
  font-family: 'Gotham', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--chatbot-primary);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.chatbot-launch-message {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}
