.lmab-root {
  --lmab-accent: #0f766e;
  --lmab-bg: #ffffff;
  --lmab-text: #1f1f1f;
  --lmab-muted: #74706a;
  --lmab-border: rgba(32, 28, 24, 0.12);
  --lmab-shadow: 0 -14px 34px rgba(18, 18, 18, 0.14);
  --lmab-action-tone: #2f3333;
  --lmab-action-surface: rgba(31, 31, 31, 0.055);
  --lmab-action-surface-strong: rgba(15, 118, 110, 0.14);
  --lmab-action-border: rgba(31, 31, 31, 0.08);
  color: var(--lmab-text);
  font-family: inherit;
}

.lmab-body-padding {
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
}

.lmab-bar {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 99990;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--lmab-border);
  border-radius: 20px;
  box-shadow: var(--lmab-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lmab-action {
  appearance: none;
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 7px 4px;
  color: var(--lmab-text);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.lmab-action:active,
.lmab-action.is-active {
  color: var(--lmab-accent);
  background: rgba(15, 118, 110, 0.08);
}

.lmab-action:active {
  transform: translateY(1px) scale(0.98);
}

.lmab-action:focus-visible {
  outline: 2px solid var(--lmab-accent);
  outline-offset: 2px;
}

.lmab-action-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--lmab-action-tone);
  background: var(--lmab-action-surface);
  border: 1px solid var(--lmab-action-border);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(14, 17, 18, 0.08);
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lmab-action-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.lmab-action.is-active .lmab-action-icon,
.lmab-action:active .lmab-action-icon {
  color: var(--lmab-accent);
  background: var(--lmab-action-surface-strong);
  box-shadow: 0 5px 14px rgba(14, 17, 18, 0.12);
}

.lmab-action:active .lmab-action-icon {
  transform: scale(0.94);
}

.lmab-action-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lmab-sheet {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.lmab-sheet.is-open {
  display: flex;
}

.lmab-sheet.is-open .lmab-scrim {
  animation: lmab-fade-in 160ms ease both;
}

.lmab-sheet.is-open .lmab-panel {
  animation: lmab-panel-up 210ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lmab-scrim {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(18, 16, 14, 0.42);
  border: 0;
  cursor: pointer;
}

.lmab-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(78vh, 620px);
  overflow: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--lmab-bg);
  border: 1px solid var(--lmab-border);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -22px 60px rgba(10, 10, 10, 0.24);
}

.lmab-panel:focus {
  outline: none;
}

.lmab-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.lmab-panel-kicker {
  margin: 0 0 4px;
  color: var(--lmab-accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.lmab-panel h2 {
  margin: 0;
  color: var(--lmab-text);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
}

.lmab-close {
  appearance: none;
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--lmab-text);
  background: rgba(31, 31, 31, 0.06);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lmab-close:focus-visible {
  outline: 2px solid var(--lmab-accent);
  outline-offset: 2px;
}

.lmab-restaurant-list {
  display: grid;
  gap: 10px;
}

.lmab-restaurant {
  appearance: none;
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  color: var(--lmab-text);
  text-align: left;
  background: #fff;
  border: 1px solid var(--lmab-border);
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lmab-restaurant:hover {
  box-shadow: 0 8px 22px rgba(14, 17, 18, 0.08);
  transform: translateY(-1px);
}

.lmab-restaurant:active {
  transform: scale(0.99);
}

.lmab-restaurant:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.lmab-restaurant:focus-visible {
  outline: 2px solid var(--lmab-accent);
  outline-offset: 2px;
}

.lmab-restaurant.is-current {
  border-color: rgba(15, 118, 110, 0.48);
  background: rgba(15, 118, 110, 0.08);
}

.lmab-restaurant-main {
  min-width: 0;
}

.lmab-restaurant-name {
  display: block;
  overflow: hidden;
  color: var(--lmab-text);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lmab-restaurant-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--lmab-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lmab-restaurant-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  color: var(--lmab-accent);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.lmab-restaurant-badge[data-lmab-action-badge="call"],
.lmab-restaurant-badge[data-lmab-action-badge="current"] {
  color: var(--lmab-accent);
  background: rgba(15, 118, 110, 0.1);
}

.lmab-restaurant-badge[data-lmab-action-badge="whatsapp"] {
  color: #13783a;
  background: rgba(22, 163, 74, 0.1);
}

.lmab-restaurant-badge[data-lmab-action-badge="directions"] {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.lmab-restaurant-badge[data-lmab-action-badge="menu"] {
  color: #a23a34;
  background: rgba(194, 65, 59, 0.1);
}

.lmab-desktop-widget {
  display: none;
}

.lmab-desktop-trigger,
.lmab-desktop-action {
  appearance: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lmab-desktop-panel[hidden] {
  display: none;
}

.lmab-desktop-trigger-icon,
.lmab-desktop-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lmab-desktop-trigger-icon svg,
.lmab-desktop-action-icon svg {
  display: block;
  fill: currentColor;
}

@keyframes lmab-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes lmab-panel-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 769px) {
  .lmab-root.lmab-mobile-only .lmab-bar {
    display: none;
  }

  .lmab-desktop-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99988;
    display: block;
    color: var(--lmab-text);
    font-family: inherit;
  }

  .lmab-desktop-trigger {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    color: var(--lmab-text);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--lmab-border);
    border-radius: 999px;
    box-shadow: 0 16px 42px rgba(10, 10, 10, 0.16);
    font-size: 14px;
    font-weight: 720;
    letter-spacing: 0;
    line-height: 1;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  .lmab-desktop-trigger:hover,
  .lmab-desktop-widget.is-open .lmab-desktop-trigger {
    border-color: rgba(15, 118, 110, 0.38);
    box-shadow: 0 18px 48px rgba(10, 10, 10, 0.2);
  }

  .lmab-desktop-trigger:active {
    transform: translateY(1px) scale(0.99);
  }

  .lmab-desktop-trigger:focus-visible,
  .lmab-desktop-action:focus-visible {
    outline: 2px solid var(--lmab-accent);
    outline-offset: 3px;
  }

  .lmab-desktop-trigger-icon {
    width: 30px;
    height: 30px;
    color: var(--lmab-accent);
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
  }

  .lmab-desktop-trigger-icon svg {
    width: 18px;
    height: 18px;
  }

  .lmab-desktop-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 392px;
    max-width: calc(100vw - 48px);
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--lmab-border);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(10, 10, 10, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: lmab-panel-up 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .lmab-desktop-panel:focus {
    outline: none;
  }

  .lmab-desktop-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .lmab-desktop-panel h2 {
    margin: 0;
    color: var(--lmab-text);
    font-size: 21px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.15;
  }

  .lmab-desktop-subtitle {
    margin: 7px 0 0;
    color: var(--lmab-muted);
    font-size: 13px;
    line-height: 1.4;
  }

  .lmab-desktop-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .lmab-desktop-action {
    display: flex;
    min-width: 0;
    min-height: 70px;
    align-items: center;
    gap: 9px;
    padding: 12px;
    color: var(--lmab-text);
    text-align: left;
    background: #fff;
    border: 1px solid var(--lmab-border);
    border-radius: 14px;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  .lmab-desktop-action:hover {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 9px 24px rgba(14, 17, 18, 0.08);
    transform: translateY(-1px);
  }

  .lmab-desktop-action:active {
    transform: scale(0.99);
  }

  .lmab-desktop-action-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    color: var(--lmab-accent);
    background: rgba(15, 118, 110, 0.1);
    border-radius: 999px;
  }

  .lmab-desktop-action[data-lmab-desktop-action="whatsapp"] .lmab-desktop-action-icon {
    color: #13783a;
    background: rgba(22, 163, 74, 0.1);
  }

  .lmab-desktop-action[data-lmab-desktop-action="directions"] .lmab-desktop-action-icon {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
  }

  .lmab-desktop-action[data-lmab-desktop-action="menu"] .lmab-desktop-action-icon,
  .lmab-desktop-action[data-lmab-desktop-action="group_reservation"] .lmab-desktop-action-icon {
    color: #a23a34;
    background: rgba(194, 65, 59, 0.1);
  }

  .lmab-desktop-action-icon svg {
    width: 18px;
    height: 18px;
  }

  .lmab-desktop-action-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .lmab-desktop-action-label {
    overflow: visible;
    color: var(--lmab-text);
    font-size: 13px;
    font-weight: 740;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
  }

  .lmab-desktop-action-hint {
    overflow: hidden;
    color: var(--lmab-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lmab-sheet {
    align-items: flex-end;
    justify-content: flex-end;
  }

  .lmab-sheet.is-open .lmab-panel {
    margin: 0 24px 96px 0;
  }

  .lmab-panel {
    width: min(380px, calc(100vw - 48px));
    max-height: min(74vh, 620px);
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(10, 10, 10, 0.24);
  }
}

@media (max-width: 768px) {
  .lmab-desktop-widget {
    display: none !important;
  }
}

@media (max-width: 359px) {
  .lmab-bar {
    right: 6px;
    left: 6px;
    gap: 4px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .lmab-action-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmab-action,
  .lmab-action-icon,
  .lmab-restaurant,
  .lmab-desktop-trigger,
  .lmab-desktop-action {
    transition: none;
  }

  .lmab-sheet.is-open .lmab-scrim,
  .lmab-sheet.is-open .lmab-panel,
  .lmab-desktop-panel {
    animation: none;
  }
}
