/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
  --main-color: #E8E8E8;
  --hover-color: #D6D6D6;
  --toggler-gradient-start: #E8E8E8;
  --toggler-gradient-end: #E8E8E8;
  --chat-header-bg: var(--main-color);
  --chat-header-color: #222;
  --main-text-color: #222;
  --message-bg-color: #1A1A1A;
  --message-text-color: #FFFFFF;
  --secondary-color: #5B6770;
  --surface-color: #fff;
  --muted-surface-color: #f2f2f2;
  --agent-message-bg: #E5E7E8;
  --customer-message-bg: #F3F3F3;
  --chat-message-text-color: #1A1A1A;
  --chat-message-font-family: 'Poppins', sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.chatbot-toggler {
  position: fixed;
  bottom: 0px;
  right: 0px;
  outline: none;
  border: none;
  height: 48px;
  width: 48px;
  display: flex;
  cursor: pointer;
  align-items: center;
  padding: 0 12px;
  border-radius: 24px 24px 4px 24px;
  background: linear-gradient(135deg, var(--toggler-gradient-start), var(--toggler-gradient-end));
  box-shadow: 0 6px 18px rgba(17, 24, 39, .16);
  transition: border-radius 0.24s ease;
  overflow: visible;
}

body.chatbot-ui-loading .chatbot-toggler,
body.chatbot-ui-loading .chatbot,
body.chatbot-ui-loading .chatbot-textbox,
body.chatbot-ui-loading .mobile-banner {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.chatbot-mobile-disabled .chatbot-toggler,
body.chatbot-mobile-disabled .chatbot,
body.chatbot-mobile-disabled .chatbot-textbox,
body.chatbot-mobile-disabled .mobile-banner {
  display: none !important;
}

.chatbot-toggler:hover {
  width: 48px;
}
.chatbot-toggler-hover-suppressed .chatbot-toggler:hover {
  width: 48px;
}
/* Override the hover effect when body.show-chatbot is active */
body.show-chatbot .chatbot-toggler:hover {
  width: 48px; /* Or set it to whatever width you want when show-chatbot is active */
}

/* Remove position: absolute from this selector */
.chatbot-toggler span {
  color: #fff;
  transition: transform 0.2s ease-in-out;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child  {
  opacity: 0;
  transform: rotate(90deg); /* Rotate the first symbol 90 degrees */
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
  transform: rotate(0deg);
}

/* Hover text styling */
.chatbot-toggler-message {
  display: none;
  color: var(--chat-header-color);
  font-size: 12px;
  white-space: nowrap;
  margin-left: 10px; /* Spacing between the icon and the text */
  opacity: 0; /* Hidden initially */
  transform: translateX(-10px); /* Slide effect */
  transition: opacity 0.2s ease 0.04s, transform 0.24s ease;
}

/* Reveal message text only on hover */
.chatbot-toggler:hover .chatbot-toggler-message {
  opacity: 0;
  transform: translateX(-10px);
}
.chatbot-toggler-hover-suppressed .chatbot-toggler:hover .chatbot-toggler-message {
  opacity: 0;
  transform: translateX(-10px);
}
body.show-chatbot .chatbot-toggler:hover .chatbot-toggler-message{
  opacity: 0; /* Or set it to whatever width you want when show-chatbot is active */
}
body.show-chatbot .chatbot-toggler:hover .toggler-indicator{
  opacity: 0; /* Or set it to whatever width you want when show-chatbot is active */
}
/* Reveal message text only on hover */
.chatbot-toggler:hover .toggler-indicator {
 display: none;
}
.chatbot-toggler-hover-suppressed .chatbot-toggler:hover .toggler-indicator {
 display: none;
}

/* Chat icon styling */
.chat-icon {
  font-size: 26px;
  transform: scaleX(-1);
  align-items: center;
  vertical-align: center;
}

/* Common styling for both icons */
.chatbot-toggler .chat-icon,
.chatbot-toggler .material-symbols-outlined {
  font-size: 26px;
  color: #fff;
  position: absolute; /* Position icons absolutely to overlap */
  right: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}


.chatbot-textbox {
  position: fixed;
  right: 0;
  bottom: 58px;
  width: 300px;
  max-width: none;
  margin: 0;
  background: linear-gradient(145deg, #fff 0%, #fbfcfd 100%);
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 18px 18px 6px 18px;
  box-shadow:
    0 8px 22px rgba(17, 24, 39, .075),
    0 1px 4px rgba(17, 24, 39, .035);
  font-size: 12px;
  color: #20242a;
  white-space: normal;
  transform-origin: bottom right;
  animation: chatbot-textbox-enter .28s cubic-bezier(.22, 1, .36, 1) both;
}

.chatbot-textbox::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-right: 1px solid rgba(17, 24, 39, .08);
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  background: #fbfcfd;
  transform: rotate(45deg);
  border-radius: 0 0 3px 0;
}

@keyframes chatbot-textbox-enter {
  from {
    opacity: 0;
    transform: translateY(7px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.textbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  color: #77808c;
  cursor: pointer;
  font-weight: 400;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: color .16s ease, background-color .16s ease;
}

/* Optional: style for hover effect on the close button */
.textbox-close:hover {
  color: #20242a;
  background: #eef0f3;
}



/* Hide the text box when the chatbot is open */
body.show-chatbot .chatbot-textbox {
  display: none;
}




.chatbot {
  position: fixed;
  right: 35px;
  bottom: 60px;
  width: calc(100vw - 40px); /* Adjust the subtraction value as needed */
  height: calc(100vh - 68px);
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(14px);
  transform-origin: bottom right;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.05), 0 4px 6px -3px rgba(0, 0, 0, 0.3);
  transition:
    opacity .18s ease,
    transform .26s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear .26s;
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .05s, 0s, 0s;
}
.chatbot header {
  padding: 18px 0;
  position: relative;
  z-index: 20;
  color: var(--chat-header-color);
  background: var(--chat-header-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chatbot-content {
  position: absolute;
  top: 88px;
  left: 0;
  right: 0;
  bottom: 92px;
  overflow: hidden;
}

.chatbot-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: min(210px, calc(100% - 170px));
  max-height: 35px;
  object-fit: contain;
}

/* These source logos are dark; normalize them for the shared dark header. */
.chatbot-logo--dark-asset {
  filter: grayscale(1) brightness(0) invert(1);
}

.chatbot-logo--ddb {
  max-width: 220px;
  max-height: 48px;
}

.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  /*display: none;*/
  cursor: pointer;
  transform: translateY(-50%);
}
header h2 {
  font-size: 1.4rem;
}
.chatbot .chatbox {
  overflow-y: auto;
  scrollbar-width: thin;
  height: 100%;
  box-sizing: border-box;
  padding: 25px 20px 24px;
  background-color: var(--surface-color);
}

.chatbot-textbox-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding-right: 24px;
  color: #171a1f;
  font-size: 12.5px;
  font-weight: 600;
}

.chatbot-textbox-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 10px;
}

#chatbot-textbox-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatbot-textbox-heading .online-indicator {
  position: static;
  width: 7px;
  height: 7px;
  margin: 0;
}

