@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

#ng-chatbot-root {
  --ng-chatbot-primary: #6c217f;
  --ng-chatbot-primary-strong: #551267;
  --ng-chatbot-primary-soft: #8f46a5;
  --ng-chatbot-accent: #77cf66;
  --ng-chatbot-accent-strong: #5cbc4b;
  --ng-chatbot-surface: #ffffff;
  --ng-chatbot-surface-soft: #f8f1fb;
  --ng-chatbot-text: #46125a;
  --ng-chatbot-border: rgba(108, 33, 127, 0.16);

  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

button#ng-chatbot-launcher.ng-chatbot-launcher,
#ng-chatbot-root .ng-chatbot-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 54px;
  padding: 0 22px;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(108, 33, 127, 0.12);
  border-radius: 999px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background: var(--ng-chatbot-primary) !important;
  background-color: var(--ng-chatbot-primary) !important;
  background-image: none !important;
  opacity: 1 !important;
  box-shadow:
    0 16px 36px rgba(78, 18, 95, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: none;
}

button#ng-chatbot-launcher.ng-chatbot-launcher:hover,
button#ng-chatbot-launcher.ng-chatbot-launcher:focus-visible,
button#ng-chatbot-launcher.ng-chatbot-launcher:active,
#ng-chatbot-root .ng-chatbot-launcher:hover,
#ng-chatbot-root .ng-chatbot-launcher:focus-visible,
#ng-chatbot-root .ng-chatbot-launcher:active {
  transform: none;
  box-shadow:
    0 16px 36px rgba(78, 18, 95, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: var(--ng-chatbot-primary) !important;
  background-color: var(--ng-chatbot-primary) !important;
  background-image: none !important;
  opacity: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

button#ng-chatbot-launcher.ng-chatbot-launcher:focus-visible,
#ng-chatbot-root .ng-chatbot-launcher:focus-visible {
  outline: 0;
}

button#ng-chatbot-launcher.ng-chatbot-launcher .ng-chatbot-launcher-label,
#ng-chatbot-root .ng-chatbot-launcher-label {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font: inherit;
}

button#ng-chatbot-launcher.ng-chatbot-launcher *,
button#ng-chatbot-launcher.ng-chatbot-launcher:hover *,
button#ng-chatbot-launcher.ng-chatbot-launcher:focus-visible *,
button#ng-chatbot-launcher.ng-chatbot-launcher:active *,
#ng-chatbot-root .ng-chatbot-launcher *,
#ng-chatbot-root .ng-chatbot-launcher:hover *,
#ng-chatbot-root .ng-chatbot-launcher:focus-visible *,
#ng-chatbot-root .ng-chatbot-launcher:active * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

#ng-chatbot-panel[hidden],
.ng-chatbot-panel[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#ng-chatbot-root.ng-chatbot-open .ng-chatbot-panel {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ng-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ng-chatbot-border);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 239, 251, 0.96), rgba(255, 255, 255, 0.98) 30%),
    var(--ng-chatbot-surface);
  box-shadow:
    0 28px 72px rgba(71, 17, 86, 0.22),
    0 10px 26px rgba(71, 17, 86, 0.14);
  backdrop-filter: blur(12px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ng-chatbot-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 20px;
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--ng-chatbot-primary) 0%, #70288a 52%, var(--ng-chatbot-primary-soft) 100%);
  overflow: hidden;
}

.ng-chatbot-header::before {
  content: '';
  position: absolute;
  top: -18px;
  right: 52px;
  width: 124px;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  transform: skewX(-28deg);
  opacity: 0.65;
  pointer-events: none;
}

.ng-chatbot-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.ng-chatbot-title-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ng-chatbot-eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.78;
}

.ng-chatbot-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.ng-chatbot-close {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.ng-chatbot-close:hover,
.ng-chatbot-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.ng-chatbot-close:focus-visible {
  outline: 0;
}

.ng-chatbot-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  max-height: 420px;
  color: var(--ng-chatbot-text);
  background:
    radial-gradient(circle at top right, rgba(185, 132, 209, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(126, 55, 151, 0.08), transparent 26%),
    linear-gradient(160deg, rgba(245, 234, 249, 0.8) 0%, rgba(255, 255, 255, 0.94) 34%, rgba(250, 244, 252, 1) 100%);
}

.ng-chatbot-message-row {
  display: flex;
}

.ng-chatbot-message-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 10px 24px rgba(82, 25, 98, 0.08);
}

.ng-chatbot-message-bubble a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.ng-chatbot-user {
  justify-content: flex-end;
}

.ng-chatbot-user .ng-chatbot-message-bubble {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ng-chatbot-primary), var(--ng-chatbot-primary-soft));
  border-bottom-right-radius: 6px;
}

.ng-chatbot-assistant {
  justify-content: flex-start;
}

.ng-chatbot-assistant .ng-chatbot-message-bubble {
  color: var(--ng-chatbot-text);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(108, 33, 127, 0.12);
  border-bottom-left-radius: 6px;
}

.ng-chatbot-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(108, 33, 127, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 241, 251, 0.96));
}

.ng-chatbot-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(108, 33, 127, 0.16);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ng-chatbot-text);
  background: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ng-chatbot-input::placeholder {
  color: rgba(70, 18, 90, 0.54);
}

.ng-chatbot-input:focus {
  outline: none;
  border-color: rgba(108, 33, 127, 0.45);
  box-shadow: 0 0 0 3px rgba(108, 33, 127, 0.12);
}

.ng-chatbot-send {
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--ng-chatbot-accent), var(--ng-chatbot-accent-strong));
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  box-shadow: 0 12px 24px rgba(92, 188, 75, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.ng-chatbot-send:hover,
.ng-chatbot-send:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(92, 188, 75, 0.28);
  filter: saturate(1.04);
}

.ng-chatbot-send:focus-visible {
  outline: 0;
}

.ng-chatbot-send[disabled],
.ng-chatbot-input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  #ng-chatbot-root {
    right: 12px;
    bottom: 12px;
  }

  .ng-chatbot-launcher {
    min-width: 136px;
    height: 50px;
    padding: 0 18px;
  }

  .ng-chatbot-panel {
    width: min(92vw, 380px);
    max-height: 74vh;
    bottom: 68px;
  }

  .ng-chatbot-messages {
    min-height: 210px;
  }

  .ng-chatbot-form {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .ng-chatbot-send {
    width: 100%;
    justify-content: center;
  }
}
