.ea-chatbot,
.ea-chatbot * {
  box-sizing: border-box;
}

.ea-search-bridge,
.ea-search-bridge * {
  box-sizing: border-box;
}

.ea-search-bridge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 0 0 30px;
  padding: 22px 24px;
  clear: both;
  border: 1px solid #d8ded8;
  border-radius: 24px;
  background: #f3f0ea;
  color: #3f4542;
  box-shadow: 0 14px 34px rgba(36, 43, 39, 0.08);
  font-family: inherit;
}

.ea-search-bridge--empty {
  padding-top: 28px;
  padding-bottom: 28px;
  border-color: #9fbca6;
  box-shadow: 0 16px 38px rgba(36, 43, 39, 0.11);
}

.ea-search-bridge__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #9fbca6;
  color: #26302a;
  font-size: 22px;
}

.ea-search-bridge__content {
  min-width: 0;
}

.ea-search-bridge__query,
.ea-search-bridge__title,
.ea-search-bridge__text {
  margin: 0;
}

.ea-search-bridge__query {
  margin-bottom: 5px;
  color: #69716c;
  font-size: 13px;
  line-height: 1.4;
}

.ea-search-bridge__title {
  margin-bottom: 5px;
  color: #333333;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.25;
}

.ea-search-bridge__text {
  max-width: 680px;
  color: #535b56;
  font-size: 15px;
  line-height: 1.55;
}

.ea-search-bridge__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #333333;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.ea-search-bridge__button:hover {
  background: #202220;
  box-shadow: 0 8px 18px rgba(36, 43, 39, 0.16);
  transform: translateY(-1px);
}

.ea-search-bridge__button:focus-visible {
  outline: 3px solid #567a5c;
  outline-offset: 3px;
}

.ea-search-bridge__button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ea-chatbot {
  --ea-bg: #fdfbf7;
  --ea-cream: #f3f0ea;
  --ea-text: #3f4542;
  --ea-green: #9fbca6;
  --ea-green-header: #9fbca6;
  --ea-neutral: #e7e9e7;
  --ea-gold: #cdae48;
  --ea-tier-surface: #e5dbb7;
  --ea-discussion: #fcfaf7;
  --ea-visitor-message: #dcdcdc;
  --ea-border: #d8ded8;
  --ea-dark: #333333;
  color: var(--ea-text);
  font-family: inherit;
}

.ea-chatbot[data-ea-tier="discovery"] {
  --ea-tier-surface: #e5dbb7;
}

.ea-chatbot[data-ea-tier="exploration"] {
  --ea-tier-surface: #d3c586;
}

.ea-chatbot[data-ea-tier="subscription"],
.ea-chatbot[data-ea-tier="abonnement"] {
  --ea-tier-surface: #cdae48;
}

.ea-chatbot__launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ea-dark);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(36, 43, 39, 0.2);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.ea-chatbot__launcher:hover {
  background: #202220;
}

.ea-chatbot__launcher[hidden] {
  display: none;
}

.ea-chatbot__launcher:focus-visible,
.ea-chatbot__close:focus-visible,
.ea-chatbot__send:focus-visible,
.ea-chatbot__new:focus-visible,
.ea-chatbot__suggestion:focus-visible,
.ea-chatbot__action:focus-visible,
.ea-chatbot__crisis-country:focus-visible,
.ea-chatbot__crisis-back:focus-visible,
.ea-chatbot__urgent:focus-visible,
.ea-chatbot__feedback button:focus-visible,
.ea-chatbot__privacy-confirm:focus-visible {
  outline: 3px solid #567a5c;
  outline-offset: 3px;
}

.ea-chatbot__launcher-icon {
  color: #dbe6da;
  font-size: 20px;
}

.ea-chatbot__launcher-icon {
  animation: ea-soft-glow 3.6s ease-in-out infinite;
}

.ea-chatbot__dialog[hidden] {
  display: none;
}

.ea-chatbot__dialog {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 99999;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ea-border);
  border-radius: 20px;
  background: var(--ea-bg);
  box-shadow: 0 20px 60px rgba(36, 43, 39, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.ea-chatbot__dialog--open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ea-chatbot__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  padding: 20px 58px 20px 20px;
  border-bottom: 1px solid var(--ea-border);
  background: var(--ea-green-header);
}

.ea-chatbot__brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.ea-chatbot__brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #b7beb9;
  border-radius: 50%;
  background: var(--ea-neutral);
  color: #000000;
  font-size: 22px;
}

