/* =========================================
   myWination Search + Bacchus Clean CSS
   ========================================= */

/* ---------- Search shell ---------- */

.mwi-header-search {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;
  position: relative;
}

.mwi-header-search__wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mwi-header-search__form {
  flex: 1 1 auto;
  margin: 0;
  position: relative;
}

.mwi-header-search__input {
  width: 100%;
  height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 15px;
  line-height: 42px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.mwi-header-search__input::placeholder {
  color: rgba(0, 0, 0, 0.48);
}

.mwi-header-search__input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

.mwi-header-search__input:disabled {
  opacity: 0.72;
  cursor: wait;
}

.mwi-header-search__input--loading {
  background-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.03)
  );
  background-size: 220% 100%;
  animation: mwiBacchusThinking 1.1s linear infinite;
}

.mwi-header-search__actions {
  display: none !important;
}

/* ---------- Bacchus nav button ---------- */

.mwi-header-search__bacchus-nav {
  background: #ffffff;
  min-width: 40px;
  transition: color 0.5s ease, box-shadow 0.2s ease, border 2s ease,
    min-width 1s ease;
}

.mwi-header-search__bacchus-nav:hover {
  min-width: 150px;
}

.mwi-header-search__bacchus-nav i {
  color: #2f88ff;
  box-shadow: none !important;
  font-style: normal;
  margin: 0;
  font-size: 18px;
  opacity: 1;
}

/* ---------- Results / status column ---------- */

.mwi-header-search__results,
.mwi-header-search__status {
  position: fixed;
  top: 67px;
  left: 76px;
  bottom: 16px;
  z-index: 99;
  width: 19%;
  max-width: min(420px, calc(100vw - 24px));
  padding: 16px 16px 0 16px;
  border: solid 1px #e2e6eb;
  border-radius: 10px;
  background: linear-gradient(270deg, #f5f8fc, #ffffff);
  overflow-y: auto;
  overflow-x: hidden;
}

.mwi-header-search__results--site,
.mwi-header-search__results--bacchus,
.mwi-header-search--bacchus-answered .mwi-header-search__results--bacchus {
  width: 19%;
  max-width: min(420px, calc(100vw - 24px));
  left: 76px;
  bottom: 16px;
  transform: none;
  max-height: none;
  padding: 16px;
  z-index: 99;
}

.mwi-header-search__status {
  font-size: 14px;
  line-height: 1.45;
}

.mwi-header-search__status--error {
  background: #fff0f0;
  color: #8a1f1f;
}

.mwi-header-search__status--loading {
  color: rgba(0, 0, 0, 0.72);
}

.mwi-header-search__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #111;
  font-size: 22px;
  line-height: 26px;
  cursor: pointer;
}

.mwi-header-search__close:hover,
.mwi-header-search__close:focus {
  background: rgba(0, 0, 0, 0.12);
}

/* ---------- Regular search results ---------- */

.mwi-header-search__panel {
  animation: mwiSearchPanelIn 180ms ease both;
}

.mwi-header-search__group {
  margin-top: 12px;
}

.mwi-header-search__group:first-child {
  margin-top: 0;
}

.mwi-header-search__group-title {
  margin: 0 0 6px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.46;
}

.mwi-header-search__item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 16px;
  color: #111;
  text-decoration: none;
  transition: background 130ms ease, box-shadow 0.5s ease;
}

.mwi-header-search__item:hover,
.mwi-header-search__item:focus {
  color: #2f88ff !important;
  box-shadow: 0 0 10px 0 #e2e6eb;
}

.mwi-header-search__item-image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.02));
}

.mwi-header-search__item-body {
  min-width: 0;
  display: block;
}

.mwi-header-search__item-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.mwi-header-search__item-text {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.62;
}

.mwi-header-search__empty {
  padding: 12px 6px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.66;
}

/* ---------- Ask bar / back button ---------- */

.mwi-header-search__askbar {
  position: sticky;
  bottom: 0;
  margin: 14px -14px -14px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0 0 22px 22px;
  backdrop-filter: blur(14px);
}

