:root {
  --ta-brand: #0A4D78;
  --ta-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ta-radius: 12px;
}

/* Do NOT force a global cursor. Buttons/links explicitly set pointer. */

/* Shared header (used by widget and site) */
.ta-header,
.widget-header,
.header {
  background: var(--ta-brand) !important;
  color: #fff;
  font-family: var(--ta-font);
}

.ta-title,
.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ta-title img,
.widget-title img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* Shared status dot */
/* Support both the historic id and the reusable class */
.status-dot,
#ai-status-dot {
  display: inline-block;
  width: 12px;
  height:12px;
  margin-left: 8px;
  border-radius: 50%;
  background: #27ae60;
  vertical-align: middle;
  transition: background 0.2s;
}
.status-dot.connected,
#ai-status-dot.connected { background: #27ae60; }
.status-dot.connecting,
#ai-status-dot.connecting { background: #f39c12; }
.status-dot.disconnected,
#ai-status-dot.disconnected { background: #e74c3c; }

/* Message + transcript moved to message.css */

/* Controls layout moved to layout.css */

/* Status icon button (matches widget style) */
.status { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: transparent; font-size: 0; cursor: pointer; }
.status .icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; pointer-events: auto; }
.status.disconnected { background: #e74c3c; }
.status.connecting { background: #f39c12; }
.status.connected { background: #27ae60; }

/* Toggle switch styles moved to session.css */

/* Text input + send button (unified) */
.text-input-container { 
  width: 100%; 
  max-width: 600px; 
  display: none; 
  opacity: 0; 
  transition: opacity 0.3s ease; 
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: #f8f9fa;
  padding: 16px;
  border-top: 1px solid #e1e8ed;
}
.text-input-container.show { display: block; opacity: 1; }
.text-input-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 25px;
  padding: 8px 16px;
  transition: border-color 0.2s ease;
}
.text-input-form:focus-within { border-color: var(--ta-brand); box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1); }
#textInput { 
  flex: 1; 
  border: none; 
  background: transparent; 
  padding: 8px 0; 
  font-size: 14px; 
  color: #2c3e50; 
  outline: none; 
  font-family: var(--ta-font); 
}
#sendBtn { 
  background: transparent; 
  border: none; 
  border-radius: 50%; 
  width: 38px; 
  height: 38px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  transition: background 0.2s; 
  padding: 0; 
  margin-left: 8px;
}
#sendBtn:hover:not(:disabled) { background: rgba(41, 128, 185, 0.1); }
#sendBtn:disabled { cursor: not-allowed; opacity: 0.2; }

/* Connect button (unified to widget style) */
#connectBtn { background: #003f63; color: #fff; border: none; padding: 10px 20px; font-size: 14px; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; min-width: 140px; }
#connectBtn:hover:not(:disabled) { background: #2980b9; }
#connectBtn:active { transform: scale(0.98); }
#connectBtn.recording { background: #e74c3c; animation: recordingPulse 1.5s infinite; }
#connectBtn.recording:hover:not(:disabled) { background: #c0392b; }
#connectBtn.connected { background: #27ae60; }
#connectBtn.connected:hover:not(:disabled) { background: #229954; }
#connectBtn:disabled { background: #bdc3c7; cursor: not-allowed; opacity: 0.6; }
#connectBtn:focus { outline: none; box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3); }
@keyframes recordingPulse { 0% { opacity: 1;} 50% { opacity: 0.8;} 100% { opacity: 1;} }

/* Generic immediate tooltip for any element with data-tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .1s ease, transform .1s ease;
  overflow: visible;
  z-index: 1000;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Misc shared */
audio { display: none; }

/* Skeletons */
.skeleton { background: #fff; border: 1px solid #e1e8ed; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); width: auto; max-width: 320px; }
.skeleton-image { width: 100%; height: 140px; background: linear-gradient(90deg, #f0f3f7, #e7ecf3, #f0f3f7); background-size: 200% 100%; border-radius: 10px; animation: sk 1.2s linear infinite; }
.skeleton-image.sm { height: 80px; }
.skeleton-line { height: 12px; background: linear-gradient(90deg, #f0f3f7, #e7ecf3, #f0f3f7); background-size: 200% 100%; border-radius: 6px; margin-top: 10px; animation: sk 1.2s linear infinite; }
.skeleton-line.lg { height: 16px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Confirmation card */
.booking-confirmation-card { background: #ffffff; border: 1px solid #e1e8ed; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.confirm-header { margin-bottom: 8px; }
.confirm-title { font-weight: 700; color: #2e7d32; }
.confirm-body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 10px; }
.confirm-row { display: contents; }
.confirm-row > span { color: #8e9aaf; font-size: 12px; }
.confirm-row > strong { font-size: 13px; color: #2c3e50; }
.confirm-actions { display: flex; gap: 8px; }


