/* EE Draws assistant widget — scoped styles only.
   Every selector lives under #ee-assist-root, so nothing here can leak
   into the rest of the site. Design canon: ink navy #0c1a2e/#071120,
   gold #c19a3f, ivory #faf7f1, Fraunces headings, Inter text. */

#ee-assist-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#ee-assist-root .ee-assist-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid #0c1a2e;
  background: #0c1a2e;
  color: #f7f2e4;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(12, 26, 46, 0.55);
}

#ee-assist-root .ee-assist-button:hover {
  background: #13263f;
}

#ee-assist-root .ee-assist-button {
  gap: 10px;
  padding-left: 14px;
}

#ee-assist-root .ee-assist-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #c19a3f;
  background: #0c1a2e;
}

#ee-assist-root .ee-assist-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#ee-assist-root .ee-assist-identity .ee-assist-avatar {
  width: 36px;
  height: 36px;
}

#ee-assist-root .ee-assist-titleblock {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

#ee-assist-root .ee-assist-subtitle {
  font-size: 0.8rem;
  color: #c3cedd;
}

#ee-assist-root .ee-assist-button:focus-visible,
#ee-assist-root .ee-assist-close:focus-visible,
#ee-assist-root .ee-assist-chip:focus-visible,
#ee-assist-root .ee-assist-send:focus-visible,
#ee-assist-root .ee-assist-input:focus-visible {
  outline: 2px solid #c19a3f;
  outline-offset: 2px;
}

#ee-assist-root .ee-assist-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(400px, calc(100vw - 32px));
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #faf7f1;
  border: 1px solid #e4dcc8;
  border-top: 3px solid #c19a3f;
  border-radius: 20px;
  box-shadow: 0 24px 48px -24px rgba(12, 26, 46, 0.35);
  overflow: hidden;
}

#ee-assist-root .ee-assist-hidden {
  display: none !important;
}

#ee-assist-root .ee-assist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #0c1a2e;
  color: #f7f2e4;
}

#ee-assist-root .ee-assist-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.1rem;
}

#ee-assist-root .ee-assist-close {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f7f2e4;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

#ee-assist-root .ee-assist-note {
  padding: 10px 18px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #5d6a7a;
  background: #f4efe3;
  border-bottom: 1px solid #e4dcc8;
}

#ee-assist-root .ee-assist-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

#ee-assist-root .ee-assist-msg {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #22303f;
  background: #ffffff;
  border: 1px solid #e4dcc8;
  overflow-wrap: anywhere;
}

#ee-assist-root .ee-assist-msg a {
  color: #a37f27;
  text-decoration: underline;
}

#ee-assist-root .ee-assist-user {
  align-self: flex-end;
  background: #0c1a2e;
  color: #f7f2e4;
  border-color: #0c1a2e;
  max-width: 85%;
}

#ee-assist-root .ee-assist-disclaimer {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #5d6a7a;
}

#ee-assist-root .ee-assist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}

#ee-assist-root .ee-assist-chip {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e4dcc8;
  background: #ffffff;
  color: #0c1a2e;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

#ee-assist-root .ee-assist-chip:hover {
  border-color: #c19a3f;
}

#ee-assist-root .ee-assist-form {
  display: flex;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid #e4dcc8;
  background: #ffffff;
}

#ee-assist-root .ee-assist-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#ee-assist-root .ee-assist-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d8d0ba;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0c1a2e;
  background: #fff;
}

#ee-assist-root .ee-assist-send {
  min-width: 64px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #0c1a2e;
  background: #0c1a2e;
  color: #f7f2e4;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

/* Phone widths: the panel becomes a full-width bottom sheet. */
@media (max-width: 640px) {
  #ee-assist-root {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  #ee-assist-root .ee-assist-panel {
    right: 0;
    left: 0;
    bottom: 64px;
    width: auto;
    max-height: 75vh;
  }

  #ee-assist-root .ee-assist-button {
    min-height: 48px;
    padding: 12px 20px;
  }
}
