/* Race route maker (/gifts/race-route/): on top of the shared maker look (/gifts/globes/maker.css). */

.rr [hidden] { display: none !important; }
.rr .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }
.rr-tabs { margin-bottom: 10px; }
.rr-tabs button[aria-selected="true"] { background: var(--accent); color: #04201c; }

/* the file picker */
.rr-file {
    display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; cursor: pointer;
    border: 1.5px dashed rgba(236, 238, 233, 0.25); background: var(--field); transition: border-color 0.15s;
}
.rr-file:hover, .rr-file:focus-within { border-color: var(--accent); }
.rr-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rr-file i { font-size: 1.6rem; color: var(--gold); }
.rr-file span { display: flex; flex-direction: column; gap: 2px; }
.rr-file small { color: var(--muted); font-size: 0.78rem; }

/* dropping a file on the preview */
.rr-drop {
    position: absolute; inset: 12px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 2px dashed var(--gold); border-radius: 16px; background: rgba(20, 23, 22, 0.82); color: var(--ink); font-size: 1.1rem;
    pointer-events: none;
}
.rr-drop i { font-size: 1.8rem; color: var(--gold); }

.rr-drawbar, .rr-turn { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rr-drawbar .wm-btn, .rr-turn .wm-btn { flex: 1 1 0; justify-content: center; }
.rr-turn .wm-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.rr-chips .wm-chip { font-size: 0.78rem; padding: 5px 10px; }

.rr .rr-mapwrap { max-width: none; position: relative; margin-top: 10px; }
.rr .rr-map { aspect-ratio: 1; }
.rr-map.is-drawing .maplibregl-canvas { cursor: crosshair; }
.rr-dot {
    width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.rr-dot.is-start { background: #2fa596; }
.rr-dot.is-finish { background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 50% / 6px 6px; }

.rr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rr-grid2 .wm-field { margin-top: 10px; }
.rr .wm-field select { width: 100%; }
.rr-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rr .rr-row .wm-seg { display: inline-flex; }
.rr-hooks { margin-top: 10px; }
.rr-theme, .rr-font { margin-top: 10px; }
.rr-label { margin: 12px 0 6px; font-size: 0.8rem; color: var(--muted); }

.rr-rc .wm-chip, .rr-mono .wm-chip { font-size: 0.76rem; padding: 5px 10px; }
.rr-rc .wm-chip i, .rr-mono .wm-chip i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.rr-mono { margin-top: 10px; }
.rr-swatches { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.78rem; color: var(--muted); }
.rr-swatches li { display: flex; align-items: center; gap: 6px; }
.rr-swatches i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

.rr-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rr-warn:empty { display: none; }
.rr-warn li { font-size: 0.78rem; line-height: 1.4; color: #f3d38a; background: rgba(217, 177, 74, 0.1); border-radius: 8px; padding: 7px 9px; }

@media (max-width: 560px) {
    .rr .wm-stagebar .wm-btn span { display: none; }
    .rr-grid2 { grid-template-columns: 1fr; }
}
