:root {
  --bg: #f9fafb;
  --text: #40464b;
  --muted: #7b8894;
  --panel: #ffffff;
  --border: #e5e7eb;
  --brand: #1a3253;
  --brand-600: #223e67;
  --brand-700: #2c507f;
  --bubble-user: #e7eef7;
  --bubble-bot: #ffffff;
  --link: #1a3253;
  --icon: #1a3253;
  --status-online: #22c55e;
  --status-offline: #ef4444;
  --typing: #9aa5b1;
}

.theme--dark {
  --bg: #1e1f24;
  --text: #f3f4f6;
  --muted: #aeb7c2;
  --panel: #26282f;
  --border: #3a3d45;
  --brand: #1a3253;
  --brand-600: #223e67;
  --brand-700: #2c507f;
  --bubble-user: #2f3847;
  --bubble-bot: #2a2d36;
  --link: #4da8ff;
  --icon: #d7e0ea;
  --typing: #8892a0;
}

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

.chat__launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: float 3s ease-in-out infinite;
  z-index: 999;
}
.chat__launcher svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.chat__launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  background: var(--brand-600);
  animation: pulse 1s infinite;
}
.chat__launcher:active {
  transform: translateY(0);
}

.chat {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  transform-origin: top left;
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chat--hidden {
  display: none;
}
.chat--fullscreen {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
  box-shadow: none;
  z-index: 1000;
}
.chat--fullscreen .chat__resize-handle {
  opacity: 0;
  pointer-events: none;
}
.chat__resize-handle {
  width: 13px;
  height: 30px;
  cursor: nwse-resize;
  background: repeating-linear-gradient(-90deg, var(--muted), var(--muted) 1px, transparent 1px, transparent 3px);
  border-radius: 3px;
  position: absolute;
  top: -11px;
  left: 0;
  z-index: 10;
  opacity: 0.5;
  transform: rotate(45deg);
}
.chat__content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--brand);
  color: #fff;
  user-select: none;
}
.chat__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat__title {
  font-weight: 700;
}
.chat__status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-online);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) inset;
}
.chat__controls {
  display: inline-flex;
  gap: 6px;
}
.chat__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chat__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.chat__btn--ghost {
  background: transparent;
  color: #fff;
}
.chat__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.chat__btn--ghost:active {
  transform: translateY(0);
}
.chat__btn--primary {
  background: var(--brand);
  color: #fff;
}
.chat__btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}
.chat__btn--primary:active {
  transform: translateY(0);
}
.chat__messages {
  position: relative;
  flex: 1;
  overflow: auto;
  padding: 12px;
  scroll-behavior: smooth;
  background: var(--bg);
}
.chat__typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--muted);
}
.chat__typing--hidden {
  display: none;
}
.chat__typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--typing);
  opacity: 0.25;
  animation: typing 1.2s infinite;
}
.chat__typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.chat__typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}
.chat__form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.chat__input {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chat__input::placeholder {
  color: var(--muted);
}
.chat__input:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(26, 50, 83, 0.15);
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: bubble-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.message--bot {
  flex-direction: row;
}
.message--user {
  flex-direction: row-reverse;
}
.message__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand) url("moris-logo-icon-inverted.svg") no-repeat center center;
  background-size: 18px 18px;
  user-select: none;
  margin-top: 18px;
}
.message__content {
  max-width: 78%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.message__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  padding: 0 2px;
}
.message__actions {
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.message__action-btn {
  background: none;
  border: none;
  padding: 0.3em;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.message__action-btn:hover {
  background: var(--action-hover-bg, #eee);
}
.message__action-btn svg {
  width: 16px;
  height: 17px;
  fill: currentColor;
  color: var(--text);
  vertical-align: middle;
}
.message__bubble {
  background: var(--bubble-bot);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.45;
}
.message__bubble a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}
.message__bubble a:hover {
  text-decoration: underline;
}
.message__bubble img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.message__bubble pre, .message__bubble code {
  white-space: pre-wrap;
}
.message__bubble p {
  margin: 0;
}
.message--user .message__bubble {
  background: var(--bubble-user);
}

.product__card {
  max-width: 400px;
  position: relative;
  background: var(--bubble-bot);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 8px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.4s ease forwards;
  animation-delay: 0.4s;
}
.product__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.product__card--unavailable .product__status {
  background: var(--status-offline);
}
.product__card a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.product__header {
  display: flex;
  gap: 10px;
  align-items: center;
}
.product__img-wrapper {
  position: relative;
}
.product__img {
  width: 100px;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.product__code {
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
}
.product__info {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text);
}
.product__dims {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.product__status {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  display: block;
  background: var(--status-online);
  border-radius: 2px;
}

.compare__wrap {
  margin: 8px 0;
}
.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}
.compare__table th, .compare__table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.compare__table thead th {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.compare__table tbody tr:nth-child(odd) {
  background: var(--bg);
}
.compare__table img {
  vertical-align: middle;
  width: 70px;
  height: auto;
}
.compare__table a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}
.compare__table a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .compare__table, .compare thead, .compare tbody, .compare th, .compare td, .compare tr {
    display: block;
    width: 100%;
  }
  .compare thead {
    display: none;
  }
  .compare tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    background: var(--panel);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  .compare td {
    border: 0;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
  }
  .compare td::before {
    content: attr(data-label);
    font-weight: 700;
    max-width: 50%;
  }
}

.mic-icon {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.mic-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.mic-icon--stop {
  color: var(--status-offline);
  opacity: 0;
  position: absolute; /* stack on top of mic icon */
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.mic-btn-wrapper {
  position: relative; /* parent wrapper for stacking */
}

.is-recording .mic-icon--stop {
  opacity: 1;
  animation: mic-glow-pulse 1.5s infinite ease-in-out;
}

.is-recording .mic-icon--mic {
  opacity: 0;
}

@keyframes mic-glow-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(255, 0, 0, 0.5));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(255, 0, 0, 0.5));
  }
}
@keyframes typing {
  0%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes bubble-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%, 100% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/*# sourceMappingURL=styles.css.map */