.mwi-header-search__ask-button {
  width: 100%;
  height: 42px;
  border: solid 1px #2f88ff;
  border-radius: 999px;
  background: transparent;
  color: #2f88ff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 10px 0 #e2e6eb;
  transition: color 0.5s ease, box-shadow 0.2s ease, border 0.5s ease,
    background 0.5s ease;
}

.mwi-header-search__ask-button:hover,
.mwi-header-search__ask-button:focus {
  background: #2f88ff;
  color: #fff;
}

.mwi-header-search__back {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #111;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mwi-header-search__back:hover,
.mwi-header-search__back:focus {
  background: rgba(0, 0, 0, 0.1);
}

/* ---------- Bacchus prompt panel ---------- */

.mwi-header-search__bacchus-intro {
  margin-bottom: 12px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.045);
}

@media (max-width: 767px) {
  .mwi-header-search__bacchus-intro {
    display: none;
  }
}

.mwi-header-search__bacchus-intro strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.mwi-header-search__bacchus-intro span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.68;
}

.mwi-header-search__bacchus-prompts {
  display: none !important;
}

/* ---------- Bacchus compact composer ---------- */

.mwi-header-search__bacchus-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid #e2e6eb !important;
  border-radius: 999px !important;
  background: #fff !important;
}

.mwi-header-search__bacchus-input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-height: 47px !important;
  height: auto;
  max-height: 180px !important;
  margin: 0 !important;
  padding: 13px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  resize: none !important;
  overflow-y: hidden;
  line-height: 1.45 !important;
  font-size: 15px;
  color: #111;
}

.mwi-header-search__bacchus-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #2f88ff !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 15px !important;
  cursor: pointer;
}

.mwi-header-search__bacchus-submit:hover,
.mwi-header-search__bacchus-submit:focus {
  background: #2f88ff !important;
  color: #fff !important;
}

.mwi-header-search__bacchus-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.mwi-bacchus-submit-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: mwiBacchusSpin 800ms linear infinite;
}

/* ---------- Bacchus backdrop / floating windows ---------- */

.mwi-header-search--bacchus-answered::before {
  content: "";
  position: fixed;
  top: 51px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 98;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}

.mwi-bacchus-answer-window,
.mwi-bacchus-explore-window {
  position: fixed;
  box-sizing: border-box;
  z-index: 999;
  border: 1px solid #e2e6eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.18);
  overflow-y: auto;
  overflow-x: hidden;
  max-width: none;
}

.mwi-bacchus-answer-window {
  padding: 0 22px 22px 22px;
}

.mwi-bacchus-explore-window {
  padding: 18px;
}

.mwi-bacchus-answer-window[hidden],
.mwi-bacchus-explore-window[hidden] {
  display: none !important;
}

/* ---------- Chat window ---------- */

.mwi-bacchus-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mwi-bacchus-chat-window__header {
  margin-bottom: 16px;
}

.mwi-bacchus-chat-window__header strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.mwi-bacchus-chat-window__header span {
  display: block;
  font-size: 13px;
  opacity: 0.62;
}

.mwi-bacchus-chat__message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 767px) {
  .mwi-bacchus-chat__message {
    flex-direction: column;
  }
}

.mwi-bacchus-chat__message--user {
  flex-direction: row-reverse;
}

.mwi-bacchus-chat__body {
  min-width: 0;
  max-width: min(88%, 760px);
}

.mwi-bacchus-chat__message--user .mwi-bacchus-chat__body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mwi-bacchus-chat__message--assistant .mwi-bacchus-chat__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mwi-bacchus-chat__name {
  margin: 0 0 5px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.58;
}

.mwi-bacchus-chat__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  min-width: 34px !important;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.mwi-bacchus-chat__avatar--user {
  background: #2f88ff;
}

.mwi-bacchus-chat__avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

.mwi-bacchus-chat__avatar--assistant svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mwi-bacchus-chat__bubble {
  position: relative;
  box-sizing: border-box;
  max-width: min(100%, 760px);
  padding: 13px 15px;
  border: 1px solid #e2e6eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.mwi-bacchus-chat__bubble--user {
  border-color: rgba(47, 136, 255, 0.25);
  background: rgba(47, 136, 255, 0.08);
}

