.fdt-route-mobile-undo,
.fdt-route-map-kpis,
.fdt-route-mobile-panel-toggle,
.fdt-route-mobile-panel-heading,
.fdt-route-mobile-gpx-download,
.fdt-route-mobile-locate {
  display: none;
}
@media (min-width: 961px) {
  .fdt-route-workspace.is-panel-collapsed .fdt-route-app {
    grid-template-columns: minmax(350px, 400px) minmax(0, 1fr);
  }
  .fdt-route-workspace.is-panel-collapsed .fdt-route-sidebar {
    visibility: visible;
    transform: none;
  }
  body.fdt-route-builder-fullscreen #colophon {
    display: block !important;
  }
  body.fdt-route-builder-fullscreen #colophon .site-container {
    width: 100% !important;
    max-width: var(--global-content-width) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--global-content-edge-padding) !important;
    padding-left: var(--global-content-edge-padding) !important;
  }
  body.fdt-route-builder-fullscreen #colophon .site-middle-footer-inner-wrap {
    padding-top: 42px;
    padding-bottom: 42px;
    grid-template-columns: minmax(280px, 0.8fr) minmax(480px, 1.2fr) !important;
    gap: clamp(44px, 7vw, 96px);
  }
  body.fdt-route-builder-fullscreen #colophon .site-footer-middle-section-2,
  body.fdt-route-builder-fullscreen #colophon .site-footer-middle-section-4,
  body.fdt-route-builder-fullscreen #colophon .footer-widget1 .widget_custom_html {
    display: none !important;
  }
  body.fdt-route-builder-fullscreen #colophon .site-footer-middle-section-1,
  body.fdt-route-builder-fullscreen #colophon .site-footer-middle-section-3 {
    width: auto;
    min-width: 0;
  }
  body.fdt-route-builder-fullscreen #colophon .site-footer-middle-section-1 {
    grid-column: 1;
  }
  body.fdt-route-builder-fullscreen #colophon .site-footer-middle-section-3 {
    grid-column: 2;
  }
  body.fdt-route-builder-fullscreen #colophon .footer-widget1 .wp-block-kadence-image {
    display: inline-flex;
    width: auto;
    max-width: 242px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 18px;
    background: #fff;
  }
  body.fdt-route-builder-fullscreen #colophon .footer-widget1 .wp-block-kadence-advancedheading {
    max-width: 320px;
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.55;
  }
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .widget-title {
    margin: 0 0 14px;
    color: #ffb629;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .menu {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    list-style: none;
  }
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .menu > li {
    min-width: 0;
    margin: 0;
  }
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .menu > li > a {
    display: flex;
    min-height: 42px;
    padding: 9px 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
  }
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .menu > li > a::after {
    margin-left: 10px;
    color: #e50068;
    content: "→";
    font-weight: 900;
  }
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .menu > li > a:hover,
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .menu > li > a:focus-visible {
    border-color: #e50068;
    background: rgba(229, 0, 104, 0.14);
  }
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .sub-menu,
  body.fdt-route-builder-fullscreen #colophon .widget_nav_menu .dgwt-wcas-search-wrapp {
    display: none !important;
  }
  body.fdt-route-builder-fullscreen #colophon .site-bottom-footer-inner-wrap {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