.ea-chatbot__header-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ea-chatbot__new {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #59635d;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: background 140ms ease, transform 140ms ease;
}

.ea-chatbot__new:hover {
  background: rgba(63, 69, 66, 0.08);
  transform: translateY(-1px);
}

.ea-chatbot__eyebrow,
.ea-chatbot__title,
.ea-chatbot__message p,
.ea-chatbot__status {
  margin: 0;
}

.ea-chatbot__eyebrow {
  margin-bottom: 2px;
  color: #e8e8e6;
  font-size: 17.6px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.ea-chatbot__title {
  color: var(--ea-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.ea-chatbot__close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ea-text);
  cursor: pointer;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.ea-chatbot__close:hover {
  background: rgba(63, 69, 66, 0.08);
}

.ea-chatbot__levelbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ea-border);
  background: var(--ea-tier-surface);
  color: #68635b;
  font-size: 12px;
  line-height: 1.45;
}

.ea-chatbot__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ea-neutral);
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ea-chatbot__quota {
  white-space: nowrap;
}

.ea-chatbot__quota-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.ea-chatbot__quota-dot {
  display: block;
  width: 9px;
  height: 9px;
  border: 1.5px solid #000000;
  border-radius: 50%;
  background: #000000;
}

.ea-chatbot__quota-dot--empty {
  background: transparent;
}

.ea-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--ea-discussion);
  overscroll-behavior: contain;
}

.ea-chatbot__invitation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
  padding: 14px;
  border-left: 4px solid var(--ea-tier-surface);
  background: #e1e9e2;
  background: color-mix(in srgb, var(--ea-green) 18%, var(--ea-discussion));
  font-size: 15px;
  line-height: 1.5;
}

.ea-chatbot__invitation[hidden] {
  display: none;
}

.ea-chatbot__invitation p {
  margin: 0;
}

.ea-chatbot__invitation-icon {
  flex: 0 0 auto;
  color: #000000;
  font-size: 20px;
}

.ea-chatbot__message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ea-chatbot__message--assistant {
  border: 1px solid var(--ea-border);
  border-bottom-left-radius: 5px;
  background: #ffffff;
}

.ea-chatbot__message--user {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: var(--ea-visitor-message);
  color: var(--ea-text);
}

.ea-chatbot__message--error {
  border: 1px solid #e7c4bd;
  border-bottom-left-radius: 5px;
  background: #fff1ee;
  color: #743b31;
}

.ea-chatbot__suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 2px;
}

.ea-chatbot__suggestions-label {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: #606763;
  font-size: 13px;
}

.ea-chatbot__suggestion {
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #cbd5cc;
  border-radius: 999px;
  background: var(--ea-discussion);
  color: #354239;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.ea-chatbot__suggestion:hover {
  border-color: #92a996;
  background: #e7ece7;
  transform: translateY(-1px);
}

.ea-chatbot__actions,
.ea-chatbot__feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ea-chatbot__action,
.ea-chatbot__crisis-country,
.ea-chatbot__urgent,
.ea-chatbot__feedback button {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #bac7bc;
  border-radius: 999px;
  background: #f7faf6;
  color: #354239;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.ea-chatbot__action {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ea-chatbot__crisis-countries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ea-chatbot__crisis-country {
  border-color: #8ca392;
  background: #eef4ed;
  color: #263c2b;
  cursor: pointer;
  text-align: center;
}

.ea-chatbot__crisis-country:disabled {
  cursor: wait;
  opacity: 0.6;
}

.ea-chatbot__crisis-back {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #526159;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ea-chatbot__crisis-actions .ea-chatbot__action {
  border-color: #6f8e76;
  background: #e7f0e7;
  color: #203c27;
  font-weight: 700;
}

.ea-chatbot__feedback {
  max-width: 100%;
  color: #647069;
  font-size: 11px;
}

.ea-chatbot__feedback > span {
  width: 100%;
}

.ea-chatbot__quota-card {
  margin: 8px 0 14px;
  padding: 15px;
  border: 1px solid #d9d1c4;
  border-radius: 16px;
  background: var(--ea-cream);
  color: #4d4a44;
  font-size: 13px;
  line-height: 1.5;
}

.ea-chatbot__quota-card p {
  margin: 9px 0 0;
}

.ea-chatbot__urgent {
  width: 100%;
  margin-top: 14px;
  border-color: #8e5a52;
  background: #fff7f5;
  color: #713c34;
  cursor: pointer;
  font-weight: 700;
}

