:root {
  --auria-bam-height: 74px;
  --auria-bam-bg: rgba(255,255,255,.97);
  --auria-bam-surface: #ffffff;
  --auria-bam-border: rgba(15, 23, 42, .08);
  --auria-bam-shadow: 0 18px 40px rgba(15, 23, 42, .14);
  --auria-bam-panel-shadow: 0 28px 80px rgba(15, 23, 42, .18);
  --auria-bam-primary: #233a95;
  --auria-bam-accent: #ed174a;
  --auria-bam-whatsapp: #25D366;
  --auria-bam-text: #14213d;
  --auria-bam-muted: #667085;
  --auria-bam-radius: 24px;
  --auria-bam-safe-bottom: env(safe-area-inset-bottom);
}

body.auria-bam-enabled {
  padding-bottom: calc(var(--auria-bam-height) + 28px + var(--auria-bam-safe-bottom));
}

body.auria-bam-enabled.auria-bam-lock {
  overflow: hidden;
  touch-action: none;
}

body.auria-bam-enabled .bacola-mobile-bottom-menu,
body.auria-bam-enabled .mobile-bottom-menu,
body.auria-bam-enabled .site-mobile-bottom-menu,
body.auria-bam-enabled [class*="mobile-bottom-menu"],
body.auria-bam-enabled [class*="bacola-bottom-menu"] {
  display: none !important;
}

.auria-bam {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  pointer-events: none;
  font-family: inherit;
}

.auria-bam,
.auria-bam * {
  box-sizing: border-box;
}

.auria-bam :is(button, input, a) {
  font: inherit;
}

.auria-bam button {
  appearance: none;
  -webkit-appearance: none;
}

.auria-bam input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.auria-bam input[type="number"]::-webkit-outer-spin-button,
.auria-bam input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auria-bam__overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .34);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
  pointer-events: none;
  z-index: 0;
}

.auria-bam__panel {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(var(--auria-bam-height) + 24px + var(--auria-bam-safe-bottom));
  width: min(560px, calc(100vw - 28px));
  max-width: 100%;
  background: var(--auria-bam-surface);
  border: 1px solid var(--auria-bam-border);
  border-radius: 28px;
  box-shadow: var(--auria-bam-panel-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 22px);
  transition: transform .24s ease, opacity .24s ease, visibility .24s ease;
  overflow: hidden;
  pointer-events: auto;
  z-index: 2;
}

.auria-bam__panel-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #d8dee8;
  margin: 8px auto 0;
}

.auria-bam__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid #edf1f6;
}

