:root {

  --wcs-bg: #0f1115;

  --wcs-panel: rgba(16, 19, 24, 0.98);

  --wcs-surface: #171b21;

  --wcs-surface-2: #20262e;

  --wcs-text: #f3f6fb;

  --wcs-muted: #9aa6b2;

  --wcs-accent: #2563eb;

  --wcs-accent-strong: #1d4ed8;

  --wcs-accent-soft: rgba(37, 99, 235, 0.14);

  --wcs-border: rgba(255, 255, 255, 0.08);

  --wcs-border-strong: rgba(59, 130, 246, 0.25);

  --wcs-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);

  --wcs-radius: 22px;

  --wcs-radius-sm: 14px;

  --wcs-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

}



#wcs-ai-widget {

  position: fixed;

  right: 20px;

  bottom: 20px;

  z-index: 2147483647;

  font-family: var(--wcs-font);

  pointer-events: auto;

}



#wcs-ai-launcher {

  width: 62px;

  height: 62px;

  border: 0;

  border-radius: 999px;

  background: linear-gradient(180deg, #3b82f6 0%, var(--wcs-accent-strong) 100%);

  color: #fff;

  box-shadow: var(--wcs-shadow);

  cursor: pointer;

  display: grid;

  place-items: center;

  transition:

    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),

    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),

    filter 220ms cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;

}



#wcs-ai-launcher::after {

  content: "";

  position: absolute;

  inset: -6px;

  border-radius: 999px;

  background: radial-gradient(circle, rgba(59, 130, 246, 0.34), transparent 65%);

  opacity: 0.55;

  z-index: -1;

  pointer-events: none;

}



#wcs-ai-launcher:hover {

  transform: translateY(-2px) scale(1.03);

  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);

  filter: brightness(1.04);

}



#wcs-ai-launcher:focus-visible,

#wcs-ai-close:focus-visible,

#wcs-ai-send:focus-visible,

.wcs-ai-chip:focus-visible,

.wcs-ai-action-btn:focus-visible,

.wcs-ai-mini-btn:focus-visible,

.wcs-ai-icon-btn:focus-visible,

#wcs-ai-booking-close:focus-visible {

  outline: 2px solid rgba(255, 255, 255, 0.92);

  outline-offset: 3px;

}



#wcs-ai-launcher i {

  font-size: 30px;

  color: #fff;

  line-height: 1;

}



#wcs-ai-panel {

  position: absolute;

  right: 0;

  bottom: 78px;

  width: min(420px, calc(100vw - 28px));

  height: min(760px, calc(100vh - 110px));

  background: var(--wcs-panel);

  border: 1px solid var(--wcs-border);

  border-radius: var(--wcs-radius);

  box-shadow: var(--wcs-shadow);

  overflow: hidden;

  display: flex;

  flex-direction: column;

  backdrop-filter: blur(16px);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transform: translateY(14px) scale(0.985);

  transition:

    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),

    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),

    visibility 0s linear 240ms;

  will-change: opacity, transform;

}



#wcs-ai-panel.open {

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform: translateY(0) scale(1);

  transition:

    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),

    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),

    visibility 0s;

}



#wcs-ai-header {

  position: relative;

  padding: 15px 15px 13px;

  display: flex;

  align-items: flex-start;

  gap: 12px;

  background:

    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 42%),

    linear-gradient(180deg, #232831 0%, #181d24 100%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

}



#wcs-ai-title-wrap {

  min-width: 0;

  flex: 1 1 auto;

  display: flex;

  flex-direction: column;

  gap: 4px;

}



#wcs-ai-title {

  color: var(--wcs-text);

  font-size: 15px;

  font-weight: 800;

  letter-spacing: 0.01em;

  line-height: 1.15;

}



#wcs-ai-subtitle {

  color: #afbcc8;

  font-size: 12px;

  line-height: 1.35;

}