.mwi-bacchus-chat__bubble--assistant {
  border-color: #e2e6eb;
  background: #fff;
}

.mwi-bacchus-chat__bubble p:first-child {
  margin-top: 0;
}

.mwi-bacchus-chat__bubble p:last-child {
  margin-bottom: 0;
}

/* ---------- Answer formatting ---------- */

.mwi-header-search__bacchus-loading,
.mwi-header-search__bacchus-error,
.mwi-header-search__bacchus-answer {
  padding: 8px 2px 2px;
  font-size: 16px;
  line-height: 1.75;
}

.mwi-header-search__bacchus-error {
  color: #8a1f1f;
}

.mwi-header-search__bacchus-answer h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: #111;
}

.mwi-header-search__bacchus-answer h3:not(:first-child) {
  margin-top: 22px;
}

.mwi-header-search__bacchus-answer p {
  margin: 0 0 14px;
}

.mwi-header-search__bacchus-answer p:last-child {
  margin-bottom: 0;
}

.mwi-header-search__bacchus-answer ul,
.mwi-header-search__bacchus-answer ol {
  margin: 0 0 14px 22px;
  padding: 0;
}

.mwi-header-search__bacchus-answer li {
  margin-bottom: 7px;
  padding-left: 3px;
}

.mwi-header-search__bacchus-answer strong {
  font-weight: 800;
}

/* ---------- Copy button ---------- */

.mwi-bacchus-copy--message {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #e2e6eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease,
    border-color 160ms ease;
  z-index: 3;
}

.mwi-bacchus-chat__bubble--assistant:hover .mwi-bacchus-copy--message,
.mwi-bacchus-copy--message:focus {
  opacity: 1;
  transform: translateY(0);
}

.mwi-bacchus-copy--message:hover,
.mwi-bacchus-copy--message:focus,
.mwi-bacchus-copy--copied {
  border-color: #2f88ff;
  color: #2f88ff;
}

/* ---------- Explore on myWination ---------- */