.auria-bam__panel-title {
  color: var(--auria-bam-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.auria-bam__panel-body {
  max-height: min(70vh, 620px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 18px;
  color: var(--auria-bam-text);
}

.auria-bam__panel::-webkit-scrollbar,
.auria-bam__panel-body::-webkit-scrollbar {
  width: 10px;
}

.auria-bam__panel::-webkit-scrollbar-thumb,
.auria-bam__panel-body::-webkit-scrollbar-thumb {
  background: #d6deea;
  border-radius: 999px;
}

.auria-bam__close {
  border: 0;
  background: #f4f6fb;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--auria-bam-text);
}

.auria-bam__bar {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: min(520px, calc(100% - 20px));
  margin: 0 auto calc(12px + var(--auria-bam-safe-bottom));
  background: var(--auria-bam-bg);
  border: 1px solid var(--auria-bam-border);
  border-radius: 999px;
  box-shadow: var(--auria-bam-shadow);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  min-height: var(--auria-bam-height);
  padding: 8px;
  gap: 8px;
}

.auria-bam__action {
  position: relative;
  border: 0;
  background: transparent;
  min-height: 58px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
  color: var(--auria-bam-text);
  padding: 6px 4px;
}

.auria-bam__action:hover,
.auria-bam__action.is-active {
  background: rgba(35, 58, 149, .08);
}

.auria-bam__action.is-active {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(35, 58, 149, .10);
}

.auria-bam__action.is-cart.is-active {
  background: var(--auria-bam-accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(237, 23, 74, .26);
}

.auria-bam__action.is-cart.is-active .auria-bam__icon,
.auria-bam__action.is-cart.is-active .auria-bam__label {
  color: #fff;
}

.auria-bam__icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--auria-bam-primary);
  flex: 0 0 26px;
}

.auria-bam__icon svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

.auria-bam__label {
  display: none;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  letter-spacing: -.01em;
  color: var(--auria-bam-text);
}

.auria-bam__action.is-whatsapp .auria-bam__icon,
.auria-bam__action.is-whatsapp.is-active .auria-bam__icon {
  color: var(--auria-bam-whatsapp);
}

.auria-bam__action.is-whatsapp:hover,
.auria-bam__action.is-whatsapp.is-active {
  background: rgba(37, 211, 102, .10);
}

.auria-bam__badge {
  position: absolute;
  top: 7px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--auria-bam-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.92);
}

.auria-bam__badge.is-hidden {
  display: none;
}

.auria-bam.is-open .auria-bam__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auria-bam.is-open .auria-bam__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.auria-bam__empty {
  margin: 0;
  color: var(--auria-bam-muted);
  font-size: 14px;
}

.auria-bam-search__input {
  width: 100% !important;
  border: 1px solid #dbe3ef !important;
  background: #f8fafc !important;
  border-radius: 16px !important;
  height: 54px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  color: var(--auria-bam-text) !important;
  box-shadow: none !important;
}

.auria-bam-search__results {
  margin-top: 14px;
}

.auria-bam-products {
  display: grid;
  gap: 12px;
}

.auria-bam-product,
.auria-bam-cart__item,
.auria-bam-location,
.auria-bam-wa-card {
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 20px;
}

.auria-bam-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auria-bam-product__thumb img,
.auria-bam-cart__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.auria-bam-product:hover {
  border-color: rgba(35, 58, 149, .16);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.auria-bam-product__content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.auria-bam-product__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--auria-bam-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auria-bam-product__title,
.auria-bam-cart__title,
.auria-bam-cat-link,
.auria-bam-link {
  text-decoration: none;
  color: var(--auria-bam-text);
}

.auria-bam-product__title,
.auria-bam-cart__title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.auria-bam-product__price,
.auria-bam-cart__price,
.auria-bam-cart__line-total {
  color: var(--auria-bam-primary);
  font-weight: 800;
}

.auria-bam-cart__pricing {
  display: grid;
  gap: 2px;
}

.auria-bam-cart__price-note {
  color: var(--auria-bam-muted);
  font-size: 12px;
  font-weight: 600;
}

.auria-bam-cat-tree,
.auria-bam-subcats,
.auria-bam-hours,
.auria-bam-wa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auria-bam-cat-item + .auria-bam-cat-item {
  margin-top: 10px;
}

.auria-bam-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #edf1f6;
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
}

.auria-bam-cat-link {
  font-weight: 700;
}

.auria-bam-cat-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: #f4f7fb;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--auria-bam-primary);
  flex: 0 0 34px;
}

.auria-bam-subcats {
  display: none;
  margin-top: 10px;
  margin-left: 12px;
  padding-left: 10px;
  border-left: 2px solid #edf2f7;
}

.auria-bam-cat-item.is-open > .auria-bam-subcats {
  display: block;
}

.auria-bam-cart {
  display: grid;
  gap: 16px;
}

.auria-bam-cart__items {
  display: grid;
  gap: 12px;
}

.auria-bam-cart__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.auria-bam-cart__content {
  min-width: 0;
}

.auria-bam-cart__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.auria-bam-cart__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7f9fc;
  border: 1px solid #e7edf6;
  border-radius: 999px;
  padding: 6px;
}

.auria-bam-qty-btn,
.auria-bam-cart__remove {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auria-bam-qty-btn {
  background: #fff;
  color: var(--auria-bam-accent);
  box-shadow: inset 0 0 0 1px rgba(237, 23, 74, .16);
}

.auria-bam-cart__remove {
  background: #fff1f4;
  color: var(--auria-bam-accent);
}

.auria-bam-qty-input {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 36px !important;
  border-radius: 12px !important;
  border: 1px solid #dbe3ef !important;
  text-align: center !important;
  padding: 0 6px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.auria-bam-cart__footer {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.9), #fff 24%);
  margin: 0 -22px -22px;
  padding: 16px 22px 22px;
  border-top: 1px solid #edf1f6;
  display: grid;
  gap: 14px;
}

.auria-bam-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--auria-bam-text);
  font-size: 16px;
}

.auria-bam-cart__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auria-bam-btn {
  min-height: 46px;
  border-radius: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 800;
  border: 1px solid rgba(35, 58, 149, .16);
  background: #fff;
  color: var(--auria-bam-primary);
  cursor: pointer;
}

.auria-bam-btn--checkout,
.auria-bam-btn--whatsapp,
.auria-bam-btn--maps {
  background: var(--auria-bam-accent);
  border-color: var(--auria-bam-accent);
  color: #fff;
}

.auria-bam-location + .auria-bam-location {
  margin-top: 12px;
}

.auria-bam-location {
  padding: 16px;
}

.auria-bam-location__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.auria-bam-location__address,
.auria-bam-location__phone,
.auria-bam-location__hours,
.auria-bam-whatsapp__meta {
  margin: 0 0 8px;
  color: var(--auria-bam-text);
}

.auria-bam-location__note {
  color: var(--auria-bam-muted);
}

.auria-bam-location__note p {
  margin: 0 0 8px;
}

