/* ==========================================================================
   Emmy Lifestyle & Wellbeing — Emmy Assistant Chat Styles
   Mobile-First (360px–430px base, progressively enhanced)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Chat Launcher
   -------------------------------------------------------------------------- */
.emmy-chat-launcher {
  position: fixed;
  z-index: 900;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; /* 56px */
  height: 3.5rem; /* 56px */
  min-width: 2.75rem; /* 44px min touch target */
  min-height: 2.75rem;
  padding: 0;
  margin: 0;
  color: var(--header-cream, #fffaf0);
  background: linear-gradient(135deg, var(--header-bg, #10201f), var(--header-bg-deep, #0a1716));
  border: 1.5px solid var(--header-gold, #ddb86f);
  border-radius: 50%;
  box-shadow: 0 0.375rem 1.25rem rgba(10, 23, 22, 0.4), 0 0 0 1px rgba(221, 184, 111, 0.2);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.emmy-chat-launcher:hover {
  transform: scale(1.05);
  border-color: #eed599;
  box-shadow: 0 0.5rem 1.5rem rgba(10, 23, 22, 0.5), 0 0 0 2px rgba(221, 184, 111, 0.35);
}

.emmy-chat-launcher:active {
  transform: scale(0.96);
}

.emmy-chat-launcher:focus-visible {
  outline: 0.1875rem solid var(--header-gold, #ddb86f);
  outline-offset: 0.25rem;
}

.emmy-chat-launcher-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--header-gold, #ddb86f);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.emmy-chat-launcher[aria-expanded="true"] .emmy-chat-launcher-icon-chat {
  display: none;
}

.emmy-chat-launcher[aria-expanded="true"] .emmy-chat-launcher-icon-close {
  display: block;
}

.emmy-chat-launcher[aria-expanded="false"] .emmy-chat-launcher-icon-chat {
  display: block;
}

.emmy-chat-launcher[aria-expanded="false"] .emmy-chat-launcher-icon-close {
  display: none;
}

/* --------------------------------------------------------------------------
   1b. Floating Launcher Teaser
   -------------------------------------------------------------------------- */
.emmy-chat-teaser {
  position: fixed;
  z-index: 899;
  bottom: calc(1.375rem + env(safe-area-inset-bottom, 0px));
  right: calc(4.75rem + env(safe-area-inset-right, 0px));
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fdfbf7;
  border: 1px solid rgba(221, 184, 111, 0.45);
  border-radius: 2rem;
  padding: 0.3125rem 0.375rem 0.3125rem 0.875rem;
  box-shadow: 0 0.25rem 1rem rgba(10, 23, 22, 0.15), 0 0 0 1px rgba(221, 184, 111, 0.12);
  cursor: pointer;
  animation: emmyTeaserFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: calc(100vw - 6.5rem);
  white-space: nowrap;
}

.emmy-chat-teaser:hover {
  border-color: var(--header-gold, #ddb86f);
  box-shadow: 0 0.375rem 1.25rem rgba(10, 23, 22, 0.22), 0 0 0 1px rgba(221, 184, 111, 0.25);
  transform: translateY(-1px);
}

.emmy-chat-teaser[hidden],
.emmy-chat-teaser.is-dismissed {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.emmy-chat-teaser-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #10201f;
  cursor: pointer;
  line-height: 1.2;
}

.emmy-chat-teaser-btn:focus-visible {
  outline: 2px solid var(--header-gold, #ddb86f);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.emmy-chat-teaser-text {
  user-select: none;
}

.emmy-chat-teaser-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  padding: 0;
  margin-left: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(16, 32, 31, 0.5);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.emmy-chat-teaser-close:hover {
  color: #10201f;
  background-color: rgba(221, 184, 111, 0.2);
}

.emmy-chat-teaser-close:focus-visible {
  outline: 2px solid var(--header-gold, #ddb86f);
  outline-offset: 1px;
}

.emmy-chat-teaser-close-icon {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes emmyTeaserFadeIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   2. Chat Panel Container
   -------------------------------------------------------------------------- */
.emmy-chat-panel {
  position: fixed;
  z-index: 900;
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  right: calc(0.75rem + env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 1.5rem), 24rem);
  height: min(34rem, calc(100dvh - 5.75rem - env(safe-area-inset-bottom, 0px)));
  max-height: 82vh;
  background: #fdfbf7;
  border: 1px solid rgba(221, 184, 111, 0.3);
  border-radius: var(--radius-lg, 0.75rem);
  box-shadow: 0 0.75rem 2.5rem rgba(10, 23, 22, 0.35), 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: var(--ink, #1e1712);
  font-family: var(--font-ui, system-ui, sans-serif);
  line-height: 1.45;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  transform-origin: bottom right;
}

.emmy-chat-panel[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Panel Header
   -------------------------------------------------------------------------- */
.emmy-chat-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, var(--header-bg, #10201f), var(--header-bg-deep, #0a1716));
  border-bottom: 1px solid rgba(221, 184, 111, 0.35);
  color: var(--header-cream, #fffaf0);
  flex-shrink: 0;
}

.emmy-chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.emmy-chat-title {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--header-gold, #ddb86f);
  line-height: 1.2;
}

.emmy-chat-subtitle {
  margin: 0;
  font-size: 0.775rem;
  color: rgba(255, 250, 240, 0.75);
  font-weight: 400;
}

.emmy-chat-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.75rem; /* 44px touch target */
  min-height: 2.75rem;
  padding: 0;
  color: var(--header-cream, #fffaf0);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm, 0.375rem);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.emmy-chat-close-btn:hover {
  color: var(--header-gold, #ddb86f);
  background: rgba(255, 255, 255, 0.08);
}

.emmy-chat-close-btn:focus-visible {
  outline: 0.1875rem solid var(--header-gold, #ddb86f);
  outline-offset: 0.125rem;
}

.emmy-chat-close-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   4. Conversation / Messages Area
   -------------------------------------------------------------------------- */
.emmy-chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fbf8f2;
  scroll-behavior: smooth;
}

.emmy-chat-messages:focus {
  outline: none;
}

/* Base Message Item */
.emmy-chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  word-break: break-word;
  white-space: pre-wrap;
  font-size: 0.875rem;
  line-height: 1.45;
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.625rem 0.875rem;
  animation: emmyMessageFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes emmyMessageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Assistant Message */
.emmy-chat-message-assistant {
  align-self: flex-start;
  color: var(--ink, #1e1712);
  background: #ffffff;
  border: 1px solid rgba(201, 151, 74, 0.22);
  border-bottom-left-radius: 0.125rem;
  box-shadow: 0 1px 3px rgba(30, 23, 18, 0.05);
}

/* User Message */
.emmy-chat-message-user {
  align-self: flex-end;
  color: var(--header-cream, #fffaf0);
  background: linear-gradient(135deg, var(--header-bg, #10201f), var(--header-bg-deep, #0a1716));
  border: 1px solid rgba(221, 184, 111, 0.3);
  border-bottom-right-radius: 0.125rem;
  box-shadow: 0 1px 4px rgba(10, 23, 22, 0.15);
}

/* Status / Thinking Indicator */
.emmy-chat-status,
.emmy-chat-thinking-bubble {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.5625rem 0.8125rem;
  font-size: 0.8125rem;
  color: var(--ink-soft, #6b5c4e);
  background: #ffffff;
  border: 1px solid rgba(201, 151, 74, 0.28);
  border-radius: var(--radius-md, 0.5rem);
  border-bottom-left-radius: 0.125rem;
  box-shadow: 0 1px 3px rgba(30, 23, 18, 0.05);
  animation: emmyMessageFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.emmy-chat-thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.emmy-chat-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--gold, #c9974a);
  animation: emmyDotBounce 1.4s ease-in-out infinite;
}

.emmy-chat-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.emmy-chat-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes emmyDotBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-3.5px);
    opacity: 1;
  }
}

.emmy-chat-thinking-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft, #6b5c4e);
}

@media (prefers-reduced-motion: reduce) {
  .emmy-chat-dot {
    animation: none !important;
    opacity: 0.8;
  }
}

/* --------------------------------------------------------------------------
   5. Composer / Input Area
   -------------------------------------------------------------------------- */
.emmy-chat-composer,
.emmy-chat-form {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid rgba(201, 151, 74, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.emmy-chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.emmy-chat-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.emmy-chat-textarea,
.emmy-chat-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 2.75rem; /* 44px base height */
  max-height: 6.5rem;
  padding: 0.5625rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink, #1e1712);
  background: #fdfbf7;
  border: 1px solid rgba(201, 151, 74, 0.35);
  border-radius: var(--radius-md, 0.5rem);
  resize: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.emmy-chat-textarea:focus,
.emmy-chat-input:focus {
  outline: none;
  border-color: var(--gold, #c9974a);
  box-shadow: 0 0 0 0.1875rem rgba(201, 151, 74, 0.2);
  background: #ffffff;
}

.emmy-chat-textarea::placeholder,
.emmy-chat-input::placeholder {
  color: rgba(107, 92, 78, 0.65);
}

.emmy-chat-textarea:disabled,
.emmy-chat-input:disabled {
  background: #f5f2eb;
  color: rgba(107, 92, 78, 0.5);
  cursor: not-allowed;
}

.emmy-chat-send-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem; /* 44px touch target */
  min-height: 2.75rem;
  padding: 0;
  margin: 0;
  color: var(--header-cream, #fffaf0);
  background: linear-gradient(135deg, var(--header-bg, #10201f), var(--header-bg-deep, #0a1716));
  border: 1px solid var(--header-gold, #ddb86f);
  border-radius: var(--radius-md, 0.5rem);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.emmy-chat-send-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #eed599;
}

.emmy-chat-send-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.emmy-chat-send-btn:focus-visible {
  outline: 0.1875rem solid var(--header-gold, #ddb86f);
  outline-offset: 0.125rem;
}

.emmy-chat-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.emmy-chat-send-icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--header-gold, #ddb86f);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emmy-chat-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.6875rem;
  color: var(--ink-soft, #6b5c4e);
  padding: 0 0.125rem;
}

.emmy-chat-hint {
  opacity: 0.85;
}

.emmy-chat-char-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  margin-left: auto;
}

.emmy-chat-char-count.is-limit {
  color: #b91c1c;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Conversational Booking Review Card & Turnstile
   -------------------------------------------------------------------------- */
.emmy-chat-review-card {
  align-self: stretch;
  background: #ffffff;
  border: 1.5px solid rgba(201, 151, 74, 0.35);
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.875rem;
  box-shadow: 0 0.25rem 0.75rem rgba(30, 23, 18, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.emmy-chat-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 151, 74, 0.2);
  padding-bottom: 0.375rem;
}

.emmy-chat-review-title {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold, #c9974a);
}

.emmy-chat-review-badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  background: rgba(201, 151, 74, 0.12);
  color: var(--ink-soft, #6b5c4e);
  border-radius: var(--radius-sm, 0.25rem);
  font-weight: 500;
}

.emmy-chat-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.emmy-chat-review-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.emmy-chat-review-label {
  color: var(--ink-soft, #6b5c4e);
  font-weight: 500;
  flex-shrink: 0;
}

.emmy-chat-review-value {
  color: var(--ink, #1e1712);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.emmy-chat-review-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.125rem;
}

.emmy-chat-service-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.4375rem;
  background: #fbf8f2;
  border: 1px solid rgba(201, 151, 74, 0.25);
  border-radius: var(--radius-sm, 0.25rem);
  font-size: 0.75rem;
  color: var(--ink, #1e1712);
}

.emmy-chat-turnstile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 4.125rem;
  margin: 0.25rem 0;
}

.emmy-chat-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.emmy-chat-btn-confirm {
  flex: 1 1 100%;
  min-height: 2.75rem; /* 44px touch target */
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, var(--header-bg, #10201f), var(--header-bg-deep, #0a1716));
  color: var(--header-cream, #fffaf0);
  border: 1px solid var(--header-gold, #ddb86f);
  border-radius: var(--radius-md, 0.5rem);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.emmy-chat-btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #eed599;
}

.emmy-chat-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.emmy-chat-btn-secondary {
  flex: 1 1 calc(50% - 0.25rem);
  min-height: 2.5rem;
  padding: 0.375rem 0.5rem;
  background: #fbf8f2;
  color: var(--ink-soft, #6b5c4e);
  border: 1px solid rgba(201, 151, 74, 0.3);
  border-radius: var(--radius-md, 0.5rem);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.emmy-chat-btn-secondary:hover {
  background: #ffffff;
  color: var(--ink, #1e1712);
  border-color: var(--gold, #c9974a);
}

/* Success Card */
.emmy-chat-success-card {
  align-self: stretch;
  background: #f4faf6;
  border: 1.5px solid #2d6a4f;
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.875rem;
  box-shadow: 0 0.25rem 0.75rem rgba(45, 106, 79, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #1b4332;
}

.emmy-chat-success-title {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1b4332;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.emmy-chat-success-ref {
  font-weight: 700;
  font-family: monospace;
  background: rgba(45, 106, 79, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm, 0.25rem);
}

/* In-Chat Structured Identity Controls (Protects PII from LLM) */
.emmy-chat-identity-box {
  align-self: flex-start;
  width: 100%;
  max-width: 19rem;
  background: #ffffff;
  border: 1.5px solid rgba(201, 151, 74, 0.4);
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(30, 23, 18, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.emmy-chat-identity-input {
  width: 100%;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--ink, #1e1712);
  background: #fbf8f2;
  border: 1px solid rgba(201, 151, 74, 0.3);
  border-radius: var(--radius-sm, 0.25rem);
  outline: none;
  box-sizing: border-box;
}

.emmy-chat-identity-input:focus {
  border-color: var(--gold, #c9974a);
  background: #ffffff;
}

.emmy-chat-identity-btn {
  align-self: flex-end;
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--header-cream, #fffaf0);
  background: linear-gradient(135deg, var(--header-bg, #10201f), var(--header-bg-deep, #0a1716));
  border: 1px solid var(--header-gold, #ddb86f);
  border-radius: var(--radius-sm, 0.25rem);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.emmy-chat-identity-btn:hover {
  transform: translateY(-1px);
  border-color: #eed599;
}

.emmy-chat-identity-error {
  margin: 0;
  font-size: 0.6875rem;
  color: #b91c1c;
  font-weight: 500;
}

/* Interactive Service & Category Choice Buttons */
.emmy-chat-service-choices,
.emmy-chat-category-chips,
.emmy-chat-slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.375rem 0 0.625rem 0;
  align-self: flex-start;
  max-width: 100%;
}

.emmy-chat-service-choice-btn,
.emmy-chat-category-chip,
.emmy-chat-slot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4375rem 0.75rem;
  min-height: 2.625rem; /* ~42px comfortable touch target */
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink, #1e1712);
  background: #ffffff;
  border: 1px solid rgba(201, 151, 74, 0.45);
  border-radius: var(--radius-md, 0.5rem);
  box-shadow: 0 0.0625rem 0.25rem rgba(30, 23, 18, 0.04);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  word-break: break-word;
}

.emmy-chat-service-choice-btn:hover,
.emmy-chat-category-chip:hover,
.emmy-chat-slot-chip:hover {
  background: #faf4e8;
  border-color: var(--gold, #c9974a);
  transform: translateY(-1px);
  box-shadow: 0 0.125rem 0.5rem rgba(201, 151, 74, 0.15);
}

.emmy-chat-service-choice-btn:active,
.emmy-chat-category-chip:active,
.emmy-chat-slot-chip:active {
  transform: scale(0.98);
}

.emmy-chat-service-choice-btn:focus-visible,
.emmy-chat-category-chip:focus-visible,
.emmy-chat-slot-chip:focus-visible {
  outline: 0.1875rem solid var(--header-gold, #ddb86f);
  outline-offset: 0.125rem;
}

/* --------------------------------------------------------------------------
   6.5 Contact Action Button
   -------------------------------------------------------------------------- */
.emmy-chat-contact-container {
  display: flex;
  margin: 0.5rem 0 0.75rem 0;
  animation: emmyMessageFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.emmy-chat-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--header-cream, #fffaf0);
  background: #1b7a43;
  border: 1px solid #145e34;
  border-radius: var(--radius-md, 0.5rem);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.emmy-chat-btn-contact:hover {
  background: #145e34;
  transform: translateY(-1px);
}

.emmy-chat-btn-contact:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   7. Progressive Enhancement (min-width: 768px tablet & desktop)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .emmy-chat-launcher {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .emmy-chat-teaser {
    bottom: 1.875rem;
    right: 5.5rem;
  }

  .emmy-chat-panel {
    bottom: 5.5rem;
    right: 1.5rem;
    width: 24rem;
    height: 34rem;
    max-height: calc(100vh - 7rem);
  }
}

/* --------------------------------------------------------------------------
   8. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .emmy-chat-launcher,
  .emmy-chat-teaser,
  .emmy-chat-panel,
  .emmy-chat-status,
  .emmy-chat-message,
  .emmy-chat-send-btn {
    transition: none !important;
    animation: none !important;
  }
}
