/* Hamlin Chat Widget Styles */
:root {
  --hsc-accent: #C9A96E;
  --hsc-accent-hover: #D4B87A;
  --hsc-bg: #0b0b0b;
  --hsc-bg-secondary: #161616;
  --hsc-text: #f3f4f6;
  --hsc-border: #333333;
}

#hsc-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.hsc-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hsc-accent), var(--hsc-accent-hover));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.hsc-bubble:hover {
  transform: scale(1.1);
}

.hsc-bubble svg {
  width: 26px;
  height: 26px;
  color: #000;
}

.hsc-unread {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hsc-bg);
}

.hsc-unread.visible {
  display: flex;
}

.hsc-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 370px;
  height: 520px;
  background-color: #111111;
  border: 1px solid var(--hsc-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hsc-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.hsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border-bottom: 1px solid var(--hsc-border);
}

.hsc-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsc-avatar {
  width: 36px;
  height: 36px;
  background: var(--hsc-accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.hsc-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}

.hsc-status {
  font-size: 0.75rem;
  color: #10b981;
}

.hsc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsc-end-chat {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hsc-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
}

.hsc-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #0b0b0b;
}

.hsc-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.hsc-msg-peter {
  align-self: flex-start;
  background-color: #1a1a1a;
  color: #fff;
  border-bottom-left-radius: 2px;
  border: 1px solid var(--hsc-border);
}

.hsc-msg-visitor {
  align-self: flex-end;
  background-color: #1a1a1a;
  color: #fff;
  border-bottom-right-radius: 2px;
  border: 1px solid var(--hsc-accent);
}

.hsc-msg-time {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 4px;
  display: block;
}

.hsc-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background-color: #0b0b0b;
}

.hsc-intro p {
  color: #fff;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.hsc-intro input {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid var(--hsc-border);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 12px;
}

.hsc-intro button {
  width: 100%;
  padding: 12px;
  background: var(--hsc-accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.hsc-input-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: #111;
  border-top: 1px solid var(--hsc-border);
}

#hsc-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
}

.hsc-send {
  background: none;
  border: none;
  color: var(--hsc-accent);
  cursor: pointer;
}

.hsc-send svg {
  width: 20px;
  height: 20px;
}

#hsc-reset-ui-btn {
  margin-top: 12px;
  background: var(--hsc-accent);
  border: none;
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

#hsc-reset-ui-btn:hover {
  background: var(--hsc-accent-hover);
  transform: translateY(-1px);
}