.chatbot-textbox p {
  margin: 0;
  color: #626b77;
  font-size: 10.75px;
  line-height: 1.55;
}

.chatbot-quick-input {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 5px 5px 5px 12px;
  border: 1px solid #e1e4e8;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .045);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.chatbot-quick-input:focus-within {
  border-color: var(--main-color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--main-color) 20%, transparent),
    0 4px 12px rgba(17, 24, 39, .06);
}

.chatbot-quick-input textarea {
  min-width: 0;
  flex: 1;
  height: 32px;
  max-height: 32px;
  padding: 7px 0;
  border: 0;
  outline: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 10.75px;
  line-height: 18px;
}

.chatbot-quick-input textarea::placeholder {
  color: #9299a3;
}

.chatbot-quick-input button {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--toggler-gradient-start), var(--toggler-gradient-end));
  color: #fff;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease;
}

.chatbot-quick-input button:hover {
  background: linear-gradient(135deg, var(--toggler-gradient-start), var(--toggler-gradient-end));
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.chatbot-quick-input button .material-symbols-rounded {
  font-size: 18px;
}

.chat-history-loading {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #8a8d91;
  font-size: 13px;
  background: var(--surface-color);
}

.chat-history-loading-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(31, 31, 31, .12);
  border-top-color: var(--main-color);
  border-radius: 50%;
  animation: chat-history-loading-spin .8s linear infinite;
}

@keyframes chat-history-loading-spin {
  to { transform: rotate(360deg); }
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}
.chatbox .chat {
  display: flex;
  list-style: none;
  width: 100%;
}
.chatbox .outgoing {
  margin: 20px 0;
  justify-content: flex-end;
}

/* The first live customer message is inserted directly after the wrapped
   welcome message. Remove its extra top margin so this gap matches history. */
#chat-messages > [data-initial-message="true"] + li.chat.outgoing {
  margin-top: 0;
}
/*.chatbox .incoming span {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-end;
  background: var(--main-color);
  border-radius: 4px;
  margin: 0 10px 7px 0;
}*/
.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: var(--chat-message-text-color);
  font-size: 13px;
  background: var(--customer-message-bg);
  line-height: 1.5;
}

/*.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}*/

.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}
.chatbox .incoming p {
  color: var(--chat-message-text-color);
  background: var(--agent-message-bg);
  border-radius: 10px 10px 10px 0;
}
.chatbot .chat-input {
  display: flex;
  gap: 0px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--surface-color);
  padding: 10px 16px 28px 16px;
  align-items: center;
}

.chat-input textarea {
  height: 48.2px; /* 5% of the viewport height */
  width: 100%;
  border: 1px solid transparent; /* Initial border */
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 13px 40px 13px 15px;
  font-size: 12px; /* 2% of the viewport width */
  background-color: var(--muted-surface-color); /* Brand-specific subtle surface */
  border-radius: 15px; /* Make it a bubble */
  transition: background-color 0.3s ease-in-out, 
              transform 0.3s ease-in-out,
              border-color 0.3s ease-in-out;
  overflow-y: auto; /* Enable vertical scrolling */
  scrollbar-width: thin;
  scrollbar-color: #888 #f3f3f3;
}

.chat-input textarea::-webkit-scrollbar {
  width: 4px; /* Width of the scrollbar */
  margin-right: 5px; /* Move the scrollbar slightly to the right */
}

.chat-input textarea::-webkit-scrollbar-track {
  background: #f3f3f3; /* Match the textarea background */
  border-radius: 0 15px 15px 0; /* Round the right corners */
}

.chat-input textarea::-webkit-scrollbar-thumb {
  background: #888; /* Color of the scrollbar thumb */
  border-radius: 10px; /* Round the scrollbar thumb */
}

.chat-input textarea:focus {
  background-color: #f8f8f8;
  border-color: var(--chat-header-bg); /* Highlighted border color */
  transform: scale(1.01); /* Slightly enlarge on focus */
}

.chat-input textarea:active {
  background-color: var(--surface-color);
  transform: scale(1.01); /* Slightly reduce size on active */
}

.chat-input textarea:focus::placeholder {
  opacity: 0;
  transition: opacity 0.25s ease; /* Only transition the opacity */
}



.chat-input span {
  position: absolute;
  right: 28px;
  color: #848484;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 1.2em;
  height: 1.2em;
  transition: color 0.2s ease;
  z-index: 1; /* Ensure the span is above the pseudo-element */
  line-height: 1; 
}

.chat-input span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
  transform: translate(-50%, -50%) scale(0);
  z-index: -1; /* Place the pseudo-element behind the span content */
}

.chat-input span:hover::before {
  transform: translate(-50%, -50%) scale(1.75);
  background-color: #eceaea;
  
}

.chat-input span:active::before {
  transform: translate(-50%, -50%) scale(1.6);
  background-color: rgba(0, 73, 120, 0.1);
}

.chat-input span:active {
  color: var(--main-color);
}

.chat-input span:hover {
  color: var(--main-color);
}



#chat-messages li {
  list-style-type: none; /* Removes the default list item marker */
  padding: 0; /* Adjusts padding as needed for your design */
  margin-bottom: 15px;
}

#chat-messages li.customer-message {
  margin-bottom: 15px;
}

.message-container.has-delivery-status > li.customer-message {
  margin-bottom: 0;
}
/* Styles for customer messages */
.chatbox .customer-message {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.chatbox .customer-message p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: var(--chat-message-text-color);
  background: var(--customer-message-bg);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Styles for agent messages */
.chatbox .agent-message {
  display: flex;
  margin-bottom: 15px;
  justify-content: flex-start;
}

.chatbox .agent-message p {
  font-family: var(--chat-message-font-family);
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 10px 0;
  max-width: 75%;
  color: var(--chat-message-text-color);
  background: var(--agent-message-bg);
  font-size: 13px;
  line-height: 1.5;
}
.agent-favicon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  align-self: flex-end; /* Aligns the icon at the bottom of the flex container */
  border-radius: 5px; /* rounded edges */
}

.flag-emoji {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.14em;
}



.modal {
  display: none;
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 50% auto; /* Adjust this to change the vertical position */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* You might want to adjust this for better mobile responsiveness */
  text-align: center;
}


#signUpForm {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 20px 20px;
  height: calc(75vh - 60px); /* Adjust for header height */
}

.form-scroll-area {
  width: 100%;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 5px; /* Space above the button */
  max-height: calc(100% - 100px); /* Adjust this value to leave space for the button */
}

#signUpForm input[type="text"],
#signUpForm input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

#signUpForm #userMessage {
  width: 100%;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

#signUpForm #userMessage {
  height: 100px; /* Fixed height for the message area */
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
  white-space: pre-wrap;
}

