/* x25go.ch chatbot sidebar */

:root {
  --chatbot-panel-width: 448px;
  --chatbot-panel-inset: 16px;
  --chatbot-panel-height: clamp(560px, 72dvh, 760px);
  --chatbot-desktop-topbar-clearance: 104px;
  --chatbot-desktop-bottom-clearance: 18px;
  --chatbot-panel-radius: 14px;
  --chatbot-text: #15223b;
  --chatbot-muted: rgba(21, 34, 59, 0.62);
  --chatbot-border: rgba(15, 35, 70, 0.12);
  --chatbot-surface: #ffffff;
  --chatbot-soft: #f7f9fc;
  --chatbot-accent: #1d3a6e;
  --chatbot-success: #22c55e;
  --chatbot-warning: #f59e0b;
  --chatbot-danger: #ef4444;
}

html.mcHpSidebarMode,
body.mcHpSidebarMode {
  overflow-x: hidden !important;
}

.mcHpSection,
#mc-hp-chat-section {
  position: fixed !important;
  top: calc(50% + 34px) !important;
  right: var(--chatbot-panel-inset) !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 99980 !important;
  width: min(var(--chatbot-panel-width), calc(100vw - (var(--chatbot-panel-inset) * 2))) !important;
  max-width: var(--chatbot-panel-width) !important;
  height: min(var(--chatbot-panel-height), calc(100dvh - 128px)) !important;
  max-height: calc(100dvh - 128px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(calc(100% + 28px), -50%, 0) !important;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    visibility 0.2s ease !important;
}

#mc-hp-chat-section.mcHpSidebarPanel--open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, -50%, 0) !important;
}

.mcHpMainRow {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--chatbot-panel-radius);
  background: var(--chatbot-surface);
  box-shadow:
    0 24px 70px rgba(15, 35, 70, 0.22),
    0 0 0 1px rgba(15, 35, 70, 0.1);
}

.mcHpChatbox {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--chatbot-panel-radius);
  background: var(--chatbot-surface);
  color: var(--chatbot-text);
}