.auria-bam-location__actions {
  margin-top: 12px;
}

.auria-bam-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--auria-bam-text);
  margin-bottom: 14px;
  border: 1px solid #edf1f6;
}

.auria-bam-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--auria-bam-accent);
}

.auria-bam-status.is-online .auria-bam-status__dot {
  background: #22c55e;
}

.auria-bam-hours {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.auria-bam-hours li,
.auria-bam-wa-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  background: #fff;
}

.auria-bam-wa-card {
  padding: 16px;
}

.auria-bam-wa-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.auria-bam-wa-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f1fdf5;
  color: var(--auria-bam-whatsapp);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auria-bam-whatsapp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.auria-bam-whatsapp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auria-bam__icon .auria-bam-whatsapp-logo {
  width: 24px;
  height: 24px;
}

.auria-bam-wa-icon {
  overflow: hidden;
}

.auria-bam-wa-icon .auria-bam-whatsapp-logo {
  width: 34px;
  height: 34px;
}

.auria-bam-wa-title {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
}

.auria-bam-wa-subtitle {
  margin: 0;
  color: var(--auria-bam-muted);
}

.auria-bam-wa-ping {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--auria-bam-accent);
  box-shadow: 0 0 0 6px rgba(237, 23, 74, .12);
}

.auria-bam-wa-ping.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .12);
}

.auria-bam-wa-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.auria-bam-wa-list li span {
  color: var(--auria-bam-muted);
}

.auria-bam-wa-list li strong {
  color: var(--auria-bam-text);
  text-align: right;
}

@media (min-width: 783px) {
  body.auria-bam-hide-desktop {
    padding-bottom: 0 !important;
  }

  body.auria-bam-hide-desktop .auria-bam {
    display: none !important;
  }

  .auria-bam__bar {
    width: min(500px, calc(100% - 20px));
    padding: 8px;
    gap: 8px;
  }

  .auria-bam__action {
    min-height: 58px;
    gap: 0;
  }

  .auria-bam__label {
    display: none;
  }
}

@media (max-width: 782px) {
  body.auria-bam-hide-mobile {
    padding-bottom: 0 !important;
  }

  body.auria-bam-hide-mobile .auria-bam {
    display: none !important;
  }

  body.auria-bam-enabled {
    padding-bottom: calc(var(--auria-bam-height) + 18px + var(--auria-bam-safe-bottom));
  }

  .auria-bam__overlay {
    background: rgba(15, 23, 42, .22);
  }

  .auria-bam__panel {
    left: 50%;
    right: auto;
    width: calc(100% - 12px);
    bottom: calc(var(--auria-bam-height) + 10px + var(--auria-bam-safe-bottom));
    transform: translate(-50%, 28px);
    max-height: calc(100vh - var(--auria-bam-height) - 32px - var(--auria-bam-safe-bottom));
    border-radius: 28px;
  }

  .auria-bam.is-open .auria-bam__panel {
    transform: translate(-50%, 0);
  }

  .auria-bam__panel-header {
    padding: 16px 18px 12px;
  }

  .auria-bam__panel-body {
    max-height: calc(100vh - var(--auria-bam-height) - 120px - var(--auria-bam-safe-bottom));
    padding: 16px 18px 18px;
  }

  .auria-bam__bar {
    width: calc(100% - 12px);
    margin-bottom: calc(6px + var(--auria-bam-safe-bottom));
    padding: 6px;
    min-height: 82px;
    gap: 6px;
  }

  .auria-bam__action {
    min-height: 70px;
    gap: 6px;
    border-radius: 18px;
  }

  .auria-bam__label {
    display: block;
    font-size: 10px;
  }

  .auria-bam__badge {
    right: 8px;
    top: 5px;
  }

  .auria-bam-product,
  .auria-bam-cart__item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .auria-bam-product__thumb img,
  .auria-bam-cart__thumb img {
    width: 64px;
    height: 64px;
  }

  .auria-bam-cart__remove {
    justify-self: start;
  }

  .auria-bam-cart__item {
    align-items: start;
  }

  .auria-bam-cart__meta {
    margin-bottom: 12px;
  }

  .auria-bam-cart__footer {
    bottom: -18px;
    margin: 0 -18px -18px;
    padding: 14px 18px 18px;
  }

  .auria-bam-cart__actions {
    grid-template-columns: 1fr;
  }

  .auria-bam-wa-head {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .auria-bam-wa-list li,
  .auria-bam-hours li {
    align-items: flex-start;
  }
}

@media (max-width: 782px) {
  .auria-bam__icon .auria-bam-whatsapp-logo {
    width: 24px;
    height: 24px;
  }

  .auria-bam-wa-icon .auria-bam-whatsapp-logo {
    width: 30px;
    height: 30px;
  }
}
