.mwi-bacchus-modal[hidden] {
  display: none !important;
}

.mwi-bacchus-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.mwi-bacchus-modal__overlay {
  position: absolute;
  inset: 0;
  background: #fff;
}

.mwi-bacchus-modal__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: inherit;
}

.mwi-bacchus-modal__header {
  position: relative;
  z-index: 5;
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mwi-bacchus-modal__eyebrow {
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.58;
}

.mwi-bacchus-modal__header h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.15;
}

.mwi-bacchus-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

html.mwi-bacchus-modal-open,
html.mwi-bacchus-modal-open body {
  overflow: hidden;
}

.mwi-bacchus-modal .mwi-header-search--bacchus-modal-root {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: block;
}

.mwi-bacchus-modal .mwi-header-search__form,
.mwi-bacchus-modal .mwi-header-search__status {
  display: none !important;
}

.mwi-bacchus-modal .mwi-header-search__results {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100vw;
  max-width: none;
  height: 146px;
  max-height: none;
  overflow: visible;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  z-index: 100001;
}

.mwi-bacchus-modal .mwi-header-search__close,
.mwi-bacchus-modal .mwi-header-search__back {
  display: none !important;
}

.mwi-bacchus-modal .mwi-header-search__answer {
  height: 100%;
}

.mwi-bacchus-modal .mwi-bacchus-composer-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 146px;
  padding: 10px 12px 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mwi-bacchus-modal .mwi-header-search__bacchus-intro {
  margin-bottom: 8px;
}

.mwi-bacchus-modal .mwi-header-search__bacchus-intro > span {
  display: none;
}

.mwi-bacchus-modal .mwi-header-search__bacchus-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.mwi-bacchus-modal .mwi-header-search__bacchus-prompts button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mwi-bacchus-modal .mwi-header-search__bacchus-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.mwi-bacchus-modal .mwi-header-search__bacchus-input {
  flex: 1 1 auto;
  min-height: 48px;
  max-height: 120px;
  resize: none;
  box-sizing: border-box;
}

.mwi-bacchus-modal .mwi-header-search__bacchus-submit {
  flex: 0 0 auto;
}

.mwi-bacchus-answer-window--modal {
  position: fixed !important;
  z-index: 100000 !important;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 14px 12px 18px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.mwi-bacchus-answer-window--modal .mwi-bacchus-chat-window__header {
  display: none;
}

.mwi-bacchus-explore-window--modal {
  display: none !important;
}