#wcs-ai-status {

  color: #bfdbfe;

  font-size: 11px;

  line-height: 1.35;

  min-height: 14px;

}



.wcs-ai-header-actions {

  display: flex;

  align-items: center;

  gap: 7px;

  margin-left: auto;

}



.wcs-ai-icon-btn {

  width: 34px;

  height: 34px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.05);

  color: #fff;

  display: grid;

  place-items: center;

  cursor: pointer;

  transition:

    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),

    background 180ms cubic-bezier(0.22, 1, 0.36, 1),

    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);

}



.wcs-ai-icon-btn:hover {

  transform: translateY(-1px);

  background: rgba(255, 255, 255, 0.09);

  border-color: rgba(255, 255, 255, 0.16);

}



.wcs-ai-icon-btn i {

  font-size: 16px;

  line-height: 1;

}



#wcs-ai-close {

  border: 0;

  background: transparent;

  color: #cbd5e1;

  font-size: 25px;

  line-height: 1;

  cursor: pointer;

  padding: 0;

  flex: 0 0 auto;

  margin-left: 2px;

  transform: translateY(-1px);

}



#wcs-ai-toast {

  display: none;

  margin: 12px 12px 0;

  border: 1px solid rgba(59, 130, 246, 0.2);

  background: rgba(37, 99, 235, 0.12);

  color: #dbeafe;

  border-radius: 14px;

  padding: 10px 12px;

  font-size: 12px;

  line-height: 1.5;

}



#wcs-ai-toast.show {

  display: block;

  animation: wcsToastIn 220ms cubic-bezier(0.22, 1, 0.36, 1);

}



@keyframes wcsToastIn {

  from {

    opacity: 0;

    transform: translateY(-4px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}



#wcs-ai-companion {

  margin: 12px 12px 0;

  border: 1px solid rgba(148, 163, 184, 0.14);

  background:

    linear-gradient(180deg, rgba(15, 18, 22, 0.95), rgba(15, 18, 22, 0.82));

  color: #dbe4ee;

  border-radius: 16px;

  padding: 11px 12px;

  font-size: 12px;

  line-height: 1.55;

}



#wcs-ai-companion strong {

  color: #ffffff;

  font-weight: 800;

}



#wcs-ai-intro {

  padding: 14px;

  margin: 12px 12px 0;

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 18px;

  background:

    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 44%),

    linear-gradient(180deg, rgba(22, 25, 30, 0.98), rgba(18, 20, 24, 0.98));

}



#wcs-ai-intro.hidden {

  display: none;

}



#wcs-ai-intro-title {

  color: #ffffff;

  font-size: 14px;

  font-weight: 800;

  margin-bottom: 8px;

}



#wcs-ai-intro-copy {

  color: #cbd5e1;

  font-size: 12px;

  line-height: 1.55;

  margin-bottom: 12px;

}



#wcs-ai-questions {

  display: grid;

  gap: 8px;

}



.wcs-ai-chip {

  width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(17, 20, 24, 0.95);

  color: #dbe3ee;

  border-radius: 14px;

  padding: 10px 12px;

  font-size: 12px;

  text-align: left;

  cursor: pointer;

  transition:

    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),

    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),

    background 180ms cubic-bezier(0.22, 1, 0.36, 1);

}



.wcs-ai-chip:hover {

  transform: translateY(-1px);

  border-color: rgba(59, 130, 246, 0.45);

  background: rgba(22, 27, 34, 0.98);

}



#wcs-ai-booking {

  display: none;

  margin: 12px 12px 0;

  padding: 12px;

  border: 1px solid rgba(59, 130, 246, 0.18);

  background: rgba(15, 18, 22, 0.95);

  border-radius: 18px;

  max-height: 300px;

  overflow: auto;

}



#wcs-ai-booking.show {

  display: block;

}



.wcs-ai-booking-head {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 10px;

}