.ea-chatbot__composer {
  padding: 14px 14px 7px;
  border-top: 1px solid var(--ea-border);
  background: var(--ea-green);
}

.ea-chatbot__input-wrap {
  position: relative;
}

.ea-chatbot__textarea {
  display: block;
  width: 100%;
  min-height: 74px;
  max-height: 150px;
  resize: none;
  padding: 11px 36px 11px 12px;
  border: 1px solid #bbc5bc;
  border-radius: 12px;
  background: #fcfaf7;
  color: var(--ea-text);
  font: inherit;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ea-chatbot__textarea:focus {
  border-color: #7f8882;
  outline: 0;
  box-shadow: 0 0 0 1px rgba(127, 136, 130, 0.28);
}

.ea-chatbot__resize-handle {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: ns-resize;
  touch-action: none;
}

.ea-chatbot__resize-handle::before {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 13px;
  height: 2px;
  background: #59635d;
  box-shadow: 0 5px 0 #59635d, 0 10px 0 #59635d;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}

.ea-chatbot__resize-handle:hover {
  background: rgba(63, 69, 66, 0.08);
}

.ea-chatbot__resize-handle:focus-visible {
  outline: 2px solid #7f8882;
  outline-offset: 1px;
}

.ea-chatbot__composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.ea-chatbot__counter,
.ea-chatbot__status {
  color: #6c756f;
  font-size: 12px;
}

.ea-chatbot__counter {
  margin-left: 5px;
  transform: translateY(-8px);
}

.ea-chatbot__privacy[hidden] {
  display: none;
}

.ea-chatbot__privacy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(39, 44, 41, 0.38);
  backdrop-filter: blur(2px);
}

.ea-chatbot__privacy-card {
  width: min(410px, 100%);
  padding: 20px;
  border: 1px solid #d9ddd8;
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: 0 18px 50px rgba(36, 43, 39, 0.2);
}

.ea-chatbot__privacy-card h3,
.ea-chatbot__privacy-card p {
  margin: 0;
}

.ea-chatbot__privacy-card h3 {
  margin-bottom: 10px;
  color: #3f4542;
  font-size: 19px;
}

.ea-chatbot__privacy-card p {
  color: #555c58;
  font-size: 14px;
  line-height: 1.55;
}

.ea-chatbot__privacy-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  color: #59615c;
  font-size: 12px;
  line-height: 1.4;
}

.ea-chatbot__privacy-confirm {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ea-dark);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

@keyframes ea-soft-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (min-width: 981px) {
  .ea-chatbot__dialog {
    width: min(558px, calc(100vw - 48px));
    height: 90vh;
    max-height: calc(100vh - 50px);
    bottom: 26px;
  }
}

.ea-chatbot__send {
  min-width: 96px;
  min-height: 44px;
  margin-right: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ea-dark);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.ea-chatbot__send:disabled {
  cursor: wait;
  opacity: 0.6;
}

.ea-chatbot__send--quota:disabled {
  cursor: not-allowed;
}

.ea-chatbot__status {
  min-height: 12px;
  margin-top: 4px;
}

.ea-chatbot__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .ea-search-bridge {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    padding: 19px 18px;
    border-radius: 20px;
  }

  .ea-search-bridge__icon {
    width: 42px;
    height: 42px;
  }

  .ea-search-bridge__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ea-chatbot__launcher {
    right: 14px;
    bottom: 14px;
  }

  .ea-chatbot__dialog {
    inset: 12px;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 16px;
  }

  .ea-chatbot-is-open {
    overflow: hidden;
  }

  .ea-chatbot__suggestions {
    grid-template-columns: 1fr;
  }

  .ea-chatbot__crisis-countries {
    grid-template-columns: 1fr;
  }

  .ea-chatbot__crisis-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ea-chatbot__crisis-actions .ea-chatbot__action {
    width: 100%;
    justify-content: center;
  }

  .ea-chatbot__new {
    max-width: 100px;
    line-height: 1.15;
  }

  .ea-chatbot__levelbar {
    flex-wrap: wrap;
  }

  .ea-chatbot__header {
    min-height: 112px;
  }

  .ea-chatbot__brand-lockup {
    align-items: flex-start;
  }
}

@media (max-width: 782px) {
  body.admin-bar .ea-chatbot__dialog {
    top: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ea-search-bridge__button {
    transition: none;
  }

  .ea-chatbot__dialog {
    transition: none;
  }

  .ea-chatbot__launcher-icon {
    animation: none;
  }
}
