/* ===== AEGEANTEK ASSISTANT V1 ===== */

.agt-assistant {
  --agt-dark: #10272c;
  --agt-gold: #b69558;
  --agt-paper: #ffffff;
  --agt-soft: #f4f6f5;
  --agt-line: rgba(16, 39, 44, .13);
  --agt-muted: #667276;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  font-family: inherit;
}

.agt-assistant *,
.agt-assistant *::before,
.agt-assistant *::after {
  box-sizing: border-box;
}

.agt-assistant-launcher {
  width: 110px;
  height: 110px;
  padding: 0;
  border: 4px solid rgba(255,255,255,.94);
  border-radius: 50%;
  background: var(--agt-dark);
  box-shadow: 0 12px 34px rgba(10,30,34,.24);
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease;
}

.agt-assistant-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(10,30,34,.3);
}

.agt-assistant-launcher img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.agt-assistant-online {
  position: absolute;
  right: 1px;
  bottom: 4px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #36b37e;
}

.agt-assistant-hint {
  position: absolute;
  right: 122px;
  bottom: 27px;
  width: max-content;
  max-width: 230px;
  padding: 10px 14px;
  border: 1px solid var(--agt-line);
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 28px rgba(10,30,34,.12);
  color: var(--agt-dark);
  font-size: 14px;
  line-height: 1.35;
  pointer-events: none;
}

.agt-assistant-hint strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.agt-assistant-window {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(390px, calc(100vw - 32px));
  height: min(610px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--agt-line);
  border-radius: 18px;
  background: var(--agt-paper);
  box-shadow: 0 24px 70px rgba(10,30,34,.25);
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease;
}

.agt-assistant-window[hidden] {
  display: none;
}

.agt-assistant-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: var(--agt-dark);
  color: #fff;
}

.agt-assistant-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
  object-fit: cover;
}

.agt-assistant-heading {
  min-width: 0;
  flex: 1;
}

.agt-assistant-heading strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.agt-assistant-heading span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: .78;
}

.agt-assistant-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.agt-assistant-disclosure {
  padding: 8px 13px;
  border-bottom: 1px solid var(--agt-line);
  background: #fafbf9;
  color: var(--agt-muted);
  font-size: 11px;
  line-height: 1.4;
}

.agt-assistant-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 13px 8px;
  background: var(--agt-soft);
  scroll-behavior: smooth;
}

.agt-message {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.agt-message-assistant {
  margin-right: auto;
  border: 1px solid #e1e6e4;
  border-bottom-left-radius: 5px;
  background: #fff;
  color: #17272b;
}

.agt-message-user {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: var(--agt-dark);
  color: #fff;
}

.agt-message-typing {
  color: var(--agt-muted);
  font-style: italic;
}

.agt-assistant-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--agt-line);
  background: #fff;
}

.agt-assistant-input {
  flex: 1;
  min-height: 46px;
  max-height: 130px;
  resize: none;
  overflow-y: auto;
  padding: 11px 12px;
  border: 1px solid #ccd5d2;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #14272b;
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
}

.agt-assistant-input::placeholder {
  color: #758185;
  opacity: 1;
}

.agt-assistant-input:focus {
  border-color: var(--agt-gold);
  box-shadow: 0 0 0 2px rgba(182,149,88,.12);
}

.agt-assistant-send {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 0;
  border-radius: 12px;
  background: var(--agt-gold);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
}

.agt-assistant-send:disabled,
.agt-assistant-input:disabled {
  opacity: .58;
  cursor: default;
}

.agt-assistant-launcher[hidden],
.agt-assistant-hint[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .agt-assistant {
    right: 14px;
    bottom: 14px;
  }

  .agt-assistant-launcher {
    width: 86px;
    height: 86px;
  }

  .agt-assistant-hint {
    right: 96px;
    bottom: 18px;
    max-width: 190px;
    font-size: 13px;
  }

  .agt-assistant-window {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: min(620px, calc(100dvh - 20px));
    border-radius: 16px;
  }

  .agt-assistant-input {
    font-size: 16px;
  }

  .agt-message {
    max-width: 90%;
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agt-assistant *,
  .agt-assistant *::before,
  .agt-assistant *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* AEGEANTEK TURNSTILE HUMAN GATE V1 */
.agt-assistant-verification {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: #faf9f6;
}

.agt-assistant-verification[hidden] {
  display: none;
}

.agt-assistant-verification > span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
  opacity: .68;
}

.agt-assistant-verification [data-agt-turnstile] {
  width: 100%;
}