.wcs-ai-booking-title {

  color: #fff;

  font-size: 14px;

  font-weight: 800;

}



.wcs-ai-booking-subtitle {

  color: #cbd5e1;

  font-size: 12px;

  line-height: 1.55;

  margin-top: 4px;

}



#wcs-ai-booking-close {

  border: 0;

  background: transparent;

  color: #cbd5e1;

  font-size: 20px;

  line-height: 1;

  cursor: pointer;

  padding: 0;

}



#wcs-ai-booking-form {

  display: grid;

  gap: 10px;

}



.wcs-ai-booking-grid {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 8px;

}



.wcs-ai-booking-grid .full {

  grid-column: 1 / -1;

}



.wcs-ai-booking-grid input,

.wcs-ai-booking-grid textarea {

  width: 100%;

  box-sizing: border-box;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: #0f1216;

  color: #f8fafc;

  border-radius: 12px;

  padding: 10px 12px;

  outline: none;

  font-size: 12px;

  font-family: var(--wcs-font);

}



.wcs-ai-booking-grid textarea {

  min-height: 78px;

  resize: vertical;

}



.wcs-ai-booking-grid input::placeholder,

.wcs-ai-booking-grid textarea::placeholder {

  color: #6b7280;

}



.wcs-ai-booking-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.wcs-ai-booking-actions button {

  border: 0;

  background: linear-gradient(180deg, var(--wcs-accent) 0%, var(--wcs-accent-strong) 100%);

  color: #ffffff;

  border-radius: 12px;

  padding: 9px 12px;

  font-size: 12px;

  font-weight: 800;

  cursor: pointer;

}



.wcs-ai-booking-actions button.secondary {

  background: #111418;

  border: 1px solid rgba(255, 255, 255, 0.08);

}



#wcs-ai-booking-result {

  display: none;

  margin: 0;

  padding: 10px 12px;

  border-radius: 12px;

  background: #0f1216;

  color: #e5e7eb;

  font-size: 12px;

  line-height: 1.55;

  white-space: pre-wrap;

}



#wcs-ai-booking-result.show {

  display: block;

}



#wcs-ai-messages {

  flex: 1;

  margin: 12px 12px 0;

  padding: 14px;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 10px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 18px;

  background:

    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 35%),

    linear-gradient(180deg, rgba(18, 21, 27, 0.96), rgba(14, 16, 19, 0.98));

}



#wcs-ai-messages::-webkit-scrollbar,

#wcs-ai-booking::-webkit-scrollbar {

  width: 10px;

}



#wcs-ai-messages::-webkit-scrollbar-thumb,

#wcs-ai-booking::-webkit-scrollbar-thumb {

  background: rgba(148, 163, 184, 0.22);

  border: 3px solid rgba(0, 0, 0, 0);

  background-clip: padding-box;

  border-radius: 999px;

}



#wcs-ai-messages::-webkit-scrollbar-track,

#wcs-ai-booking::-webkit-scrollbar-track {

  background: transparent;

}



.wcs-ai-message {

  max-width: 88%;

  padding: 10px 12px;

  border-radius: 14px;

  font-size: 13px;

  line-height: 1.58;

  white-space: pre-wrap;

  word-wrap: break-word;

  box-sizing: border-box;

}



.wcs-ai-message.user {

  align-self: flex-end;

  background: linear-gradient(180deg, #2f343b 0%, #262b31 100%);

  color: #fff;

  border-top-right-radius: 6px;

}



.wcs-ai-message.assistant {

  align-self: flex-start;

  background: #171a1f;

  color: #e5e7eb;

  border: 1px solid rgba(255, 255, 255, 0.05);

  border-top-left-radius: 6px;

}



.wcs-ai-message.system {

  align-self: center;

  background: transparent;

  color: #94a3b8;

  font-size: 11px;

  padding: 0;

}



.wcs-ai-message .wcs-ai-action-row {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 10px;

}



.wcs-ai-action-btn {

  border: 0;

  background: linear-gradient(180deg, var(--wcs-accent) 0%, var(--wcs-accent-strong) 100%);

  color: #ffffff;

  border-radius: 12px;

  padding: 9px 12px;

  font-size: 12px;

  font-weight: 800;

  cursor: pointer;

}



#wcs-ai-typing {

  color: var(--wcs-muted);

  font-size: 12px;

  padding: 10px 14px 8px;

  display: none;

  align-items: center;

  gap: 8px;

}



