body {
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.luxemeds-vapi-chat {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.luxemeds-vapi-chat__prompt {
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(207, 177, 103, 0.34);
  background: rgba(8, 14, 24, 0.92);
  color: #fff6df;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.luxemeds-vapi-chat__prompt.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Outer bar: white pill, thin border, subtle shadow */
.luxemeds-vapi-chat__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 8px 8px 12px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.luxemeds-vapi-chat__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.luxemeds-vapi-chat__avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.luxemeds-vapi-chat__presence {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #22c55e;
}

.luxemeds-vapi-chat__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Gold-bordered group: input + button inside one pill */
.luxemeds-vapi-chat__input-group {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 18px;
  border-radius: 50px;
  background: #fafafa;
}

.luxemeds-vapi-chat__input-wrap {
  flex: 1;
  min-width: 0;
  display: block;
}

.luxemeds-vapi-chat__input {
  width: 100%;
  min-height: 1rem !important;
  padding: 0;
  border: none;
  background: transparent;
  color: #1a2331;
  font-size: 15px;
  outline: none;
  border: none !important;
  padding: 0 16px;
  font-size: 12px;
}
.luxemeds-vapi-chat__input::placeholder {
  color: #6c7380;
}

.luxemeds-vapi-chat__input:focus {
  outline: none;
}

/* Button: muted gold/tan, white text, all caps */
.luxemeds-vapi-chat__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  min-width: 100px;
  height: 44px;
  padding: 0 20px;
  border-radius: 50px;
  background: #c29e4d;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 140ms ease,
    opacity 140ms ease;
}

.luxemeds-vapi-chat__button:hover,
.luxemeds-vapi-chat__button:focus {
  background: #b8923f;
  color: #fff !important;
}

.luxemeds-vapi-chat__button:disabled {
  cursor: wait;
  opacity: 0.8;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .luxemeds-vapi-chat {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .luxemeds-vapi-chat__bar {
    gap: 8px;
    padding: 6px 6px 6px 10px;
  }

  .luxemeds-vapi-chat__avatar {
    width: 40px;
    height: 40px;
  }

  .luxemeds-vapi-chat__input-group {
    padding: 4px 4px 4px 14px;
  }

  .luxemeds-vapi-chat__input,
  .luxemeds-vapi-chat__button {
    height: 38px;
  }

  .luxemeds-vapi-chat__input {
    font-size: 14px;
    min-height: 1rem;
    border: none;
  }

  .luxemeds-vapi-chat__button {
    min-width: 80px;
    padding: 0 16px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .luxemeds-vapi-chat__input-group {
    padding: 4px 4px 4px 12px;
  }
}
