/* Floating call/chat widget -- fixed bottom-right on every page,
   mirroring NetSuite's chat-launcher pattern. */

.call-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
}

.call-widget__launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  color: #0F172A;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-widget__launcher:hover {
  filter: brightness(1.05);
}

.call-widget__panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  width: 300px;
  background: var(--surface-white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.call-widget.is-open .call-widget__panel {
  display: block;
}

.call-widget__header {
  background: var(--surface-dark);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.call-widget__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.call-widget__close {
  background: none;
  border: none;
  color: #CBD5E1;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  min-width: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-widget__close:hover {
  color: #FFFFFF;
}

.call-widget__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.call-widget__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #E2E8F0;
  background: var(--surface-white);
  text-decoration: none;
  color: var(--text-color);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14px;
}

.call-widget__option:hover {
  background: var(--surface-page);
  border-color: var(--accent-primary);
}

.call-widget__option strong {
  display: block;
  font-size: 14px;
}

.call-widget__option-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.call-widget__option-sub {
  display: block;
  font-size: 12px;
  color: var(--text-color-muted);
  margin-top: 2px;
}

.call-widget__fallback {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--text-color-muted);
  line-height: 1.5;
}

@media (max-width: 599px) {
  .call-widget {
    right: 16px;
    bottom: 16px;
  }

  .call-widget__panel {
    width: calc(100vw - 32px);
    max-width: 300px;
  }
}