.mwi-bacchus-explore {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mwi-bacchus-explore h3 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.mwi-bacchus-explore__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.mwi-bacchus-body
  .mwi-bacchus-explore__grid.mwi-bacchus-explore__grid--products {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.mwi-bacchus-explore__card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e2e6eb;
  border-radius: 14px;
  background: linear-gradient(270deg, #f5f8fc, #ffffff);
  color: #111;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.mwi-bacchus-explore__card:hover,
.mwi-bacchus-explore__card:focus {
  color: #2f88ff;
  box-shadow: 0 0 10px 0 #e2e6eb;
  transform: translateY(-1px);
}

.mwi-bacchus-explore__image {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(
    135deg,
    rgba(47, 136, 255, 0.16),
    rgba(0, 0, 0, 0.04)
  );
}

.mwi-bacchus-explore__body {
  min-width: 0;
  display: block;
}

.mwi-bacchus-explore__type {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.52;
}

.mwi-bacchus-explore__body strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.mwi-bacchus-explore__body span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 13px;
	font-weight: 500;
  line-height: 1.35;
  opacity: 0.66;
}

/* ---------- Explore empty state ---------- */

.mwi-bacchus-explore__empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e2e6eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
}

.mwi-bacchus-explore__empty strong {
  font-size: 15px;
  font-weight: 800;
}

.mwi-bacchus-explore__empty span {
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.72;
}

.mwi-bacchus-explore__create-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.mwi-bacchus-explore__create-grid .create-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.mwi-bacchus-explore__create-grid .create-link i {
  width: 18px;
  text-align: center;
  opacity: 0.72;
}

.mwi-bacchus-explore__create-grid .create-link:hover,
.mwi-bacchus-explore__create-grid .create-link:focus {
  color: #2f88ff;
  border-color: rgba(47, 136, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* ---------- Skeleton ---------- */

.mwi-bacchus-explore__card--skeleton {
  pointer-events: none;
}

.mwi-bacchus-explore__card--skeleton .mwi-bacchus-explore__image,
.mwi-bacchus-explore__card--skeleton .mwi-bacchus-explore__body span,
.mwi-bacchus-explore__card--skeleton .mwi-bacchus-explore__body strong {
  display: block;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(226, 230, 235, 0.7),
    rgba(245, 248, 252, 1),
    rgba(226, 230, 235, 0.7)
  );
  background-size: 220% 100%;
  animation: mwiBacchusSkeleton 1.2s linear infinite;
}

/* ---------- Mobile ---------- */

@media (max-width: 980px) {
  .mwi-bacchus-explore-window {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .mwi-bacchus-chat__body {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .mwi-header-search {
    max-width: 100%;
  }

  .mwi-header-search__input {
    height: 40px;
    font-size: 14px;
  }

  .mwi-header-search__results,
  .mwi-header-search__status {
    top: 64px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    border-radius: 18px;
  }
}

/* ---------- Bacchus Modal ---------- */

html.mwi-bacchus-modal-open,
html.mwi-bacchus-modal-open body {
  overflow: hidden !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  background: #fff !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal__panel {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483001 !important;
  background: #fff !important;
  flex-direction: column !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal__header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 64px !important;
  z-index: 2147483004 !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal__eyebrow {
  display: none !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal__header h2 {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal [data-mwi-bacchus-modal-search] {
  display: block !important;
  position: fixed !important;
  inset: 64px 0 0 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: calc(100dvh - 64px) !important;
  z-index: 2147483002 !important;
  background: #fff !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal .mwi-header-search__results {
  display: block !important;
  position: fixed !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 140px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  z-index: 2147483005 !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal .mwi-header-search__answer {
  display: block !important;
  height: 100% !important;
  min-height: 140px !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-modal .mwi-bacchus-composer-panel {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  min-height: 90px !important;
  padding: 12px 14px 18px !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  z-index: 2147483006 !important;
}

html.mwi-bacchus-modal-open
  .mwi-bacchus-modal
  .mwi-header-search__bacchus-input {
  max-height: 160px !important;
}

html.mwi-bacchus-modal-open .mwi-bacchus-answer-window--modal {
  display: block !important;
  position: fixed !important;
  top: 64px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 98px !important;
  width: 100vw !important;
  height: auto !important;
  max-width: none !important;
  padding: 14px 12px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 2147483003 !important;
}

.mwi-bacchus-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f88ff;
  color: white;
}

/* =========================================
   Prevent iPhone input zoom in Bacchus modal
   ========================================= */

@media (max-width: 767px) {
  html.mwi-bacchus-modal-open
    .mwi-bacchus-modal
    .mwi-header-search__bacchus-input {
    font-size: 16px !important;
  }
}

button.mywination-footer-menu__link.mywination-footer-bacchus-toggle {
  background: transparent;
  color: #2f88ff;
}

/* ---------- Animations ---------- */

@keyframes mwiBacchusThinking {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

@keyframes mwiSearchPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mwiBacchusSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mwiBacchusSkeleton {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

/* =========================================================
   myWination search: Bacchus composer sticky bottom
   ========================================================= */

/* Make the Bacchus panel use the full search window height */
.mwi-header-search__results--bacchus .mwi-bacchus-composer-panel {
  min-height: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  overflow: hidden !important;
}

/* Keep top content normal */
.mwi-header-search__results--bacchus .mwi-header-search__back,
.mwi-header-search__results--bacchus .mwi-header-search__bacchus-intro,
.mwi-header-search__results--bacchus .mwi-header-search__open-bacchus {
  flex: 0 0 auto !important;
}

/* Open Bacchus button */
.mwi-header-search__open-bacchus {
  width: 100% !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(216, 173, 95, 0.38) !important;
  border-radius: 14px !important;
  background: rgba(216, 173, 95, 0.12) !important;
  color: #f7dfaa !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

.mwi-header-search__open-bacchus:hover,
.mwi-header-search__open-bacchus:focus {
  background: rgba(216, 173, 95, 0.2) !important;
  color: #fff1c8 !important;
}

/* This pushes the ask form to the bottom */
.mwi-header-search__bacchus-form-dock {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
}

/* Bottom ask form */
.mwi-header-search__bacchus-form-dock .mwi-header-search__bacchus-form {
  width: 100% !important;
  margin-top: auto !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
}

/* Make textarea fill the bar */
.mwi-header-search__bacchus-form-dock .mwi-header-search__bacchus-input {
  width: 100% !important;
  max-width: none !important;
}

/* Product-only Explore layout */
.mwi-bacchus-explore__grid--products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__card--product {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e6eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  flex-direction: column;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__image {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  object-fit: contain;
  background: #ffffff;
  flex: auto;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__type {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 136, 255, 0.09);
  color: #2f88ff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__body strong {
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__price {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #2f88ff;
  font-size: 13px;
  font-weight: 500;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__stock {
  color: #18794e;
  font-size: 12px;
  font-weight: 800;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__learn-more {
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #2f88ff;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__learn-more:hover,
.mwi-bacchus-explore__grid--products .mwi-bacchus-explore__learn-more:focus {
  background: #111;
  color: #fff;
  text-decoration: none;
}

/* =========================================

   Bacchus vendor/business Explore cards

   ========================================= */

body.mwi-bacchus-body
  .mwi-bacchus-explore__grid.mwi-bacchus-explore__grid--vendors {
  display: grid !important;

  grid-template-columns: 1fr !important;

  gap: 12px !important;
}

.mwi-bacchus-explore__grid--vendors .mwi-bacchus-explore__card--vendor {
  display: grid;

  grid-template-columns: 74px 1fr;

  gap: 12px;

  align-items: start;

  padding: 13px;

  border: 1px solid #e2e6eb;

  border-radius: 18px;

  background: #fff;

  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.mwi-bacchus-explore__grid--vendors .mwi-bacchus-explore__image {
  width: 74px;

  height: 74px;

  border-radius: 16px;

  object-fit: cover;

  background: #f5f7fb;
}

.mwi-bacchus-explore__grid--vendors .mwi-bacchus-explore__body {
  display: flex;

  flex-direction: column;

  gap: 6px;

  min-width: 0;
}

.mwi-bacchus-explore__grid--vendors .mwi-bacchus-explore__type {
  width: fit-content;

  padding: 3px 8px;

  border-radius: 999px;

  background: rgba(47, 136, 255, 0.09);

  color: #2f88ff;

  font-size: 11px;

  font-weight: 500;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}

.mwi-bacchus-explore__grid--vendors .mwi-bacchus-explore__body strong {
  color: #111;

  font-size: 14px;

  font-weight: 500;

  line-height: 1.25;
}

.mwi-bacchus-explore__address {
  color: #4b5563;

  font-size: 12px;

  font-weight: 650;

  line-height: 1.35;
}

@media (max-width: 767px) {
  body.mwi-bacchus-body
    .mwi-bacchus-explore__grid.mwi-bacchus-explore__grid--vendors {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Force PeepSo Chat above Bacchus
   ========================================================= */

#ps-chat-root,
#ps-chat-root.ps-chat__wrapper,
#ps-chat-root.ps-chat-root,
.ps-chat-root,
.ps-chat__wrapper,
.ps-chat-wrapper {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    left: auto !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

#ps-chat-root *,
.ps-chat-root *,
.ps-chat__wrapper *,
.ps-chat-wrapper * {
    z-index: inherit;
}

#ps-chat-root .ps-chat,
#ps-chat-root .ps-chat__windows,
#ps-chat-root .ps-chat-windows,
#ps-chat-root .ps-chat__window-wrapper,
#ps-chat-root .ps-chat__window,
#ps-chat-root .ps-chat__window-inner,
#ps-chat-root .ps-chat__sidebar {
    position: relative !important;
    z-index: 2147483647 !important;
}

#ps-window,
.ps-window,
.ps-dialog,
.ps-dialog-wrapper,
.ps-modal,
.ps-lightbox,
.ps-js-modal,
.ps-js-dialog {
    z-index: 2147483647 !important;
}

.ps-window__overlay,
.ps-dialog__overlay,
.ps-modal__overlay,
.ps-lightbox__overlay {
    z-index: 2147483646 !important;
}

/* Bacchus vendor chat login link */
.mwi-bacchus-explore__chat-login {
    color: #2f88ff !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

.mwi-bacchus-explore__chat-login:hover,
.mwi-bacchus-explore__chat-login:focus {
    color: #111 !important;
    text-decoration: underline !important;
}