.fepl-concierge,
.fepl-concierge * {
  box-sizing: border-box;
}

.fepl-concierge {
  --fepl-teal: #278883;
  --fepl-teal-dark: #125f5c;
  --fepl-gold: #d7ac37;
  --fepl-ink: #183331;
  --fepl-muted: #687b79;
  --fepl-cream: #f7f5ef;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  font-family: inherit;
  line-height: 1.5;
  letter-spacing: 0;
}

.fepl-concierge-panel[hidden] {
  display: none !important;
}

.fepl-concierge-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: flex;
  width: 380px;
  height: min(550px, calc(100vh - 120px));
  overflow: hidden;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(39, 136, 131, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 65px rgba(16, 56, 54, 0.24);
  animation: fepl-panel-in 180ms ease-out;
}

@keyframes fepl-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fepl-concierge-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: #ffffff;
  background: var(--fepl-teal);
  border-bottom: 3px solid var(--fepl-gold);
}

.fepl-concierge-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.fepl-concierge-identity h2 {
  overflow: hidden;
  margin: 0 0 2px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fepl-concierge-identity > div > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 500;
}

.fepl-concierge-identity i {
  width: 6px;
  height: 6px;
  background: var(--fepl-gold);
  border-radius: 50%;
}

.fepl-concierge-header-icon,
.fepl-concierge-launcher-icon {
  display: grid;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  background: #ffffff;
  border-radius: 50%;
}

.fepl-concierge-header-icon {
  width: 40px;
  height: 40px;
}

.fepl-concierge-header-icon img,
.fepl-concierge-launcher-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fepl-monogram {
  color: var(--fepl-teal-dark);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.fepl-concierge-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font: 300 26px/1 Arial, sans-serif;
  place-items: center;
}

.fepl-concierge-close:hover,
.fepl-concierge-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.fepl-concierge-messages {
  flex: 1 1 auto;
  min-height: 160px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 16px;
  background: #fbfcfb;
  scrollbar-color: rgba(39, 136, 131, 0.28) transparent;
  scrollbar-width: thin;
}

.fepl-message {
  display: flex;
  margin-bottom: 12px;
}

.fepl-message-user {
  justify-content: flex-end;
}

.fepl-message-bubble {
  max-width: 84%;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.fepl-message-bot .fepl-message-bubble {
  color: var(--fepl-ink);
  background: var(--fepl-cream);
  border: 1px solid rgba(39, 136, 131, 0.1);
  border-radius: 2px 8px 8px 8px;
}

.fepl-message-user .fepl-message-bubble {
  color: #ffffff;
  background: var(--fepl-teal);
  border-radius: 8px 2px 8px 8px;
}

.fepl-concierge-actions {
  flex: 0 0 auto;
  padding: 13px 14px 11px;
  background: #ffffff;
  border-top: 1px solid rgba(39, 136, 131, 0.12);
}

.fepl-whatsapp-handoff {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 10px;
  padding: 9px 12px;
  color: var(--fepl-teal-dark);
  background: rgba(215, 172, 55, 0.13);
  border: 1px solid rgba(215, 172, 55, 0.55);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.fepl-whatsapp-handoff:hover,
.fepl-whatsapp-handoff:focus-visible {
  color: #ffffff;
  background: var(--fepl-teal-dark);
  border-color: var(--fepl-teal-dark);
  outline: none;
}

.fepl-wa-mark {
  display: grid;
  width: 24px;
  height: 24px;
  color: #ffffff;
  background: var(--fepl-teal);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
  place-items: center;
}

.fepl-concierge-form {
  display: grid;
  min-height: 46px;
  grid-template-columns: 1fr 42px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(39, 136, 131, 0.25);
  border-radius: 4px;
}

.fepl-concierge-form:focus-within {
  border-color: var(--fepl-teal);
  box-shadow: 0 0 0 2px rgba(39, 136, 131, 0.1);
}

.fepl-concierge-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  color: var(--fepl-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.fepl-concierge-form input::placeholder {
  color: #8a9997;
}

.fepl-concierge-form button {
  display: grid;
  width: 42px;
  padding: 0;
  color: #ffffff;
  background: var(--fepl-teal);
  border: 0;
  cursor: pointer;
  font: 400 20px/1 Arial, sans-serif;
  place-items: center;
}

.fepl-concierge-form button:hover,
.fepl-concierge-form button:focus-visible {
  background: var(--fepl-teal-dark);
  outline: none;
}

.fepl-concierge-note {
  margin: 7px 0 0;
  color: var(--fepl-muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.fepl-concierge-launcher {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  margin-left: auto;
  padding: 0;
  color: #ffffff;
  background: var(--fepl-teal);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(18, 95, 92, 0.32);
  cursor: pointer;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease;
}

.fepl-concierge-launcher:hover,
.fepl-concierge-launcher:focus-visible {
  background: var(--fepl-teal-dark);
  outline: 3px solid rgba(215, 172, 55, 0.28);
  transform: translateY(-2px);
}

.fepl-concierge-launcher-icon {
  width: 44px;
  height: 44px;
}

.fepl-concierge-launcher .fepl-monogram {
  color: var(--fepl-teal-dark);
  font-size: 13px;
}

.fepl-launcher-close {
  display: none;
  font: 300 31px/1 Arial, sans-serif;
}

.fepl-concierge.is-open .fepl-concierge-launcher-icon {
  display: none;
}

.fepl-concierge.is-open .fepl-launcher-close {
  display: block;
}

.fepl-concierge .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .fepl-concierge {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .fepl-concierge-panel {
    width: calc(100vw - 24px);
    height: min(540px, calc(100vh - 92px - env(safe-area-inset-bottom)));
    bottom: 70px;
  }

  .fepl-concierge-launcher {
    width: 56px;
    height: 56px;
  }

  .fepl-concierge-launcher-icon {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fepl-concierge-panel {
    animation: none;
  }

  .fepl-concierge-launcher {
    transition: none;
  }
}