.mcHpChatHeader {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 35, 70, 0.09);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.mcHpChatHeaderTitle {
  flex: 0 0 auto;
  margin-right: auto;
  color: var(--chatbot-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.mcHpChatAvatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-right: 9px;
  border: 1px solid rgba(15, 35, 70, 0.1);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(10, 20, 40, 0.1);
}

.mcHpChatHeaderMeta {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.mcHpChatName {
  overflow: hidden;
  color: var(--chatbot-text);
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcHpChatRole {
  overflow: hidden;
  color: rgba(21, 34, 59, 0.5);
  font-size: 10.75px !important;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcHpStatusPill {
  order: 80;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid rgba(15, 35, 70, 0.1);
  border-radius: 8px;
  background: #f4f6fa;
}

.mcHpDot {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.mcHpDot--connected {
  background: var(--chatbot-success);
}

.mcHpDot--connecting,
.mcHpDot--streaming {
  background: var(--chatbot-warning);
  animation: mcHpDotPulse 1.1s ease-in-out infinite;
}

.mcHpDot--disconnected {
  background: var(--chatbot-danger);
}

@keyframes mcHpDotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.mcHpStatusTxt {
  color: rgba(21, 34, 59, 0.62);
  font-size: 11px !important;
  font-weight: 700;
  white-space: nowrap;
}

.mcHpSidebarClose {
  order: 100;
  appearance: none;
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid var(--chatbot-border);
  border-radius: 8px;
  background: #f4f6fa;
  color: rgba(21, 34, 59, 0.65);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.mcHpSidebarClose:hover,
.mcHpSidebarClose:focus-visible {
  border-color: rgba(29, 58, 110, 0.36);
  background: #ffffff;
  color: var(--chatbot-accent);
  outline: none;
}

.mcHpSidebarClose:active {
  transform: scale(0.97);
}

.mcHpMessages {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 13px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 15px 11px 15px 15px;
  background: transparent;
  isolation: isolate;
  overscroll-behavior-y: contain;
  scrollbar-color: rgba(29, 58, 110, 0.34) rgba(15, 35, 70, 0.05);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.mcHpMessages::-webkit-scrollbar {
  width: 6px;
}

.mcHpMessages::-webkit-scrollbar-track {
  border-radius: 8px;
  background: rgba(15, 35, 70, 0.05);
}

.mcHpMessages::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(29, 58, 110, 0.34);
}

.mcHpEmptyState {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 26px;
  color: rgba(21, 34, 59, 0.43);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.mcHpMsg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: mcHpMsgIn 0.22s ease-out both;
}

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

.mcHpMsg--bot {
  align-items: flex-start;
}

.mcHpMsg--user {
  align-items: flex-end;
}

.mcHpMsgLabel {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  color: rgba(21, 34, 59, 0.48);
  font-size: 11px !important;
  font-weight: 700;
}

.mcHpMsgLabel img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(15, 35, 70, 0.1);
  border-radius: 6px;
  object-fit: cover;
}

.mcHpMsgBody {
  max-width: min(88%, 690px);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px !important;
  line-height: 1.58;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  white-space: pre-wrap;
}

.mcHpMsg--bot .mcHpMsgBody {
  border: 1px solid rgba(15, 35, 70, 0.08);
  border-top-left-radius: 3px;
  background: #f4f7fb;
  color: var(--chatbot-text);
}

.mcHpMsg--user .mcHpMsgBody {
  border-top-right-radius: 3px;
  background: linear-gradient(160deg, #1d3a6e 0%, #15223b 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 34, 70, 0.2);
}

.mcHpTyping {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
}

.mcHpTyping span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(21, 34, 59, 0.3);
  animation: mcHpTypingBounce 1.2s ease-in-out infinite;
}

.mcHpTyping span:nth-child(2) {
  animation-delay: 0.16s;
}

.mcHpTyping span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes mcHpTypingBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.mcHpChips {
  position: relative;
  z-index: 3;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100%;
  min-height: 40px !important;
  padding: 7px 18px !important;
  box-sizing: border-box !important;
  scroll-padding-inline: 18px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border-top: 1px solid rgba(15, 35, 70, 0.06);
  background: #ffffff;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.mcHpChips::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}


.mcHpChipsScrollbar {
  position: relative;
  z-index: 3;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100%;
  height: 12px;
  padding: 2px 18px 4px;
  box-sizing: border-box;
  background: #ffffff;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.mcHpChipsScrollbarTrack {
  position: relative;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf2;
  box-shadow: inset 0 0 0 1px rgba(29, 58, 110, 0.05);
}

.mcHpChipsScrollbarThumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #91a2b7;
  transform: translate3d(0, 0, 0);
  transition: background 0.14s ease;
  will-change: transform, width;
}

.mcHpChipsScrollbar:hover .mcHpChipsScrollbarThumb,
.mcHpChipsScrollbar:focus-visible .mcHpChipsScrollbarThumb,
.mcHpChipsScrollbar.mcHpChipsScrollbar--dragging .mcHpChipsScrollbarThumb {
  background: #657a94;
}

.mcHpChipsScrollbar:focus-visible {
  outline: 2px solid rgba(29, 58, 110, 0.28);
  outline-offset: -1px;
}

#mc-hp-chatbox .mcHpChip {
  appearance: none;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 29px !important;
  height: 29px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #d9e2ec !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #1d3a6e !important;
  cursor: pointer;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(15, 35, 70, 0.06) !important;
  scroll-snap-align: start;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, transform 0.1s ease, box-shadow 0.14s ease !important;
}

#mc-hp-chatbox .mcHpChips > .mcHpChip:first-child {
  margin-left: 2px !important;
}

#mc-hp-chatbox .mcHpChips > .mcHpChip:last-child {
  margin-right: 2px !important;
}

#mc-hp-chatbox .mcHpChip:hover:not(:disabled),
#mc-hp-chatbox .mcHpChip:focus-visible:not(:disabled) {
  border-color: #a9bbcf !important;
  background: #f7faff !important;
  color: #142f5b !important;
  outline: none;
  box-shadow: 0 2px 5px rgba(15, 35, 70, 0.10) !important;
  transform: translateY(-1px);
}

#mc-hp-chatbox .mcHpChip:active:not(:disabled) {
  transform: translateY(0);
  background: #edf2f7 !important;
}

#mc-hp-chatbox .mcHpChip:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

#mc-hp-chatbox .mcHpChip > i {
  display: none !important;
}

.mcHpChipText {
  display: inline-block;
  line-height: 1.15;
}