#signUpForm label {
  width: 100%;
  margin-bottom: 5px;
  font-size: 1rem;
  text-align: left;
  color: #fff;
  display: block;
}

#startChatBtn {
  padding: 10px 20px;
  background-color: var(--main-color);
  color: #222;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
  margin-top: auto; /* Push the button to the bottom */
}

#startChatBtn:hover {
  background-color: var(--hover-color);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 10px 10px;
  height: 100%; /* Ensure full height of header */
}

.left-section, .right-section {
  flex: 1; /* Both sections take equal space */
  display: flex;
  align-items: center;
}

.left-section {
  justify-content: flex-start; /* Aligns content to the left */
  margin-left: 7.5px;
}

.right-section {
  justify-content: flex-end; /* Aligns content to the right */
  margin-right: 7.5px;
}

.livechat-header {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--chat-header-color);
}

  .online-indicator {
    position: relative;
    width: 10px;
    height: 10px;
    justify-content: center;
    margin-left: 7.5px;
    border-radius: 50%;
    background-color: var(--chat-header-color);
    border: 1px solid var(--chat-header-color);
  }

    /* Specific styles for the toggler indicator */
.toggler-indicator {
  display: none;
  /* Additional or overriding styles for toggler */
}
  
  .online-indicator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--chat-header-color);
    transform: translate(-50%, -50%) scale(1);
    animation: ring-animation 1.25s infinite;
    pointer-events: none;
  }
  /* 1) Hide on mobile whenever the chat is closed */
.mobile-device .online-indicator {
  display: none !important;
}

/* 2) If body has .mobile-device AND .show-chatbot, show it again */
.mobile-device.show-chatbot .online-indicator {
  display: block !important;
}
  
  @keyframes ring-animation {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -50%) scale(2);
      opacity: 0;
    }
  }

#new-session-btn {
  padding: 10px 20px;
  background-color: var(--main-color); /* Use the chatbot theme color */
  color: #222;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
}

#new-session-btn:hover {
  background-color: var(--hover-color); /* A darker shade for hover state */
}

.message-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  word-wrap: break-word; /* Ensure long words break and wrap to the next line */
  overflow-wrap: break-word; /* Ensure long words break and wrap to the next line */
  line-height: 1.5; /* Adjust line height for better alignment */
}


/* CSS for the loading indicator itself */
.loading-indicator {
  display: none;
  font-size: 11px;
  color: #888; /* A less prominent color */
  line-height: 1.2;
  align-self: flex-end;
  margin: -10px 6px 0 0;
}

.loading-indicator.is-visible {
  display: block;
}

.agent-favicon {
  width: 30px; /* Set the width of the icon */
  height: 30px; /* Set the height of the icon */
  margin-right: 10px; /* Adds some space between the icon and the text */
  align-self: flex-end; /* Aligns the icon at the bottom of the flex container */
  border-radius: 5px; /* Rounded edges */
}

#chatbot-iframe {
  position: fixed;
  bottom: 30px;
  right: 35px;
  width: 50px;
  height: 50px;
  z-index: 1000;
  border: none;
}

.no-personal-info {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  background: var(--surface-color);
  color: #a0a0a0;
  position: absolute;
  bottom: 82px;
  left: 50%;
  z-index: 11;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
  font-style: italic;
}

.no-personal-info p {
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 350px) {
  .no-personal-info {
    font-size: 8.5px;
  }
}
/* Additional media query for mobile devices */
.mobile-device .chatbot {
  position: fixed;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1), 0 8px 12px -6px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.mobile-device .chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: var(--chat-message-text-color);
  font-size: 14px;
  background: var(--customer-message-bg);
  line-height: 1.5;
}

.mobile-device .chatbox .incoming p {
  color: var(--chat-message-text-color);
  background: var(--agent-message-bg);
  border-radius: 10px 10px 10px 0;
}

.mobile-device .chatbox .agent-message p {
  font-family: var(--chat-message-font-family);
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 10px 0;
  max-width: 75%;
  color: var(--chat-message-text-color);
  background: var(--agent-message-bg);
  font-size: 14px;
  line-height: 1.5;
}

.mobile-device .chatbox .customer-message p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: var(--chat-message-text-color);
  background: var(--customer-message-bg);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Keep initial/reloaded agent messages identical to live incoming messages. */
.chatbox .agent-message p,
.chatbox .incoming p,
.mobile-device .chatbox .agent-message p,
.mobile-device .chatbox .incoming p {
  font-family: var(--chat-message-font-family);
  color: var(--chat-message-text-color);
  background: var(--agent-message-bg);
}

/* Outgoing messages always use the light chat-bubble variant. */
.chatbox .outgoing p,
.chatbox .customer-message p,
.mobile-device .chatbox .outgoing p,
.mobile-device .chatbox .customer-message p {
  font-family: var(--chat-message-font-family);
  color: var(--chat-message-text-color);
  background: var(--customer-message-bg);
}

.mobile-device .system-message {
  display: flex;
  justify-content: flex-start;
  max-width: 75%; /* Align width calculation */
  background: var(--agent-message-bg);
  color: var(--chat-message-text-color);
  font-family: var(--chat-message-font-family);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px; /* Adds more space above and below each message */
}


.mobile-device .chatbot header {
  padding: 20px 0;
}

.mobile-device .chatbot-content {
  top: 90px;
  bottom: 122px;
}

.mobile-device .header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  position: relative;
}

.mobile-device .online-indicator {
    position: relative;
    width: 10px;
    height: 10px;
    justify-content: center;
    margin-left: 7.5px;
    border-radius: 50%;
    background-color: var(--chat-header-color);
    border: 1px solid var(--chat-header-color);
}

.mobile-device .left-section,
.mobile-device .right-section {
  flex: 0 0 auto;
  width: auto;
}

.mobile-device .chatbot-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: min(180px, calc(100% - 150px));
  max-height: 44px;
  object-fit: contain;
}

.mobile-device .chatbot-logo[src*="fuldlogo"] {
  max-height: 52px;
}

.mobile-device .livechat-header {
  font-size: 14px;
}

.mobile-device .online-indicator {
  width: 8px;
  height: 8px;
}

.mobile-device .dropdown-toggle {
  font-size: 15px;
}

.mobile-device .dropdown-menu {
  right: 0;
  left: auto;
}

.mobile-device header h2 {
  font-size: 1.2rem;
}

.mobile-device body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}

.mobile-device .chatbot-toggler span {
  color: #fff;
  position: absolute;
}

.mobile-device .chatbot-toggler span:last-child,
.mobile-device body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

.mobile-device body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}

