/* Unified floating rail: outside content on wide screens, inside when narrow */

.float-rail-shell {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(5.75rem + max(var(--home-inset-bottom, 1.75rem), env(safe-area-inset-bottom, 0px)));
  z-index: 1035;
  pointer-events: none;
}

.float-rail-row {
  position: relative;
  padding-bottom: 0.75rem;
}

.float-rail {
  position: absolute;
  right: var(--home-inset-x, 1.75rem);
  bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.18);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

/* Wide: park rail in the margin, just outside the content column (max 1280px) */
@media (min-width: 1420px) {
  .float-rail {
    right: auto;
    left: 100%;
    margin-left: 0.75rem;
  }
}

.float-rail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0.85rem;
  background: transparent;
  color: #f97316;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.float-rail__btn:hover {
  background: #fff7ed;
  color: #ea580c;
}

.float-rail__btn:active {
  transform: scale(0.96);
}

.float-rail__btn .material-symbols-outlined {
  font-size: 1.45rem;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.float-rail__btn.is-disabled {
  opacity: 0.32;
  pointer-events: none;
}

.float-rail__sep {
  display: block;
  width: 1.5rem;
  height: 1px;
  margin: 0.15rem 0;
  background: rgba(249, 115, 22, 0.22);
}

.float-rail__btn--primary {
  background: #f97316;
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

.float-rail__btn--primary:hover {
  background: #ea580c;
  color: #fff;
}