#wcs-ai-typing.show {

  display: flex;

}



.wcs-ai-dots {

  display: inline-flex;

  gap: 4px;

  align-items: center;

}



.wcs-ai-dots span {

  width: 5px;

  height: 5px;

  border-radius: 999px;

  background: #bfdbfe;

  display: inline-block;

  animation: wcsDotPulse 900ms infinite ease-in-out;

}



.wcs-ai-dots span:nth-child(2) {

  animation-delay: 150ms;

}



.wcs-ai-dots span:nth-child(3) {

  animation-delay: 300ms;

}



@keyframes wcsDotPulse {

  0%, 80%, 100% {

    transform: translateY(0);

    opacity: 0.45;

  }

  40% {

    transform: translateY(-2px);

    opacity: 1;

  }

}



#wcs-ai-followups {

  display: none;

  padding: 0 12px 12px;

}



#wcs-ai-followups.show {

  display: block;

}



#wcs-ai-followups-title {

  color: #cbd5e1;

  font-size: 11px;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  margin-bottom: 8px;

}



#wcs-ai-followup-grid {

  display: grid;

  gap: 8px;

}



.wcs-ai-mini-btn {

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(17, 20, 24, 0.95);

  color: #dbe3ee;

  border-radius: 12px;

  padding: 10px 12px;

  font-size: 12px;

  cursor: pointer;

  text-align: left;

  transition:

    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),

    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),

    background 180ms cubic-bezier(0.22, 1, 0.36, 1);

}



.wcs-ai-mini-btn:hover {

  transform: translateY(-1px);

  border-color: rgba(59, 130, 246, 0.45);

  background: rgba(22, 27, 34, 0.98);

}



#wcs-ai-input-wrap {

  margin: 0 12px 12px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  background: rgba(16, 19, 24, 0.98);

  border-radius: 16px;

  padding: 12px;

  display: flex;

  gap: 10px;

}



#wcs-ai-input {

  flex: 1;

  min-width: 0;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: #0f1216;

  color: #f8fafc;

  border-radius: 12px;

  padding: 11px 12px;

  outline: none;

  font-size: 13px;

}



#wcs-ai-input::placeholder {

  color: #6b7280;

}



#wcs-ai-send {

  border: 0;

  background: linear-gradient(180deg, var(--wcs-accent) 0%, var(--wcs-accent-strong) 100%);

  color: #ffffff;

  border-radius: 12px;

  padding: 0 14px;

  font-size: 13px;

  font-weight: 800;

  cursor: pointer;

  min-width: 78px;

  transition:

    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),

    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);

}



#wcs-ai-send:hover {

  opacity: 0.95;

  transform: translateY(-1px);

}



#wcs-ai-send:disabled,

#wcs-ai-input:disabled {

  opacity: 0.62;

  cursor: not-allowed;

}



#wcs-ai-footer-note {

  padding: 0 14px 14px;

  font-size: 11px;

  color: var(--wcs-muted);

  line-height: 1.45;

}



@media (max-width: 480px) {

  #wcs-ai-widget {

    right: 12px;

    bottom: 12px;

  }



  #wcs-ai-panel {

    width: min(100vw - 24px, 380px);

    height: min(82vh, 760px);

    bottom: 74px;

  }



  .wcs-ai-message {

    max-width: 92%;

  }



  .wcs-ai-booking-grid {

    grid-template-columns: 1fr;

  }

}
