/* ── FAB anchor ── */
.fab {
  position: fixed;
  right: 1rem;
  bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom, 0)));
  z-index: 50;
}

/* ── FAB group ── */
.fab-group {
  display: inline-flex;
  height: 3rem;
  border-radius: 2.75rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
}

.fab-group-main {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #cd0303;
  color: #fff;
  font-weight: 400;
  line-height: 1.5;
  border: none;
  border-right: 0.0625rem solid #fff;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.fab-group-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  background: #cd0303;
  color: #fff;
  border: none;
  border-left: 0.0625rem solid #e36969;
  cursor: pointer;
  transition: background 0.15s;
}

.fab-group-main:hover,
.fab-group-extra:hover {
  background: #b50202;
}

/* ── Submenu overlay ── */
.submenu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 16, 0.25);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.submenu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Submenu actions ── */
.submenu-actions {
  position: absolute;
  bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom, 0)));
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

@keyframes submenuIn {
  from { opacity: 0; transform: translateY(0.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.submenu-overlay.visible .submenu-actions {
  animation: submenuIn 0.15s ease forwards;
}

/* ── Stop shift button ── */
.stop-shift-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #060f10;
  font-weight: 400;
  line-height: 1.5;
  border: 0.0625rem solid #cbd2d3;
  border-radius: 2.75rem;
  padding: 0.25rem 1rem;
  height: 3rem;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
  transition: background 0.15s;
}

.stop-shift-btn:hover {
  background: #f5f6f6;
}
