.ipy-location-figure {
    margin-block: 1.5rem;
    max-width: 100%;
}

.ipy-location-caption {
    margin: 0 0 .6rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: start;
}

.ipy-location-canvas {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(300px, 55vw, 430px);
    overflow: hidden;
    background: #e6edf1;
    border: 1px solid #56636a;
    box-sizing: border-box;
}

.ipy-location-viewport {
    width: 100%;
    height: 100%;
}

.ipy-location-marker {
    position: relative;
    width: 38px;
    height: 38px;
    transform: translate(28.5px, -22px) scale(.5);
    pointer-events: none;
    box-sizing: border-box;
    border: 4px solid #171717;
    border-radius: 50%;
    background: #ffe500;
    box-shadow: 0 0 0 3px #fff, 0 2px 8px 5px #2228;
}

/* The line ends short of the mapped point so the place remains visible. */
.ipy-location-marker::before {
    content: "";
    position: absolute;
    right: 50%;
    top: 50%;
    width: 41px;
    height: 3px;
    border-radius: 2px;
    background: #242424;
    box-shadow: 0 0 0 1px #fff;
    transform: rotate(-38deg) translateX(-15px);
    transform-origin: right center;
    z-index: -1;
}

.ipy-location-marker::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #171717;
}

.ipy-location-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 800;
    padding: 2px 5px;
    background: #fff;
    color: #1a1a1a;
    font: 13px/1.5 system-ui, sans-serif;
    max-width: 100%;
    text-align: end;
}

.ipy-location-credit a {
    color: #124875;
    text-decoration: underline;
}

.ipy-location-canvas .ol-zoom button {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 26px;
    color: #171717;
    background: #fff;
}

.ipy-location-canvas :focus-visible,
.ipy-location-canvas:focus-visible {
    outline: 3px solid #1265a0;
    outline-offset: -3px;
}

.ipy-location-link {
    margin: .55rem 0 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.ipy-location-link a {
    color: inherit;
    text-decoration: underline;
}

.ipy-location-editor {
    padding: 16px;
    border: 1px solid #6d7880;
}

.ipy-location-editor .ipy-location-search,
.ipy-location-editor .ipy-location-selection,
.ipy-location-editor .ipy-location-canvas {
    margin-top: 12px;
}

.ipy-location-status {
    margin-top: 8px;
}

.ipy-location-editor .ipy-location-results {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.ipy-location-results li {
    margin: 6px 0;
}

.ipy-location-results .components-button {
    height: auto;
    min-height: 42px;
    padding-block: 8px;
    text-align: start;
    white-space: normal;
}

.ipy-location-error {
    position: absolute;
    inset: 12px 12px auto;
    z-index: 900;
    padding: 8px 12px;
    background: #fff;
    color: #171717;
    box-shadow: 0 1px 5px #0005;
}

.ipy-location-error a {
    color: #124875;
    text-decoration: underline;
}