.mobile-device .chat-input textarea {
  height: 48.2px; /* 5% of the viewport height */
  width: 100%;
  border: 1px solid transparent; /* Initial border */
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 13px 40px 13px 15px;
  font-size: 16px; /* 2% of the viewport width */
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; /* Fonts that look smaller */
  background-color: var(--muted-surface-color); /* Brand-specific subtle surface */
  border-radius: 15px; /* Make it a bubble */
  transition: background-color 0.3s ease-in-out, 
              transform 0.3s ease-in-out,
              border-color 0.3s ease-in-out;
  overflow-y: auto; /* Enable vertical scrolling */
  scrollbar-width: thin;
  scrollbar-color: #888 #f3f3f3;
  -webkit-text-size-adjust: 100%; /* Prevent auto zoom */
  text-size-adjust: 100%;
}

.mobile-device .chatbot .chatbox {
  padding: 20px 15px 24px; 
  height: 100%;
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch; 
  scroll-behavior: smooth; 
}

.mobile-device .chat-input {
  padding: 14px 10px;
  bottom: 12px;
}

.mobile-device .chat-input textarea:focus {
  background-color: #f8f8f8;
  border-color: var(--chat-header-bg); /* Highlighted border color */
  transform: scale(1.01); /* Slightly enlarge on focus */
}

.mobile-device .chat-input span {
  position: absolute;
  font-size: 1.2rem;
  right: 30px; /* 3% of the viewport width */
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-device .cendo-powered-by {
  opacity: 1;
  padding: 3px 0; /* Padding for spacing */
}

.mobile-device .suggested-questions-container button {
  font-size: 10px;
  font-family: var(--chat-message-font-family);
  line-height: 1.5;
}


.feedback-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 5px 0;
}

.feedback-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  background-color: transparent; /* Remove the background color */
  position: relative;
}

.feedback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feedback-content p {
  margin: 0 0 5px;
  font-size: 0.8em; /* Smaller font size for the text */
  color: #a0a0a0;
}

.emoji-buttons {
  display: flex;
  justify-content: center;
}

.emoji-buttons button {
  background: none;
  border: none;
  font-size: 1.5em; /* Keep emojis large */
  cursor: pointer;
  margin: 0 5px;
  transition: transform 0.2s;
}

.emoji-buttons button:hover {
  transform: scale(1.2);
}

.close-btn-feedback {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
}

.skip-button {
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.8em;
  border-radius: 5px;
  background-color: transparent; /* Remove the background color */

}

.skip-button:hover {
  transform: scale(1.2);
}

.confirmation-message {
  font-size: 0.75rem; /* Smaller font size */
  color: #666; /* Lighter color for confirmation message */
  text-align: center; /* Center the text */
  padding: 8px 0; /* Reduced padding for a more compact look */
  background: transparent; /* No background color */
  border: none; /* No border */
  width: 100%;
}


#message-counter {
  position: absolute;
  top: 0px; /* Adjust as needed */
  right: 0px; /* Adjust as needed */
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  z-index: 10; /* Ensure it appears above other elements */
  display: none; /* Initially hidden */

  /* Center the content */
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-flex;
  margin-right: 34px;
  width: 36px;
  height: 36px;
}

.dropdown-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--chat-header-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dropdown-toggle::before {
  content: "•••";
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
  color: currentColor;
  transform: translateY(-1px);
}

/* Hide original content */
.dropdown-toggle > * {
  visibility: hidden; /* Hide original button content */
}

/* Hover effect for the toggle button */
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible,
.close-btn-header:hover,
.close-btn-header:focus-visible {
  background: #2f2f2f;
  outline: none;
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  background-color: #fff; /* Light gray background */
  border-radius: 8px; /* Rounded corners */
  min-width: 150px; /* Increased minimum width for menu items */
  padding: 8px 0; /* Vertical padding for the dropdown container */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  z-index: 100;
  right: 0;
}

/* Menu items */
.dropdown-menu button {
  width: 100%;
  border: 0;
  color: #333; /* Dark text color */
  padding: 12px 16px; /* Adequate padding for spacing */
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  display: block;
  background-color:#fff; /* White background for items */
  transition: background-color 0.3s ease; /* Smooth transition on hover */
  white-space: nowrap; /* Prevent text from wrapping */
  cursor: pointer;
}

.dropdown-menu #clear-conversation-label {
  position: static;
  display: block;
  color: #222 !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.4;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
  cursor: pointer;
}

/* Hover effect */
.dropdown-menu button:hover,
.dropdown-menu button:focus-visible {
  background-color: #f6f6f6; /* Slight gray hover effect */
  outline: none;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown animation */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px); /* Slide from top */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* Position in place */
  }
}


/* ———————————————
   Chatbot Footer (privacy + powered-by)
   ——————————————— */
.chatbot-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--surface-color);      /* match your watermark bg */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: rgba(0, 0, 0, 0.6);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 10;                    /* sit above chat content */
}
.chatbot-footer:hover {
  opacity: 1;
}

