#bigditch-chatbot-root {
  --bdc-charcoal: #11100d;
  --bdc-charcoal-soft: #211f19;
  --bdc-cream: #fff8e8;
  --bdc-paper: #fffdf7;
  --bdc-gold: #d7a441;
  --bdc-rust: #9f552f;
  --bdc-olive: #6f6b37;
  --bdc-border: rgba(17, 16, 13, 0.14);
  --bdc-shadow: 0 24px 80px rgba(17, 16, 13, 0.28);
  color: var(--bdc-charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  z-index: 999999;
}

#bigditch-chatbot-root *,
#bigditch-chatbot-root *::before,
#bigditch-chatbot-root *::after {
  box-sizing: border-box;
}

.bdc-shell {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999999;
}

.bdc-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 16, 13, 0.14);
  border-radius: 999px;
  box-shadow:
    0 18px 34px rgba(17, 16, 13, 0.24),
    0 8px 14px rgba(17, 16, 13, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  color: #000;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: -0.01em;
  min-height: 58px;
  padding: 10px 18px 10px 10px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bdc-toggle:hover,
.bdc-toggle:focus-visible {
  box-shadow:
    0 26px 48px rgba(17, 16, 13, 0.3),
    0 12px 18px rgba(17, 16, 13, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transform: translateY(-3px);
}

.bdc-toggle__mark {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 16, 13, 0.1);
  border-radius: 999px;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.bdc-toggle__mark img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bdc-panel {
  background: linear-gradient(180deg, var(--bdc-paper), var(--bdc-cream));
  border: 1px solid rgba(17, 16, 13, 0.14);
  border-radius: 28px;
  bottom: 0;
  box-shadow: var(--bdc-shadow);
  display: none;
  flex-direction: column;
  max-height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(430px, calc(100vw - 44px));
}

.bdc-shell--open .bdc-panel {
  display: flex;
}

.bdc-shell--open .bdc-toggle {
  display: none;
}

.bdc-header {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(215, 164, 65, 0.35), transparent 42%),
    var(--bdc-charcoal);
  color: var(--bdc-cream);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px 18px 16px;
}

.bdc-brand {
  display: grid;
  gap: 8px;
}

.bdc-brand img {
  background: rgba(255, 248, 232, 0.95);
  border-radius: 12px;
  display: block;
  max-height: 38px;
  max-width: 220px;
  object-fit: contain;
  padding: 5px 8px;
}

.bdc-brand span {
  color: rgba(255, 248, 232, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bdc-close {
  align-items: center;
  background: rgba(255, 248, 232, 0.12);
  border: 1px solid rgba(255, 248, 232, 0.24);
  border-radius: 999px;
  color: var(--bdc-cream);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  width: 40px;
}

.bdc-tabs {
  background: rgba(255, 253, 247, 0.78);
  border-bottom: 1px solid var(--bdc-border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
}

.bdc-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(17, 16, 13, 0.64);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 38px;
}

.bdc-tabs button.is-active {
  background: var(--bdc-charcoal);
  color: var(--bdc-cream);
}

.bdc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.bdc-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  overflow-y: auto;
  padding: 18px 16px 8px;
}

.bdc-message {
  align-items: flex-end;
  display: flex;
  gap: 8px;
}

.bdc-message--visitor {
  justify-content: flex-end;
}

.bdc-message__avatar {
  border: 1px solid var(--bdc-border);
  border-radius: 999px;
  height: 30px;
  object-fit: cover;
  width: 30px;
}

.bdc-message__bubble {
  background: #fff;
  border: 1px solid var(--bdc-border);
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 10px 24px rgba(17, 16, 13, 0.08);
  font-size: 14px;
  line-height: 1.48;
  max-width: 82%;
  padding: 12px 13px;
  white-space: pre-wrap;
}

.bdc-message--visitor .bdc-message__bubble {
  background: var(--bdc-charcoal);
  border-color: var(--bdc-charcoal);
  border-radius: 18px 18px 6px 18px;
  color: var(--bdc-cream);
}

.bdc-message__bubble small {
  border-top: 1px solid rgba(17, 16, 13, 0.1);
  color: rgba(17, 16, 13, 0.58);
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 10px;
  padding-top: 8px;
}

.bdc-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 12px;
}

.bdc-chip {
  background: rgba(215, 164, 65, 0.16);
  border: 1px solid rgba(159, 85, 47, 0.18);
  border-radius: 999px;
  color: var(--bdc-charcoal);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 11px;
}

.bdc-composer {
  align-items: flex-end;
  background: #fff;
  border-top: 1px solid var(--bdc-border);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}

.bdc-composer textarea,
.bdc-enquiry input,
.bdc-enquiry select,
.bdc-enquiry textarea {
  background: #fff;
  border: 1px solid rgba(17, 16, 13, 0.18);
  border-radius: 14px;
  color: var(--bdc-charcoal);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.bdc-composer textarea:focus,
.bdc-enquiry input:focus,
.bdc-enquiry select:focus,
.bdc-enquiry textarea:focus {
  border-color: var(--bdc-gold);
  box-shadow: 0 0 0 3px rgba(215, 164, 65, 0.22);
}

.bdc-composer button,
.bdc-submit {
  background: var(--bdc-rust);
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  min-height: 46px;
  padding: 0 16px;
}

.bdc-submit {
  width: 100%;
}

.bdc-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.bdc-enquiry {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding: 16px;
}

.bdc-enquiry__intro {
  color: rgba(17, 16, 13, 0.68);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 2px;
}

.bdc-enquiry label {
  color: rgba(17, 16, 13, 0.72);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.bdc-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.bdc-status {
  background: rgba(215, 164, 65, 0.16);
  border: 1px solid rgba(159, 85, 47, 0.18);
  border-radius: 14px;
  color: var(--bdc-charcoal);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding: 10px 12px;
}

.bdc-hp,
.bdc-sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 520px) {
  .bdc-shell {
    bottom: 14px;
    right: 14px;
  }

  .bdc-panel {
    border-radius: 22px;
    max-height: calc(100vh - 28px);
    width: calc(100vw - 28px);
  }

  .bdc-toggle__text {
    display: none;
  }

  .bdc-toggle {
    min-height: 58px;
    padding: 9px;
  }

  .bdc-grid {
    grid-template-columns: 1fr;
  }

  .bdc-brand img {
    max-width: 190px;
  }
}
