.direction-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.reverse-direction-button {
  display: inline-flex;
  min-width: 46px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8da09a;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid #dfe8e4;
  border-radius: 13px;
  background: #edf3f0;
  transition: transform .22s ease, color .22s ease, border-color .22s ease, background .22s ease;
}

.reverse-direction-button.is-ready:not(:disabled) {
  color: #087f72;
  border-color: #c5e3dc;
  background: #e5f7f2;
}

.reverse-direction-button.is-ready:not(:disabled):hover {
  border-color: #00a896;
  background: #d7f1eb;
  transform: translateY(-1px);
}

.reverse-direction-button.direction-flip i {
  animation: directionFlip .42s ease;
}

.route-calendar-button {
  margin: 8px 0 0 10px;
  padding: 2px 7px;
  color: #087f72;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid #c9e4dd;
  border-radius: 8px;
  background: #edf9f6;
}

.route-calendar-button:hover {
  color: #075f57;
  border-color: #00a896;
  background: #dbf3ed;
}

.route-calendar-button i {
  margin-right: 4px;
}

.journey-visual-summary {
  position: relative;
  padding-bottom: 64px;
}

.journey-calendar-button {
  position: absolute;
  right: 20px;
  bottom: 16px;
  display: inline-flex;
  padding: 8px 12px;
  align-items: center;
  gap: 7px;
  color: #dff8f2;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  transition: transform .2s ease, background .2s ease;
}

.journey-calendar-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

@keyframes directionFlip {
  0% { transform: translateX(0); }
  35% { transform: translateX(4px) rotate(8deg); }
  70% { transform: translateX(-4px) rotate(-8deg); }
  100% { transform: translateX(0); }
}

@media (max-width: 600px) {
  .reverse-direction-button span {
    display: none;
  }

  .reverse-direction-button {
    padding-inline: 8px;
  }

  .journey-calendar-button {
    right: 14px;
    bottom: 14px;
  }
}

.route-pdf-button {
  margin: 8px 0 0 7px;
  padding: 2px 7px;
  color: #a33a35;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid #edc3bf;
  border-radius: 8px;
  background: #fff2f0;
}

.route-pdf-button:hover {
  color: #862d29;
  border-color: #d96c63;
  background: #ffe5e1;
}

.route-pdf-button i {
  margin-right: 4px;
}

.route-pdf-button.is-loading,
.journey-pdf-button.is-loading {
  cursor: wait;
  opacity: .75;
}

.journey-export-actions {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.journey-export-actions .journey-calendar-button {
  position: static;
}

.journey-pdf-button {
  display: inline-flex;
  padding: 8px 12px;
  align-items: center;
  gap: 7px;
  color: #fff3f1;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid rgba(255, 210, 204, .34);
  border-radius: 10px;
  background: rgba(255, 96, 79, .25);
  transition: transform .2s ease, background .2s ease;
}

.journey-pdf-button:hover {
  color: #fff;
  background: rgba(255, 96, 79, .4);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .journey-export-actions {
    right: 14px;
    bottom: 14px;
    left: 14px;
    gap: 6px;
  }

  .journey-export-actions .journey-calendar-button,
  .journey-export-actions .journey-pdf-button {
    padding: 7px 8px;
    font-size: .64rem;
  }
}
.has-share-action {
  position: relative;
}

.share-link-button {
  display: inline-flex;
  min-height: 32px;
  padding: 6px 9px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #087f72;
  font-size: .67rem;
  font-weight: 800;
  border: 1px solid #c6e2dc;
  border-radius: 9px;
  background: #edf9f6;
}

.share-link-button:hover {
  color: #075f57;
  background: #dff5ef;
}

#routeResults > .mb-2.has-share-action,
.board-header.has-share-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.journey-visual-summary > .share-link-button {
  width: 100%;
  margin-top: 10px;
}

.line-plan-header > .share-link-button {
  margin-top: 9px;
}