/* Privacy link */
.chatbot-footer .privacy-link {
  margin: 0 6px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.chatbot-footer .privacy-link:hover {
  text-decoration: underline;
  color: rgba(0, 0, 0, 0.8);
}

/* Separator dot */
.chatbot-footer .footer-separator {
  margin: 0 6px;
  color: rgba(0, 0, 0, 0.4);
  user-select: none;
}

/* Powered-by link */
.chatbot-footer .powered-by {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, color 0.2s ease;
}
.chatbot-footer .powered-by:hover {
  transform: scale(1.1);
  color: rgba(0, 0, 0, 0.8);
}
.chatbot-footer .powered-logo {
  height: 14px;
  margin-left: 3px;
  display: block;
}


.close-btn:hover {
  background-color: #2f2f2f;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #2f2f2f;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}




.mobile-banner {
  position: fixed;
  bottom: 10px; /* Stick to the bottom */
  left: 5%;
  right: 5%;
  background-color: white;
  color: black;
  text-align: center;
  padding: 20px 15px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Reduced shadow */
  border-radius: 8px;
  z-index: 2147483635;
  font-size: 12px; /* Smaller font size */
}

.mobile-banner .text {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between items */
  margin-bottom: 5px; /* Space between text and buttons */
  text-align: left;
  padding-right: 20px;
}

.mobile-banner .text img {
  height: 40px; /* Smaller height */
  border-radius: 50%;
}

.mobile-banner button {
  border: 1px solid var(--main-color); /* Add border to all buttons */
  padding: 5px 5px; /* Smaller padding */
  cursor: pointer;
  margin-top: 3px; /* Smaller margin */
  margin-bottom: 0;
  border-radius: 4px;
  font-size: 14px; /* Smaller font size */
  width: 100px; /* Fixed width for consistency */
}

.mobile-banner .standard-btn {
  background-color: var(--main-color);
  color: #222;
  margin-left: 10px;
}

.mobile-banner .standard-btn:hover {
  background-color: var(--hover-color);
}

.mobile-banner .inverted-btn {
  background-color: white;
  color: var(--main-color);
  margin-right: 10px;
}

.mobile-banner .inverted-btn:hover {
  background-color: var(--main-color);
  color: #222;
}

.mobile-banner .close-btn {
  position: absolute;
  background-color: transparent;
  top: 5px; /* Adjusted to px */
  right: 5px; /* Adjusted to px */
  color: var(--main-color);
  border: none;
  padding: 5px; /* Adjusted padding */
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px; /* Adjusted to px */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px; /* Adjusted to px */
  width: 16px; /* Adjusted to px */
}

.mobile-banner .close-btn:hover {
  color: #222;
  background-color: var(--main-color);
}

.typing-indicator {
  display: inline-block;
}
.typing-indicator.thinking-status {
  align-items: center;
  color: #667085;
  display: inline-flex;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 500;
  gap: 9px;
  letter-spacing: -0.01em;
  line-height: 20px;
  min-height: 20px;
  user-select: none;
}
.typing-indicator.thinking-status .thinking-status-spinner {
  animation: thinking-spin 0.9s linear infinite;
  background: transparent;
  border: 1.5px solid #d0d5dd;
  border-radius: 50%;
  border-top-color: #667085;
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}
.typing-indicator.thinking-status .thinking-status-text {
  animation: thinking-text-shimmer 2.4s ease-in-out infinite;
  background: linear-gradient(
      90deg,
      #667085 0%,
      #667085 34%,
      #1d2939 50%,
      #667085 66%,
      #667085 100%
  );
  background-clip: text;
  background-size: 250% 100%;
  border-radius: 0;
  color: transparent;
  display: inline-block;
  height: auto;
  transition: opacity 120ms ease, transform 120ms ease;
  -webkit-background-clip: text;
  width: auto;
}
.typing-indicator.thinking-status .thinking-status-text.is-changing {
  opacity: 0;
  transform: translateY(2px);
}
@keyframes thinking-spin {
  to {
      transform: rotate(360deg);
  }
}
@keyframes thinking-text-shimmer {
  0% {
      background-position: 100% 0;
  }
  100% {
      background-position: -100% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .typing-indicator.thinking-status .thinking-status-spinner,
  .typing-indicator.thinking-status .thinking-status-text {
      animation: none;
  }
  .typing-indicator.thinking-status .thinking-status-text {
      background: none;
      color: #667085;
  }
}
.typing-indicator:not(.thinking-status) span {
  animation: blink 1.4s infinite both;
  animation-fill-mode: both;
  height: 8px;
  width: 8px;
  background: var(--chat-header-bg);
  border-radius: 50%;
  display: inline-block;
}
.typing-indicator:not(.thinking-status) span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator:not(.thinking-status) span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0% {
      opacity: 0.1;
  }
  20% {
      opacity: 1;
  }
  100% {
      opacity: 0.1;
  }
}




.suggested-questions-container {
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  font-family: var(--chat-message-font-family);
  background: var(--surface-color);
  position: absolute;
  bottom: 114px;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

.suggested-questions-container button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(91, 103, 112, 0.12);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 10px;
  font-family: var(--chat-message-font-family);
  font-weight: 500;
  line-height: 1.4;
  border-radius: 16px;
  background-color: var(--surface-color);
  color: #30363b;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(28, 28, 28, 0.08);
}

.suggested-questions-container button:hover {
  background-color: #f1f3f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.suggested-questions-container button:last-child {
  background-color: var(--surface-color);
  color: #30363b;
}

.suggested-questions-container button:last-child:hover {
  background-color: #f1f3f5;
}

@media (max-width: 768px) {
  .suggested-questions-container {
    flex-wrap: nowrap;
  }
  
  .suggested-questions-container button {
    flex: 1 1 0;
    font-size: 10px;
  }
}



.input-group {
  position: relative;
  margin: 10px 0;
}

.input {
  border: solid 1.5px #000000;
  border-radius: 0.8rem;
  background: none;
  padding: 8px;
  font-size: 0.75rem;
  color: #000000;
  transition: border 150ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%; /* Ensure full width */
}

.user-label {
  position: absolute;
  left: 10px;
  color: #000000;
  pointer-events: none;
  transform: translateY(8px);
  font-size: 0.85rem; /* Smaller label text */
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center; /* Standardize scaling */
}

.input:focus,
.input:valid {
  outline: none;
  border: 1.5px solid #000000;
}

.input:focus ~ .user-label,
.input:not(:placeholder-shown) ~ .user-label {
  transform: translateY(-50%) scale(0.70);
  background-color: #212121;
  padding: 0 .2em;
  color: #ffffff;
}



.lead-form-text {
  font-size: 13px;
  margin-bottom: 10px; /* Space between text and input fields */
  color: #333; /* Matches agent message text color */
  line-height: 1.5; /* Consistent line height */
}



.lead-form {
  background-color: var(--agent-message-bg);
  border-radius: 10px 10px 10px 0; /* Same border radius as agent messages */
  padding: 12px 16px; /* Matches padding of other messages */
  font-family: 'Arial', sans-serif;
  max-width: 75%; /* Keeps form width consistent */
}

.era-dynamic-lead-form > .lead-form-heading {
  margin: 0 0 10px;
  color: #1f2933;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead-form-step-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.lead-form-step-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6c757d;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead-form-step-title {
  margin: 0;
  font-size: 0.92rem;
  color: #1f2933;
}


.lead-form-row {
  display: flex;
  gap: 5px; /* Spacing between fields */
  margin-bottom: 10px;
}

.lead-form-field {
  flex: 1;
}

.lead-form-field.is-hidden,
.lead-form-row.is-hidden,
.lead-form-step.is-hidden,
.lead-form-room-config.is-hidden,
#lead-room-configurations.is-hidden {
  display: none;
}

.lead-form-label {
  display: block;
  font-size: 0.75rem;
  color: #495057;
  margin-bottom: 5px;
  font-weight: bold;
}

.lead-form-required-marker {
  color: #dc1d2e;
  margin-left: 3px;
  font-weight: 800;
}

.lead-form-help {
  margin-top: 4px;
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.4;
}

.lead-form-input {
  width: 100%;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 0.75rem;
  background: #ffffff;
}

.lead-form-input:focus {
  outline: none;
  border-color: var(--main-color);
}

.lead-form-input:disabled {
  background: #eceff1;
  color: #6c757d;
  cursor: not-allowed;
}

.lead-form-error,
.booking-step-error {
  display: none;
  margin: 7px 0 10px;
  padding: 8px 10px;
  border: 1px solid #f0b9b9;
  border-radius: 7px;
  background: #fff7f7;
  color: #9f2f2f;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
}

.lead-form-error.is-visible,
.booking-step-error.is-visible {
  display: block;
}

.lead-form-input.has-error,
.booking-form .input.has-error {
  border-color: #d66b6b;
  background: #fffafa;
  box-shadow: 0 0 0 2px rgba(214, 107, 107, .12);
}

.lead-form-label.has-error,
.booking-field-label.has-error {
  color: #9f2f2f;
}

.era-tradein-plate .lead-form-vehicle-info:not(:empty) {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  color: #667085;
  background: #f5f6f8;
}

.era-callback-lead-form .lead-form-vehicle-info:not(:empty) {
  display: inline-block;
  max-width: 100%;
  margin-top: 3px;
  padding: 2px 0;
  overflow: hidden;
  color: #667085;
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-message-input {
  min-height: 84px;
  resize: vertical;
}

.lead-form-checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 8px 0 2px;
}

.lead-form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #1f2933;
}