.mcHpChatbox.mcHpConsentGranted .mcHpInput,
.mcHpInputArea.mcHpInputArea--consent .mcHpInput {
  background: #ffffff !important;
  border-color: rgba(29, 58, 110, 0.24);
  opacity: 1;
}

.mcHpChatbox.mcHpConsentGranted .mcHpInputArea,
.mcHpInputArea.mcHpInputArea--consent {
  background: #ffffff !important;
}

.mcHpConsentBar {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid rgba(15, 35, 70, 0.07);
  background: var(--chatbot-soft);
}

.mcHpToggleWrap {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.mcHpToggleTrack {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
}

.mcHpToggleInput {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.mcHpToggleThumb {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(15, 35, 70, 0.2);
  transition: background 0.2s ease;
}

.mcHpToggleThumb::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  content: "";
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mcHpToggleInput:checked ~ .mcHpToggleThumb {
  background: var(--chatbot-success);
}

.mcHpToggleInput:checked ~ .mcHpToggleThumb::after {
  transform: translateX(20px);
}

.mcHpToggleInput:focus-visible ~ .mcHpToggleThumb {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.mcHpConsentLabel {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(21, 34, 59, 0.62);
  font-size: 10.5px !important;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.mcHpConsentLink {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mcHpInputArea {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 9px;
  padding: 10px 12px;
  border-top: 1px solid rgba(15, 35, 70, 0.09);
  background: #ffffff;
}

.mcHpInput {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  max-height: 86px;
  overflow-y: auto;
  padding: 9px 12px;
  border: 1px solid rgba(15, 35, 70, 0.14);
  border-radius: 8px;
  outline: none;
  background: #f8fafc;
  color: var(--chatbot-text);
  font: 12.5px/1.45 inherit;
  resize: none;
  unicode-bidi: plaintext;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mcHpInput::placeholder {
  color: rgba(21, 34, 59, 0.4);
}

.mcHpInput:focus {
  border-color: rgba(29, 58, 110, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 58, 110, 0.12);
}

.mcHpInput:disabled {
  cursor: not-allowed;
  background: #f1f4f8;
  opacity: 1;
}

.mcHpSendBtn {
  appearance: none;
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 40px;
  height: auto;
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, #1d3a6e 0%, #15223b 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 34, 70, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.mcHpSendBtn:hover:not(:disabled),
.mcHpSendBtn:focus-visible:not(:disabled) {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 34, 70, 0.3);
}

.mcHpSendBtn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  box-shadow: none;
}

.mcHpSidebarToggle {
  appearance: none;
  position: fixed;
  top: 50%;
  right: 0;
  bottom: auto;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  width: 46px;
  min-width: 46px;
  height: 124px;
  padding: 10px 6px;
  border: 1px solid rgba(15, 35, 70, 0.16);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: #ffffff !important;
  color: var(--chatbot-text);
  cursor: pointer;
  font: 700 13px/1.1 inherit;
  box-shadow:
    0 12px 34px rgba(15, 35, 70, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.76) inset;
  transform: translateY(-50%);
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.mcHpSidebarToggle:hover,
.mcHpSidebarToggle:focus-visible {
  border-color: rgba(29, 58, 110, 0.42);
  background: #ffffff !important;
  box-shadow:
    0 16px 42px rgba(15, 35, 70, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.86) inset;
  outline: none;
  transform: translateY(-50%);
}

.mcHpSidebarToggleIcon {
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(15, 35, 70, 0.14);
  border-radius: 50%;
  background: #ffffff !important;
  color: var(--chatbot-accent) !important;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 35, 70, 0.08);
}

.mcHpSidebarToggleIcon svg {
  display: block;
  width: 16px;
  height: 16px;
  transform: translateY(1.25px);
}

.mcHpSidebarToggleText {
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
}

html.mcHpSidebarOpen .mcHpSidebarToggle,
body.mcHpSidebarOpen .mcHpSidebarToggle {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

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

@media (max-width: 768px) {
  :root {
    --chatbot-panel-inset: 10px;
    --chatbot-panel-radius: 12px;
  }

  #mc-hp-chat-section {
    top: max(10px, env(safe-area-inset-top)) !important;
    right: var(--chatbot-panel-inset) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: var(--chatbot-panel-inset) !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    transform: translate3d(calc(100% + 28px), 0, 0) !important;
  }

  #mc-hp-chat-section.mcHpSidebarPanel--open {
    transform: translate3d(0, 0, 0) !important;
  }

  .mcHpChatHeader {
    padding: 10px 10px 10px 12px;
  }

  .mcHpChatAvatar {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .mcHpChatRole {
    display: none;
  }

  .mcHpMessages {
    gap: 11px;
    padding: 12px 9px 12px 12px;
  }

  .mcHpMsgBody {
    max-width: 92%;
    font-size: 13px !important;
  }

  .mcHpChips {
    min-height: 39px !important;
    padding: 6px 14px 7px !important;
    scroll-padding-inline: 14px;
    gap: 6px !important;
  }

  #mc-hp-chatbox .mcHpChip {
    min-height: 29px !important;
    height: 29px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }

  .mcHpChipsScrollbar {
    height: 12px;
    padding: 2px 14px 4px;
  }

  .mcHpConsentBar {
    padding: 7px 10px;
  }

  .mcHpConsentLabel {
    font-size: 10px !important;
    line-height: 1.32;
  }

  .mcHpInputArea {
    gap: 8px;
    padding: 9px 10px;
  }

  .mcHpInput {
    min-height: 38px;
    max-height: 62px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .mcHpSendBtn {
    flex-basis: 36px;
    width: 36px;
    height: auto;
    min-height: 38px;
    min-width: 36px;
  }

  /* The launcher is vertically centred on the right at every viewport size. */
  .mcHpSidebarToggle,
  .mcHpSidebarToggle:hover,
  .mcHpSidebarToggle:focus-visible {
    top: 50%;
    right: 0;
    bottom: auto;
    transform: translateY(-50%);
  }

  .mcHpSidebarToggleIcon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    background: #ffffff !important;
  }
}

.mcHpProductLink,
.mcHpInternalLink {
  display: inline;
  color: var(--chatbot-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.mcHpProductLink:hover,
.mcHpProductLink:focus-visible,
.mcHpInternalLink:hover,
.mcHpInternalLink:focus-visible {
  color: #0f2d63;
  text-decoration-thickness: 2px;
  outline: none;
}

@media (max-width: 420px) {
  #mc-hp-chat-section {
    top: max(8px, env(safe-area-inset-top)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }

  .mcHpStatusPill {
    max-width: 94px;
    padding: 4px 7px;
  }

  .mcHpStatusTxt {
    overflow: hidden;
    max-width: 60px;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mc-hp-chat-section,
  .mcHpSidebarToggle,
  .mcHpMsg,
  .mcHpDot--connecting,
  .mcHpDot--streaming,
  .mcHpTyping span {
    animation: none !important;
    transition: none !important;
  }
}


/* Chatbot fullscreen mode */
html.mcHpFullscreenMode,
body.mcHpFullscreenMode {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.mcHpFullscreenButton {
  order: 90;
  appearance: none;
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid var(--chatbot-border);
  border-radius: 8px;
  background: #f4f6fa;
  color: rgba(21, 34, 59, 0.65);
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.mcHpFullscreenButton:hover,
.mcHpFullscreenButton:focus-visible,
.mcHpFullscreenButton--active {
  border-color: rgba(29, 58, 110, 0.36);
  background: #ffffff;
  color: var(--chatbot-accent);
  outline: none;
}

.mcHpFullscreenButton:active {
  transform: scale(0.97);
}

.mcHpFullscreenIcon {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.mcHpFullscreenIcon--collapse {
  display: none;
}

.mcHpFullscreenButton--active .mcHpFullscreenIcon--expand {
  display: none;
}

.mcHpFullscreenButton--active .mcHpFullscreenIcon--collapse {
  display: block;
}

#mc-hp-chat-section.mcHpSidebarPanel--fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 2147483645 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: translate3d(calc(100% + 28px), 0, 0) !important;
}

#mc-hp-chat-section.mcHpSidebarPanel--fullscreen.mcHpSidebarPanel--open {
  transform: translate3d(0, 0, 0) !important;
}

#mc-hp-chat-section.mcHpSidebarPanel--fullscreen .mcHpMainRow,
#mc-hp-chat-section.mcHpSidebarPanel--fullscreen .mcHpChatbox {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 0 !important;
}

#mc-hp-chat-section.mcHpSidebarPanel--fullscreen .mcHpMainRow {
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .mcHpFullscreenButton {
    display: none !important;
  }

  .mcHpSidebarClose {
    flex-basis: 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
}
