.bwcc-shell,
.bwcc-shell * {
  box-sizing: border-box;
}

.bwcc-shell {
  --bwcc-accent: #821b2e;
  --bwcc-border: #e6e2e2;
  --bwcc-text: #1d1d1f;
  --bwcc-muted: #6b6b70;
  --bwcc-soft: rgba(130, 27, 46, 0.08);
  position: fixed !important;
  z-index: 2147483647 !important;
  top: 88px !important;
  right: 22px !important;
  pointer-events: none !important;
  font-family: inherit !important;
}

.bwcc-bubble,
.bwcc-panel {
  pointer-events: auto !important;
}

/* Isolated launcher styling so Elementor/theme controls cannot alter the chat UI. */
.bwcc-shell .bwcc-bubble {
  all: unset !important;
  box-sizing: border-box !important;
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--bwcc-accent) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: transform .15s ease, background-color .15s ease, color .15s ease !important;
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.bwcc-shell .bwcc-bubble:hover {
  transform: translateY(-1px) !important;
  background: var(--bwcc-soft) !important;
}

.bwcc-shell .bwcc-bubble:focus-visible {
  outline: 2px solid var(--bwcc-accent) !important;
  outline-offset: 3px !important;
  background: var(--bwcc-soft) !important;
}

.bwcc-shell .bwcc-bubble svg {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  overflow: visible !important;
  pointer-events: none !important;
}

.bwcc-panel {
  width: min(370px, calc(100vw - 44px)) !important;
  height: min(560px, calc(100vh - 115px)) !important;
  min-height: 360px !important;
  background: #fff !important;
  border: 1px solid var(--bwcc-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .14) !important;
  overflow: hidden !important;
  color: var(--bwcc-text) !important;
  display: flex !important;
  flex-direction: column !important;
}

.bwcc-panel[hidden],
.bwcc-bubble[hidden] {
  display: none !important;
}

.bwcc-panel__header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bwcc-border);
  background: #fff;
}

.bwcc-panel__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.bwcc-panel__actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

.bwcc-panel .bwcc-icon-button {
  all: unset !important;
  box-sizing: border-box !important;
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 50% !important;
  color: var(--bwcc-accent) !important;
  cursor: pointer !important;
  transition: transform .15s ease, background-color .15s ease, color .15s ease !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.bwcc-panel .bwcc-icon-button:hover:not(:disabled) {
  background: var(--bwcc-soft) !important;
  transform: translateY(-1px) !important;
}

.bwcc-panel .bwcc-icon-button:focus-visible {
  outline: 2px solid rgba(130, 27, 46, .24) !important;
  outline-offset: 2px !important;
  background: var(--bwcc-soft) !important;
}

.bwcc-panel .bwcc-icon-button:disabled {
  opacity: .45 !important;
  cursor: default !important;
}

.bwcc-panel .bwcc-icon-button svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  pointer-events: none !important;
}

.bwcc-panel .bwcc-icon-button--close svg {
  width: 15px !important;
  height: 15px !important;
}

.bwcc-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background: #fafafa;
}

.bwcc-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: var(--bwcc-muted);
  font-size: 13px;
}

.bwcc-placeholder strong {
  color: var(--bwcc-text);
  font-size: 14px;
}

.bwcc-composer {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--bwcc-border);
  background: #fff;
}

.bwcc-composer input {
  min-width: 0;
  flex: 1 1 auto;
  border: 1px solid #d7d2d3;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.bwcc-composer button,
.bwcc-profile-entry__button {
  border: 1px solid var(--bwcc-accent);
  background: var(--bwcc-accent);
  color: #fff;
  border-radius: 8px;
  padding: 8px 13px;
  font: inherit;
}

.bwcc-composer button:disabled,
.bwcc-composer input:disabled {
  opacity: .45;
}

.bwcc-profile-entry {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border: 1px solid #e4e0e0;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bwcc-profile-entry[hidden] {
  display: none !important;
}

.bwcc-profile-entry__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bwcc-profile-entry__copy strong {
  font-size: 15px;
}

@media (max-width: 767px) {
  .bwcc-shell {
    top: 82px !important;
    right: 16px !important;
  }

  .bwcc-panel {
    width: min(360px, calc(100vw - 24px)) !important;
    height: min(520px, calc(100vh - 110px)) !important;
  }

  .bwcc-panel__header {
    min-height: 60px;
    padding: 12px 14px;
  }
}