.lead-form-room-config {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fafbfc;
}

.lead-form-submit {
  background-color: var(--main-color);
  color: white;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
}


.lead-form-submit:hover {
  background-color: var(--hover-color);
}

.lead-form-submit:active {
  transform: translateY(1px);
}

.lead-form-submit.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: wait;
  opacity: .8;
}

.lead-form-submit.is-loading::before {
  content: '';
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lead-form-spinner .7s linear infinite;
}

@keyframes lead-form-spinner {
  to { transform: rotate(360deg); }
}

.lead-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.lead-form-nav-btn,
.lead-form-submit {
  min-height: 34px;
  flex: 1;
}

.lead-form-nav-btn {
  background: #ffffff;
  color: #1f2933;
  padding: 4px 8px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.8rem;
}

.lead-form-nav-btn-primary {
  background-color: var(--main-color);
  color: white;
  border-color: var(--main-color);
}

.lead-form-close {
  float: right;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: -15px -8px 0 0;
  transition: color 0.3s;
}

.lead-form-close:hover {
  color: #343a40;
}

@media (max-width: 480px) {
  .lead-form-row {
    flex-direction: column;
    gap: 8px; /* Further reduced gap for smaller screens */
  }

  .lead-form-checkbox-list {
    grid-template-columns: 1fr;
  }
}



.confirmation-wrapper {
  display: flex;
  align-items: center;
  padding-left: 0;
}

.system-message {
  display: flex;
  justify-content: flex-start;
  max-width: 75%; /* Align width calculation */
  background: var(--agent-message-bg);
  color: var(--chat-message-text-color);
  font-family: var(--chat-message-font-family);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 15px; /* Adds more space above and below each message */
}

.system-message p {
  margin: 0;
  white-space: pre-wrap;
  padding: 12px 16px;

}

.system-message-livechat {
  color: #333;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px auto 15px;
  max-width: 75%;
  padding: 10px 14px;
  text-align: center;
  list-style: none;
}

.confirmation-content {
  display: flex;
  align-items: center;
}

.confirmation-message-item {
  list-style: none;
}

.confirmation-message-item .confirmation-content p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 12px 16px;
}


#checkmark-animation {
  width: 30px; /* Set the width of the icon */
  height: 30px; /* Set the height of the icon */
  margin-right: 10px; /* Adds some space between the icon and the text */
  align-self: flex; /* Aligns the icon at the bottom of the flex container */
  border-radius: 5px; /* Rounded edges */
}



.car-image-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.car-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: var(--muted-surface-color);
  border-radius: 8px;
  transition: transform 0.2s;
}

.image-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  max-width: 100%;
  position: relative;
}

.car-image-container {
  margin: 10px 0 0 0;  display: inline-block;
  vertical-align: top;
}


.image-wrapper {
  max-width: 300px;
  margin: 5px 0;
  position: relative;
}

.car-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--muted-surface-color);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.car-gallery-image:hover {
  transform: scale(1.05);
}

.image-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none; /* This allows clicks to pass through to the link */
}

.image-wrapper:hover .image-controls {
  opacity: 1;
}

.control-btn {
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  color: #333;
  padding: 10px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  pointer-events: auto; /* Re-enable pointer events for buttons */
  z-index: 2;
}

.control-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}


.prev-btn, .next-btn {
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  color: #333;
  padding: 10px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.prev-btn:hover, .next-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.car-image-viewer {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.viewer-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.viewer-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

/* Scrollbar styling */
.car-image-container::-webkit-scrollbar {
  height: 6px;
}

.car-image-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.car-image-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.car-image-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}


.phone-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.country-code-select {
  border: solid 1.5px #000000;
  border-radius: 0.8rem;
  background: none;
  padding: 8px 4px; /* Reduced horizontal padding */
  font-size: 0.75rem;
  color: #000000;
  transition: border 150ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 75px; /* Reduced width */
  cursor: pointer;
  text-align: center; /* Center the flag and code */
}

.country-code-select:focus {
  outline: none;
  border: 1.5px solid #000000;
}

.phone-input {
  flex: 1;
  min-width: 0; /* Allows the input to shrink below its default minimum width */
}


/* Style the select options */
.country-code-select option {
  text-align: left;
  padding: 4px;
}

#custom-country-code {
  display: none;
  width: 70px;
  margin-top: 8px;
}

