/* *************************************************** */
/* ******* Leaflet                ******************** */
/* *************************************************** */

.leaflet-popup-content-wrapper, .leaflet-popup.tip {
    /* background-color: lightgrey; */
  }

  .leaflet-container {
      cursor: auto;
  }

  .leaflet-popup-content input {
      border-style: solid;
      border-width: 1px;
      margin: 1px;
  }

  .leaflet-grab {
      cursor: crosshair;
  }

  .leaflet-dragging .leaflet-grab {
     cursor: move;
  }

  /* This is the tracklog info details for the current tracklog point */
  .tracklog_popup .leaflet-popup-content-wrapper,
  .tracklog_popup .leaflet-popup-tip
  {
      background: transparent;
      text-align: center;
      color: blue;
      box-shadow: none;
  }

  /* these popups appear when mouse hovers over any airport/poi on map*/
  .airport_popup .leaflet-popup-content-wrapper,
  .airport_popup .leaflet-popup-tip
  {
      background: var(--popup-airport-tip);
  }

  /* This is the 'task waypoint' menu */
  .wp_popup .leaflet-popup-content-wrapper,
  .wp_popup .leaflet-popup-tip
  {
      background: var(--popup-waypoint-tip);
  }

  .airport_popup .leaflet-popup-content-wrapper,
  .wp_popup .leaflet-popup-content-wrapper {
      color: var(--color-text);
      border: 1px solid var(--surface-border-strong);
      border-radius: 18px;
      box-shadow: var(--surface-shadow-soft);
      backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
      -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
      overflow: hidden;
  }

  .airport_popup .leaflet-popup-content-wrapper {
      background: var(--popup-airport-surface);
  }

  .wp_popup .leaflet-popup-content-wrapper {
      background: var(--popup-waypoint-surface);
  }

  .airport_popup .leaflet-popup-content,
  .wp_popup .leaflet-popup-content {
      margin: 0;
      padding: 12px 14px;
      min-width: 210px;
      line-height: 1.45;
      color: var(--color-text);
  }

  .airport_popup .leaflet-popup-close-button,
  .wp_popup .leaflet-popup-close-button {
      color: var(--color-text-muted);
      padding: 6px 8px 0 0;
      font-size: 18px;
  }

  .airport_popup .leaflet-popup-close-button:hover,
  .wp_popup .leaflet-popup-close-button:hover {
      color: var(--color-text);
  }

.wp_icon {
    background-color: red;
}

.wp_icon_html_current {
    position: absolute;
    display: inline-block;
    font-size: 16px;
    border: 1px solid black;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    background-color: rgba(255,255,0,0.6);
    color: black;
}

.wp_icon_html {
    position: absolute;
    display: inline-block;
    font-size: 16px;
    border: 1px solid black;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    background-color: rgba(255,255,255,0.6);
    color: black;
}

.wp_name {
    width: 16em;
}

.wp_icao {
    width: 60px;
}

.wp_runway {
    width:45px;
}

.wp_alt {
    width: 50px;
}

.wp_radius {
    width: 50px;
}

.wp_start {
    display: inline-flex;
    border: 1px solid black;
    border-radius: 4px;
    padding-left: 4px;
    padding-right: 2px;
}

.wp_finish {
    display: inline-flex;
    border: 1px solid black;
    border-radius: 4px;
    padding-left: 4px;
    padding-right: 2px;
}

.wp_aat {
    display: inline-flex;
    border: 1px solid black;
    border-radius: 4px;
    margin-left: 10px;
    padding-left: 4px;
    padding-right: 2px;
}

.mapboxgl-popup.wp_popup .mapboxgl-popup-content {
    background: var(--popup-waypoint-surface);
    color: var(--color-text);
    padding: 10px 14px 12px 14px;
    width: max-content;
    max-width: 420px;
    line-height: 1.4;
    box-sizing: border-box;
    border: 1px solid var(--surface-border-strong);
    border-radius: 18px;
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
}

.mapboxgl-popup.wp_popup .mapboxgl-popup-close-button {
    color: var(--color-text-muted);
    font-size: 18px;
    padding: 4px 8px;
}

.mapboxgl-popup.wp_popup.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: var(--popup-waypoint-tip);
}

.mapboxgl-popup.wp_popup.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: var(--popup-waypoint-tip);
}

.mapboxgl-popup.wp_popup.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: var(--popup-waypoint-tip);
}

.mapboxgl-popup.wp_popup.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: var(--popup-waypoint-tip);
}

