.oak-ai {
  position: fixed;
  right: 1.5rem;
  bottom: 7rem;
  z-index: 999;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #172033;
}
.oak-ai__launcher {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.45rem 1.05rem 0.45rem 0.5rem;
  background: #172033;
  color: #fff;
  box-shadow: 0 18px 48px rgba(11, 27, 43, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.oak-ai__launcher:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(11, 27, 43, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.oak-ai__launcher > span {
  display: grid;
  gap: 3px;
  text-align: left;
}
.oak-ai__launcher strong {
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}
.oak-ai__launcher small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.58rem;
}
.oak-ai__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7ee2a8;
  box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.55);
  animation: oakPulse 2s infinite;
}
.oak-ai__panel {
  position: absolute;
  right: 0;
  bottom: 4.25rem;
  width: min(400px, calc(100vw - 2rem));
  height: min(640px, calc(100dvh - 9rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  isolation: isolate;
  border-radius: 28px;
  background-color: rgba(255, 253, 248, 0.78);
  background-image:
    linear-gradient(
      180deg,
      rgba(12, 29, 48, 0.94) 0,
      rgba(42, 51, 79, 0.72) 58px,
      rgba(255, 252, 247, 0.73) 122px,
      rgba(255, 252, 247, 0.67) 100%
    ),
    url("images/locavero-chat-pattern-photo-v2.jpg");
  background-position: center;
  background-size: auto, 520px;
  box-shadow: 0 32px 90px rgba(11, 27, 43, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  animation: oakChatIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  color: #f5efe7;
}
.oak-ai__panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 132px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0), rgba(255, 252, 247, 0.48));
}
.oak-ai__panel[hidden] {
  display: none !important;
}
.oak-ai__panel header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 1rem 1.1rem;
  color: #fff;
}
.oak-ai__identity {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}
.oak-ai__identity span {
  display: grid;
  gap: 3px;
}
.oak-ai__identity small {
  letter-spacing: 0.16em;
  font-size: 0.63rem;
  color: #f2b69c;
  white-space: nowrap;
}
.oak-ai__identity strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
}
.oak-ai__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}
.oak-ai__tabs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem 0.65rem;
}
.oak-ai__tabs button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 0.55rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.oak-ai__tabs button.is-active {
  border-color: #fff;
  color: #172033;
  background: #fff;
}
.oak-ai__messages {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.oak-ai__message {
  position: relative;
  max-width: 86%;
  white-space: pre-line;
  border-radius: 19px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.48;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  animation: oakMessageIn 220ms ease both;
}
.oak-ai__message::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 12px;
  height: 15px;
}
.oak-ai__message--assistant {
  align-self: flex-start;
  border-bottom-left-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.76);
  color: #201d19;
  box-shadow: 0 9px 26px rgba(23, 32, 51, 0.09);
  backdrop-filter: blur(14px);
}
.oak-ai__message--assistant::after {
  left: -8px;
  border-radius: 0 0 0 9px;
  background: rgba(255, 255, 255, 0.76);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.oak-ai__message--user {
  align-self: flex-end;
  border-color: rgba(255, 255, 255, 0.14);
  border-bottom-right-radius: 7px;
  background: rgba(11, 27, 43, 0.88);
  color: #fff;
}
.oak-ai__message--user::after {
  right: -8px;
  border-radius: 0 0 9px;
  background: rgba(11, 27, 43, 0.88);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.oak-ai__choices {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 126px;
  overflow-y: auto;
  padding: 0 18px 12px;
}
.oak-ai__choice {
  border: 1px solid #c9c4ba;
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  color: #293140;
  cursor: pointer;
  font-weight: 650;
}
.oak-ai__choice:hover {
  border-color: #293140;
}
.oak-ai__form {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin: 0.45rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
}
.oak-ai__form input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 11px;
  color: #172033;
}
.oak-ai__footer {
  position: relative;
  z-index: 2;
  padding: 3px 15px 11px;
  color: #625d58;
  text-align: center;
  font-size: 9px;
}
.oak-ai__form button {
  border: 0;
  border-radius: 12px;
  background: #172033;
  color: #fff;
  padding: 0 15px;
  font-weight: 700;
  cursor: pointer;
}
@keyframes oakPulse {
  70% {
    box-shadow: 0 0 0 10px rgba(126, 226, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(126, 226, 168, 0);
  }
}
@keyframes oakChatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes oakMessageIn {
  from { opacity: 0; transform: translateY(7px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .oak-ai {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
  .oak-ai__panel {
    position: fixed;
    inset: 1rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    background-size: auto, 450px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .oak-ai__pulse {
    animation: none;
  }
}
.oak-ai__lv {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 5px;
  background: #111a27;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}
.oak-ai__lv img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.oak-ai__panel .oak-ai__lv {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  padding: 7px;
  background: #111a27;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.oak-ai__offer {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(350px, calc(100vw - 28px));
  padding: 24px;
  border-radius: 23px;
  background: linear-gradient(145deg, #0d0c0b, #30271f);
  color: #fff;
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.38);
}
.oak-ai__offer small {
  display: block;
  color: #d7bd91;
}
.oak-ai__offer strong {
  display: block;
  margin: 9px 22px 8px 0;
  font:
    600 27px/1.02 Georgia,
    serif;
}
.oak-ai__offer p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}
.oak-ai__offer-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.oak-ai__offer-action {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #efe3d0;
  color: #151719;
  padding: 13px 16px;
  font-weight: 800;
  cursor: pointer;
}
.oak-ai__mini {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 310px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(11, 27, 43, 0.14);
  border-radius: 20px;
  background: #fffdf8;
  padding: 12px 13px;
  box-shadow: 0 24px 65px rgba(11, 27, 43, 0.22);
  cursor: pointer;
  text-align: left;
}
.oak-ai__mini[hidden],
.oak-ai__offer[hidden] {
  display: none;
}
.oak-ai__mini > b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 5px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #111a27;
  overflow: hidden;
}
.oak-ai__mini span {
  display: grid;
  gap: 2px;
  flex: 1;
}
.oak-ai__mini span strong {
  font-size: 13px;
}
.oak-ai__mini span small {
  font-size: 11px;
  letter-spacing: 0;
  color: #687083;
}
.oak-ai__mini i {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #ba764a;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}
.oak-ai__panel header {
  align-items: center;
}
.oak-ai__panel header .oak-ai__close {
  margin-left: auto;
}
.oak-ai__launcher > .oak-ai__lv {
  width: 2.55rem;
  height: 2.55rem;
  flex-basis: 2.55rem;
  background: #111a27;
}
@media (max-width: 600px) {
  .oak-ai__offer,
  .oak-ai__mini {
    display: none !important;
  }
  .oak-ai {
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
  .oak-ai__launcher > span {
    display: none;
  }
  .oak-ai__launcher {
    width: 3.5rem;
    min-height: 3.25rem;
    padding: 0.4rem;
  }
}
