html, body {
  background: transparent !important;
}

@font-face {
  font-family: 'Owners';
  src: url('fonts/owners-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Owners';
  src: url('fonts/owners-bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
body, button, input {
  font-family: 'Owners', sans-serif;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.diggs-green-bg {
  background-color: #64695E;
}
input:focus, button:focus, textarea:focus {
  border-color: #C5CEBA;
  outline-color: #6D635B;
  outline: 2px solid #6D635B;
  box-shadow: 0 0 0 2px #C5CEBA;
}

/* Override browser default focus styles */
textarea:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid #6D635B;
  border-color: #C5CEBA;
  box-shadow: 0 0 0 2px #C5CEBA;
}
.chat-bubble-bot {
  background-color: #F4EEE9;
  color: #191818;
}
.chat-bubble-you {
  background-color: #64695E;
  color: #FFFFFF;
}
.error-message {
  background-color: #EA4A26;
  color: #FFFFFF;
}
.text-color {
  color: #191818;
}
.chat-window {
  background-color: #ffff;
  border-width: thin;
}
@media (max-width: 768px) {
.chat-window {
    height: 70vh; /* 75% of the viewport height */
}
}
.rounded-bubble {
  border-radius: 24px;
}
.hover\:bg-green-700:hover {
  background-color: #4E524A;
}
#chat-container {
  max-width: 700px;
  margin: auto;
}
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 0;
}
.typing-indicator {
  display: flex;
  align-items: center;
}
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #64695E;
  margin-right: 4px;
  animation: typing-dot-animation 1.2s infinite;
}
.typing-dot:nth-child(1) {
  animation-delay: 0s;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing-dot-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #64695E;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.char-counter {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
  text-align: right;
}

.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  background-color: #fefefe;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content {
  padding: 20px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .modal {
    right: 20px;
    bottom: 20px;
    width: 400px;
    max-height: 600px;
    border-radius: 8px;
  }
}

/* Fullscreen functionality removed */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}
/* Fullscreen button removed */
.chat-bubble {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-color: #64695E;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
z-index: 9999;
border-radius: 8px;
}

.chat-bubble-icon {
width: 30px;
height: 30px;
object-fit: contain;
filter: brightness(0) invert(1);
}

.chat-bubble-bot {
font-family: 'Inter', sans-serif;
font-size: 16px;
line-height: 1.6;
}

.chat-bubble-bot h1, .chat-bubble-bot h2, .chat-bubble-bot h3, .chat-bubble-bot h4, .chat-bubble-bot h5, .chat-bubble-bot h6 {
margin-top: 1em;
margin-bottom: 0.5em;
}

.chat-bubble-bot h1 {
font-size: 24px;
}

.chat-bubble-bot h2 {
font-size: 20px;
}

.chat-bubble-bot h3 {
font-size: 18px;
}

.chat-bubble-bot ul, .chat-bubble-bot ol {
margin-top: 0.5em;
margin-bottom: 0.5em;
padding-left: 1.5em;
}

.chat-bubble-bot li {
margin-bottom: 0.3em;
}

.chat-bubble-bot ul, .chat-bubble-bot ol {
list-style-type: disc;
}

.chat-bubble-bot a {
  color: #64695E;
  text-decoration: underline;
}

/* Style for disclaimer links */
.text-gray-500 a {
  color: #64695E;
  text-decoration: underline;
}

/* Add proper paragraph spacing in bot responses */
.response-content p {
  margin-bottom: 1em;
}

/* Ensure the last paragraph doesn't have extra margin */
.response-content p:last-child {
  margin-bottom: 0;
}

/* Remove the default margin from the first paragraph to avoid extra space after 'Fido:' */
.response-content p:first-child {
  margin-top: 0;
}

/* Add spacing between different content blocks like lists */
.response-content > * + * {
  margin-top: 0.7em;
}

/* Preserve line breaks in pre-formatted text */
.chat-bubble-bot pre,
.chat-bubble-bot code {
  white-space: pre-wrap;
  margin: 0.5em 0;
}