.communityMapGpx {
    margin: 16px 0;
}

.messageAttachmentList > .communityMapGpx--attachment {
    grid-column: 1 / -1;
    width: 100%;
}

.communityMapGpx__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.communityMapGpx__canvas {
    position: relative;
    z-index: 0;
    width: 100%;
    height: min(420px, 55vh);
    min-height: 280px;
    border: 1px solid var(--wcfContentBorderInner);
}

.communityMapGpx__meta {
    margin-top: 8px;
    color: var(--wcfContentDimmedText);
}

.communityMapGpx__elevation {
    border: 1px solid var(--wcfContentBorderInner);
    border-top: 0;
    padding: 8px 10px 10px;
}

.communityMapGpx__elevationHeader {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    justify-content: space-between;
    margin-bottom: 4px;
}

.communityMapGpx__elevationValue {
    color: var(--wcfContentDimmedText);
    font-size: 0.9rem;
}

.communityMapGpx__elevationChart {
    height: 150px;
    position: relative;
}

.communityMapGpx__elevationSvg {
    cursor: crosshair;
    display: block;
    height: 100%;
    overflow: visible;
    touch-action: pan-y;
    width: 100%;
}

.communityMapGpx__elevationArea {
    fill: color-mix(in srgb, var(--wcfContentLink) 18%, var(--wcfContentBackground));
    pointer-events: none;
}

.communityMapGpx__elevationGrid {
    pointer-events: none;
    stroke: var(--wcfContentBorderInner);
    stroke-opacity: 0.55;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.communityMapGpx__elevationLine {
    fill: none;
    pointer-events: none;
    stroke: var(--wcfContentLink);
    stroke-linejoin: round;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.communityMapGpx__elevationCursor {
    pointer-events: none;
    stroke: var(--wcfContentText);
    stroke-dasharray: 4 3;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.communityMapGpx__elevationPoint {
    fill: var(--wcfContentLink);
    pointer-events: none;
    stroke: var(--wcfContentBackground);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.communityMapGpx__elevationLabel {
    color: var(--wcfContentDimmedText);
    font-size: 0.75rem;
    left: 4px;
    pointer-events: none;
    position: absolute;
    text-shadow: 0 0 3px var(--wcfContentBackground), 0 0 3px var(--wcfContentBackground);
    z-index: 1;
}

.communityMapGpx__elevationLabel--maximum {
    top: 4px;
}

.communityMapGpx__elevationLabel--minimum {
    bottom: 4px;
}

.communityMapGpx__download {
    margin-top: 8px;
}

.communityMapGpx__markerIcon {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    justify-content: center;
}

.communityMapGpxUpload__file {
    margin-top: 12px;
}

.communityMapGpxUpload__result {
    margin: 12px 0 0;
}

.communityMapGpx--error .communityMapGpx__canvas {
    display: none;
}

@media (max-width: 600px) {
    .communityMapGpx__canvas {
        height: 340px;
        min-height: 240px;
    }

    .communityMapGpx__elevationChart {
        height: 140px;
    }
}