.mapboxgl-popup.airport_popup .mapboxgl-popup-content {
    background: var(--popup-airport-surface);
    color: var(--color-text);
    padding: 10px 14px 12px;
    border: 1px solid var(--surface-border-strong);
    border-radius: 18px;
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
}

.mapboxgl-popup.airport_popup.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: var(--popup-airport-tip);
}

.mapboxgl-popup.airport_popup.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: var(--popup-airport-tip);
}

.mapboxgl-popup.airport_popup.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: var(--popup-airport-tip);
}

.mapboxgl-popup.airport_popup.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: var(--popup-airport-tip);
}

.mapboxgl-popup,
.mapboxgl-popup-tip,
.task-hover-tooltip {
    z-index: 4500 !important;
}

.mapboxgl-popup.task-hover-tooltip,
.mapboxgl-popup.task-hover-tooltip .mapboxgl-popup-content,
.mapboxgl-popup.task-hover-tooltip .mapboxgl-popup-tip {
    pointer-events: none !important;
}

.mapboxgl-popup.task-hover-tooltip .mapboxgl-popup-content {
    background: var(--popup-task-surface);
    color: var(--color-text);
    border: 1px solid var(--surface-border-strong);
    border-radius: 18px;
    box-shadow: var(--surface-shadow-soft);
    padding: 10px 14px;
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
}

.mapboxgl-popup.task-hover-tooltip.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: var(--popup-task-tip);
}

.mapboxgl-popup.task-hover-tooltip.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: var(--popup-task-tip);
}

.mapboxgl-popup.task-hover-tooltip.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: var(--popup-task-tip);
}

.mapboxgl-popup.task-hover-tooltip.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: var(--popup-task-tip);
}

.wsg-task-count-control {
    margin-bottom: 20px;
    margin-left: 8px;
    padding: 8px 14px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--surface-border-strong);
    border-radius: 16px;
    background: var(--surface-glass-strong);
    color: var(--color-text);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    font-size: 0.95rem;
    line-height: 1.2;
}

.wsg-terrain-elevation-control {
    margin-right: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--surface-border-strong);
    border-radius: 16px;
    background: var(--surface-glass-strong);
    color: var(--color-text);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    font-size: 0.95rem;
    line-height: 1.2;
}

.wsg-overlay-hover-panel {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(6px);
    z-index: 4500;
    width: min(460px, calc(100% - 180px));
    min-height: 38px;
    padding: 10px 16px;
    border: 1px solid var(--surface-border-strong);
    border-radius: 18px;
    background: var(--surface-glass-strong);
    color: var(--color-text);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    pointer-events: none;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.wsg-overlay-hover-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.wsg-overlay-hover-panel__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wsg-overlay-hover-panel__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary-strong);
}

.wsg-overlay-hover-panel__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.wsg-overlay-hover-panel__description {
    font-size: 0.86rem;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .wsg-overlay-hover-panel {
        width: min(420px, calc(100% - 32px));
        bottom: 72px;
    }
}

.wsg-globe-camera-tuner {
    margin-left: 8px;
    margin-bottom: 12px;
    width: min(300px, calc(100vw - 32px));
    max-height: min(72vh, 620px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--surface-border-strong);
    border-radius: 18px;
    background: var(--surface-glass-strong);
    color: var(--color-text);
    box-shadow: var(--surface-shadow);
    backdrop-filter: blur(calc(var(--surface-blur) - 2px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 2px)) saturate(var(--surface-saturation));
    -webkit-overflow-scrolling: touch;
}

.wsg-globe-camera-tuner-header {
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    cursor: move;
}

.wsg-globe-camera-tuner-note {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.wsg-globe-camera-tuner-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    margin-bottom: 12px;
}

