:root {
  --smb-fmwa-z: 99999;
  --smb-fmwa-size: 56px;
  --smb-fmwa-gap: 14px;
}

html.smb-fmwa-lock,
body.smb-fmwa-lock {
  overflow: hidden !important;
}

.smb-fmwa-root {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: var(--smb-fmwa-z);
  display: flex;
  flex-direction: column;
  gap: var(--smb-fmwa-gap);
  -webkit-tap-highlight-color: transparent;
}

.smb-fmwa-root[data-pos="left"] {
  left: 18px;
  right: auto;
}

.smb-fmwa-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: var(--smb-fmwa-size) !important;
  height: var(--smb-fmwa-size) !important;
  width: var(--smb-fmwa-size);
  height: var(--smb-fmwa-size);
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(62, 68, 79, 0.72) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(12px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
  transition: transform 0.14s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.smb-fmwa-btn:hover {
  background: rgba(74, 81, 93, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.smb-fmwa-btn:active {
  transform: translateY(1px) scale(0.97) !important;
  background: rgba(50, 56, 66, 0.86) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.smb-fmwa-btn:focus-visible {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

.smb-fmwa-ico span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.smb-fmwa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: calc(var(--smb-fmwa-z) - 1);
}

.smb-fmwa-panel {
  position: fixed;
  bottom: 96px;
  right: 18px;
  width: 236px;
  max-height: 56vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 22px;
  padding: 12px;
  background: rgba(45, 45, 45, 0.5);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--smb-fmwa-z);
}

.smb-fmwa-root[data-pos="left"] .smb-fmwa-panel {
  left: 18px;
  right: auto;
}

.smb-fmwa-root *:focus,
.smb-fmwa-root *:focus-visible {
  outline: none !important;
}

.smb-fmwa-close {
  display: none !important;
}

.smb-fmwa-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.smb-fmwa-item {
  width: 100%;
}

.smb-fmwa-link {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px !important;
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  outline: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
}

.smb-fmwa-link:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

.smb-fmwa-nav button.smb-fmwa-link,
.smb-fmwa-nav button.smb-fmwa-link:hover,
.smb-fmwa-nav button.smb-fmwa-link:focus,
.smb-fmwa-nav button.smb-fmwa-link:active,
.smb-fmwa-nav button.smb-fmwa-link:visited {
  display: flex !important;
  width: 100% !important;
  min-height: 46px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.smb-fmwa-nav button.smb-fmwa-link:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

.smb-fmwa-link > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.smb-fmwa-link > span:last-child {
  flex: 0 0 auto;
}

.smb-fmwa-link[data-wa="1"] {
  background: rgba(37, 211, 102, 0.3) !important;
  border: 1px solid rgba(37, 211, 102, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 16px rgba(14, 108, 55, 0.32),
    0 2px 0 rgba(12, 90, 47, 0.45) !important;
  transform: translateY(0) scale(1);
  transition:
    transform 0.14s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease !important;
}

.smb-fmwa-link[data-wa="1"]:hover {
  background: rgba(37, 211, 102, 0.38) !important;
  border-color: rgba(37, 211, 102, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 18px rgba(14, 108, 55, 0.36),
    0 2px 0 rgba(12, 90, 47, 0.48) !important;
}

.smb-fmwa-link[data-wa="1"]:active {
  transform: translateY(2px) scale(0.985) !important;
  background: rgba(37, 211, 102, 0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 8px rgba(14, 108, 55, 0.26),
    0 0 0 rgba(12, 90, 47, 0) !important;
}

.smb-fmwa-link[data-wa="1"]:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 2px rgba(88, 255, 166, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(14, 108, 55, 0.32) !important;
}

.smb-fmwa-toggle {
  cursor: pointer !important;
  text-align: left;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
}

.smb-fmwa-chevron {
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.smb-fmwa-toggle[aria-expanded="true"] .smb-fmwa-chevron {
  transform: rotate(180deg);
}

.smb-fmwa-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

.smb-fmwa-toggle[aria-expanded="true"] .smb-fmwa-chevron {
  color: rgba(255, 255, 255, 0.95) !important;
}

.smb-fmwa-submenu {
  margin-top: 8px;
  margin-left: 10px;
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: smbSubmenuIn 0.18s ease both;
}

.smb-fmwa-sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 9px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font: 500 11px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: rgba(255, 255, 255, 0.08);
}

.smb-fmwa-sub-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 480px) {
  .smb-fmwa-panel {
    width: min(222px, calc(100vw - 32px));
    max-height: 50vh;
    padding: 10px 9px 10px;
    border-radius: 18px;
  }

  .smb-fmwa-nav {
    gap: 7px;
  }

  .smb-fmwa-link {
    min-height: 36px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  .smb-fmwa-sub-link {
    padding: 7px 8px;
    font-size: 10px;
  }
}

@keyframes smbSubmenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA WhatsApp premium */
.smb-fmwa-cta {
  position: relative;
  display: grid !important;
  grid-template-columns: 38px 1fr 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;

  padding: 12px !important;
  border-radius: 16px !important;
  text-decoration: none !important;

  background: linear-gradient(180deg, rgba(37, 211, 102, 0.95), rgba(18, 140, 126, 0.95)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;

  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -12px 22px rgba(0, 0, 0, 0.18) !important;

  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.smb-fmwa-cta-ico {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 18px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.smb-fmwa-cta-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.smb-fmwa-cta-title {
  font: 800 13px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smb-fmwa-cta-sub {
  font: 600 11px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smb-fmwa-cta-arrow {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  justify-self: end;
}

.smb-fmwa-cta::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -7px;
  height: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(7px);
  opacity: 0.75;
  transition: opacity .12s ease, transform .12s ease;
}

.smb-fmwa-cta:hover {
  filter: brightness(1.03) saturate(1.05);
}

.smb-fmwa-cta:active {
  transform: translateY(3px) scale(0.99);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 16px rgba(0, 0, 0, 0.22) !important;
}

.smb-fmwa-cta:active::after {
  opacity: 0.45;
  transform: translateY(3px);
}
