@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html,
body,
#company-chatbot {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/*html,
body {
  overflow: hidden;
}*/

:root {
  --cb-bg: transparent;
  --cb-panel-bg: rgba(255, 255, 255, 0.04);
  --cb-panel-border: rgba(255, 255, 255, 0.15);
  --cb-title: #ffffff;
  --cb-text: rgba(255, 255, 255, 0.9);
  --cb-muted: rgba(255, 255, 255, 0.6);
  --cb-primary: #0f172a;
  --cb-primary-hover: #1e293b;
  --cb-secondary-bg: rgba(255, 255, 255, 0.05);
  --cb-secondary-text: #f1f5f9;
  --cb-danger: #ff4d4d;
  --cb-shadow-lg: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --cb-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --cb-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cb-widget-shell {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  font-family: var(--cb-font-family);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.cb-widget-shell.cb-embedded {
  position: relative;
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  align-items: stretch;
  overflow: hidden;
}

.cb-widget-shell * {
  box-sizing: border-box;
  pointer-events: auto;
}

.cb-mascot-react-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.cb-panel {
  position: absolute;
  right: 0;
  bottom: 110px;
  width: min(400px, 92vw);
  max-height: min(80vh, 700px);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--cb-panel-border);
  background: var(--cb-panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--cb-shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-panel[data-open="true"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cb-widget-shell.cb-embedded .cb-panel {
  position: absolute;
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  max-height: none;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  box-shadow: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: var(--cb-panel-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.cb-widget-shell.cb-embedded .cb-close-btn,
.cb-widget-shell.cb-embedded .cb-header {
  display: none;
}

.cb-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.5);
}

.cb-header-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.cb-header span {
  font-weight: 700;
  color: var(--cb-title);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.cb-close-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--cb-secondary-bg);
  color: var(--cb-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cb-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cb-close-bottom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  background: var(--cb-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.cb-close-bottom:hover {
  background: var(--cb-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cb-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cb-body.cb-body-embedded {
  padding: 5px;
  background: transparent;
}

.cb-body::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar */
}

.cb-body {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.cb-text {
  margin: 0;
  color: var(--cb-text);
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
  text-align: -webkit-auto;
}

.cb-text strong {
  font-weight: 700;
  color: var(--cb-title);
}

.cb-question-header {
  margin: 0 0 10px 0;
  color: var(--cb-title);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.cb-service-name-card {
  width: 100%;
  margin: 0 0 10px 0;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(61, 196, 255, 0.45);
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.9) 0%, rgba(17, 26, 54, 0.9) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), 0 0 12px rgba(61, 196, 255, 0.2);
}

.cb-success {
  color: #64ffce;
  font-weight: 500;
  text-align: center;
  padding: 10px;
}

.cb-widget-shell.cb-embedded .cb-pan-in {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.cb-widget-shell.cb-embedded .cb-pan-in.cb-service-list-screen {
  height: 100%;
  padding: 2px 0 0;
}

.cb-loading-note {
  color: var(--cb-danger);
  font-weight: 700;
  text-align: center;
}

.cb-btn-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.cb-btn-wrap .cb-btn {
  flex: 1 1 120px;
  min-width: 80px;
}

.cb-service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cb-btn {
  min-height: 38px;
  border: 1.5px solid rgba(61, 196, 255, 0.4);
  /* Neon blue border */
  border-radius: 20px;
  background: linear-gradient(135deg, #0b1120 0%, #111a36 100%);
  color: #ffffff;
  font-family: var(--cb-font-family);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.1),
    inset 0 -4px 8px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(61, 196, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(8px);
}

.cb-widget-shell.cb-embedded .cb-service-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  flex: 1 1 auto;
  justify-content: space-between;
}

.cb-widget-shell.cb-embedded .cb-service-grid .cb-service-list-btn {
  min-height: 6px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.05;
  border-radius: 10px;
  width: 100%;
  background: linear-gradient(135deg, #0b1120 0%, #111a36 100%);
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(61, 196, 255, 0.3);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.1),
    inset 0 -4px 8px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(61, 196, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
  transition: all 0.3s ease;
}

.cb-widget-shell.cb-embedded .cb-service-grid .cb-service-list-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.2),
    inset 0 -4px 10px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(61, 196, 255, 0.2);
}



.cb-widget-shell.cb-embedded .cb-text {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  margin-bottom: 4px;
  margin-top: 4px;
}

.cb-widget-shell.cb-embedded .cb-question-header {
  margin: 0 0 6px 0;
  font-size: 13.5px;
  line-height: 1.25;
}

.cb-widget-shell.cb-embedded .cb-service-name-card {
  margin: 0 0 4px 0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.15;
}

.cb-widget-shell.cb-embedded .cb-btn-wrap {
  gap: 8px;
  margin-top: 6px;
}

.cb-widget-shell.cb-embedded .cb-btn-wrap .cb-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 14px;
}

.cb-btn-primary {
  background: var(--cb-primary);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cb-btn-secondary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.cb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cb-btn-primary:hover {
  background: var(--cb-primary-hover);
}

.cb-btn:active {
  transform: translateY(0);
}

.cb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 2px;
}

.cb-widget-shell.cb-embedded .cb-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cb-widget-shell.cb-embedded .cb-field {
  gap: 6px;
  margin-bottom: 0;
}

.cb-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cb-title);
  margin-left: 4px;
}

.cb-widget-shell.cb-embedded .cb-label {
  font-size: 11px;
  letter-spacing: 0.01em;
  margin-left: 6px;
}

.cb-input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 0 14px;
  color: #ffffff;
  font-family: var(--cb-font-family);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.cb-widget-shell.cb-embedded .cb-input {
  height: 30px;
  border-radius: 14px;
  padding: 0 15px;
  font-size: 12px;
}

.cb-input:focus {
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.cb-error {
  font-size: 12px;
  color: #ef4444;
  font-weight: 700;
  margin-left: 4px;
}

.cb-alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.cb-alert-error {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.cb-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.cb-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.cb-widget-shell.cb-embedded .cb-card {
  padding: 14px 14px;
  gap: 0px;
  border-radius: 18px;
}

.cb-card .cb-text {
  font-size: 11.5px;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.cb-widget-shell.cb-embedded .cb-card .cb-text {
  font-size: 12px;
  line-height: 1.35;
  padding-bottom: 0px;
}

.cb-card .cb-text:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cb-success-frame {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cb-success-frame .cb-success {
  font-size: 13px;
  line-height: 1.3;
  padding: 10px 8px 4px;
  margin: 0;
}

.cb-widget-shell.cb-embedded .cb-success-frame {
  gap: 5px;
}

.cb-widget-shell.cb-embedded .cb-success-frame .cb-success {
  font-size: 10.5px;
  line-height: 1.1;
  padding: 0px;
}

.cb-success-intro {
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
}

.cb-service-summary {
  padding: 10px 12px;
  border-radius: 12px;
  gap: 6px;
  margin: 0;
}

.cb-service-summary .cb-text {
  font-size: 11.5px;
  line-height: 1.35;
  margin: 0;
  padding-bottom: 4px;
}

.cb-widget-shell.cb-embedded .cb-service-summary .cb-text {
  font-size: 11px;
  line-height: 1.36;
}

.cb-success-btn-wrap {
  margin-top: 2px;
}

.cb-success-btn-wrap .cb-btn {
  min-height: 34px;
  font-size: 10px;
  padding: 9px 14px;
  flex: 1 1 auto;
}

.cb-widget-shell.cb-embedded .cb-success-btn-wrap .cb-btn {
  min-height: 44px;
  font-size: 10px;
  padding: 5px;
}

.cb-pan-in {
  animation: cb-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cb-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .cb-widget-shell {
    right: 16px;
    bottom: 16px;
  }

  .cb-panel {
    bottom: 100px;
    width: min(360px, 92vw);
    max-height: 70vh;
  }

  .cb-btn-wrap .cb-btn {
    min-width: 100px;
  }

  .cb-success-frame .cb-success {
    font-size: 11.5px;
  }

  .cb-success-intro {
    font-size: 11px;
  }

  .cb-service-summary .cb-text {
    font-size: 10px;
  }
}

@media (max-height: 600px) {
  .cb-panel {
    bottom: 80px;
    max-height: 65vh;
  }
}
