.ep-chatbot {
  --ep-chatbot-safe-bottom: 24px;
  --ep-chatbot-blue: #143f35;
  --ep-chatbot-ink: #1b1714;
  --ep-chatbot-muted: #5c6675;
  --ep-chatbot-border: #d7dde7;
  --ep-chatbot-surface: #ffffff;
  --ep-chatbot-soft: #f7f3ed;
  --ep-chatbot-accent: #b65a37;
  font-family: Arial, Helvetica, sans-serif;
  position: fixed;
  inset: auto 0 0 auto;
  z-index: 999;
  pointer-events: none;
}

.ep-chatbot * {
  box-sizing: border-box;
}

.ep-chatbot-launcher {
  align-items: center;
  background: var(--ep-chatbot-blue);
  border: 0;
  border-radius: 999px;
  bottom: calc(var(--ep-chatbot-safe-bottom) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 14px 34px rgba(12, 27, 48, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  height: 56px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-width: 56px;
  padding: 0 18px;
  pointer-events: auto;
  position: fixed;
  right: 24px;
  white-space: nowrap;
}

.ep-chatbot-launcher:focus-visible,
.ep-chatbot-send:focus-visible,
.ep-chatbot-close:focus-visible,
.ep-chatbot-link:focus-visible,
.ep-chatbot-input:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
}

.ep-chatbot-launcher-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.ep-chatbot[data-open="true"] .ep-chatbot-launcher {
  display: none;
}

.ep-chatbot-panel {
  background: var(--ep-chatbot-surface);
  border: 1px solid var(--ep-chatbot-border);
  border-radius: 8px;
  bottom: calc(var(--ep-chatbot-safe-bottom) + 72px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 24px 60px rgba(12, 27, 48, 0.25);
  display: none;
  flex-direction: column;
  max-height: min(620px, calc(100vh - 148px));
  min-height: 420px;
  overflow: hidden;
  pointer-events: auto;
  position: fixed;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
}

.ep-chatbot-panel[data-open="true"] {
  display: flex;
}

.ep-chatbot-header {
  align-items: center;
  background: var(--ep-chatbot-blue);
  color: #ffffff;
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
}

.ep-chatbot-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.ep-chatbot-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.3;
  margin: 3px 0 0;
}

.ep-chatbot-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  margin-left: auto;
  pointer-events: auto;
  width: 34px;
}

.ep-chatbot-messages {
  background: var(--ep-chatbot-soft);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.ep-chatbot-message {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 92%;
  padding: 10px 12px;
  word-break: break-word;
}

.ep-chatbot-message[data-role="assistant"] {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--ep-chatbot-border);
  color: var(--ep-chatbot-ink);
}

.ep-chatbot-message[data-role="user"] {
  align-self: flex-end;
  background: var(--ep-chatbot-blue);
  color: #ffffff;
}

.ep-chatbot-message[data-state="notice"] {
  background: #fff8e5;
  border-color: #ead28b;
}

	.ep-chatbot-actions {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 8px;
	  padding: 0 14px 12px;
	}

.ep-chatbot-link {
  align-items: center;
  border: 1px solid var(--ep-chatbot-border);
  border-radius: 6px;
  color: var(--ep-chatbot-blue);
  display: inline-flex;
	  flex: 1 1 0;
	  font-size: 13px;
	  font-weight: 700;
	  justify-content: center;
	  line-height: 1.2;
	  min-height: 38px;
	  min-width: 110px;
	  padding: 8px 10px;
	  text-align: center;
	  text-decoration: none;
}

.ep-chatbot-link[data-primary="true"] {
  background: var(--ep-chatbot-accent);
  border-color: var(--ep-chatbot-accent);
  color: #ffffff;
}

.ep-chatbot-form {
  border-top: 1px solid var(--ep-chatbot-border);
  display: flex;
  gap: 8px;
  padding: 12px;
}

.ep-chatbot-input {
  border: 1px solid var(--ep-chatbot-border);
  border-radius: 6px;
  color: var(--ep-chatbot-ink);
  flex: 1 1 auto;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  min-height: 42px;
  min-width: 0;
  padding: 10px 11px;
}

.ep-chatbot-send {
  background: var(--ep-chatbot-blue);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 42px;
  padding: 0 14px;
}

.ep-chatbot-send[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.ep-chatbot-status {
  color: var(--ep-chatbot-muted);
  font-size: 12px;
  line-height: 1.35;
  padding: 0 14px 12px;
}

@media (max-width: 640px) {
  .ep-chatbot {
    --ep-chatbot-safe-bottom: 88px;
  }

  .ep-chatbot-launcher {
    bottom: calc(var(--ep-chatbot-safe-bottom) + env(safe-area-inset-bottom, 0px));
    height: 52px;
    padding: 0 14px;
    right: 16px;
  }

  .ep-chatbot-panel {
    bottom: calc(var(--ep-chatbot-safe-bottom) + 64px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 176px);
    min-height: min(420px, calc(100vh - 176px));
    right: 12px;
    width: calc(100vw - 24px);
  }

  .ep-chatbot-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ep-chatbot-launcher,
  .ep-chatbot-panel {
    transition: transform 140ms ease, opacity 140ms ease;
  }
}