@media (max-width: 960px) {
  body.fdt-route-builder-fullscreen {
    overflow: hidden;
  }
  .fdt-route-builder-page,
  .fdt-route-workspace {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .fdt-route-workspace {
    height: 100dvh;
    min-height: 0;
  }
  .fdt-route-workspace:not(.is-panel-collapsed)::before {
    position: fixed;
    z-index: 900;
    inset: 0;
    background: rgba(32, 39, 53, 0.38);
    content: "";
  }
  .fdt-route-builder-page .fdt-route-appbar {
    height: 46px;
    padding: 0 9px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }
  .fdt-route-builder-page .fdt-route-appbar__brand {
    min-width: 0;
    justify-self: center;
  }
  .fdt-route-builder-page .fdt-route-appbar__brand strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fdt-route-builder-page .fdt-route-appbar__actions {
    position: fixed;
    z-index: 940;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    width: auto;
    padding: 6px;
    grid-template-columns: 0.7fr 1fr 1fr;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 38px rgba(32, 39, 53, 0.28);
    backdrop-filter: blur(16px);
  }
  .fdt-route-builder-page .fdt-route-mobile-panel-toggle,
  .fdt-route-builder-page .fdt-route-mobile-undo {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 6px 7px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe3e9;
    border-radius: 13px;
    color: #4f5868;
    background: #f7f8fa;
    box-shadow: none;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
  }
  .fdt-route-builder-page .fdt-route-top-action {
    display: none;
  }
  .fdt-route-builder-page .fdt-route-mobile-panel-toggle {
    flex-direction: column;
    gap: 2px;
  }
  .fdt-route-builder-page .fdt-route-mobile-panel-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
  }
  .fdt-route-builder-page .fdt-route-mobile-panel-toggle span {
    font-size: 9px;
    line-height: 1;
  }
  .fdt-route-builder-page .fdt-route-mobile-panel-toggle.is-active {
    border-color: #e50068;
    color: #fff;
    background: #e50068;
    box-shadow: 0 7px 17px rgba(229, 0, 104, 0.22);
  }
  .fdt-route-builder-page .fdt-route-mobile-undo:not(:disabled) {
    border-color: rgba(229, 0, 104, 0.36);
    color: #e50068;
    background: #fff5f9;
  }
  .fdt-route-builder-page .fdt-route-mobile-gpx-download:disabled,
  .fdt-route-builder-page .fdt-route-mobile-undo:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }
  .fdt-route-builder-page .fdt-route-app {
    position: relative;
    display: block;
    height: calc(100dvh - 46px);
  }
  .fdt-route-builder-page .fdt-route-sidebar {
    position: fixed;
    z-index: 930;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: min(76dvh, 680px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(32, 39, 53, 0.32);
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .fdt-route-workspace.is-panel-collapsed .fdt-route-sidebar {
    visibility: hidden;
    opacity: 0;
    transform: translateY(calc(100% + 95px));
  }
  .fdt-route-builder-page .fdt-route-sidebar::before {
    width: 38px;
    height: 4px;
    margin-top: 8px;
  }
  .fdt-route-builder-page .fdt-route-sidebar__inner {
    padding: 8px 14px 22px;
  }
  .fdt-route-workspace [data-route-mobile-panel] {
    display: none !important;
  }
  .fdt-route-workspace[data-route-active-panel="options"] [data-route-mobile-panel="options"],
  .fdt-route-workspace[data-route-active-panel="share"] [data-route-mobile-panel="share"] {
    display: block !important;
  }
  .fdt-route-workspace[data-route-active-panel="options"] .fdt-route-toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .fdt-route-workspace [data-route-mobile-panel][hidden] {
    display: none !important;
  }
  .fdt-route-mobile-panel-heading {
    margin: 0 -14px 12px;
    padding: 2px 18px 12px;
    border-bottom: 1px solid #dfe3e9;
  }
  .fdt-route-mobile-panel-heading span {
    display: block;
    color: #202735;
    font-size: 15px;
    font-weight: 900;
  }
  .fdt-route-mobile-panel-heading small {
    display: block;
    margin-top: 2px;
    color: #747d8b;
    font-size: 10px;
  }
  .fdt-route-workspace[data-route-active-panel="share"] .fdt-route-mobile-gpx-download {
    display: flex !important;
    width: 100%;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 9px 12px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(229, 0, 104, 0.34);
    border-radius: 12px;
    color: #e50068;
    background: #fff5f9;
    font-size: 11px;
    font-weight: 900;
  }
  .fdt-route-mobile-gpx-download svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }
  .fdt-route-mobile-gpx-download:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }
  .fdt-route-builder-page .fdt-route-toolbar [data-route-locate] {
    display: none;
  }
  .fdt-route-builder-page .fdt-route-status {
    margin: 9px 0 0;
    padding: 0 2px;
  }
  .fdt-route-builder-page .fdt-route-intro {
    display: none;
  }
  .fdt-route-builder-page .fdt-route-map-stage,
  .fdt-route-builder-page .fdt-route-map-stage .fdt-route-map {
    width: 100%;
    height: calc(100dvh - 46px);
    min-height: calc(100dvh - 46px);
  }
  .fdt-route-builder-page .fdt-route-map-help {
    top: 12px;
    bottom: auto;
    display: flex;
    width: auto;
    max-width: calc(100% - 90px);
    padding: 8px 12px;
    gap: 7px;
    border-radius: 13px;
  }
  .fdt-route-builder-page .fdt-route-map-help strong,
  .fdt-route-builder-page .fdt-route-map-help span {
    display: block;
    font-size: 9px;
    white-space: nowrap;
  }
  .fdt-route-map-kpis {
    position: absolute;
    z-index: 500;
    top: 58px;
    left: 50%;
    display: grid;
    width: 330px;
    padding: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 15px;
    color: #202735;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(32, 39, 53, 0.18);
    backdrop-filter: blur(12px);
  }
  .fdt-route-map-kpis > span {
    display: flex;
    min-width: 0;
    min-height: 42px;
    padding: 5px 4px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    background: #f5f6f8;
    text-align: center;
  }
  .fdt-route-map-kpis small,
  .fdt-route-map-kpis strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fdt-route-map-kpis small {
    color: #747d8b;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .fdt-route-map-kpis strong {
    margin-top: 3px;
    color: #202735;
    font-size: 11px;
  }
  .fdt-route-map-kpis > span:last-child strong {
    color: #e50068;
  }
  .fdt-route-builder-page .fdt-route-mobile-locate {
    position: fixed;
    z-index: 620;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    display: inline-flex;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    color: #fff;
    background: #e50068;
    box-shadow: 0 12px 28px rgba(32, 39, 53, 0.26);
    font-size: 10px;
    font-weight: 900;
  }
  .fdt-route-mobile-locate svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }
  .fdt-route-mobile-locate.is-loading svg {
    animation: fdt-lab-spin 0.8s linear infinite;
  }
  .fdt-route-mobile-locate:disabled {
    opacity: 0.82;
    cursor: wait;
  }
  .fdt-route-mobile-locate span {
    line-height: 1;
    white-space: nowrap;
  }
  .fdt-route-builder-page .fdt-route-calculating {
    top: 12px;
    max-width: calc(100% - 28px);
    white-space: nowrap;
  }
  .fdt-route-builder-page .leaflet-bottom {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 620px) {
  .fdt-route-builder-page .fdt-route-sidebar {
    right: 8px;
    left: 8px;
    max-height: min(78dvh, 680px);
  }
  .fdt-route-builder-page .fdt-route-fields {
    grid-template-columns: 1fr;
  }
  .fdt-route-builder-page .fdt-route-field--wide {
    grid-column: auto;
  }
  .fdt-route-builder-page .fdt-route-mode > div {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fdt-route-builder-page .fdt-route-sidebar {
    transition: none;
  }
}