/* DDB workshop booking form – shared visual language with the Aunsbjerg flow. */
.booking-form-container { width: 100%; min-width: 0; margin: .25rem 0; }
.booking-form-container, .booking-form-message, .message-flex-wrapper { max-width: 100%; box-sizing: border-box; }
body.booking-flow-active .chatbox { overflow-x: hidden; overscroll-behavior-x: none; scroll-behavior: auto; }
.booking-form-message { list-style: none; width: 100%; }
.message-flex-wrapper { display: flex; align-items: flex-start; gap: 0; }
.booking-form-container .agent-favicon { display: none; }
.booking-form { position: relative; width: 100%; min-width: 0; max-width: 100%; height: clamp(300px, 52vh, 440px); box-sizing: border-box; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0; border-radius: 12px; background: #F5F6F7; box-shadow: 0 2px 10px rgba(0,0,0,.09); color: #222; }
.booking-form-scroll { min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: .75rem; scrollbar-width: thin; scrollbar-color: #A8AAAD transparent; }
.booking-form-heading { margin: 0 0 .4rem; font-size: 1rem; }
.booking-form-text { margin: 0 0 .45rem; font-size: .9rem; }
.booking-form-help { margin: -.15rem 0 .55rem; color: #70757A; font-size: .76rem; }
.booking-form .input-group { position: relative; margin: .5rem 0; }
.booking-plate-group { display: flex; flex-direction: column; gap: .25rem; }
.booking-form .booking-field-label { position: static; display: block; margin: 0; color: #303030; font-size: .78rem; font-weight: 600; line-height: 1.3; transform: none; pointer-events: auto; }
.booking-form .input { width: 100%; box-sizing: border-box; border: 1px solid #c9c9c9; border-radius: 8px; padding: .6rem .7rem; background: #fff; color: #222; font-size: .84rem; }
.booking-form .user-label { display: block; margin: .25rem 0 .2rem; font-size: .78rem; color: #666; }
.booking-vehicle-info { min-height: 0; margin: .15rem 0 .4rem; font-size: .74rem; font-weight: 500; color: #555; }
.booking-loading-state { display: none; align-items: center; gap: .5rem; color: #62676B; }
.booking-vehicle-info.is-loading .booking-loading-state { display: inline-flex; }
.booking-vehicle-info.is-loading .booking-vehicle-text { display: none; }
.booking-spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid rgba(26, 26, 26, .14);
  border-top-color: #1A1A1A;
  border-radius: 50%;
  animation: booking-spinner-rotate .7s linear infinite;
}
@keyframes booking-spinner-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .booking-spinner, .booking-form-loading-spinner { animation-duration: 1.4s; }
}.booking-km-group label { display: block; margin: .15rem 0; font-size: .8rem; }
.booking-km-group output { display: block; margin: .1rem 0 .2rem; font-size: .86rem; font-weight: 600; }
.booking-km-group input[type="range"] { width: 100%; accent-color: #3478F6; }
.booking-form-submit, .booking-form-back, .step4-opt-btn, .step4-time-btn { cursor: pointer; border: 0; border-radius: 7px; padding: .55rem .8rem; font: inherit; }
.booking-form-submit { background: #1A1A1A; color: #fff; }
.booking-form-submit:hover { background: #333333; }
.booking-form-submit:disabled { opacity: .55; cursor: wait; }
.booking-form-submit.is-loading { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.booking-form-submit.is-loading::before { content: ""; width: .78rem; height: .78rem; flex: 0 0 .78rem; box-sizing: border-box; border: 2px solid rgba(255,255,255,.4); border-top-color: #FFFFFF; border-radius: 50%; animation: booking-spinner-rotate .7s linear infinite; }
.booking-form-back { background: #eee; color: #333; }
.booking-form-loading-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 1.5rem;
  box-sizing: border-box;
  border-radius: inherit;
  background: rgba(255, 255, 255, .94);
  color: #303030;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, visibility 0s linear .14s;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.era-time-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: 4px;
}
.era-date-calendar {
  grid-column: 1 / -1;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 7px;
  background: #fff;
}
.era-date-calendar-header,
.era-date-calendar-weekdays,
.era-date-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
}
.era-date-calendar-header {
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  margin-bottom: 6px;
}
.era-date-calendar-month {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  text-transform: capitalize;
}
.era-date-calendar-nav,
.era-date-calendar-day {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #303030;
  font: inherit;
  cursor: pointer;
}
.era-date-calendar-nav:hover,
.era-date-calendar-day:not(:disabled):hover,
.era-date-calendar-day.selected {
  background: var(--main-color);
  color: #222;
}
.era-date-calendar-nav:disabled,
.era-date-calendar-day:disabled {
  color: #b6bbc1;
  cursor: not-allowed;
  opacity: .55;
}
.era-date-calendar-weekdays {
  color: #6b7280;
  font-size: .62rem;
  text-align: center;
  text-transform: capitalize;
}
.era-date-calendar-day {
  font-size: .72rem;
}
.era-date-calendar-empty {
  min-height: 28px;
}
.era-date-calendar-status {
  min-height: 1rem;
  margin-top: 4px;
  color: #6b7280;
  font-size: .68rem;
  text-align: center;
}
.era-time-picker > .lead-form-input {
  grid-column: 1 / -1;
}
.booking-form.is-loading .booking-form-loading-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .14s ease;
}
.booking-form-loading-spinner {
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border: 3px solid rgba(26, 26, 26, .14);
  border-top-color: #1A1A1A;
  border-radius: 50%;
  animation: booking-spinner-rotate .7s linear infinite;
}
.booking-form-loading-text { font-size: .86rem; font-weight: 600; letter-spacing: .01em; text-align: center; }
.button-row {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: .65rem .75rem;
  background: #FFFFFF;
  border-top: 1px solid #ECEDEE;
  box-shadow: 0 -5px 14px rgba(28, 28, 28, .05);
}.button-row.booking-single-action { justify-content: flex-end; }
.button-row.booking-back-only { justify-content: flex-start; }
.workshop-grid.is-submitting { pointer-events: none; opacity: .6; transition: opacity .15s ease; }
.workshop-grid { display: flex; flex-direction: column; border: 1px solid #E2E3E4; border-radius: 10px; overflow: hidden; }
.service-grid { display: flex; flex-direction: column; border: 1px solid #E2E3E4; border-radius: 10px; overflow: hidden; }
.workshop-card, .service-card { border: 1px solid #ddd; border-radius: 9px; padding: .65rem .7rem; background: #fff; text-align: left; color: #222; cursor: pointer; }
.workshop-card { position: relative; border: 0; border-bottom: 1px solid #E8E9EA; border-radius: 0; padding-right: 2.2rem; transition: background-color .16s ease; }
.service-card { position: relative; border: 0; border-bottom: 1px solid #E8E9EA; border-radius: 0; padding: .7rem .75rem .7rem 2.6rem; transition: background-color .16s ease; }
.service-card:last-child { border-bottom: 0; }
.service-card::before { content: ""; position: absolute; left: .8rem; top: .72rem; width: 1.15rem; height: 1.15rem; box-sizing: border-box; border: 1.5px solid #A9ADB1; border-radius: 4px; background: #fff; }
.service-card.selected::before { content: "✓"; display: grid; place-items: center; border-color: #1A1A1A; background: #1A1A1A; color: #fff; font-size: .72rem; font-weight: 700; }
.service-card:focus-visible { outline: 2px solid #1A1A1A; outline-offset: -2px; }
.workshop-card:last-child { border-bottom: 0; }
.workshop-card.selected::after { content: "✓"; position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; background: #1A1A1A; color: #fff; font-size: .72rem; }
.workshop-card:hover, .workshop-card.selected { background: #F3F3F1; }
.service-card:hover, .service-card.selected { background: #F3F3F1; }
.workshop-card h3, .service-card h3 { margin: 0 0 .15rem; font-size: .86rem; }
.workshop-card p { margin: 0; font-size: .73rem; color: #70757A; }
.service-card .svc-comment { display: none; width: 100%; box-sizing: border-box; min-height: 2.6rem; margin-top: .45rem; border: 1px solid #D4D6D8; border-radius: 7px; padding: .45rem .55rem; font: inherit; font-size: .76rem; resize: vertical; background: #fff; }
.service-card.selected .svc-comment { display: block; }
.booking-calendar-panel { min-height: 10rem; }
.booking-calendar-panel[hidden] { display: none; }
.booking-calendar-status { min-height: 9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; color: #62676B; font-size: .8rem; text-align: center; }
.booking-calendar-status[hidden] { display: none; }
.booking-calendar-status .booking-spinner { width: 20px; height: 20px; flex-basis: 20px; }
.step4-opt-wrap { display: flex; flex-direction: column; margin-bottom: .75rem; border: 1px solid #E2E3E4; border-radius: 10px; overflow: hidden; }
.step4-opt-wrap[hidden] { display: none; }
.step4-opt-btn { position: relative; width: 100%; border: 0; border-bottom: 1px solid #E8E9EA; border-radius: 0; padding: .7rem .75rem .7rem 2.6rem; background: #fff; color: #222; text-align: left; font-size: .82rem; line-height: 1.35; }
.step4-opt-btn:last-child { border-bottom: 0; }
.step4-opt-btn::before { content: ""; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; box-sizing: border-box; border: 1.5px solid #A9ADB1; border-radius: 50%; background: #fff; }
.step4-opt-btn::after { content: ""; position: absolute; left: 1.075rem; top: 50%; transform: translateY(-50%) scale(0); width: .55rem; height: .55rem; border-radius: 50%; background: #1A1A1A; transition: transform .15s ease; }
.step4-opt-btn:hover, .step4-opt-btn.selected { background: #F3F3F1; color: #1A1A1A; }
.step4-opt-btn.selected::before { border-color: #1A1A1A; }
.step4-opt-btn.selected::after { transform: translateY(-50%) scale(1); }
.step4-opt-btn:focus-visible { outline: 2px solid #1A1A1A; outline-offset: -2px; }
.step4-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .65rem 0 .5rem; }
.step4-nav button { width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: #F0F1F1; color: #222; font-size: 1.1rem; }
.step4-nav button:hover { background: #E4E5E5; }
.step4-nav button:disabled { opacity: .35; cursor: not-allowed; }
.step4-range { font-weight: 600; font-size: .78rem; text-align: center; }
.step4-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; min-height: 5rem; }
.step4-col { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; min-width: 0; }
.step4-col-head { font-size: .66rem; font-weight: 700; text-align: center; color: #555; }
.step4-no, .booking-calendar-loading { font-size: .72rem; color: #70757A; text-align: center; padding: .6rem 0; }
.step4-time-btn { border: 1px solid #E0E2E3; border-radius: 7px; background: #fff; color: #333; font-size: .76rem; padding: .42rem .2rem; }
.step4-time-btn:hover { border-color: #777; background: #F5F5F3; }
.step4-time-btn.selected { border-color: #1A1A1A; background: #1A1A1A; color: #fff; }
.booking-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .48rem .55rem; }
.booking-field-grid .input-group { margin: 0; display: flex; flex-direction: column; gap: .22rem; min-width: 0; }
.booking-field-grid .input-group:nth-child(3) { grid-column: 1 / -1; }
.booking-field-grid .input-group:nth-child(6), .booking-field-grid .input-group:nth-child(7) { grid-column: span 1; }
.step5 .booking-field-label { font-size: .72rem; line-height: 1.2; }
.step5 .booking-field-grid .input { min-width: 0; padding: .48rem .55rem; border-radius: 7px; font-size: .8rem; }
.consent-wrap { display: flex; align-items: flex-start; gap: .4rem; margin-top: .6rem; font-size: .71rem; line-height: 1.35; }
.consent-wrap input { flex: 0 0 auto; margin: .1rem 0 0; }
.booking-disclaimer { margin: .5rem 0 0; font-size: .68rem; line-height: 1.35; color: #666; }
.booking-form.step6 { height: auto; min-height: 0; max-height: none; }
.step6 .booking-form-scroll { overflow-y: visible; padding: .5rem .6rem .4rem; }
.step6 .booking-form-heading { margin-bottom: .28rem; }
.booking-summary { display: flex; flex-direction: column; gap: .35rem; }
.booking-summary-overview,
.booking-summary-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.booking-summary-item,
.booking-summary-section { min-width: 0; padding: .42rem .55rem; border: 1px solid #E2E5E7; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.booking-summary-label { display: block; margin-bottom: .2rem; color: #6B7278; font-size: .66rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.booking-summary-value { display: block; color: #222; font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.booking-summary-section .booking-summary-label { margin-bottom: .2rem; }
.summary-svc { display: flex; flex-direction: column; gap: .15rem; margin: 0; padding: 0; list-style: none; }
#chat-messages .summary-svc > .booking-summary-service { display: flex; flex-direction: column; gap: .2rem; margin: 0; padding: .28rem 0; border-bottom: 1px solid #E8EAEC; background: transparent; font-size: .78rem; line-height: 1.3; }
#chat-messages .summary-svc > .booking-summary-service:first-child { padding-top: .1rem; }
#chat-messages .summary-svc > .booking-summary-service:last-child { padding-bottom: .1rem; border-bottom: 0; }
.booking-summary-service-title { color: #222; font-weight: 700; }
.booking-summary-comment { display: flex; flex-direction: column; gap: .05rem; margin-left: .05rem; padding-left: .45rem; border-left: 2px solid #D9DDE0; color: #4F555A; overflow-wrap: anywhere; }
.booking-summary-comment-label { color: #777E84; font-size: .62rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.step6 .booking-step-error { margin-top: .35rem; }
.step6 > .button-row { padding: .45rem .6rem; }
.step6 > .button-row .booking-form-submit,
.step6 > .button-row .booking-form-back { padding-top: .45rem; padding-bottom: .45rem; }
@media (max-width: 350px) {
    .booking-summary-overview,
    .booking-summary-contact { grid-template-columns: 1fr; }
}
.booking-confirmation { margin: 1rem 0; }
.booking-confirmation .confirmation-content { padding: .8rem 1rem; border-radius: 12px; background: #eef8ee; color: #174b1c; }
body.booking-flow-active .suggested-questions-container { display: none !important; }


@media (max-width: 520px) {
  .booking-form { height: clamp(300px, 52vh, 400px); }
  .booking-form-scroll { padding: .65rem; }
  .step4-grid { gap: .25rem; }
}

@media (max-width: 350px) {
  .booking-field-grid { grid-template-columns: 1fr; }
  .booking-field-grid .input-group:nth-child(n) { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot {
    transition-duration: .01ms;
    transform: none;
  }
}

body:not(.mobile-device) .dropdown {
  width: 36px;
  height: 36px;
  margin: 0;
}

body:not(.mobile-device) .dropdown-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

body:not(.mobile-device) .dropdown-toggle::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor;
  transform: none;
}

body:not(.mobile-device) .right-section {
  position: absolute;
  top: 50%;
  right: 10px;
  width: auto;
  margin: 0;
  gap: 6px;
  flex: 0 0 auto;
  transform: translateY(-50%);
}

body:not(.mobile-device) .close-btn-header {
  position: static;
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: var(--chat-header-color);
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
  transform: none;
}

body:not(.mobile-device) #close-chat {
  display: none;
}

/* Keep the wide DDB wordmark between the status and header controls. */
.chatbot .header-content:has(.chatbot-logo--ddb) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
}

.chatbot .header-content:has(.chatbot-logo--ddb) > .left-section,
.chatbot .header-content:has(.chatbot-logo--ddb) > .right-section {
  position: static;
  width: auto;
  margin: 0;
  transform: none;
}

.chatbot .header-content > .chatbot-logo--ddb {
  position: static;
  transform: none;
  justify-self: center;
  width: 100%;
  min-width: 0;
  max-width: 220px;
  max-height: 48px;
}

.chatbot .header-content:has(.chatbot-logo--ddb) .livechat-header {
  white-space: nowrap;
}
