.lmf-guide-launcher {
  position: fixed;
  z-index: 999999;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 15px 22px;
  border: 1px solid #ffffff4d;
  border-radius: 30px;
  background: #16384d;
  color: #fff;
  box-shadow: 0 6px 28px #16384d26;
  font: 700 16px/1.25 system-ui, sans-serif;
  text-decoration: none;
}

.lmf-guide-launcher:hover {
  background: #244f68;
  color: #fff;
}

.lmf-guide-launcher:focus-visible {
  outline: 2px solid #16384d;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .lmf-guide-launcher:not(:hover):not(:focus) {
    animation: lmf-guide-attention 5s ease-in-out infinite;
  }
}

@keyframes lmf-guide-attention {
  0%, 12%, 100% { transform: translateY(0); }
  5% { transform: translateY(-4px); }
}

.lmf-guide-launcher[hidden],
.lmf-guide-window[hidden] { display: none; }

.lmf-guide-window {
  position: fixed;
  z-index: 999999;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(460px, calc(100vw - 48px));
  height: min(690px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid #16384d29;
  border-radius: 16px;
  background: #fffcf6;
  box-shadow: 0 12px 48px #16384d33;
}

.lmf-guide-window iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.lmf-guide-window.is-expanded {
  inset: 0;
  width: 100%;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.lmf-guide-expanded { overflow: hidden; }

@media (max-width: 600px) {
  body.lmf-guide-site {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  .lmf-guide-launcher {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 13px 17px;
    font-size: 14px;
  }
}
