/*
 * Ezer UI derivative of the supplied unchanged Studio source:
 * .studio-input-20261001/unchanged-snapshot/source/public/styles.css
 * lines 1651–1662, 1697, and the hidden rule at 2465.
 * Retains the mascot, greeting/idle media hero, and conversation panel.
 */

.local-assistant {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
}

.local-assistant,
.local-assistant * {
  box-sizing: border-box;
}

.local-assistant[hidden],
.local-assistant [hidden] {
  display: none !important;
}

.local-assistant button,
.local-assistant input {
  font: inherit;
}

.local-assistant button {
  cursor: pointer;
}

.local-assistant button:focus-visible,
.local-assistant input:focus-visible {
  outline: 3px solid #65b7f4;
  outline-offset: 3px;
}

.local-assistant-mascot {
  position: absolute;
  right: 5px;
  bottom: 35px;
  z-index: 0;
  width: 166px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 9px rgba(13, 42, 69, .18));
  transform: translateY(12px) scale(.96);
  transition: opacity .24s ease, transform .24s ease;
}

.local-assistant.mascot-visible .local-assistant-mascot {
  opacity: .82;
  transform: translateY(-4px) rotate(1deg);
}

.local-assistant-fab {
  position: relative;
  z-index: 1;
  min-height: 44px;
  border: 1px solid #6fa4ef;
  border-radius: 999px;
  padding: 12px 17px;
  background: #174b85;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(16, 57, 104, .26);
}

.local-assistant-fab kbd {
  margin-left: 7px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 5px;
  color: #d7e9f8;
  font-size: .72em;
  font-weight: 650;
}

.local-assistant-panel {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 54px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(390px, calc(100vw - 28px));
  max-height: min(520px, calc(100dvh - 360px));
  overflow: visible;
  border: 1px solid #cedce9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(24, 45, 69, .24);
}

.local-assistant-panel-hero {
  position: absolute;
  z-index: 1;
  top: -276px;
  left: 50%;
  display: block;
  width: min(286px, 76%);
  height: 300px;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 12px rgba(13, 42, 69, .22));
  background: transparent;
}

.local-assistant-panel-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity .45s ease-in-out;
}

.local-assistant-panel-hero .ezer-intro-video {
  z-index: 2;
  opacity: 1;
}

.local-assistant-panel-hero .ezer-idle-video {
  z-index: 1;
}

.local-assistant.hero-idle .ezer-intro-video {
  opacity: 0;
}

.local-assistant.hero-idle .ezer-idle-video {
  opacity: 1;
}

.local-assistant.is-open .local-assistant-panel-hero {
  animation: ezer-panel-arrive .3s ease-out both;
}

@keyframes ezer-panel-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

.local-assistant-panel > header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 17px;
  color: #fff;
  text-align: left;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(135deg, #123052, #1e5e90);
}

.local-assistant-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.local-assistant-title img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .2));
}

.local-assistant-panel header strong,
.local-assistant-panel header small {
  display: block;
}

.local-assistant-panel header strong {
  font-size: 15px;
}

.local-assistant-panel header small {
  margin-top: 3px;
  color: #bdd7ee;
  font-size: 11px;
}

.local-assistant-panel header button {
  position: static;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.local-assistant-log {
  display: grid;
  min-height: 0;
  max-height: 350px;
  gap: 9px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  background: #f6f9fc;
}

.local-assistant .assistant-message {
  max-width: 94%;
  border: 1px solid #dbe5ec;
  border-radius: 11px;
  padding: 10px 11px;
  background: #fff;
  color: #405264;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.local-assistant .assistant-message.user {
  margin-left: auto;
  border-color: #a9cef0;
  background: #eaf5ff;
  color: #1f5e94;
}

.local-assistant .assistant-message p {
  margin: 0;
}

.local-assistant .assistant-message .assistant-hebrew {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  letter-spacing: .01em;
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}

.local-assistant .assistant-greeting p {
  text-align: right;
}

.local-assistant .assistant-greeting > button {
  min-height: 44px;
  margin-top: 9px;
  border: 1px solid #c8d9e8;
  border-radius: 7px;
  padding: 7px 8px;
  background: #f9fcff;
  color: #28639b;
  font-size: 12px;
  text-align: left;
}

.local-assistant-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  padding: 12px;
  border-top: 1px solid #e2e9ef;
}

.local-assistant-panel input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cfdae5;
  border-radius: 9px;
  padding: 9px 10px;
  color: #405264;
  background: #fff;
}

.local-assistant-panel form button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  background: #2d70bd;
  color: #fff;
  font-weight: 750;
}

@media (max-width: 520px) {
  .local-assistant { right: 12px; bottom: 12px; }
  .local-assistant-panel {
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100dvh - 276px);
  }
  .local-assistant-panel-hero {
    top: -196px;
    width: min(210px, 70%);
    height: 220px;
  }
  .local-assistant-panel input { font-size: 16px; }
}

@media (max-height: 620px) {
  .local-assistant { right: 12px; bottom: 12px; }
  .local-assistant-panel { max-height: calc(100dvh - 226px); }
  .local-assistant-panel-hero {
    top: -146px;
    width: min(162px, 60%);
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .local-assistant.is-open .local-assistant-panel-hero { animation: none; }
  .local-assistant-mascot,
  .local-assistant-panel-hero video { transition: none; }
}