.wsg-globe-camera-tuner-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsg-globe-camera-tuner-field {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.wsg-globe-camera-tuner-label {
    font-size: 0.82rem;
    font-weight: 600;
}

.wsg-globe-camera-tuner-value {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.wsg-globe-camera-tuner-summary {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(14, 22, 35, 0.78);
    color: #dcecff;
    font-size: 0.75rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.mapboxgl-control-container,
.mapboxgl-ctrl-top-left,
.mapboxgl-ctrl-top-right {
    z-index: 5000 !important;
}

.wsg-mapbox-navigation-control {
    margin-top: 8px !important;
    margin-left: 6px !important;
    position: relative;
    z-index: 5001;
}

.wsg-mapbox-layer-control,
.wsg-mapbox-layer-control.mapboxgl-ctrl-group {
    position: relative;
    z-index: 5001;
    border-radius: 18px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.wsg-mapbox-layer-control.mapboxgl-ctrl-group .wsg-mapbox-layer-button {
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    background: var(--surface-glass-strong);
    background-color: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 38px;
    text-align: center;
    padding: 0;
    color: var(--color-text);
    box-shadow: var(--surface-shadow-soft);
    backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(calc(var(--surface-blur) - 4px)) saturate(var(--surface-saturation));
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    outline: none;
}

.wsg-mapbox-layer-control.mapboxgl-ctrl-group .wsg-mapbox-layer-button.active {
    background: linear-gradient(180deg, rgba(156, 196, 255, 0.92), rgba(88, 134, 219, 0.96));
    background-color: rgba(88, 134, 219, 0.96);
    border-color: rgba(223, 236, 255, 0.98);
    color: #0f213f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 1px rgba(162, 197, 255, 0.34),
        var(--surface-shadow-soft);
}

.wsg-mapbox-layer-control.mapboxgl-ctrl-group .wsg-mapbox-layer-button:not(:disabled):hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(112, 150, 220, 0.2), var(--surface-glass-strong));
    background-color: rgba(112, 150, 220, 0.2);
    border-color: rgba(150, 182, 235, 0.55);
    color: var(--color-text);
}

.wsg-mapbox-layer-control.mapboxgl-ctrl-group .wsg-mapbox-layer-button.active:not(:disabled):hover {
    background: linear-gradient(180deg, rgba(182, 214, 255, 0.96), rgba(98, 145, 229, 0.98));
    background-color: rgba(98, 145, 229, 0.98);
    border-color: rgba(235, 243, 255, 0.98);
    color: #0a1830;
}

.wsg-mapbox-layer-control.mapboxgl-ctrl-group .wsg-mapbox-layer-button:focus,
.wsg-mapbox-layer-control.mapboxgl-ctrl-group .wsg-mapbox-layer-button:focus-visible {
    outline: none;
    box-shadow: var(--surface-shadow-soft);
}

.wsg-mapbox-layer-panel {
    position: absolute;
    top: 38px;
    right: 0;
    width: min(320px, calc(100vw - 48px));
    max-height: min(70vh, calc(100vh - 110px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--surface-solid-strong);
    border: 1px solid var(--surface-border-strong);
    border-radius: 20px;
    box-shadow: var(--surface-shadow);
    padding: 10px;
    color: var(--color-text);
    z-index: 5002;
    backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
    -webkit-backdrop-filter: blur(var(--surface-blur)) saturate(var(--surface-saturation));
}

.wsg-mapbox-layer-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wsg-mapbox-layer-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.wsg-mapbox-layer-option:hover {
    background: var(--surface-hover);
}

.wsg-mapbox-layer-option span {
    flex: 1;
}

.wsg-mapbox-layer-option input {
    margin: 0;
    accent-color: var(--color-primary);
}

.wsg-mapbox-layer-toggle {
    min-width: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wsg-mapbox-layer-toggle span {
    min-width: 0;
    white-space: normal;
}

.wsg-mapbox-layer-option--overlay-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
}

.wsg-mapbox-layer-toggle--overlay {
    width: 100%;
    gap: 10px;
    min-width: 0;
    justify-content: space-between;
}

.wsg-mapbox-layer-toggle__text {
    flex: 1;
}

.wsg-mapbox-layer-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.wsg-mapbox-layer-section-header .wsg-mapbox-layer-note {
    margin: 0;
}

.wsg-mapbox-layer-more-button,
.wsg-mapbox-layer-reset-button,
.wsg-overlay-manager-drag-handle,
.wsg-overlay-manager-move-button {
    border: 1px solid var(--surface-border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    cursor: pointer;
}

.wsg-mapbox-layer-more-button {
    background: rgba(94, 136, 208, 0.14);
}

.wsg-mapbox-layer-reset-button:hover,
.wsg-mapbox-layer-reset-button:focus-visible,
.wsg-mapbox-layer-more-button:hover,
.wsg-mapbox-layer-more-button:focus-visible,
.wsg-overlay-manager-drag-handle:hover,
.wsg-overlay-manager-drag-handle:focus-visible,
.wsg-overlay-manager-move-button:hover,
.wsg-overlay-manager-move-button:focus-visible {
    background: var(--surface-hover);
    outline: none;
}

.wsg-overlay-swatch {
    --wsg-overlay-polygon-fill: #3f9b67;
    --wsg-overlay-polygon-line: #2a6e49;
    --wsg-overlay-point-fill: #3f9b67;
    --wsg-overlay-point-line: #ffffff;
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wsg-overlay-swatch,
.wsg-overlay-swatch span,
.wsg-overlay-pill {
    flex: 0 0 auto;
}

.wsg-overlay-swatch--compact {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.wsg-overlay-swatch__base,
.wsg-overlay-swatch__dot {
    display: block;
    pointer-events: none;
}

.wsg-overlay-swatch__base {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.wsg-overlay-swatch__dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    box-sizing: border-box;
}

.wsg-overlay-swatch--polygon .wsg-overlay-swatch__base,
.wsg-overlay-swatch--mixed .wsg-overlay-swatch__base {
    border-radius: 6px;
    background: var(--wsg-overlay-polygon-fill);
    border: 2px solid var(--wsg-overlay-polygon-line);
}

.wsg-overlay-swatch--point .wsg-overlay-swatch__base {
    border-radius: 999px;
    background: var(--wsg-overlay-point-fill);
    border: 2px solid var(--wsg-overlay-point-line);
}

.wsg-overlay-swatch--polygon .wsg-overlay-swatch__dot {
    display: none;
}

.wsg-overlay-swatch--point .wsg-overlay-swatch__dot {
    display: none;
}

.wsg-overlay-swatch--mixed .wsg-overlay-swatch__dot {
    display: none;
}

.wsg-overlay-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(94, 136, 208, 0.14);
    border: 1px solid rgba(137, 173, 231, 0.25);
    color: var(--color-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.wsg-overlay-pill--muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--surface-border);
}

.wsg-overlay-pill--source {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsg-overlay-manager-dialog {
    width: min(980px, 100%);
}

.wsg-overlay-manager-body {
    gap: 14px;
}

.wsg-overlay-manager-stack-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding-inline: 4px;
}

.wsg-overlay-manager-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(58vh, 620px);
    overflow-y: auto;
    padding-right: 4px;
}

.wsg-overlay-manager-row {
    border: 1px solid var(--surface-border-strong);
    border-radius: 18px;
    background: var(--surface-solid-strong);
    box-shadow: var(--surface-shadow-soft);
}

.wsg-overlay-manager-row.is-dragging {
    box-shadow: inset 0 0 0 1px var(--surface-border-strong);
    opacity: 0.92;
}

.wsg-overlay-manager-row.is-floating-drag {
    position: fixed;
    z-index: 10002;
    margin: 0;
    pointer-events: none;
    opacity: 0.98;
    transform: rotate(1deg);
    box-shadow: 0 24px 52px rgba(7, 16, 30, 0.42);
}

.wsg-overlay-manager-row-placeholder {
    border: 1px dashed rgba(137, 173, 231, 0.55);
    border-radius: 18px;
    background: rgba(94, 136, 208, 0.1);
    box-shadow: inset 0 0 0 1px rgba(94, 136, 208, 0.16);
}

.wsg-overlay-manager-row-main {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 12px;
    padding: 14px;
}

.wsg-overlay-manager-drag-handle {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    touch-action: none;
    cursor: grab;
}

.wsg-overlay-manager-drag-handle:active {
    cursor: grabbing;
}

.wsg-overlay-manager-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wsg-overlay-manager-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wsg-overlay-manager-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.wsg-overlay-manager-description {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
}

.wsg-overlay-manager-visibility {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
    padding-top: 6px;
}

.wsg-overlay-manager-move-buttons {
    display: flex;
    gap: 8px;
    padding-top: 2px;
}

.wsg-overlay-manager-move-button {
    min-width: 36px;
    padding-inline: 0;
    font-size: 14px;
}

.wsg-overlay-manager-move-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.wsg-overlay-manager-footer {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .wsg-overlay-manager-row-main {
        grid-template-columns: auto auto 1fr;
    }

    .wsg-overlay-manager-visibility,
    .wsg-overlay-manager-move-buttons {
        grid-column: 2 / 4;
        padding-top: 0;
    }

    .wsg-overlay-manager-footer {
        justify-content: stretch;
    }

    .wsg-overlay-manager-footer .wsg-mapbox-layer-reset-button {
        width: 100%;
    }
}

.wsg-mapbox-layer-divider {
    height: 1px;
    margin: 8px 4px;
    background: var(--surface-border);
}

.wsg-mapbox-layer-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(94, 136, 208, 0.14);
    border: 1px solid rgba(137, 173, 231, 0.25);
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.35;
}

.upload-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.upload-container span,
.upload-container button,
.upload-container img {
    user-select: none;
    -webkit-user-select: none;
}

.upload-container.upload-container-compact {
    width: auto;
    min-height: auto;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.upload-container.upload-container-compact span {
    display: none;
}

.map-edge-toggle-right {
    touch-action: none;
}
