/**
 * Routenplaner – Ladestopps selbst wählen im Ergebnis (2.51.0)
 * Pfad: /pages/route-planner/assets/route-stop-choices.css
 * Eingebunden von: pages/route-planner/route-planner.php
 * Logik: route-stop-choices.js
 *
 * Farben wie in der App: Grün #2EB873 (Akzent), #17784A (Text auf Hell), #DCF3E6 (Fläche).
 */

.lsc-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 4px 0 12px;
  padding: 12px 14px;
  border: 1px solid #bfe8d1;
  border-radius: 12px;
  background: #f2fbf6;
  color: #111827;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lsc-entry:hover {
  border-color: #2eb873;
}

.lsc-entry:focus-visible,
.lsc-link:focus-visible,
.lsc-remove:focus-visible,
.lsc-toast-undo:focus-visible {
  outline: 2px solid #0067d1;
  outline-offset: 2px;
}

.lsc-entry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: #dcf3e6;
  color: #17784a;
}

.lsc-entry-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.lsc-entry-text strong {
  font-weight: 600;
}

.lsc-entry-text span {
  color: #4b5563;
  font-size: 13px;
}

.lsc-new-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2eb873;
  color: #06301c;
  font-size: 12px;
  font-weight: 700;
}

.lsc-entry-caret {
  flex: none;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
}

.lsc-card {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #fcd9a8;
  border-radius: 12px;
  background: #fff7ec;
}

.lsc-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.lsc-card-title {
  margin: 0;
  color: #7a4300;
  font-size: 15px;
  font-weight: 600;
}

.lsc-card-summary {
  color: #7a4300;
  font-size: 13px;
}

.lsc-card-gap {
  margin: 6px 0 0;
  color: #9b1c1c;
  font-size: 13px;
  line-height: 1.45;
}

.lsc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
}

.lsc-link {
  padding: 6px 0;
  border: 0;
  background: none;
  color: #0067d1;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lsc-link:hover {
  color: #004fa3;
  text-decoration: underline;
}

.lsc-link:disabled,
.lsc-remove:disabled {
  opacity: 0.5;
  cursor: progress;
}

.lsc-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.lsc-tag--choice {
  background: #dcf3e6;
  color: #17784a;
}

.lsc-tag--fav {
  background: #fff4e0;
  color: #8a4b00;
}

.lsc-tag--nofav {
  background: #fff7ec;
  color: #7a4300;
}

.lsc-stop-actions {
  display: inline-block;
  margin-left: 6px;
}

.lsc-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid #e5b4b4;
  border-radius: 999px;
  background: #fff;
  color: #9b1c1c;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lsc-remove:hover {
  border-color: #c23333;
  background: #fdecec;
}

.lsc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.lsc-toast--visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.lsc-toast-text {
  flex: 1;
}

.lsc-toast-undo {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #7ee0ad;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .lsc-toast {
    transition: none;
  }
}
