/* Basics
------------------------------------------------------- */
/* the root element of iD */
.ideditor {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;

    /* Establish a local stacking context so all elements within iD are on the
       same layer relative to elements outside iD - #7457.
       https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
    */
    position: relative;
    z-index: 0;

    font: normal 12px/1.6667 ui-sans-serif, "-apple-system", BlinkMacSystemFont,
        "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
        "Fira Sans", "Droid Sans", "Helvetica Neue", "Arial",
        sans-serif;
    color: var(--text-color);

    touch-action: none;
    -ms-user-select: none;
    -ms-content-zooming: none;
}
.ideditor div {
    /* disable pinch-to-zoom of the UI on touch devices */
    touch-action: pan-x pan-y;
}

.main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    touch-action: none;
}

.main-content.active {
    filter: none !important;
    transition-duration: 200ms;
}

.main-content.inactive {
    filter: grayscale(80%) brightness(80%);
    transition-duration: 200ms;
}

#ideditor-defs {
    /* Can't be display: none or the clippaths are ignored. */
    position: absolute;
    width: 0;
    height: 0;
}

div, textarea, label, input, form, span, ul, li, ol, a, button, h1, h2, h3, h4, h5, p, img {
    box-sizing: border-box;
}

a, button, input, textarea {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
}

ul li {
    list-style: none;
}

a,
button {
    cursor: pointer;
}

h2 {
    font-size: 25px;
    line-height: 1.25;
    font-weight: bold;
    margin-bottom: 20px;
}
.header h2 {
    font-size: 20px;
    line-height: 1.25;
    font-weight: bold;
    margin-bottom: 0px;
}

h3:last-child,
h4:last-child { margin-bottom: 0;}

h3 {
    font-size: 16px;
    line-height: 1.25;
    font-weight: bold;
    margin-bottom: 10px;
}
h4, h5 {
    font-size: 12px;
    font-weight: bold;
    padding-bottom: 10px;
}

button:focus,
textarea:focus,
input[type=text]:focus,
input[type=search]:focus,
input[type=number]:focus,
input[type=url]:focus,
input[type=tel]:focus,
input[type=email]:focus,
input[type=date]:focus {
    outline-color: transparent;
    outline-style: none;
}

::placeholder {
    color: #aaa;
    opacity: 1; /* Firefox */
}

p {
    font-size: 12px;
    margin: 0;
    padding: 0;
}
p:last-child {
    padding-bottom: 0;
}
em {
    font-style: italic;
}
strong {
    font-weight: bold;
}
a,
a:visited,
a:active {
        color: var(--link-color);
}
a:focus {
    color: var(--link-focus-color);
}
@media (hover: hover) {
    a:hover {
        color: var(--link-focus-color);
    }
}
kbd {
    display: inline-block;
    text-align: center;
    padding: 3px 5px;
    font-size: 11px;
    line-height: 1.3;
    min-width: 0.9em;
    vertical-align: baseline;
    background-color: var(--outset-color);
    border: solid 1px var(--border-color);
    margin: 0 2px;
    border-bottom-color: var(--shadow-color);
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 var(--shadow-color);
}

code {
    font-family: ui-monospace, monospace, monospace;
    background: rgba(174, 174, 174, 0.25);
    padding: 1px 2px;
}

/* Forms
------------------------------------------------------- */
textarea,
input[type=text],
input[type=search],
input[type=number],
input[type=url],
input[type=tel],
input[type=email],
input[type=date] {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0px 10px 0px 10px;
    border-radius: 4px;
    text-overflow: ellipsis;
    overflow: auto;
}
input[type=text],
input[type=search],
input[type=number],
input[type=url],
input[type=tel],
input[type=email],
input[type=date],
input[type=color] {
    /* need this since line-height interpretation may vary by font or browser */
    height: 2.585em;
}
textarea  {
    min-height: 2em;
    padding-top: 5px;
    padding-bottom: 5px;
    resize: vertical;
    font:normal 12px/20px "-apple-system", BlinkMacSystemFont,
        "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
        "Fira Sans", "Droid Sans", "Helvetica Neue", "Arial",
        sans-serif;
}

textarea:active,
input:active,
textarea:focus,
input:focus {
    background-color: var(--active-bg-color);
}

textarea.disabled,
input.disabled {
    color: var(--passive-text-color);
    background-color: var(--bg-color-3);
    cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    cursor: pointer;
    vertical-align: middle;
}
.ideditor[dir='rtl'] input[type="checkbox"],
.ideditor[dir='rtl'] input[type="radio"] {
    margin-left: 6px;
    margin-right: 0;
}

input.mixed::placeholder,
textarea.mixed::placeholder {
    font-style: italic;
}

.ideditor[dir='rtl'] input:placeholder-shown[dir="auto"] {
    /* hard-set rtl for placeholder texts in rtl locales, see
       https://github.com/openstreetmap/iD/pull/11091#issuecomment-2936953197 */
    direction: rtl;
}

/* keytraps need to be invisible yet not be display:none or visibility:hidden */
.keytrap {
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

/* tables */
table {
    background-color: var(--bg-color);
    border-collapse: collapse;
    width: 100%;
    border-spacing: 0;
}
table th {
    text-align: left;
}
table.tags, table.tags td, table.tags th {
    border: 1px solid var(--border-color);
    padding: 4px;
}

::-ms-clear {
   display: none;
}

/* Grid
------------------------------------------------------- */
.col6  { float: left; width: 50.0000%; max-width: 600px; }
.col12 { float: left; width: 100.0000%; }


/* Utility Classes
------------------------------------------------------- */
.fillL {
    background: var(--bg-color);
    color: var(--text-color);
}
.fillL2 {
    background: var(--bg-color-2);
    color: var(--text-color);
}
.fillL3 {
    background: var(--bg-color-3);
    color: var(--text-color);
}
.fillD {
    background: rgba(0,0,0,.5);
    color: #fff;
}
.fillD2 {
    background: rgba(0,0,0,.75);
    color: #fff;
}

.fl { float: left;}
.fr { float: right;}
.al { left: 0; }
.ar { right: 0; }

input.hide,
textarea.hide,
div.hide,
form.hide,
button.hide,
a.hide,
ul.hide,
li.hide {
    display: none;
}

.deemphasize {
    color: var(--muted-text-color);
}
.content {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.25);
}
.loading.loading {
    background-color: #aaa;
    background-blend-mode: var(--bg-blend-mode);
    background-image: url(img/loader_bg.gif);
    background-size: 5px 5px;
}


/* Buttons
------------------------------------------------------- */
button {
    text-align: center;
    border: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 12px;
    display: inline-block;
    border-radius: 4px;
}

button:focus,
button:active,
/* we want to fake hovering sometimes */
button.hover {
    background-color: var(--bg-color-3);
}
@media (hover: hover) {
    button:hover {
        background-color: var(--bg-color-3);
    }
}
button.active {
    background: var(--link-color);
}
button.disabled {
    background-color: var(--transparent-button-color);
    color: var(--transparent-text-emphasis-color);
    cursor: not-allowed;
}
button.disabled .icon {
    fill: var(--transparent-text-emphasis-color);
}

.joined > * {
    border-radius: 0;
    border-right: 1px solid rgba(0,0,0,.5);
}
.ideditor[dir='rtl'] .joined > * {
    border-left: 1px solid rgba(0,0,0,.5);
    border-right: none;
}

.fillL .joined > * {
    border-right: 1px solid var(--bg-color);
}
.joined > *:first-child {
    border-radius: 4px 0 0 4px;
}
.ideditor[dir='rtl'] .joined > *:first-child {
    border-radius: 0 4px 4px 0;
}
.joined > *:last-child {
    border-right-width: 0;
    border-radius: 0 4px 4px 0;
}
.ideditor[dir='rtl'] .joined > *.bar-button:last-child {
    border-radius: 4px 0 0 4px;
}


/* Action buttons */
button.action {
    background: var(--link-color);
    color: #fff;
    font-weight: bold;
}
button.action:focus,
button.action:active {
    background: var(--link-focus-color);
}
button.secondary-action {
    background: var(--bg-color-3);
    font-weight: bold;
}
button.secondary-action:focus,
button.secondary-action:active {
    background: var(--passive-bg-color);
}

button.action.disabled,
button[disabled].action {
    background: var(--passive-bg-color);
    color: var(--passive-text-color);
    cursor: not-allowed;
}

button.action,
button.secondary-action {
    padding: 10px 5px;
}

@media (hover: hover) {
    button.action:hover {
        background: var(--link-focus-color);
    }
    button.secondary-action:hover {
        background: var(--passive-bg-color);
    }
    button.action.disabled:hover,
    button[disabled].action:hover {
        background: var(--passive-bg-color);
        color: var(--passive-text-color);
        cursor: not-allowed;
    }
}


/* Icons
------------------------------------------------------- */
.icon {
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

.icon.operation use {
    fill: var(--widget-color);
    color: #79f;
}
button.disabled .icon.operation use,
.icon.operation.disabled use {
    fill: var(--transparent-text-color);
    color: var(--transparent-text-color);
}

.icon.monochrome use {
    fill: currentColor;
}

.icon.inline {
    vertical-align: text-top;
    display: inline-block;
    width: 1.17em;
    height: 1.17em;
    margin: 0px 3px;
}

.icon.pre-text {
    margin-right: 5px;
}
.ideditor[dir='rtl'] .icon.pre-text {
    margin-left: 5px;
    margin-right: 0;
}

.icon.pre-text.user-icon {
    margin-left: 5px;
    margin-right: 5px;
}

.icon.light {
    color: #fff;
    fill: currentColor;
}
.icon.created {
    color: #00ca07;
}
.icon.modified {
    color: #666;
}
.icon.deleted {
    color: #ea0000;
}

.user-icon {
    max-height: 20px;
    max-width: 20px;
    height: auto;
    width: auto;
    border-radius: 3px;
}

.icon-annotation {
    color: #333;
    vertical-align: baseline;
}

button.loading .icon {
    background-image: url(img/mini-loader.gif);
    background-position: 0 0;
    background-size: auto;
}


/* Toolbar / Persistent UI Elements
------------------------------------------------------- */
.top-toolbar-wrap {
    position: relative;
    z-index: 101;
}
.top-toolbar {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    padding: 10px 0 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    width: 100%;

    /* hide scrollbar but allow scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
}
.top-toolbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.top-toolbar .toolbar-item {
    display: flex;
    flex: 0 1 auto;
    flex-flow: column wrap;
    justify-content: center;
}
.top-toolbar .toolbar-item .item-content {
    display: flex;
    flex: 0 1 auto;
    flex-flow: row nowrap;
    justify-content: center;
    height: 40px;
    width: auto;
    margin: 0 5px;
}
.ideditor[dir='ltr'] .top-toolbar .toolbar-item:last-child .item-content,
.ideditor[dir='rtl'] .top-toolbar .toolbar-item:first-child .item-content {
    margin-right: 10px;
}
.ideditor[dir='ltr'] .top-toolbar .toolbar-item:first-child .item-content,
.ideditor[dir='rtl'] .top-toolbar .toolbar-item:last-child .item-content {
    margin-left: 10px;
}
.ideditor[dir='ltr'] .top-toolbar .toolbar-item:last-child .item-label,
.ideditor[dir='rtl'] .top-toolbar .toolbar-item:first-child .item-label {
    padding-right: 5px;
}
.ideditor[dir='ltr'] .top-toolbar .toolbar-item:first-child .item-label,
.ideditor[dir='rtl'] .top-toolbar .toolbar-item:last-child .item-label {
    padding-left: 5px;
}
.top-toolbar .toolbar-item .item-label {
    text-align: center;
    font-size: 11px;
    white-space: nowrap;
    margin: 1px 2px 2px 2px;
}
.top-toolbar .toolbar-item.spacer {
    width: 100%;
    flex-grow: 2;
}
.top-toolbar .toolbar-item:first-child {
    justify-content: flex-start;
}
.top-toolbar .toolbar-item:last-child {
    justify-content: flex-end;
}
.top-toolbar .toolbar-item:empty:not(.spacer) {
    display: none;
}
button.bar-button {
    flex: 0 0 auto;
    flex-flow: row nowrap;
    align-items: center;
    padding: 0 10px;
    min-width: 30px;
    white-space: nowrap;
    display: flex;
    font-weight: bold;
}
button.bar-button .icon {
    flex: 0 0 20px;
}
button.bar-button .label {
    flex: 0 1 auto;
    padding: 0 5px;
}

button.bar-button.dragging {
    opacity: 0.75;
    z-index: 200;
}
button.bar-button.dragging .tooltip {
    display: none;
}
button.bar-button.dragging.removing {
    cursor: url(img/cursor/select-remove.png), pointer;
}

button.save {
    background-image: linear-gradient(0, var(--accent-color), var(--accent-color));
}
button.save .count {
    display: inline-block;
    min-width: 32px;
    text-align: center;
}

.help-pane svg.icon.inline.add-note,
button.add-note svg.icon {
    height: 15px;
    width: 15px;
    color: rgba(0,0,0,0.25);
    stroke: var(--text-color);
    stroke-width: 60px;
    margin-top: 3px;
}
button.add-note svg.icon {
    margin-left: unset;
    margin-right: 4px;
}
.ideditor[dir='rtl'] button.add-note svg.icon {
    margin-left: 4px;
    margin-right: unset;
}
.help-pane svg.icon.inline.add-note {
    margin-left: 3px;
    margin-right: 3px;
}

.spinner {
    opacity: .5;
    position: absolute;
    right: 4px;
    bottom: 4px;
    height: 20px;
    width: 20px;
    pointer-events: none;
}
.spinner img {
    height: 100%;
    width: 100%;
    background: transparent;
    border-radius: 100%;
}
.ideditor[dir='rtl'] .spinner img {
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}


.top-toolbar.narrow .spinner,
.top-toolbar.narrow button.bar-button .label {
    display: none;
}
.top-toolbar.narrow button .count {
    border-left-width: 0;
    border-right-width: 0;
}

.ideditor[dir='ltr'] .undo-redo button:first-of-type {
    margin-right: 1px;
}
.ideditor[dir='rtl'] .undo-redo button:first-of-type {
    margin-left: 1px;
}

/* Header for modals / panes
------------------------------------------------------- */
.header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.header h3 {
    text-align: center;
    margin-bottom: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0;
}

.header button,
.modal > button {
    border-radius: 0;
    width: 40px;
    text-align: center;
    overflow: hidden;
}

.header button {
    position: relative;
    height: 100%;
}

.field-help-title button.close,
.sidebar .header button.close,
.preset-list-pane .header button.preset-choose {
    position: absolute;
    right: 0;
    top: 0;
}
.ideditor[dir='rtl'] .field-help-title button.close,
.ideditor[dir='rtl'] .sidebar .header button.close,
.ideditor[dir='rtl'] .preset-list-pane .header button.preset-choose {
    left: 0;
    right: auto;
}

.entity-editor-pane .header button.preset-choose {
    position: absolute;
    left: 0;
    top: 0;
}
.ideditor[dir='rtl'] .entity-editor-pane .header button.preset-choose {
    left: auto;
    right: 0;
}

.preset-choose {
    font-size: 16px;
    line-height: 1.25;
    font-weight: bold;
}

.modal > button {
    position: absolute;
    right: 0;
    top: 0;
    height: 59px;
    z-index: 50;
}
.ideditor[dir='rtl'] .modal > button {
    left: 0;
    right: unset;
}

.footer {
    position: absolute;
    bottom: 0;
    margin: 0;
    padding: 0 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color-2);
    width: 100%;
    height: 2.5em;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    display: flex;
}

.footer > a {
    justify-content: center;
}

/* Hide/Toggle collapsible sections (aka Disclosure)
------------------------------------------------------- */
summary.hide-toggle {
    display: block;
    list-style: none;
    cursor: pointer;
    color: var(--link-color);
    font-size: 14px;
    font-weight: bold;
    line-height: 25px;
    width: fit-content;
}
details.disclosure-wrap[open] summary.hide-toggle {
    margin-bottom: 10px;
}
summary.hide-toggle::-webkit-details-marker {
    display: none;
}
.hide-toggle .icon.pre-text {
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin-top: -3px;
}


/* Sidebar / Inspector
------------------------------------------------------- */
.sidebar {
    position: relative;
    float: left;
    height: 100%;
    z-index: 10;
    background: var(--bg-color-2);
    -ms-user-select: element;
    border: 0px solid var(--border-color);
    border-right-width: 1px;
}
.ideditor[dir='rtl'] .sidebar {
    float: right;
    border-right-width: 0px;
    border-left-width: 1px;
}

.sidebar-resizer {
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
    cursor: col-resize;
    /* disable drag-to-select */
    user-select: none;
}
.ideditor[dir='rtl'] .sidebar-resizer {
    right: auto;
    left: -6px;
}

.sidebar.collapsed > *:not(.sidebar-resizer) {
    display: none;
}
.sidebar.collapsed .sidebar-resizer {
    /* make target wider to avoid the user accidentally resizing window */
    width: 10px;
    right: -10px;
}
.ideditor[dir='rtl'] .sidebar.collapsed .sidebar-resizer {
    left: -10px;
}

.sidebar-component {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-component .body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.panewrap {
    position: absolute;
    width: 200%;
    height: 100%;
    right: -100%;
}

.pane {
    position: absolute;
    width: 50%;
    top: 0;
    bottom: 2.5em;
    display: flex;
    flex-direction: column;
}

.pane:first-child {
    left: 0;
}

.pane:last-child {
    right: 0;
}
.feature-list-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inspector-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.inspector-hidden {
    display: none;
}

.inspector-body {
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
    height: 100%;
    flex: 1 1 100%;
}
.entity-editor {
    padding: 20px;
}
/* preserve extra space at bottom of inspector to allow for dropdown options - #5280 */
.entity-editor > div:last-child {
    margin-bottom: 150px;
}

.sidebar .search-header {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}
.sidebar .search-header .icon {
    display: inline-block;
    position: absolute;
    left: 10px;
    height: 100%;
    pointer-events: none;
}
.ideditor[dir='rtl'] .sidebar .search-header .icon {
    left: auto;
    right: 10px;
}

.sidebar .search-header input {
    width: 100%;
    padding: 0 10px;
    height: 3em;
    border-radius: 0;
    border-width: 0;
    border-bottom-width: 1px;
    text-indent: 30px;
    font-size: 18px;
    font-weight: bold;
}

.section:not(:last-child),
.map-pane .section {
    margin-bottom: 30px;
}


/* Feature List / Search Results
------------------------------------------------------- */
.feature-list  {
    width: 100%;
}
.no-results-item,
.feature-list-item {
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}
.no-results-item {
    padding: 10px;
    font-weight: bold;
}

.geocode-item {
    width: 100%;
    max-width: 200px;
    margin: 30px auto;
    min-height: 40px;
}

.feature-list-item {
    display: flex;
}
.feature-list-item .label {
    text-align: left;
    padding: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex: 1 1 auto;
}
.ideditor[dir='rtl'] .feature-list-item .label {
    text-align: right;
}

.feature-list-item .label .icon {
    opacity: .5;
}
.feature-list-item .close {
    padding: 10px;

}
.feature-list-item .close .icon {
    opacity: 0.5;
}
.feature-list-item .entity-type {
    color: var(--link-color);
    font-weight: bold;
}
.feature-list-item:active .entity-type,
.feature-list-item:focus .entity-type {
    color: var(--link-focus-color);
}
@media (hover: hover) {
    .feature-list-item:hover .entity-type {
        color: var(--link-focus-color);
    }
}
.feature-list-item .entity-name {
    color: var(--passive-text-color);
    padding-left: 10px;
}
.ideditor[dir='rtl'] .feature-list-item .entity-name {
    padding-left: 0;
    padding-right: 10px;
}
.section-selected-features .feature-list {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}
.section-selected-features .feature-list-item:last-child {
    border: none;
}
.ideditor[dir='ltr'] .section-selected-features .feature-list-item > button:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.ideditor[dir='rtl'] .section-selected-features .feature-list-item > button:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.ideditor[dir='ltr'] .section-selected-features .feature-list-item > button:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.ideditor[dir='rtl'] .section-selected-features .feature-list-item > button:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Preset List and Icons
------------------------------------------------------- */
.preset-list  {
    width: 100%;
    padding: 20px 20px 10px 20px;
}

.preset-list-item {
    margin-bottom: 10px;
    position: static;
}

.preset-list-button-wrap {
    min-height: 62px;
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.preset-list-button {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.preset-list.filtered .preset-list-item:first-child .preset-list-button {
    background: var(--bg-color-3);
}

.preset-icon-container {
    position: relative;
    width: 60px;
    height: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.preset-icon-container.small {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}
.preset-icon-container img.image-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 2px;
    z-index: 2;
    display: none;
}
.preset-icon-container.showing-img img.image-icon {
    display: initial;
}
.preset-icon-container.showing-img *:not(.image-icon) {
    display: none;
}

.preset-icon-point-border path {
    stroke: #333;
    stroke-width: 1.2;
    fill: transparent;
}

.preset-icon-category-border path {
    stroke: #999;
    stroke-width: 1px;
    fill: transparent;
    backface-visibility: hidden;
    vector-effect: non-scaling-stroke;
}

.preset-icon-line {
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.preset-icon-container path {
    cursor: inherit;
}
.preset-icon-container circle.vertex {
    fill: #fff;
    stroke: rgba(0, 0, 0, 0.25);
}
.preset-icon-fill circle.midpoint {
    fill: transparent;
    stroke: rgba(0, 0, 0, 0.25);
}
/* use a consistent stroke width */
.preset-icon-container path.line.stroke {
    stroke-width: 2 !important;
}
.preset-icon-container path.line.casing {
    stroke-width: 4 !important;
}

.preset-icon-fill {
    margin: auto;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
.preset-icon-container svg,
.preset-icon-container svg > * {
    cursor: inherit !important;
}
.preset-icon-fill path.area.stroke {
    fill: transparent;
}

.preset-icon-fill-vertex circle {
    stroke-width: 1.5px;
    stroke: var(--text-color);
    fill: var(--bg-color-3);
    backface-visibility: hidden;
}

.preset-icon {
    width: 100%;
    height:100%;
    position: absolute;
    z-index: 1;
}
.preset-icon .icon {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: scale(0.48);
}
.preset-icon-container.small .preset-icon.point-geom .icon {
    transform: translateY(-7%) scale(0.27);
}
.preset-icon-container.small .preset-icon.point-geom.preset-icon-iD .icon {
    transform: translateY(-9%) scale(0.5);
}
.preset-icon.framed .icon {
    transform: scale(0.4);
}
.preset-icon.framed.line-geom:not(.category) .icon,
.preset-icon.framed.route-geom .icon {
    top: 20%;
    transform: translateY(-30%) scale(0.4);
}
.preset-icon-iD .icon {
    transform: scale(1);
}
.preset-icon-iD.framed .icon {
    transform: scale(0.74);
}
.preset-icon-iD.framed.line-geom:not(.category) .icon,
.preset-icon-iD.framed.route-geom .icon {
    transform: translateY(-30%) scale(0.74);
}
.preset-icon-container.fallback .preset-icon .icon {
    transform: scale(0.5) !important;
}

.preset-list-button .label {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    background: var(--bg-color-2);
    text-align: left;
    padding: 5px 10px;
    border-left: 1px solid var(--transparent-border-color);
    flex: 1 1 100%;
    align-self: stretch;
}
.ideditor[dir='rtl'] .preset-list-button .label {
    text-align: right;
    border-left: none;
    border-right: 1px solid var(--transparent-border-color);
}
.ideditor[dir='ltr'] .preset-list-item.mixed-types .preset-list-button .label {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.ideditor[dir='rtl'] .preset-list-item.mixed-types .preset-list-button .label {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.ideditor[dir='ltr'] .category .preset-list-button .label {
    border-radius: 0px 4px 4px 0px;
}
.ideditor[dir='rtl'] .category .preset-list-button .label {
    border-radius: 4px 0px 0px 4px;
}

.preset-list-item.mixed-types .label {
    font-style: italic;
}

button.preset-reset .label.flash-bg {
    animation: flash-bg 750ms;
}
@keyframes flash-bg {
    0% { background-color: var(--bg-color); }
    100% { background-color: var(--bg-color-2); }
}

.preset-list-button .label-inner {
    width: 100%;
    line-height: 1.35em;
}
.preset-list-button .label-inner .namepart {
    text-overflow: ellipsis;
}
.preset-list-button .label-inner .namepart:nth-child(1) {
    font-weight: bold;
}

.preset-list-button:focus .label,
.preset-list-button:active .label,
.preset-list-button.disabled,
.preset-list-button.disabled .label {
    background-color: var(--bg-color-3);
}
@media (hover: hover) {
    .preset-list-button:hover .label {
        background-color: var(--bg-color-3);
    }
}

.preset-list-button-wrap button.tag-reference-button {
    width: 32px;
    flex: 0 0 auto;
}
.preset-list-button-wrap button.tag-reference-button:not(:hover):not(:active):not(:focus) {
    background: var(--bg-color-2);
}
.ideditor[dir='ltr'] .preset-list-button-wrap button.tag-reference-button {
    border-left: 1px solid var(--border-color);
}
.ideditor[dir='rtl'] .preset-list-button-wrap button.tag-reference-button {
    border-right: 1px solid var(--border-color);
}
.ideditor[dir='ltr'] .preset-list-button-wrap:not(.category) button:last-child {
    border-radius: 0 4px 4px 0;
}
.ideditor[dir='rtl'] .preset-list-button-wrap:not(.category) button:last-child {
    border-radius: 4px 0 0 4px;
}
.preset-list-button-wrap button.tag-reference-button .icon {
    opacity: .5;
}
.preset-list-button-wrap .accessory-buttons {
    display: flex;
}


.current .preset-list-button,
.current .preset-list-button .label {
    background-color: var(--selected-bg-color);
}

.category .preset-list-button:after,
.category .preset-list-button:before {
    content: "";
    position: absolute;
    top: -5px;
    left: -1px; right: -1px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    height: 6px;
}

.category .preset-list-button:before {
    top: -3px;
}

.subgrid .preset-list {
    width: auto;
    padding: 10px;
    margin: 0 -10px;
    border: 0;
    border-radius: 8px;
}
.subgrid .preset-list > *:last-child {
    margin-bottom: 0;
}

.subgrid .arrow {
    border: solid rgba(0, 0, 0, 0);
    border-width: 10px;
    border-bottom-color: var(--bg-color-3);
    width: 0;
    height: 0;
    margin-left: 50%;
    margin-left: calc(50% - 10px);
}


/* Quick links
------------------------------------------------------- */
.quick-links {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    padding: 5px 0 0 0;
}
.quick-link {
    margin: 0 5px;
}


/* Entity/Preset Editor
------------------------------------------------------- */
.section .grouped-items-area {
    padding: 10px;
    margin: 0 -10px 10px -10px;
    border-radius: 8px;
    background: var(--bg-color-3);
}
.section .grouped-items-area:empty {
    display: none;
}

/*
    The parts of a field:
    - `.form-field` is a `div` wraps the entire thing
    - `.field-label` is a `label` that wraps the top part, it contains;
       - `span` classed `label-text`
       - 0..n buttons for "remove", "modified", "tag reference"
    - `.form-field-input-wrap` is a `label` or `div` that wraps the bottom part, it contains;
       - usually an `input`
       - sometimes some buttons (translate, increment, decrement)
       - or could just be a `div` with anything really
    - `.tag-reference-body` at the bottom (usually hidden)

   .------------------.                             -
   |  Name        | i |  <- .field-label        |
   +------------------+                               |
   |  Starbucks   | + |  <- .form-field-input-wrap     >  .form-field
   '------------------'                               |
     tag reference       <- .tag-reference-body      |
                                                    -
*/

.form-field {
    display: flex;
    flex-flow: row wrap;
    margin-bottom: 10px;
    width: 100%;
    transition: margin-bottom 200ms;
}

.form-field.nowrap,
.wrap-form-field:last-child .form-field {
    margin-bottom: 0;
}

/* A `label` element that wraps the top section */
.field-label {
    display: flex;
    flex-flow: row nowrap;
    flex: 1 1 100%;
    position: relative;
    font-weight: bold;
    color: var(--text-color);
    background: var(--bg-color-2);
    border: 1px solid var(--border-color);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
.field-label .label-text {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    padding: 5px 0 4px 10px;
}
.ideditor[dir='rtl'] .field-label .label-text {
    padding: 5px 10px 4px 0;
}
.field-label .label-text {
    white-space: nowrap;
}

.label-text .label-textannotation svg.icon {
    margin: 0 8px;
    opacity: 0.5;
    width: 14px;
    height: 14px;
    vertical-align: text-top;
}

.field-label button {
    flex: 0 0 auto;
    border-left: 1px solid var(--border-color);
    width: 32px;
    border-radius: 0;
}
.ideditor[dir='rtl'] .field-label button {
    border-left: none;
    border-right: 1px solid var(--border-color);
}
.field-label button:not(:hover):not(:active):not(:focus) {
    background: none;
}
.field-label .icon {
    opacity: .5;
    fill: var(--text-color);
}

.field-label .modified-icon,
.field-label .remove-icon,
.field-label .remove-icon-multilingual {
    display: none;
}
.modified:not(.locked) .field-label .modified-icon,
.present:not(.locked) .field-label .remove-icon,
.present:not(.locked) .field-label .remove-icon-multilingual {
    display: inline-block;
}

/* A `div` element that wraps the bottom section */
.form-field-input-wrap {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    flex: 1 1 auto;
    border-top: 0;
    border-radius: 0 0 4px 4px;
}
.nowrap .form-field-input-wrap {
    border-radius: 0;
}


.form-field-input-wrap > input,
.form-field-input-wrap > label,
.form-field-input-wrap > textarea,
.form-field-input-wrap > ul.chiplist {
    flex: 1 1 auto;
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0;
    position: relative;
}
.form-field-input-wrap > textarea {
    height: 65px;
    border-radius: 0 0 4px 4px;
}

/* Buttons inside fields */
.form-field-button {
    flex: 0 0 auto;
    width: 32px;
    position: relative;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    border-top-width: 0;
    border-left-width: 0;
    vertical-align: top;
}
.ideditor[dir='rtl'] .form-field-button {
    border-left-width: 1px;
    border-right-width: 0;
}
.form-field-button:active,
.form-field-button:focus {
    background-color: var(--active-bg-color);
}
@media (hover: hover) {
    .form-field-button:hover {
        background-color: var(--active-bg-color);
    }
}
.form-field-button .icon {
    fill: var(--text-color);
    opacity: .5;
}
.form-field-button.colour-preview {
    border-radius: 0 0 4px 0;
}
.form-field-button.colour-preview > div.colour-box {
    border: 3px solid var(--bg-color);
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    line-height: 20px;
    padding: 1px 0 0 1px;
}
.inspector-hover .form-field-button.colour-preview > div.colour-box {
    border-color: var(--bg-color-3);
}
.form-field-button.colour-preview:active > div.colour-box,
.form-field-button.colour-preview:focus > div.colour-box {
    border-color: var(--active-bg-color);
}
@media (hover: hover) {
    .form-field-button.colour-preview:hover > div.colour-box {
        border-color: var(--active-bg-color);
    }
}
input.colour-selector {
    visibility: hidden;
    position: absolute;
}
input.date-selector {
    visibility: hidden;
    position: absolute;
}


/* round corners of first/last child elements */
.form-field-input-wrap > button:last-of-type {
    border-bottom-right-radius: 4px;
}
.ideditor[dir='rtl'] .form-field-input-wrap > button:last-of-type {
    border-bottom-left-radius: 4px;
}


/* Field - Access, DirectionalCombo
------------------------------------------------------- */
.form-field-input-access,
.form-field-input-directionalcombo {
    flex: 1 1 auto;
    display: flex;
    flex-flow: row wrap;
}

/* Field - lists with labeled input items
------------------------------------------------------- */
.form-field ul.rows {
    flex: 1 1 auto;
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    width: 100%;
}
.form-field ul.rows li {
    border-top: 1px solid var(--border-color);
}
.form-field ul.rows li:first-child {
    border-top: 0;
}
.form-field ul.rows li {
    display: flex;
    flex-flow: row nowrap;
}
.form-field ul.rows li.labeled-input > div {
    flex: 1 1 auto;
    width: 100%;
    border-radius: 0;
    line-height: 0.95rem;
}
.form-field ul.rows li input {
    border-radius: 0;
    border-width: 0;
    width: 100%;
}
.form-field ul.rows li button {
    border-width: 0;
}
.ideditor[dir='ltr'] .form-field ul.rows li.labeled-input input,
.ideditor[dir='ltr'] .form-field ul.rows li button {
    border-left-width: 1px;
}
.ideditor[dir='rtl'] .form-field ul.rows li.labeled-input input,
.ideditor[dir='rtl'] .form-field ul.rows li button {
    border-right-width: 1px;
}

/* Field - lists with labeled input items as table
------------------------------------------------------- */
.form-field ul.rows.rows-table {
    display: table;
    width: 100%;
}
.form-field ul.rows.rows-table li.labeled-input {
    display: table-row;
}
.form-field ul.rows.rows-table li.labeled-input > div:first-child {
    display: table-cell;
    width: auto;
    max-width: 170px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.form-field ul.rows.rows-table li.labeled-input > div:nth-child(2) {
    display: table-cell;
    width: auto;
}


/* Field - Structure
------------------------------------------------------- */
.structure-extras-wrap {
    width: 100%;
    padding: 10px 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-top: 0px;
    border-radius: 0 0 4px 4px;
}
.structure-extras-wrap > ul.rows {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}


/* Field - Combo / Multicombo
------------------------------------------------------- */
.form-field-input-combo > input:only-of-type {
    border-radius: 0 0 4px 4px;
    width: 100%;
}
.form-field-input-combo.empty-combobox input,
.form-field-input-multicombo .empty-combobox input {
    padding-right: 10px;
    padding-left: 10px;
}
.form-field-input-combo.empty-combobox .combobox-caret,
.form-field-input-multicombo .empty-combobox .combobox-caret {
    display: none;
}

.form-field-input-combo input.raw-value,
.form-field-input-semicombo input.raw-value,
.form-field-input-multicombo input.raw-value {
    font-family: monospace;
}
.form-field-input-combo input.known-value,
.form-field-input-semicombo input.known-value,
.form-field-input-multicombo input.known-value {
    color: var(--link-color);
}

.form-field-input-multicombo ul.chiplist {
    padding: 5px 8px 5px 8px;
    background: var(--bg-color);
    display: block;
    border-radius: 0 0 4px 4px;
    width: 100%;
}

.form-field-input-multicombo li {
    display: inline-flex;
    flex-flow: row nowrap;
    margin-bottom: 3px;
    margin-top: 3px;
    border-radius: 4px;
}
.ideditor[dir='ltr'] .form-field-input-multicombo li {
    margin-right: 6px;
}
.ideditor[dir='rtl'] .form-field-input-multicombo li {
    margin-left: 6px;
}

.form-field-input-multicombo li.chip {
    background-color: var(--nested-bg-color);
    border: 1px solid var(--nested-border-color);
    max-width: 100%;
    color: var(--link-color);
}
.form-field-input-multicombo li.chip.negated span {
    text-decoration: line-through;
}
.form-field-input-multicombo li.chip input {
    width: 1em;
    height: 11px;
    margin-top: 7px;
}
.ideditor[dir='ltr'] .form-field-input-multicombo li.chip {
    padding: 2px 0px 2px 5px;
}
.ideditor[dir='rtl'] .form-field-input-multicombo li.chip {
    padding: 2px 5px 2px 0px;
}
.form-field-input-multicombo li.chip.draggable {
    cursor: grab;
}
.form-field-input-multicombo li.chip.dragging {
    opacity: 0.75;
    z-index: 3000;
    cursor: grabbing;
}
.form-field-input-multicombo li.chip.raw-value {
    font-family: monospace;
    color: var(--text-color);
}
.form-field-input-multicombo li.mixed {
    border-color: var(--nested-bg-color);
    color: var(--passive-text-color);
    font-style: italic;
}

.form-field-input-multicombo li.chip > span {
    display: block;
    flex: 1 1 auto;
    overflow: hidden;
    word-wrap: break-word;
    margin-top: 4px;
}

.form-field-input-multicombo a,
.form-field-input-multicombo button {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    padding: 0px 5px 0px 5px;
    margin: 0;
    cursor: pointer;
    color: var(--muted-text-color);
    display: block;
    text-align: center;
    flex: 0 0 auto;
    background: transparent;
    border: 0;
}

.form-field-input-multicombo li.chip .field_buttons {
    display: inline-block;
    text-align: right;
    margin-right: 2px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.form-field-input-multicombo li.chip .field_buttons a {
    display: block;
    float: right;
    margin-top: -2px;
    margin-bottom: -2px;
}

.ideditor[dir='rtl'] .form-field-input-multicombo li.chip .field_buttons a {
    float: left;
}

.form-field-input-multicombo li.chip .field_buttons button {
    display: inline-block;
    margin-right: -4px;
    margin-top: -4px;
    margin-bottom: -2px;
    margin-left: -2px;
}

.form-field-input-multicombo li.chip .field_buttons button:hover {
    background-color: transparent;
}

.form-field-input-multicombo .input-wrap {
    border: 1px solid var(--border-color-2);
    width: auto;
    max-width: 100%;
}
.form-field-input-multicombo input {
    border: none;
}
.form-field-input-multicombo input.combobox-input {
    max-width: 100%;
    min-width: 180px;
    field-sizing: content;
}

.form-field-input-multicombo input:focus {
    border-radius: 4px !important;
}

.form-field-input-multicombo .full-line-chips li.chip {
    width: 100%;
}
.form-field-input-multicombo .full-line-chips .input-wrap {
    width: auto;
}

.form-field-input-combo .tag-value-icon,
.form-field-input-semicombo .input-wrap .tag-value-icon,
.form-field-input-multicombo .input-wrap .tag-value-icon {
    display: inline-block;
    position: relative;
    height: 24px;
    width: 30px;
    margin-right: -30px;
    align-self: center;
    vertical-align: middle;
    z-index: 1;
    padding-left: 11px;
}
.ideditor[dir='rtl'] .form-field-input-combo .tag-value-icon,
.ideditor[dir='rtl'] .form-field-input-semicombo .input-wrap .tag-value-icon,
.ideditor[dir='rtl'] .form-field-input-multicombo .input-wrap .tag-value-icon  {
    margin-right: 0;
    margin-left: -30px;
    padding-left: 0;
    padding-right: 11px;
}
.combobox-address-street-place .combobox-option,
.combobox-option.has-icon {
    display: flex;
    align-items: center;
}
.combobox-option.has-icon .combobox-option-label {
    display: flex;
    align-items: center;
}
.tag-value-icon .icon {
    width: 21px;
    height: 21px;
    margin: auto;
}
.tag-value-icon .emoji {
    font-size: 24px;
    line-height: 24px;
}
.ideditor[dir='ltr'] .form-field-input-combo .tag-value-icon + input,
.ideditor[dir='ltr'] .form-field-input-semicombo .input-wrap .tag-value-icon + input,
.ideditor[dir='ltr'] .form-field-input-multicombo .input-wrap .tag-value-icon + input {
    padding-left: 40px;
}
.ideditor[dir='rtl'] .form-field-input-combo .tag-value-icon + input,
.ideditor[dir='rtl'] .form-field-input-semicombo .input-wrap .tag-value-icon + input,
.ideditor[dir='rtl'] .form-field-input-multicombo .input-wrap .tag-value-icon + input {
    padding-right: 40px;
}
.combobox-option .tag-value-icon {
    display: inline-block;
    width: 28px;
}
.form-field-input-multicombo li.chip .tag-value-icon .icon {
    margin: 0;
    margin-right: 6px;
    display: inline-block;
    vertical-align: center;
}
.ideditor[dir='rtl'] .form-field-input-multicombo li.chip .tag-value-icon .icon {
    margin-right: 6px;
    margin-left: 0;
}


/* Field - Text / Numeric
------------------------------------------------------- */
.form-field-input-text > input:only-child,
.form-field-input-tel > input:only-of-type,
.form-field-input-email > input:only-of-type,
.form-field-input-url > input:only-child {
    border-radius: 0 0 4px 4px;
}
.form-field-input-text > input:not(:only-child),
.form-field-input-url > input:not(:only-child) {
    border-radius: 0 0 0 4px;
}
.form-field-input-number > input:only-of-type {
    border-radius: 0 0 0 4px;
}
.ideditor[dir='rtl'] .form-field-input-number > input:only-of-type {
    border-radius: 0 0 4px 0;
}
.form-field-input-number > button:last-of-type {
    border-radius: 0 0 4px 0;
}
.ideditor[dir='rtl'] .form-field-input-number > button:last-of-type {
    border-radius: 0 0 0 4px;
}

.ideditor[dir='ltr'] .form-field-input-identifier > input:last-child,
.ideditor[dir='rtl'] .form-field-input-identifier > input:first-child,
.ideditor[dir='ltr'] .form-field-input-identifier > button {
    border-bottom-right-radius: 4px;
}
.ideditor[dir='ltr'] .form-field-input-identifier > input:first-child,
.ideditor[dir='rtl'] .form-field-input-identifier > input:last-child,
.ideditor[dir='rtl'] .form-field-input-identifier > button {
    border-bottom-left-radius: 4px;
}

/* draw the up/down on the buttons */
.form-field-input-number button.decrement::after,
.form-field-input-number button.increment::after,
.form-field-input-integer button.decrement::after,
.form-field-input-integer button.increment::after {
    content: "";
    height: 0; width: 0;
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    margin: auto;
}
.form-field-input-number button.decrement::after,
.form-field-input-integer button.decrement::after {
    border-top: 5px solid var(--border-color);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}
.form-field-input-number button.increment::after,
.form-field-input-integer button.increment::after {
    border-bottom: 5px solid var(--border-color);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}


/* Field - Checkbox
------------------------------------------------------- */
.form-field-input-check {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    padding: 5px 10px;
    color: var(--link-color);
    border: 1px solid var(--border-color);
    border-top: 0;
    cursor: pointer;
}
.form-field-input-check > input[type="checkbox"] {
    flex: 0 1 auto;
    margin-top: 0;
}
.form-field-input-check > span {
    flex: 1 1 auto;
}
.form-field-input-check > span.raw-value {
    font-family: monospace;
    color: var(--text-color);
}
.form-field-input-check > span.mixed {
    font-style: italic;
}
.form-field-input-check > .reverser {
    flex: 0 1 auto;
    background-color: var(--nested-bg-color);
    border: 1px solid var(--nested-border-color);
    border-radius: 2px;
    padding: 0px 8px;
    color: inherit;
}
.ideditor[dir='ltr'] .form-field-input-check > .reverser {
    padding-right: 2px;
}
.ideditor[dir='rtl'] .form-field-input-check > .reverser {
    padding-left: 2px;
}
.form-field-input-check > .reverser:active,
.form-field-input-check > .reverser:focus {
    background: var(--nested-highlight-color);
}
@media (hover: hover) {
    .form-field-input-check > .reverser:hover {
        background: var(--nested-highlight-color);
    }
}
.form-field-input-check > .reverser.hide {
    display: none;
}
.form-field-input-check:active,
.form-field-input-check:focus {
    background: var(--active-bg-color);
}
@media (hover: hover) {
    .form-field-input-check:hover {
        background: var(--active-bg-color);
    }
}
.form-field-input-check .set {
    color: inherit;
}
.form-field-input-check label:not(.set) input[type="checkbox"] {
    opacity: .5;
}


/* Field - Radio button
------------------------------------------------------- */
.form-field-input-radio {
    flex: 1 1 auto;
    display: flex;
    flex-flow: row wrap;
}
.form-field-input-radio > label {
    flex: 1 1 auto;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    width: 100%;
    padding: 5px 10px;
    background-color: var(--bg-color);
    color: var(--link-color);
    cursor: pointer;
}
.form-field-input-radio > label .raw-value {
    font-family: monospace;
    color: var(--text-color);
}
.form-field-input-radio > label.mixed {
    font-style: italic;
}
.form-field-input-radio > label:last-child {
    border-radius: 0 0 4px 4px;
}
.form-field-input-radio > label:active,
.form-field-input-radio > label:focus {
    background-color: var(--bg-color-3);
}
@media (hover: hover) {
    .form-field-input-radio > label:hover {
        background-color: var(--bg-color-3);
    }
}
.form-field-input-radio > label.active {
    background-color: var(--selected-bg-color);
}
.form-field-input-radio > label:not(:last-of-type) {
    border-bottom: 1px solid var(--border-color);
}
.form-field-input-radio > label > input[type="radio"] {
    flex: 0 1 auto;
}
.form-field-input-radio > label > span {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Hide placeholder for radio buttons if another is active, or not in hover state */
.form-field-input-radio label.active ~ .placeholder,
.form-field-input-radio .placeholder {
    padding: 0;
    opacity: 0;
    width: 0;
    height: 0;
    display: block;
    overflow: hidden;
}

/* One-line (horizontal) layout when all options fit on a single row */
.form-field-input-radio.one-line {
    overflow: hidden;
}
.form-field-input-radio.one-line > label {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
.form-field-input-radio.one-line.equal-spacing > label {
    flex: 1 1 0;
}
.form-field-input-radio.one-line > label:first-of-type {
    border-end-start-radius: 4px;
}
.form-field-input-radio.one-line > label:last-of-type {
    border-end-start-radius: 0;
}
.form-field-input-radio.one-line > label:not(:first-of-type) {
    border-inline-start: none;
}

/* Two-column layout when all options fit on a half-width box */
.form-field-input-radio.two-column {
    overflow: hidden;
}
.form-field-input-radio.two-column > label {
    flex: 1 1 auto;
    min-width: 50%;
    max-width: 100%;
    width: 50%;
}
.form-field-input-radio.two-column > label:nth-last-of-type(2):nth-of-type(odd),
.form-field-input-radio.two-column > label:last-of-type:nth-of-type(odd) {
    border-end-start-radius: 4px;
}
.form-field-input-radio.two-column > label:last-of-type:nth-of-type(even) {
    border-end-start-radius: 0;
}
.form-field-input-radio.two-column > label:nth-of-type(even) {
    border-inline-start: none;
}


/* Field - roadheight and roadspeed
------------------------------------------------------- */
.form-field-input-roadheight input.roadheight-number,
.form-field-input-roadheight input.roadheight-secondary-number,
.form-field-input-roadspeed input.roadspeed-number {
    flex-basis: 0;
    width: 0;
}
.form-field-input-roadheight input.roadheight-unit,
.form-field-input-roadheight input.roadheight-secondary-unit {
    flex: 0 1 auto;
    width: 60px;
}
.form-field-input-roadspeed input.roadspeed-unit {
    flex: 0 1 auto;
    width: 80px;
}
.ideditor[dir='ltr'] .form-field-input-roadheight > input:first-of-type,
.ideditor[dir='ltr'] .form-field-input-roadspeed > input:first-of-type {
    border-radius: 0 0 0 4px;
}
.ideditor[dir='rtl'] .form-field-input-roadheight > input:first-of-type,
.ideditor[dir='rtl'] .form-field-input-roadspeed > input:first-of-type {
    border-radius: 0 0 4px 0;
}
.ideditor[dir='ltr'] .form-field-input-roadheight > input:last-of-type,
.ideditor[dir='ltr'] .form-field-input-roadspeed > input:last-of-type {
    border-left: 0;
    border-radius: 0 0 4px 0;
}
.ideditor[dir='rtl'] .form-field-input-roadheight > input:last-of-type,
.ideditor[dir='rtl'] .form-field-input-roadspeed > input:last-of-type {
    border-right: 0;
    border-radius: 0 0 0 4px;
}


/* Field - Localized Name
------------------------------------------------------- */
.form-field-input-localized > input.localized-main {
    border-radius: 0 0 0 4px;
}
.ideditor[dir='rtl'] .form-field-input-localized > input.localized-main {
    border-radius: 0 0 4px 0;
}
.form-field-input-localized > button.localized-add {
    border-radius: 0 0 4px 0;
}
.ideditor[dir='rtl'] .form-field-input-localized > button.localized-add {
    border-radius: 0 0 0 4px;
}

.form-field-input-localized button.localized-add.disabled,
.form-field-input-localized input.localized-main.disabled,
.form-field-input-localized input.localized-lang.disabled,
.form-field-input-localized input.localized-value.disabled {
    color: var(--passive-text-color);
    background-color: var(--bg-color-3);
    cursor: not-allowed;
}

/* nested subfields for name in different languages */
.localized-multilingual {
    padding: 0 10px;
    flex-basis: 100%;
}
.localized-multilingual .entry {
    position: relative;
    overflow: hidden;
}

/* draws a little line connecting the multilingual field up to the name field */
.localized-multilingual .entry::before {
    content: "";
    display: block;
    position: absolute;
    background: var(--border-color);
    height: 11px;
    width: 1px;
    left: 0;
    right: 0;
    top: -11px;
    margin: auto;
}

.localized-multilingual .entry .localized-lang {
    border-radius: 0;
    border-top-width: 0;
    width: 100%;
}
.localized-multilingual .entry .localized-value {
    border-top-width: 0;
    border-radius: 0 0 4px 4px;
    width: 100%;
}


/* Field - Address
------------------------------------------------------- */
.form-field-input-address {
    flex: 1 1 auto;
    display: flex;
    flex-flow: row wrap;
    border: 1px solid var(--border-color);
    border-top: 0px;
}

.addr-row {
    flex: 1 1 auto;
    display: flex;
    width: 100%;
}

.addr-row > input {
    flex: 1 1 auto;
    border-radius: 0;
    border-right: 0;
    border-bottom: 0;
}
.ideditor[dir='rtl'] .addr-row input {
    border-right: 1px solid var(--border-color);
    border-left: 0;
}

.addr-row:first-of-type input {
    border-top: 0;
}
.addr-row input:first-of-type {
    border-left: 0;
}
.ideditor[dir='rtl'] .addr-row input:first-of-type {
    border-right: 0;
}
.addr-row:last-of-type input:first-of-type {
    border-radius: 0 0 0 4px;
}
.ideditor[dir='rtl'] .addr-row:last-of-type input:first-of-type {
    border-radius: 0 0 4px 0;
}
.addr-row:last-of-type input:last-of-type {
    border-radius: 0 0 4px 0;
}
.ideditor[dir='rtl'] .addr-row:last-of-type input:last-of-type {
    border-radius: 0 0 0 4px;
}
.combobox-address-street-place .combobox-option.address-street,
.combobox-address-street-place .combobox-option.address-place {
    padding-right: 20px;
}
.combobox-address-street-place .combobox-option.address-street::after,
.combobox-address-street-place .combobox-option.address-place::after {
    position: absolute;
    right: 2px;
    opacity: 0.4;
}
.combobox-address-street-place .combobox-option.address-place::after {
    content: url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMCIgeT0iMCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAgMjAiPg0KICAgIDxwYXRoIGQ9Ik0xMCwzIEM2LjY4NiwzIDQsNS42MTIgNCw4LjgzMyBDNCwxMi4wNTUgMTAsMTcgMTAsMTcgQzEwLDE3IDE2LDEyLjA1NSAxNiw4LjgzMyBDMTYsNS42MTIgMTMuMzE0LDMgMTAsMyB6IE0xMC4xODcsNi41IEMxMS41MTMsNi41IDEyLjU4Nyw3LjU0NSAxMi41ODcsOC44MzMgQzEyLjU4NywxMC4xMjIgMTEuNTEzLDExLjE2NyAxMC4xODcsMTEuMTY3IEM4Ljg2MiwxMS4xNjcgNy43ODcsMTAuMTIyIDcuNzg3LDguODMzIEM3Ljc4Nyw3LjU0NSA4Ljg2Miw2LjUgMTAuMTg3LDYuNSB6IiBmaWxsPSJjdXJyZW50Q29sb3IiLz4NCjwvc3ZnPg==);
}


/* Field - Wikipedia
------------------------------------------------------- */
.form-field-input-wikipedia {
    display: flex;
    flex-flow: row wrap;
    flex: 1 1 auto;
}

.wiki-lang-container,
.wiki-title-container {
    display: flex;
    flex-flow: row nowrap;
    flex: 1 1 auto;
    width: 100%;
}

.wiki-lang-container > input.wiki-lang,
.wiki-title-container > input.wiki-title {
    flex: 1 1 auto;
    border-top: 0;
    border-radius: 0;
}
.wiki-title-container > input.wiki-title {
    border-radius: 0 0 0 4px;
}
.ideditor[dir='rtl'] .wiki-title-container > input.wiki-title {
    border-radius: 0 0 4px 0;
}
.wiki-title-container > button.wiki-link,
.form-field-wikidata ul.rows li:last-child button.form-field-button:last-child {
    border-radius: 0 0 4px 0;
}
.ideditor[dir='rtl'] .wiki-title-container > button.wiki-link,
.ideditor[dir='rtl'] .form-field-wikidata ul.rows li:last-child button.form-field-button:last-child {
    border-radius: 0 0 0 4px;
}


/* Field - Restriction Editor
------------------------------------------------------- */
.form-field-input-restrictions {
    display: block;
    border: 1px solid var(--passive-bg-color);
    border-top: 0;
    border-radius: 0 0 4px 4px;
}

.form-field-input-restrictions .restriction-controls-container {
    background-color: var(--bg-color);
    width: 100%;
    padding: 5px;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px;
}

.restriction-controls-container .restriction-controls {
    display: table;
    user-select: none;
}

.restriction-controls .restriction-control {
    display: table-row;
    padding: 5px 10px;
    height: 25px;
}

.restriction-control input,
.restriction-control > span {
    display: table-cell;
    text-align: start;
    padding: 0px 5px;
}

.restriction-control > span.restriction-control-label {
    text-align: end;
}

.restriction-control input {
    width: 60px;
    padding: 0;
    margin: 0px 5px;
    vertical-align: middle;
}

.form-field-input-restrictions .restriction-container {
    position: relative;
    color: #333;
    height: 370px;
}
/* zero width space, so container takes up space */
.form-field-input-restrictions .restriction-container:after {
    content: '\200b';
}

.form-field-input-restrictions svg.surface {
    width: 100%;
    height: 100%;
}

.restriction-container .restriction-help {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2px 6px;
    background-color: var(--transparent-bg-color);
    color: var(--passive-text-color);
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.restriction-help .qualifier {
    margin: 2px;
    color: #666;
    font-weight: bold;
}
.restriction-help .qualifier.allow {
    color: #8b5;
}
.restriction-help .qualifier.restrict {
    color: #d53;
}
.restriction-help .qualifier.only {
    color: #78f;
}


/* Field - Changeset Comment
------------------------------------------------------- */
.form-field-comment:not(.present) textarea {
    border-color: rgb(160, 160, 160);
}
.form-field-comment:not(.present) .field-label {
    border-color: rgb(160, 160, 160);
    background-color: rgba(160, 160, 160, 0.2);
}
.form-field-comment:not(.present) button {
    border-color: rgb(160, 160, 160);
}


/* Field - Combobox
------------------------------------------------------- */
.ideditor[dir='ltr'] textarea.combobox-input,
.ideditor[dir='ltr'] input.combobox-input {
    /* leave room for the caret */
    padding-right: 20px;
}
.ideditor[dir='rtl'] textarea.combobox-input,
.ideditor[dir='rtl'] input.combobox-input {
    padding-left: 20px;
}

div.combobox {
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 10px 1px rgba(0,0,0,.2);
    margin-top: -1px;
    background: var(--bg-color);
    max-height: 245px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px;
}
div.combobox:has(.has-description) {
    max-height: 400px;
}

.combobox a {
    display: block;
    padding: 5px 10px;
    border-top: 1px solid var(--border-color);
    line-height: 0.95rem;
    break: all;
}

.combobox a.selected,
.combobox a:active,
.combobox a:focus {
    background: var(--bg-color-3);
}
@media (hover: hover) {
    .combobox a:hover {
        background: var(--bg-color-3);
    }
}

.combobox a:first-child {
    border-top: 0;
    padding: 4px 10px;
}

.combobox-caret {
    display: inline-block;
    position: relative;
    height: 5px;
    width: 30px !important;
    margin-left: -30px;
    align-self: center;
    vertical-align: middle;
    cursor: pointer;
}
.ideditor[dir='rtl'] .combobox-caret {
  margin-left: 0;
  margin-right: -30px;
}

.combobox-caret::after {
    content: "";
    height: 0; width: 0;
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    margin: auto;
    border-top: 5px solid var(--border-color);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.combobox .combobox-option.has-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.combobox .combobox-option-description {
    font-size: 11px;
    line-height: 1.3;
    opacity: 0.7;
    white-space: normal;
    padding-top: 2px;
}
.combobox .combobox-option.raw-option {
    font-family: monospace;
    color: var(--text-color);
}

.combobox .combobox-option.virtual-option {
    font-style: italic;
    color: var(--text-color);
}

.form-field-input-wrap {
    position: relative;
}

.form-field-input-wrap span.length-indicator-wrap {
    visibility: hidden;
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
}

.form-field-input-wrap input:focus + span.length-indicator-wrap,
.form-field-input-wrap textarea:focus + span.length-indicator-wrap,
.form-field-input-wrap input:focus + div.combobox-caret + span.length-indicator-wrap,
.form-field-input-wrap textarea:focus + div.combobox-caret + span.length-indicator-wrap {
    visibility: visible;
}

.form-field-input-wrap span.length-indicator {
    display: block;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--link-color);
    border-right-style: solid;
    border-right-color: lightgray;
}

.form-field-input-wrap span.length-indicator.limit-reached {
    border-right-color: red;
}

.tooltip.max-length-warning {
    z-index: 10;
}

/* Field Help
------------------------------------------------------- */
.field-help-body {
    display: block;
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    margin: 5px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    z-index: 20;
    background: var(--transparent-bg-color);
    box-shadow: 0 0 30px 5px rgba(0,0,0,.4);
}

.field-help-title h2 {
    padding: 10px;
    margin-bottom: 0px;
    font-size: 17px;
}
.field-help-title button {
    width: 45px;
    height: 45px;
    border-radius: 0 5px 0 0;
}

.field-help-nav {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}
.field-help-nav-item {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-color);
}
.field-help-nav-item.active {
    color: var(--link-color);
    border-bottom: 2px solid;
}
.field-help-nav-item:active,
.field-help-nav-item:focus {
    color: var(--link-focus-color);
    background-color: var(--bg-color-3);
}
@media (hover: hover) {
    .field-help-nav-item:hover {
        color: var(--link-focus-color);
        background-color: var(--bg-color-3);
    }
}

.field-help-content {
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}
.field-help-content h3 {
    font-size: 12px;
    margin-bottom: 5px;
}
.field-help-content p {
    margin-bottom: 15px;
}
.field-help-content ul li {
    list-style: inside;
    margin-bottom: 5px;
}

.field-help-content .field-help-image {
    width: 100%;
    margin-bottom: 15px;
}

.field-help-content svg.turn {
    width: 40px;
    height: 20px;
}
.field-help-content svg.shadow {
    opacity: 0.7;
    width: 60px;
    height: 20px;
}
.field-help-content svg.from {
    color: #777;
}
.field-help-content svg.allow {
    color: #5b3;
}
.field-help-content svg.restrict {
    color: #d53;
}
.field-help-content svg.only {
    color: #68f;
}

.field-help-content p.from_shadow,
.field-help-content p.allow_shadow,
.field-help-content p.restrict_shadow,
.field-help-content p.allow_turn,
.field-help-content p.restrict_turn {
    margin-bottom: 5px;
}


/* More Fields dropdown
------------------------------------------------------- */
.more-fields {
    margin-top: 10px;
    font-weight: bold;
}

.more-fields label {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.more-fields input {
    margin-left: 10px;
    flex: 1 1 auto;
}
.ideditor[dir='rtl'] .more-fields input {
    margin-left: auto;
    margin-right: 10px;
}

.form-field-input-wrap .label {
    background: var(--bg-color-2);
    padding: 5px 10px;
}


/* Raw Tag Editor
------------------------------------------------------- */
.raw-tag-options {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    margin-top: -28px;
}
button.raw-tag-option {
    flex: 0 0 auto;
    padding: 3px;
    background: var(--muted-text-color);
    color: var(--bg-color-3);
    margin: 0 3px;
}
button.raw-tag-option:focus,
button.raw-tag-option.active {
    color: var(--bg-color);
    background: var(--link-focus-color);
}
@media (hover: hover) {
    button.raw-tag-option:hover {
        color: var(--bg-color);
        background: var(--link-focus-color);
    }
}
button.raw-tag-option.selected {
    color: var(--bg-color);
    background: var(--link-color);
}
button.raw-tag-option svg.icon {
    width: 14px;
    height: 14px;
    display: block;
}
.ideditor[dir='ltr'] button.raw-tag-option-list {
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}


.tag-text {
    width: 100%;
    height: 100%;
    min-height: 32px;
    font-family: monospace;
    white-space: pre;
}

.tag-text,
.tag-list {
    margin-top: 10px;
}
.tag-row {
    width: 100%;
    position: relative;
}
.tag-row .inner-wrap {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    position: relative;
}
.tag-row .key-wrap,
.tag-row .value-wrap {
    flex: 1 1 50%;
}

.tag-text.readonly,
.tag-row.readonly,
.tag-row.readonly input.key,
.tag-row.readonly input.value,
.tag-row.readonly button.remove {
    color: var(--passive-text-color);
    background-color: var(--bg-color-3);
    cursor: not-allowed;
}

.tag-row input {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    width: 100%;
}
.ideditor[dir='rtl'] .tag-row input {
    border-left: none;
    border-right: 1px solid var(--border-color);
}


.tag-row input.key {
    font-weight: bold;
    background-color: var(--bg-color-2);
}

.tag-row input.value {
    border-right: 1px solid var(--border-color);
}
.ideditor[dir='rtl'] .tag-row input.value {
    border-left: 1px solid var(--border-color);
}

.tag-row:first-child input.key {
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}
.ideditor[dir='rtl'] .tag-row:first-child input.key {
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
}

.tag-row:first-child input.value {
    border-top: 1px solid var(--border-color);
}
.tag-row button {
    flex: 0 0 auto;
    width: 32px;
    border: 1px solid var(--border-color);
    border-top-width: 0;
    border-left-width: 0;
}
.ideditor[dir='rtl'] .tag-row button {
    border-left-width: 1px;
    border-right-width: 0;
}

.tag-row button:active,
.tag-row button:focus {
    background: var(--active-bg-color);
}
@media (hover: hover) {
    .tag-row button:hover {
        background: var(--active-bg-color);
    }
}
.tag-row button .icon {
    opacity: .5;
}
.tag-row:first-child button {
    border-top-width: 1px;
}

.tag-row:first-child .tag-reference-button {
    border-top-right-radius: 4px;
}
.ideditor[dir='rtl'] .tag-row:first-child .tag-reference-button {
    border-top-left-radius: 4px;
    border-top-right-radius: 0;
}

.tag-row:last-child .tag-reference-button {
    border-bottom-right-radius: 4px;
}
.ideditor[dir='rtl'] .tag-row:last-child .tag-reference-button {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 0;
}

.tag-row .tag-reference-button {
    border-radius: 0;
}
.ideditor[dir='rtl'] .tag-row .tag-reference-button {
    border-left-width: 1px;
    border-right-width: 0;
}

/* Tag reference */
.tag-reference-loading {
    background-color: var(--bg-color-2);
}
.tag-reference-loading .icon {
    background-image: url(img/mini-loader.gif);
    background-position: 0 0;
}

.tag-reference-body {
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
    display: none;
    padding-top: 10px;
}
.tag-reference-body.expanded {
    padding-bottom: 10px;
    padding-left: 10px;
    display: block;
}
.ideditor[dir='rtl'] .tag-reference-body.expanded {
    padding-left: 0;
    padding-right: 10px;
}
.tag-reference-link {
    display: block;
}
.tag-reference-link .icon:first-child {
    margin-left: 0;
}

img.tag-reference-wiki-image {
    float: right;
    width: 33.3333%;
    border-radius: 4px;
    margin: 0 0 0 5px;
}
.ideditor[dir='rtl'] img.tag-reference-wiki-image {
    float: left;
    margin: 0 5px 0 0;
}

.preset-list .tag-reference-body {
    position: relative;
    width: 100%;
}
.raw-tag-editor .tag-reference-body {
    width: 100%;
}
.raw-tag-editor .tag-row.readonly .tag-reference-body {
    background: var(--bg-color-2);
    color: var(--text-color);
}
.raw-tag-editor .tag-row:not(:last-child) .tag-reference-body.expanded {
    border-bottom: 1px solid var(--border-color);
}
.raw-tag-editor .tag-row.readonly .tag-reference-body.expanded {
    border-top: 1px solid var(--border-color);
}


/* Raw Member / Membership Editor
------------------------------------------------------- */
.section-raw-member-editor .member-list:empty,
.section-raw-membership-editor .member-list:empty {
    display: none;
}

.section-raw-member-editor .member-list,
.section-raw-membership-editor .member-list {
    position: relative; /* required for drag-and-drop */
    padding-top: 5px;
}
.section-raw-member-editor .member-list li,
.section-raw-membership-editor .member-list li {
    position: relative;
    border-radius: 4px;
    margin: 0;
    padding-bottom: 10px;
}
/* only the raw-member-editor is reorederable, not the raw-membership-editor */
.section-raw-member-editor .member-row .label-text { cursor: grab; }
.section-raw-member-editor .member-row .label-text:active { cursor: grabbing; }

.section-raw-member-editor .member-row .member-entity-name,
.section-raw-membership-editor .member-row .member-entity-name {
    font-weight: normal;
    padding-left: 10px;
}

.combobox-parent-relation .has-colour::before {
    display: inline-block;
    content: '';
    margin-left: 2px;
    margin-right: 5px;
    border-style: solid;
    border-width: 4px;
    border-radius: 4px;
    border-color: inherit;
}
.section-raw-membership-editor .member-row img.member-entity-icon,
.section-raw-member-editor .member-row img.member-entity-icon {
    display: inline-block;
    width: auto;
    height: 18px;
    margin-left: 5px;
    margin-bottom: -4.5px;
}
.section-raw-membership-editor .member-row img.member-entity-icon.hide,
.section-raw-member-editor .member-row img.member-entity-icon.hide {
    display: none;
}
.section-raw-membership-editor .member-row span.member-entity-ref-color,
.section-raw-member-editor .member-row span.member-entity-ref-color,
.feature-list .feature-list-item span.member-entity-ref-color {
    display: inline-block;
    margin-left: 5px;
    margin-right: -5px;
    border-style: solid;
    border-width: 4px;
    border-radius: 10px;
    line-height: 10px;
}

.ideditor[dir='rtl'] .section-raw-member-editor .member-row .member-entity-name,
.ideditor[dir='rtl'] .section-raw-membership-editor .member-row .member-entity-name {
    padding-left:0;
    padding-right: 10px;
}
.ideditor[dir='rtl'] .section-raw-member-editor .member-row .member-entity-name.has-colour::before,
.ideditor[dir='rtl'] .section-raw-membership-editor .member-row .member-entity-name.has-colour::before,
.ideditor[dir='rtl'] .feature-list .entity-name.has-colour::before {
    margin-left: 5px;
    margin-right: -5px;
}
.ideditor[dir='rtl'] .combobox-parent-relation .has-colour::before  {
    margin-left: 5px;
    margin-right: 2px;
}


.form-field-input-member > input.member-role {
    border-radius: 0 0 4px 4px;
}

.member-row-new .member-entity-input {
    flex: 1 1 100%;
    border-radius: 4px 4px 0 0;
    border: 0;
}

.section-raw-member-editor .member-row.dragging {
    opacity: 0.75;
    z-index: 3000;
    /*
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
    */
}

/* add tag, add relation buttons */
.add-row {
    display: flex;
    width: 100%;
    flex-flow: row nowrap;
}
.add-row .add-tag,
.add-row .add-relation,
.add-row .space-value {
    flex: 1 1 50%;
}
.add-row .space-buttons {
    flex: 0 0 62px;
}
.add-row button {
    padding: 5px;
    background: rgba(0,0,0,.5);
}
.add-row button:focus,
.add-row button:active {
    background: rgba(0,0,0,.8);
}
@media (hover: hover) {
    .add-row button:hover {
        background: rgba(0,0,0,.8);
    }
}

.add-tag {
    border-radius: 0 0 4px 4px;
}
.add-tag button {
    visibility: hidden;
}
.add-tag input.key::placeholder {
    font-weight: normal;
}
.ideditor[dir='ltr'] .add-tag input.key {
    border-bottom-left-radius: 4px;
}
.ideditor[dir='rtl'] .add-tag input.key {
    border-bottom-right-radius: 4px;
}
.ideditor[dir='ltr'] .add-tag input.value {
    border-bottom-right-radius: 4px;
}
.ideditor[dir='rtl'] .add-tag input.value {
    border-bottom-left-radius: 4px;
}
.ideditor[dir='ltr'] .tag-row:has(+ .add-tag) button:last-child {
    border-bottom-right-radius: 4px;
}
.ideditor[dir='rtl'] .tag-row:has(+ .add-tag) button:last-child {
    border-bottom-left-radius: 4px;
}

.add-relation {
    margin-top: 10px;
    border-radius: 4px;
}


/* OSM Note / QA Editors
------------------------------------------------------- */
.note-header,
.qa-header {
    background-color: var(--bg-color-2);
    border-radius: 5px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.note-header-icon,
.qa-header-icon {
    background-color: var(--bg-color);
    padding: 10px;
    flex: 0 0 auto;
    position: relative;
    width: 60px;
    height: 60px;
    border-right: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
}
.ideditor[dir='rtl'] .note-header-icon,
.ideditor[dir='rtl'] .qa-header-icon {
    border-right: unset;
    border-left: 1px solid var(--border-color);
    border-radius: 0 5px 5px 0;
}

.note-header-icon .icon-wrap,
.qa-header-icon .icon-wrap {
    position: absolute;
    top: 0px;
}
.preset-icon-28 {
    position: absolute;
    top: 16px;
    left: 16px;
    margin: auto;
}
.preset-icon-28 .icon {
    width: 28px;
    height: 28px;
}

.note-header-label,
.qa-header-label {
    background-color: var(--bg-color-2);
    padding: 0 15px;
    flex: 1 1 100%;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
}
.ideditor[dir='rtl'] .note-header-label,
.ideditor[dir='rtl'] .qa-header-label {
    border-radius: 5px 0 0 5px;
}

.note-category {
    margin: 20px 0px;
}

.comments-container {
    background: var(--bg-color-3);
    padding: 1px 10px;
    border-radius: 8px;
    margin-top: 20px;
}

.comment {
    background-color: var(--bg-color);
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin: 10px auto;
    display: flex;
    flex-flow: row nowrap;
}
.comment-avatar {
    padding: 10px;
    flex: 0 0 auto;
}
.comment-avatar .icon.comment-avatar-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}
.comment-main {
    padding: 10px 10px 10px 0;
    flex: 1 1 100%;
    flex-flow: column nowrap;
    overflow: hidden;
    overflow-wrap: break-word;
}
.ideditor[dir='rtl'] .comment-main {
    padding: 10px 0 10px 10px;
}

.comment-metadata {
    flex-flow: row nowrap;
    justify-content: space-between;
}
.comment-author {
    font-weight: bold;
    color: var(--text-color);
}
.comment-date {
    color: var(--muted-text-color);
}
.inspector-hover .comment-text,
.comment-text {
    color: var(--text-color);
    margin-top: 10px;
    overflow-y: auto;
    max-height: 250px;
}
.comment-text::-webkit-scrollbar {
    border-left: none;
}

.note-save,
.qa-save {
    padding-top: 20px;
}

.qa-details-container {
    background: var(--bg-color-3);
    padding: 10px;
    margin-top: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.qa-details-description-text::first-letter {
    text-transform: capitalize;
}
.ideditor[dir='rtl'] .qa-details-description-text::first-letter {
    text-transform: none;  /* #5877 */
}
.qa-details-subsection h4 {
    padding-bottom: 2px;
}
.qa-details-subsection:not(:last-child) {
    margin-bottom: 10px;
}
.qa-details-subsection:empty {
    display: none;
}

.note-save .new-comment-input,
.qa-save .new-comment-input {
    width: 100%;
    height: 100px;
    max-height: 300px;
    min-height: 100px;
}

.note-save .detail-section,
.qa-save .detail-section {
    margin: 10px 0;
}

.note-report {
    float: right;
}


/* Custom Data Editor
------------------------------------------------------- */
.data-header {
    background-color: var(--bg-color-2);
    border-radius: 5px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.data-header-icon {
    background-color: var(--bg-color);
    padding: 10px;
    flex: 0 0 auto;
    position: relative;
    width: 60px;
    height: 60px;
    border-right: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
}
.ideditor[dir='rtl'] .data-header-icon {
    border-right: unset;
    border-left: 1px solid var(--border-color);
    border-radius: 0 5px 5px 0;
}

.data-header-icon .icon-wrap {
    position: absolute;
    top: 0px;
}

.data-header-label {
    background-color: var(--bg-color-2);
    padding: 0 15px;
    flex: 1 1 100%;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
}
.ideditor[dir='rtl'] .data-header-label {
    border-radius: 5px 0 0 5px;
}

.data-editor {
    padding: 20px;
}
/* custom data editor: no info/delete/add buttons */
.data-editor.raw-tag-editor .tag-row button,
.data-editor.raw-tag-editor .add-tag {
    display: none;
}
.data-editor.raw-tag-editor .tag-row .key-wrap,
.data-editor.raw-tag-editor .tag-row .value-wrap {
    width: 50%;
}
.data-editor.raw-tag-editor.tag-row {
    background-color: transparent;
}
.data-editor.raw-tag-editor li:first-child input.value {
    border-start-end-radius: 4px;
}
.data-editor.raw-tag-editor li:nth-last-child(2) input.key {
    border-end-start-radius: 4px;
}
.data-editor.raw-tag-editor li:nth-last-child(2) input.value {
    border-end-end-radius: 4px;
}


.over-map {
    position: relative;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    overflow: hidden;
}
.over-map > * {
    pointer-events: auto;
    z-index: 5;
}
/* offscreen this without hiding it */
.over-map .select-trap {
    position: absolute;
    right: -1000%;
    opacity: 0;
}

/* Map Controls
------------------------------------------------------- */
.map-controls-wrap {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 100;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.map-controls-wrap::-webkit-scrollbar {
    display: none;
}
.map-controls {
    right: 0;
    top: 0;
    width: 40px;
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    pointer-events: none;
}
.map-controls:before {
    content: '';
    display: inline-block;
    pointer-events: none;
    width: 40px;
    height: 100%;
    max-height: 70px;
    flex: 0 1 auto;
}
.ideditor[dir='rtl'] .map-controls {
    left: 0;
    right: auto;
}

.map-control {
    position: relative;
    display: flex;
    flex-direction: column;
}
.map-control > button {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,.5);
    border-radius: 0;
    pointer-events: auto;
}

.map-control > button:not(.disabled):focus,
.map-control > button:not(.disabled):active {
    background: rgba(0, 0, 0, .8);
}
.map-control > button.active,
.map-control > button.active:active {
    background: var(--link-color);
}
@media (hover: hover) {
    .map-control > button:not(.disabled):hover {
        background: rgba(0, 0, 0, .8);
    }
    .map-control > button.active:hover {
        background: var(--link-color);
    }
}

.map-control > button.disabled .icon {
    color: rgba(255, 255, 255, 0.5);
}


/* Fullscreen Button (disabled)
------------------------------------------------------- */
div.full-screen {
    /*display: inline-block;*/
    width: 40px;
    margin-right: 10px;
    display: none;
}

div.full-screen .tooltip {
    min-width: 160px;
}

div.full-screen > button, div.full-screen > button.active {
    width: 40px;
    height: 40px;
    background: transparent;
}
div.full-screen > button:active,
div.full-screen > button:focus {
    background-color: rgba(0, 0, 0, .8);
}
@media (hover: hover) {
    div.full-screen > button:hover {
        background-color: rgba(0, 0, 0, .8);
    }
}


/* Map Controls
------------------------------------------------------- */

/* Zoom in/out buttons */
.zoombuttons > button.zoom-in {
    border-radius: 4px 0 0 0;
}
.ideditor[dir='rtl'] .zoombuttons > button.zoom-in {
    border-radius: 0 4px 0 0;
}

/* Geolocate button */
.geolocate-control {
    margin-bottom: 10px;
}
.geolocate-control > button {
    border-radius: 0 0 0 4px;
}
.ideditor[dir='rtl'] .geolocate-control > button {
    border-radius: 0 0 4px 0;
}

/* Zoom to selection button */
.zoom-to-selection-control .icon {
    width: 22px;
    height: 22px;
}


/* Background / Map Data / Help Pane buttons
------------------------------------------------------- */
.background-control > button {
    border-radius: 4px 0 0 0;
}
.ideditor[dir='rtl'] .background-control > button {
    border-radius: 0 4px 0 0;
}

.help-control > button {
    border-radius: 0 0 0 4px;
}
.ideditor[dir='rtl'] .help-control > button {
    border-radius: 0 0 4px 0;
}


/* Background / Map Data Settings
------------------------------------------------------- */
.imagery-faq {
    margin-bottom: 10px;
    white-space: nowrap;
}

.layer-list, .controls-list {
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.layer-list > li {
    background-color: var(--bg-color);
    color: var(--link-color);
    position: relative;
    display: flex;
}

.layer-list:empty {
    display: none;
}

.layer-list > li:first-child {
    border-radius: 3px 3px 0 0;
}
.layer-list > li:last-child {
    border-radius: 0 0 3px 3px;
}
.layer-list > li:only-child {
    border-radius: 3px;
}
.layer-list li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}
.layer-list li:active {
    background-color: var(--bg-color-3);
}
@media (hover: hover) {
    .layer-list li:hover {
        background-color: var(--bg-color-3);
    }
}

.layer-list li.active button,
.layer-list li.switch button,
.layer-list li.active,
.layer-list li.switch {
    background: var(--selected-bg-color);
}

.layer-list li.best > div.best {
    padding: 5px;
    flex: 0 0 auto;
    align-self: center;
}

.ideditor[dir='rtl'] .list-item-data-browse svg {
    transform: rotateY(180deg);
}

/* make sure tooltip fits in map-control panel */
/* if too wide, placement will be wrong the first time it displays */
.layer-list li.best .popover-inner {
    max-width: 160px;
}

.layer-list label {
    padding: 5px 10px;
    cursor: pointer;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ideditor[dir='ltr'] .layer-list .indented label {
    padding-left: 24px;
}
.ideditor[dir='rtl'] .layer-list .indented label {
    padding-right: 24px;
}

.layer-list label > span {
    display: block;
    overflow: hidden;
    width: calc(100% - 20px); /* Ensures radio input width within flexbox */
}

.layer-list label span.localized-text {
    line-height: 0.95rem;
}

.layer-list input.list-item-input {
    height: 2.2em;
    padding: 0px 4px;
    width: 50%;
    min-width: 160px;
}

.map-data-pane .layer-list button,
.background-pane .layer-list button {
    border-left: 1px solid var(--border-color);
    border-radius: 0;
    padding-left: 4px;
    padding-right: 4px;
}
.ideditor[dir='rtl'] .map-data-pane .layer-list button,
.ideditor[dir='rtl'] .background-pane .layer-list button {
    border-left: none;
    border-right: 1px solid var(--border-color);
}

.map-data-pane .layer-list button .icon,
.background-pane .layer-list button .icon {
    opacity: 0.5;
}

.map-data-pane .layer-list button:last-of-type,
.background-pane .layer-list button:last-of-type {
    border-radius: 0 3px 3px 0;
}
.ideditor[dir='rtl'] .map-data-pane .layer-list button:last-of-type,
.ideditor[dir='rtl'] .background-pane .layer-list button:last-of-type {
    border-radius: 3px 0 0 3px;
}

.layer-list select {
    padding-left: 4px;
    padding-bottom: 1px;
}
.ideditor[dir='rtl'] .layer-list select {
    padding-left: 0px;
    padding-right: 4px;
}

.map-data-pane .vectortile-container .vectortile-header {
    padding-bottom: 5px;
}
.map-data-pane .vectortile-container .vectortile-footer {
    padding-bottom: 10px;
}


/* Issues
------------------------------------------------------- */
.issue {
    overflow: hidden;
}
.issue .issue-label,
.issue-label .issue-text {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    cursor: pointer;
    text-align: initial;
    background: none;
}

.issue-text .issue-icon {
    flex: 0 0 auto;
    padding: 2px 3px;
}
.issue-text .issue-message {
    flex: 1 1 auto;
    padding: 4px 5px;
}
.issue-label .issue-info-button {
    height: unset;
    width: 32px;
    flex: 0 0 auto;
    border-left: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0);
}
.ideditor[dir='rtl'] .issue-label .issue-info-button {
    border-left: 0;
    border-right: 1px solid var(--border-color);
}
.issue-container .issue-label .issue-info-button .icon {
    opacity: 0.5;
}
.issue-container.active .issue-label .issue-info-button .icon {
    opacity: 0.7;
}
.issue-label .issue-info-button:last-child {
    border-radius: 0 4px 4px 0;
}
.ideditor[dir='rtl'] .issue-label .issue-info-button:last-child {
    border-radius: 4px 0 0 4px;
}

/* suggestion styles */
.suggestions-list,
.suggestions-list *,
.issue-container.active .issue.severity-suggestion,
.issue-container.active .issue.severity-suggestion * {
    border-color: var(--suggestion-border-color);
}
.suggestions-list .issue.severity-suggestion .issue-label,
.issue.severity-suggestion .issue-fix-list,
.suggestion-section {
    background: var(--suggestion-bg-color);
}

.issue-container.active .issue.severity-suggestion .issue-label {
    background: var(--suggestion-label-color);
}

.issue.severity-suggestion .issue-icon {
    color: var(--suggestion-icon-color);
}

.issue.severity-suggestion .issue-fix-item button.actionable,
.issue-container.active .issue.severity-suggestion .issue-info-button {
    color: var(--suggestion-text-color);
    fill: var(--suggestion-text-color);
}
.suggestions-list .issue.severity-suggestion .issue-label:active,
.suggestions-list .issue.severity-suggestion .issue-label:focus,
.issue.severity-suggestion .issue-fix-item button.actionable:active,
.issue.severity-suggestion .issue-fix-item button.actionable:focus {
    background: var(--suggestion-highlight-color);
}
.issue.severity-suggestion .issue-fix-item button.actionable:active,
.issue.severity-suggestion .issue-fix-item button.actionable:focus,
.issue-container.active .issue.severity-suggestion .issue-info-button:active,
.issue-container.active .issue.severity-suggestion .issue-info-button:focus {
    color: var(--suggestion-highlight-text-color);
    fill: var(--suggestion-highlight-text-color);
}
@media (hover: hover) {
    .suggestions-list .issue.severity-suggestion .issue-label:hover,
    .issue.severity-warning .issue-fix-item button.actionable:hover {
        background: var(--suggestion-highlight-color);
    }
    .issue.severity-suggestion .issue-fix-item button.actionable:hover,
    .issue-container.active .issue.severity-suggestion .issue-info-button:hover {
        color: var(--suggestion-highlight-text-color);
        fill: var(--suggestion-highlight-text-color);
    }
}

/* warning styles */
.warnings-list,
.warnings-list *,
.issue-container.active .issue.severity-warning,
.issue-container.active .issue.severity-warning * {
    border-color: var(--warning-border-color);
}

.warnings-list .issue.severity-warning .issue-label,
.issue.severity-warning .issue-fix-list,
.warning-section {
    background: var(--warning-bg-color);
}

.issue-container.active .issue.severity-warning .issue-label {
    background: var(--warning-label-color);
}

.issue.severity-warning .issue-icon {
    color: var(--warning-icon-color);
}

.issue.severity-warning .issue-fix-item button.actionable,
.issue-container.active .issue.severity-warning .issue-info-button {
    color: var(--warning-text-color);
    fill: var(--warning-text-color);
}
.warnings-list .issue.severity-warning .issue-label:active,
.warnings-list .issue.severity-warning .issue-label:focus,
.issue.severity-warning .issue-fix-item button.actionable:active,
.issue.severity-warning .issue-fix-item button.actionable:focus {
    background: var(--warning-highlight-color);
}
.issue.severity-warning .issue-fix-item button.actionable:active,
.issue.severity-warning .issue-fix-item button.actionable:focus,
.issue-container.active .issue.severity-warning .issue-info-button:active,
.issue-container.active .issue.severity-warning .issue-info-button:focus {
    color: var(--warning-highlight-text-color);
    fill: var(--warning-highlight-text-color);
}
@media (hover: hover) {
    .warnings-list .issue.severity-warning .issue-label:hover,
    .issue.severity-warning .issue-fix-item button.actionable:hover {
        background: var(--warning-highlight-color);
    }
    .issue.severity-warning .issue-fix-item button.actionable:hover,
    .issue-container.active .issue.severity-warning .issue-info-button:hover {
        color: var(--warning-highlight-text-color);
        fill: var(--warning-highlight-text-color);
    }
}


/* error styles */
.errors-list,
.errors-list *,
.issue-container.active .issue.severity-error,
.issue-container.active .issue.severity-error * {
    border-color: var(--error-border-color);
}

.errors-list .issue.severity-error .issue-label,
.issue.severity-error .issue-fix-list,
.error-section {
    background: var(--error-bg-color);
}

.issue-container.active .issue.severity-error .issue-label {
    background: var(--error-label-color);
}

.issue.severity-error .issue-fix-item button.actionable,
.issue-container.active .issue.severity-error .issue-info-button {
    color: var(--error-text-color);
    fill: var(--error-icon-color);
}
.issue.severity-error .issue-icon {
    color: var(--error-icon-color);
}
.errors-list .issue.severity-error .issue-label:active,
.errors-list .issue.severity-error .issue-label:focus,
.issue.severity-error .issue-fix-item button.actionable:active,
.issue.severity-error .issue-fix-item button.actionable:focus {
    background: var(--error-highlight-color);
}
.issue.severity-error .issue-fix-item button.actionable:active,
.issue.severity-error .issue-fix-item button.actionable:focus,
.issue-container.active .issue.severity-error .issue-info-button:active,
.issue-container.active .issue.severity-error .issue-info-button:focus {
    color: var(--error-highlight-text-color);
    fill: var(--error-highlight-text-color);
}
@media (hover: hover) {
    .errors-list .issue.severity-error .issue-label:hover,
    .issue.severity-error .issue-fix-item button.actionable:hover {
        background: var(--error-highlight-color);
    }
    .issue.severity-error .issue-fix-item button.actionable:hover,
    .issue-container.active .issue.severity-error .issue-info-button:hover {
        color: var(--error-highlight-text-color);
        fill: var(--error-highlight-text-color);
    }
}


/* Issues Pane */
.issues-options-container {
    display: table;
}
.issues-option {
    display: table-row;
}
.issues-option-title {
    display: table-cell;
    font-weight: bold;
    padding-right: 10px;
}
.ideditor[dir='rtl'] .issues-option-title {
    padding-right: 0;
    padding-left: 10px;
}
.issues-option label {
    display: table-cell;
    padding: 0 10px;
    white-space: nowrap;
}

.layer-list.issues-list li.issue {
    border-color: inherit;    /* override .layer-list styles */
    color: inherit;
    height: unset;
}

.layer-list.issue-rules-list,
.layer-list.issues-list,
.layer-list.layer-feature-list {
    margin-bottom: 0;
}
.section-footer {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    height: 30px;
}
.section-footer a {
    padding: 5px;
}

.section-issues-status .box {
    border-radius: 4px;
    border: 1px solid var(--valid-border-color);
    background: var(--valid-bg-color);
    padding: 5px !important;
    display: flex;
}
.section-issues-status .icon {
    color: var(--valid-icon-color);
}

input.square-degrees-input {
    padding: 2px !important; /* important needed for rtl */
    width: 3em;
    height: 2em;
    text-align: center;
    background: rgba(0,0,0,0);
    color: currentColor;
}


/* Entity Issues List */
.section-entity-issues .issue-container .issue {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-color-2);
}
.section-entity-issues .issue-container:not(.active) .issue-text:active,
.section-entity-issues .issue-container:not(.active) .issue-text:focus,
.section-entity-issues .issue-container:not(.active) .issue-info-button:active,
.section-entity-issues .issue-container:not(.active) .issue-info-button:focus {
    background: var(--active-bg-color);
}
@media (hover: hover) {
    .section-entity-issues .issue-container:not(.active) .issue-text:hover,
    .section-entity-issues .issue-container:not(.active) .issue-info-button:hover {
        background: var(--active-bg-color);
    }
}
.section-entity-issues .issue .issue-label .issue-text {
    padding-right: 10px;
}
.ideditor[dir='rtl'] .section-entity-issues .issue .issue-label .issue-text {
    padding-right: unset;
    padding-left: 10px;
}

.section-entity-issues .issue-container.active .issue-label button.issue-text {
    font-weight: bold;
}
.section-entity-issues .issue-container:not(:last-of-type) {
    margin-bottom: 5px;
}
.section-entity-issues .issue-container.active:not(:first-of-type) {
    margin-top: 10px;
}
.section-entity-issues .issue-container.active:not(:last-of-type) {
    margin-bottom: 10px;
}

/* fixes */
.section-entity-issues .issue-fix-list {
    border-top: 1px solid;
    border-color: inherit;
}
.section-entity-issues .issue-container.active .issue-fix-list:empty {
    display: none;
}

li.issue-fix-item button {
    padding: 2px 10px 2px 20px;
    background: transparent;
    width: 100%;
    text-align: initial;
}
.ideditor[dir='rtl'] li.issue-fix-item button {
    padding: 2px 20px 2px 10px;
}
li.issue-fix-item:first-of-type button {
    padding-top: 5px;
}
li.issue-fix-item:last-of-type button {
    padding-bottom: 5px;
}

li.issue-fix-item button .fix-message {
    padding: 0 10px;
    vertical-align: middle;
}

li.issue-fix-item button.actionable {
    cursor: pointer;
}
li.issue-fix-item button:not(.actionable) .fix-icon {
    color: #555;
    fill: #555;
}

.issue-container:not(.active) ul.issue-fix-list {
    display: none;
}
.issue-container:not(.active) .issue-info {
    display: none;
}

.issue-info {
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
    display: none;
    padding: 10px 0;
}
.issue-info.expanded {
    display: inline-block;
}

.issue-info .issue-reference {
    margin-bottom: 10px;
}
.issue-info .tagDiff-table {
    min-width: 60%;
    width: unset;
    border: 1px solid var(--border-color);
}
.issue-info .tagDiff-row {
    border: 1px solid var(--border-color);
}
.issue-info .tagDiff-cell {
    padding: 2px 10px;
    font-family: monospace;
    font-size: 10px;
    border: 1px solid var(--border-color);
}
.issue-info .tagDiff-cell-add {
    background: var(--valid-bg-color);
}
.issue-info .tagDiff-cell-remove {
    background: var(--error-bg-color);
}


/* Background - Display Options Sliders
------------------------------------------------------- */
.display-options-container {
    padding: 10px;
}

.display-options-container label {
    padding-bottom: 0;
    padding-top: 10px;
}

.display-options-container label span {
    font-weight: bold;
    margin: 5px;
}

.display-control .control-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}
.display-control .display-option-input {
    height: 20px;
    flex: 1 1 100%;
}

.display-control button {
    height: 30px;
    width: 30px;
    margin-left: 5px;
    margin-right: 0px;
    vertical-align: text-bottom;
    border-radius: 4px;
    flex: 0 0 auto;
}
.ideditor[dir='rtl'] .display-control button {
    margin-left: 0px;
    margin-right: 5px;
}


/* Background - Adjust Alignment
------------------------------------------------------- */
.background-pane .nudge-container {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    position: relative;
}

.nudge-container .nudge-controls-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.nudge-container .nudge-outer-rect {
    background-color: var(--widget-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 45px;
    cursor: move;
    /* prevent scrolling pane while dragging on touchscreen */
    touch-action: none;
    /* disable drag-to-select */
    user-select: none;
    position: relative;
}

.nudge-container .nudge-inner-rect {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    width: 65%;
    min-height: 20px;
}

.nudge-container .nudge::after {
    content: '';
    display: block;
    position: absolute;
    margin: auto;
    left: 0; right: 0; top: 0; bottom: 0;
    height: 0;
    width: 0;
}

.nudge-container input {
    width: 100%;
    padding: 2px;
    text-align: center;
    border: 0;
}

.nudge-container input.error {
    border: 1px solid var(--warning-border-color);
    border-radius: 2px;
    background: var(--warning-bg-color);
}

.nudge-container button {
    position: absolute;
    height: 40px;
    width: 40px;
}
.nudge-container button.right,
.nudge-container button.left {
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    vertical-align: middle;
}
.nudge-container button.right {
    right: 0;
}
.nudge-container button.left {
    left: 0;
}
.nudge-container button.top,
.nudge-container button.bottom {
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}
.nudge-container button.top {
    top: 0;
}
.nudge-container button.bottom {
    bottom: 0;
}

.nudge-container button.nudge-reset {
    right: 0;
    bottom: 0;
}

.nudge-surface {
   position: absolute;
   z-index: 5000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background-color: transparent;
   cursor: move;
}

.background-pane .nudge.right::after {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--widget-color);
}

.background-pane .nudge.left::after {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid var(--widget-color);
}

.background-pane .nudge.top::after {
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 5px solid var(--widget-color);
}

.background-pane .nudge.bottom::after {
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 5px solid var(--widget-color);
}


/* Side Panes - Background / Map Data / Help
------------------------------------------------------- */
.map-panes {
    flex: 0 1 auto;
    position: relative;
    height: 100%;
    max-width: 100%;
}
.map-pane {
    position: relative;
    top: 0;
    width: 400px;
    max-width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.map-pane.help-pane {
    width: 600px;
}

.pane-heading {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    flex: 0 0 auto;
}

.pane-heading h2 {
    margin: 14px 20px;
}

.pane-heading button {
    width: 40px;
    border-radius: 0;
}

.pane-content {
    height: 100%;
    padding: 10px 50px 20px 20px;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
}
.ideditor[dir='rtl'] .pane-content {
    padding: 10px 20px 20px 50px;
}

.help-pane .pane-content > div {
    padding-bottom: 15px;
}


/* Help
------------------------------------------------------- */
.help-pane p {
    font-size: 15px;
    margin-bottom: 20px;
}

.help-pane .left-content .icon.inline,
.curtain-tooltip .icon.inline {
    margin-right: 0;
    margin-left: 0;
    height: 1.34em;
    width: 1.34em;
}

.help-pane .toc {
    width: 100%;
    max-width: 200px;
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 5px;
}

.help-pane .toc li a,
.help-pane .nav a {
    display: block;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
}

.help-pane .toc li a {
    border-bottom: 0;
}
.help-pane .toc li a:focus,
.help-pane .nav a:focus,
.help-pane .toc li a:active,
.help-pane .nav a:active {
    background: var(--bg-color-3);
}
@media (hover: hover) {
    .help-pane .toc li a:hover,
    .help-pane .nav a:hover {
        background: var(--bg-color-3);
    }
}

.help-pane .toc li a.selected {
    background: var(--selected-bg-color);
}

.help-pane .toc li:first-child a {
    border-radius: 4px 4px 0 0;
}

.help-pane .toc li:nth-last-child(3) a {
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px
}

.help-pane .toc li.shortcuts a,
.help-pane .toc li.walkthrough a {
    overflow: hidden;
    margin-top: 10px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 4px;
}

.help-pane .toc li.walkthrough a {
    text-align: center;
}

.help-pane .nav {
    position: relative;
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.help-pane .nav a {
    flex: 0 0 50%;
    text-align: center;
}

.help-pane .nav a:first-child {
    border-radius: 4px 0 0 4px;
}

.help-pane .nav a:last-child:not(:only-child) {
    border-radius: 0 4px 4px 0;
    border-left: 0;
}

.help-pane .nav a:only-child {
    flex: 0 0 100%;
    border-radius: 4px;
}


/* Inspector (hover styles)
------------------------------------------------------- */
.inspector-hover .section-entity-issues .issue-container .issue .issue-label,
.inspector-hover .form-field-input-wrap .label,
.inspector-hover .form-field-input-multicombo .chiplist,
.inspector-hover .form-field-button,
.inspector-hover .structure-extras-wrap,
.inspector-hover .comments-container .comment,
.inspector-hover button,
.inspector-hover input,
.inspector-hover textarea,
.inspector-hover label {
    background: var(--bg-color-3);
}
.inspector-hover .preset-list-button,
.inspector-hover .tag-row input {
    background: var(--bg-color-2);
}

.inspector-hover a,
.inspector-hover .form-field-input-multicombo .chip,
.inspector-hover .form-field-input-check span,
.inspector-hover .section-entity-issues .issue .icon {
    color: var(--passive-text-color);
}

.inspector-hover .form-field-input-multicombo .chip {
    background: var(--bg-color-3);
    border: 1px solid var(--border-color);
}

/* no scrollbars */
.inspector-hover div {
    overflow-x: visible;
    overflow-y: visible;
}

/* hide and remove from layout */
.inspector-hidden,
.inspector-hover .preset-list-button-wrap .tag-reference-button,
.inspector-hover label input[type="checkbox"],
.inspector-hover label input[type="radio"],
.inspector-hover .form-field-input-multicombo .input-wrap,
.inspector-hover .form-field-input-radio label,
.inspector-hover .form-field-input-radio label span,
.inspector-hover .form-field-input-radio label.remove .icon,
.inspector-hover .tag-row button,
.inspector-hover .tag-row.add-tag,
.inspector-hover .section-entity-issues .issue-container .issue-fix-list,
.inspector-hover .section-entity-issues .issue-container .issue-info-button {
    display: none;
}

/* hide but preserve in layout */
.inspector-hover .combobox-caret,
.inspector-hover .header button,
.inspector-hover .quick-links,
.inspector-hover .form-field-input-multicombo .chip .remove,
.inspector-hover .hide-toggle:before,
.inspector-hover .more-fields,
.inspector-hover .field-label button,
.inspector-hover .footer * {
    visibility: hidden;
}

/* Unstyle the active entity issue on hover */
.inspector-hover .section-entity-issues .issue-container.active {
    margin-top: 1px;
    margin-bottom: 1px;
}
.inspector-hover .section-entity-issues .issue-container * {
    border-color: var(--border-color) !important;
}
.inspector-hover .section-entity-issues .issue-container.active .issue-label {
    border-bottom: 0;
}
.inspector-hover .section-entity-issues .issue-container.active .issue-label button.issue-text {
    font-weight: normal;
}


/* Styles for raw tag inspector on hover */
.inspector-hover .tag-row .key-wrap,
.inspector-hover .tag-row .value-wrap {
    height: 31px;
}

.inspector-hover .tag-row:first-child input.value {
    border-top-right-radius: 4px;
}
.ideditor[dir='rtl'] .inspector-hover .tag-row:first-child input.value {
    border-top-right-radius: 0;
    border-top-left-radius: 4px;
}

.inspector-hover .tag-row:last-child input.value {
    border-bottom-right-radius: 4px;
}
.ideditor[dir='rtl'] .inspector-hover .tag-row:last-child input.value {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 4px;
}

.inspector-hover .tag-row:last-child input.key {
    border-bottom-left-radius: 4px;
}
.ideditor[dir='rtl'] .inspector-hover .tag-row:last-child input.key {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 4px;
}

.inspector-hover .more-fields {
    max-height: 0;
    margin-bottom: -10px;
}

/* Unstyle button fields */
.inspector-hover .form-field-input-radio label.active,
.inspector-hover .entity-editor-pane summary.hide-toggle {
    opacity: 1;
    background-color: transparent;
    color: var(--passive-text-color);
    padding-left: 0;
    border-width: 0;
}
.inspector-hover .form-field-input-radio button.active {
    padding-left: 10px;
}

/* Show placeholder on hover for radio buttons */
.inspector-hover .form-field-input-radio {
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 4px 4px;
}
.inspector-hover .form-field-input-radio .placeholder {
    opacity: 1;
    color: var(--passive-text-color);
    padding: 5px 10px;
    width: 100%;
    height: auto;
    border: 0;
}
.inspector-hover .form-field-input-radio .structure-extras-wrap {
    border: 0;
}


/* Raster Background Tiles
------------------------------------------------------- */
img.tile {
    position: absolute;
    transform-origin: 0 0;

    user-select: none;

    pointer-events: none;

    -webkit-user-drag: none;

    opacity: 1;
    transition: opacity 250ms linear;

    /* prevent brief flickering of "broken image" on tile loading errors, see https://zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ */
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.layer-overlay .img.tile,
.map-in-map-overlay .img.tile {
    /* dummy transition such that the `ontransitionend` event can be triggered, see https://github.com/openstreetmap/iD/pull/10785 */
    transition: opacity 1ms linear;
}

.layer-background .layer,
.map-in-map-background {
    filter: url(#alpha-slope5);
}

.layer-background img.tile-removing,
.layer-overlay img.tile-removing,
.map-in-map-background img.tile-removing,
.map-in-map-overlay img.tile-removing {
    opacity: 0;
    z-index: 1;
}

.tile-label-debug {
    font-size: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    position: absolute;
    text-align: center;
    padding: 5px;
    border-radius: 3px;
    z-index: 2;
    margin-left: -70px;
    margin-top: -20px;

    transform-origin: 0 0;

    user-select: none;
}

img.tile-debug {
    outline: 1px solid red;
}


/* Map
------------------------------------------------------- */
.main-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    background: #000;
    color: #333;
    user-select: none;
    touch-action: none;
    -webkit-touch-callout: none;
}
.main-map * {
    touch-action: none;
}

.supersurface {
    transform-origin: 0 0;
}

.supersurface, .layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.layer-background {
    z-index: 1;
}
.layer-overlay {
    z-index: 2;
}
.layer-data {
    z-index: 3;
}

/* Map-In-Map
------------------------------------------------------- */
.map-in-map {
    position: absolute;
    overflow: hidden;
    top: 10px;
    width: 200px;
    height: 150px;
    z-index: 2;
    background: #000;
    border: #aaa 1px solid;
    border-radius: 4px;
    box-shadow: 0 0 2em black;
}
.ideditor[dir='ltr'] .map-in-map {
    left: 10px;
}
.ideditor[dir='rtl'] .map-in-map {
    right: 10px;
}

.map-in-map-tiles {
    transform-origin: 0 0;
    user-select: none;
}

.map-in-map-viewport,
.map-in-map-data {
    top: 0;
    left: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.map-in-map-viewport {
    position: absolute;
}

.map-in-map-data {
    position: relative;
    z-index: 10;
}

.map-in-map-bbox {
    fill: none;
    stroke: rgba(255, 255, 0, 0.75);
    stroke-width: 1;
    shape-rendering: crispEdges;
}

.map-in-map-bbox.thick {
    stroke-width: 5;
}


/* Debug Data
------------------------------------------------------- */
.debug {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.map-in-map-data .debug {
    stroke-width: 1;
}

.nocolor { color: rgba(0, 0, 0, 0); }
.red     { color: rgba(255, 0, 0, 0.75); }
.green   { color: rgba(0, 255, 0, 0.75); }
.blue    { color: rgba(176, 176, 255, 0.75); }
.yellow  { color: rgba(255, 255, 0, 0.75); }
.cyan    { color: rgba(0, 255, 255, 0.75); }
.magenta { color: rgba(255, 0, 255, 0.75); }
.orange  { color: rgba(255, 153, 0, 0.75); }
.pink    { color: rgba(255, 0, 153, 0.75); }
.purple  { color: rgba(153, 0, 255, 0.75); }

.debug-legend {
    position: absolute;
    top: 70px;
    right: 80px;
    padding: 5px;
    border-radius: 4px;
    pointer-events: none;
}

.debug-legend-item {
    padding-right: 5px;
}
.debug-legend-item:before {
    content: "\25A0";
    padding: 0 5px;
}


/* Information Panels
------------------------------------------------------- */
.info-panels {
    display: flex;
    flex-flow: row wrap-reverse;
    justify-content: flex-end;
    width: 100%;
    z-index: 1;
    -ms-user-select: element;
    pointer-events: none;
    overflow: hidden;
}

.panel-container h1,
.panel-container h2,
.panel-container h3,
.panel-container h4,
.panel-container h5 {
    display: inline-block;
    margin-bottom: 0;
}

.panel-container h1,
.panel-container h2,
.panel-container h3 {
    color: #ff8;
}

.panel-container {
    flex: 0 0 auto;
    margin: 0 2px 2px 0;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.75);
    padding-bottom: 10px;
    width: 250px;
    max-width: 100%;
    pointer-events: auto;
}

.panel-container .panel-title {
    border-radius: 4px 4px 0 0;
}

.panel-title {
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
}

.panel-title button.close {
    padding: 2px;
    background: none;
    color: #ddd;
}
.ideditor[dir='rtl'] .panel-title button.close {
    float: left;
}
.panel-title button.close:focus,
.panel-title button.close:active {
    color: #fff;
}
@media (hover: hover) {
    .panel-title button.close:hover {
        color: #fff;
    }
}
.panel-title button.close .icon {
    height: 20px;
    width: 16px;
}

.panel-content {
    padding: 5px 10px;
    position: relative;
}

.panel-content ul:empty {
    display: none;
}

.panel-content li span:not(.localized-text) {
    display: inline-block;
    white-space: nowrap;
    margin: 0 8px;
}

.panel-content .button {
    display: inline-block;
    background: var(--link-color);
    border-radius: 2px;
    padding: 0 4px;
    margin-top: 10px;
    margin-right: 10px;
    color: #fff;
}
.ideditor[dir='rtl'] .panel-content .button {
    margin-right: auto;
    margin-left: 10px;
}

.panel-content-history .links a {
    margin-left: 8px;
}
.ideditor[dir='rtl'] .panel-content-history .links a {
    margin-left: auto;
    margin-right: 8px;
}
.panel-content-history h4 {
    padding-bottom: 0;
}
.panel-content-location .location-info {
    margin-top: 10px;
}


/* Map Footer
------------------------------------------------------- */
.map-footer {
    width: 100%;
    position: relative;
    border-radius: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    -ms-user-select: element;
    flex: 0 0 auto;
}

.map-footer-bar {
    pointer-events: all;
    display: block;
    height: 2.5em;
    position: relative;
}

.main-footer-wrap,
.flash-wrap {
    display: flex;
    flex: 0 0 100%;
    flex-flow: row nowrap;
    justify-content: space-between;
    height: 100%;
    position: absolute;
    right: 0;
    left: 0;
}

.footer-show {
    bottom: 0px;
    transition: bottom 75ms linear;
}

.footer-hide {
    bottom: -100%;
    transition: bottom 75ms linear;
}


/* Attribution
------------------------------------------------------- */
.attribution-wrap {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 0;
    pointer-events: none;
}

.attribution-wrap > * {
    pointer-events: auto;
}

.attribution-wrap .base-layer-attribution,
.attribution-wrap .overlay-layer-attribution {
    color: #ccc;
    font-size: 10px;
}
.attribution-wrap .overlay-layer-attribution {
    text-align: right;
}

.attribution-wrap .overlay-layer-attribution .attribution:not(:last-child):after {
    content: '; ';
}

.attribution-wrap .attribution a,
.attribution-wrap .attribution a:visited {
    color: #ccf;
}
.attribution-wrap .attribution a:focus,
.attribution-wrap .attribution a:hover {
    color: #aaf;
}
@media (hover: hover) {
    .attribution-wrap .attribution a:hover {
        color: #aaf;
    }
}

.attribution-wrap .attribution .source-image {
    height: 20px;
    vertical-align: middle;
    border-radius: 3px;
}

.attribution-wrap .attribution .attribution-text {
    background-color: rgba(0,0,0,0.33);
    border-radius: 4px;
    margin: 0 3px;
    padding: 3px 6px;
}


/* Footer - Flash messages
------------------------------------------------------- */
.flash-content {
    display: flex;
    flex: 1 0 auto;
    flex-flow: row nowrap;
    align-items: center;
    padding: 2px;
}

.flash-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0 8px;
}

.flash-icon circle {
    fill: #eee;
}
.flash-icon.disabled circle {
    cursor: auto;
    fill: rgba(255,255,255,0.7);
}

.flash-icon use {
    color: #222;
}
.flash-icon.disabled use,
.flash-icon.operation.disabled use {
    fill: rgba(32,32,32,0.7);
    color: #282828b3;
}

.flash-text {
    flex: 1 1 auto;
}

/* Scale bar
------------------------------------------------------- */
.map-footer-bar .scale-block {
    vertical-align: bottom;
    width: 250px;
    flex: 0 0 auto;
    user-select: none;
    height: 30px;
    align-self: center;
}

.scale-block .scale {
    height: 100%;
    width: 100%;
    cursor: pointer;
    display: block;
}
.ideditor[dir='rtl'] .scale-block .scale {
    transform: scaleX(-1);
}

.scale-block .scale-text {
    display: inline-block;
    position: absolute;
    color: #ccc;
    top: 0.45em;
}

.scale-block .scale path {
    fill: none;
    stroke: #ccc;
    stroke-width: 1;
    shape-rendering: crispEdges;
}

/* Footer - About, Source Switcher
------------------------------------------------------- */
.map-footer-bar .info-block {
    flex: 1 1 100%;
    overflow: hidden;
}

.map-footer-list {
    display: flex;
    flex-flow: row nowrap;
    height: 100%;
    justify-content: flex-end;
}

.map-footer-list li {
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 5px;
}
.ideditor[dir='ltr'] .map-footer-list li:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.5);
}
.ideditor[dir='rtl'] .map-footer-list li:not(:last-child) {
    border-left: 1px solid rgba(255,255,255,.5);
}
.map-footer-list li:empty {
    display: none;
}

.map-footer-list a.chip {
    padding: 1px 4px 1px 4px;
    border-radius: 2px;
    color: #eee;
}
.map-footer-list a.chip .icon {
    width: 14px;
    height: 14px;
    margin-top: -2px;
}
.map-footer-list a.chip span.count {
    margin: 0 3px;
}

.source-switch a.chip.live {
    background: #d32232;
    color: #fff;
}

.feature-warning a.chip {
    background: #1e90ff;
}

.issues-info a.chip.resolved-count {
    background: #15911E;
}
.issues-info a.chip.warnings-count {
    background: #DF8500;
}
.ideditor[dir='ltr'] .issues-info a.chip:not(:last-child) {
    margin-right: 5px;
}
.ideditor[dir='rtl'] .issues-info a.chip:not(:last-child) {
    margin-left: 5px;
}

.user-list a:not(:last-of-type):after {
    content: ', ';
}

.api-status {
    text-align: right;
    padding: 1px 10px;
    color: #eee;
    flex: 1 1 auto;
}
.ideditor[dir='rtl'] .api-status {
    text-align: left;
}
.api-status:empty {
    display: none;
}

.api-status.offline,
.api-status.readonly,
.api-status.error {
    background: #a22;
}

.api-status a {
    text-decoration: underline;
    color: #ccc;
    pointer-events: all;
}
.api-status a:focus,
.api-status a:active {
    color: inherit;
}
@media (hover: hover) {
    .api-status a:hover {
        color: inherit;
    }
}

.local-storage-full {
    display: block;
    width: 100%;
}

/* Notification Badges
------------------------------------------------------- */
/* For an icon (e.g. new version) */
.badge {
    display: inline-flex;
    background: #d32232;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}
.ideditor[dir='ltr'] .badge {
    margin-left: 6px;
}
.ideditor[dir='rtl'] .badge {
    margin-right: 6px;
}
.badge .icon {
    vertical-align: baseline;
    width: 11px;
    height: 11px;
    color: #fff;
    flex: 0 0 auto;
}

/* For text (e.g. upcoming events) */
.badge-text {
    display: inline-block;
    color: #fff;
    text-align: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    background: #f00;
    border-radius: 9px;
}
.ideditor[dir='rtl'] .badge-text {
    margin-left: 0;
    margin-right: 5px;
}


/* Modals / Prompts
------------------------------------------------------- */
.modal {
    top: 5%;
    max-height: 90%;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    margin: auto;
    z-index: 50;
    width: 80%;
    min-width: 200px;
    max-width: 550px;
    display: flex;
    flex-direction: column;
}

.modal .content {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal .loader {
    margin-bottom: 10px;
    filter: var(--bg-filter);
    mix-blend-mode: var(--mix-blend-mode);
}
.modal .description {
    text-align: center;
}

.shaded {
    z-index: 5000;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
}
.shaded:before {
    content:'';
    background: rgba(0,0,0,0.5);
    position: absolute;
    left: 0px; right: 0px; top: 0px; bottom: 0px;
}

.modal-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.modal-section p:not(:last-of-type) {
    padding-bottom: 20px;
}
.modal-section h4 {
    padding-bottom: 0;
}
.modal-section.buttons {
    text-align: center;
}

.modal-section.buttons button {
    min-width: 130px;
}

.modal-section.buttons .action {
    display: inline-block;
    margin: 0 10px;
}

.save-section .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.save-section .buttons .action,
.save-section .buttons .secondary-action {
    width: 45%;
    margin: 10px auto;
    text-align: center;
    vertical-align: middle;
}

.loading-modal {
    text-align: center;
}
.modal-actions {
    display: flex;
}
.modal-actions button {
    color: var(--link-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    min-height: 160px;
    text-align: center;
    width: 100%;
}

.logo-small {
    height: 40px;
    width: 40px;
    margin: auto;
}

.logo {
    height: 100px;
    width: 100%;
    max-width: 100px;
    margin: auto;
}

.modal-actions > :first-child {
    border-right: 1px solid var(--border-color);
}

.modal-section:last-child {
    border-bottom: 0;
}

/* Restore Modal
------------------------------------------------------- */
.modal-actions .logo-restore {
    color: var(--link-color);
}
.modal-actions .logo-reset {
    color: #e06c5e;
}

/* Success Screen / Community Index
------------------------------------------------------- */
.save-success.body {
    overflow-y: scroll;
    overflow-x: hidden;
}

.save-success .link-out {
    margin: 0px 5px;
}

.save-summary,
.save-supporting,
.save-communityLinks {
    padding: 0px 20px 15px 20px;
}

.save-supporting,
.save-communityLinks {
    border-top: 1px solid var(--border-color);
}

.save-success table,
.save-success p {
    margin-top: 15px;
}
.save-success h3 {
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.5;
    padding-bottom: 0;
}
.save-success td {
    vertical-align: top;
}
.save-success td.cell-icon {
    width: 40px;
}
.save-success td.cell-detail {
    padding: 0 10px;
}
.save-success td.community-detail {
    padding-bottom: 15px;
}
.save-success .community-table h3 {
    margin: 0;
}

.summary-view-on-osm,
.support-the-map,
.community-name {
    font-size: 14px;
    font-weight: bold;
}
.community-languages {
    margin-top: 5px;
    font-style: italic;
}
.community-languages:only-child {
    margin-top: 0;
}

.community-detail summary.hide-toggle {
    font-size: 12px;
    font-weight: normal;
    padding-bottom: 0;
}
.community-detail .hide-toggle svg.icon.pre-text {
    width: 12px;
    height: 15px;
}

.community-events {
    margin-top: 5px;
}

.community-event,
.community-more {
    background-color: var(--bg-color-2);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.community-event-name {
    font-size: 14px;
    font-weight: bold;
}
.community-event-when {
    font-weight: bold;
}

.community-missing {
    padding: 10px;
    text-align: center;
}


/* Splash Modal
------------------------------------------------------- */
.modal-actions .logo-walkthrough,
.modal-actions .logo-features {
    color: var(--link-color);
}

.modal-splash .section-preferences-third-party {
    margin-top: 20px;
}

.modal-splash .section-preferences-third-party .privacy-link {
    display: none;
}


/* Shortcuts Modal
------------------------------------------------------- */
.modal-shortcuts {
    width: 90%;
    max-width: 1050px;
}

.modal-shortcuts .modal-section:last-child {
    padding: 10px 15px 20px 15px;
    min-height: 275px;
}

.modal-shortcuts .tabs-bar {
    padding-bottom: 5px;
    text-align: center;
}

.modal-shortcuts a.tab {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
}
.modal-shortcuts a.tab.active {
    color: var(--link-color);
    border-bottom: 2px solid;
}
.modal-shortcuts a.tab:focus,
.modal-shortcuts a.tab:active {
    color: var(--link-focus-color);
    background-color: var(--bg-color-3);
}
@media (hover: hover) {
    .modal-shortcuts a.tab:hover {
        color: var(--link-focus-color);
        background-color: var(--bg-color-3);
    }
}

.modal-shortcuts .shortcut-tab {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

.modal-shortcuts .shortcut-column {
    width: auto;
}

.modal-shortcuts .shortcut-tab-tools .shortcut-column {
    flex: 1 1 100%;
    width: 100%;
}

.modal-shortcuts td {
    padding-bottom: 5px;
}

.modal-shortcuts .shortcut-section {
    padding: 20px 0 10px 0;
}

.modal-shortcuts .shortcut-keys {
    padding: 0 10px;
    text-align: right;
    white-space: nowrap;
}
.ideditor[dir='rtl'] .modal-shortcuts .shortcut-keys {
    text-align: left;
}

.modal-shortcuts .shortcut-keys .gesture {
    padding: 3px;
}


/* Settings Modals
------------------------------------------------------- */
.settings-modal textarea {
    height: 70px;
    width: 100%;
}

.settings-custom-background .instructions-template {
    margin-bottom: 20px;
}
.settings-custom-background .instructions-template p {
    margin-bottom: 0;
}
.settings-custom-background .instructions-template ul {
    padding-bottom: 20px;
}
.settings-custom-background .instructions-template ul li {
    list-style-type: disc;
    list-style-position: inside;
}

.settings-custom-data .instructions-url {
    margin-bottom: 10px;
}
.settings-custom-data .field-file,
.settings-custom-data .instructions-template {
    margin-bottom: 20px;
}


/* Save Mode
------------------------------------------------------- */
a.user-info {
    display: inline-block;
}

.commit-form {
    margin-bottom: 0;
}

.user-info img {
    float: left;
}

.note-save .field-warning,
.field-warning {
    background: var(--warning-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
}

.note-save .field-warning:empty,
.field-warning:empty {
    display: none;
}

.changeset-info,
.request-review,
.commit-info {
    margin-bottom: 10px;
}

.field-warning {
    margin-top: 10px;
}

.request-review label {
    cursor: pointer;
}

.changeset-list {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    margin-bottom: 10px;
    overflow: hidden;
}

.changeset-list li button {
    padding: 5px 10px;
    width: 100%;
    border-radius: 0;
    text-align: initial;
}
.changeset-list li {
    border-top: 1px solid var(--border-color);
}
.changeset-list li:first-child {
    border-top: 0;
}
.changeset-list .alert {
    opacity: 0.5;
}


/* Conflict resolution
------------------------------------------------------- */
.conflicts-help {
    padding: 20px;
    background-color: var(--warning-bg-color);
    border-bottom: 1px solid var(--border-color);
}

.conflicts-buttons {
    padding: 20px;
}

button.conflicts-button {
    float: left;
}

.conflict-container {
    border-bottom: 1px solid var(--border-color);
}

.conflict-description {
    padding: 5px 20px;
    display: block;
}

.conflicts-done {
    padding: 20px 20px 0 20px;
}

.conflict-detail-container {
    padding: 10px 20px;
}

.conflict-count {
    padding: 10px 20px;
}

.conflict-choices {
    margin-top: 10px;
}

.conflict-nav-buttons {
    padding: 10px 0 20px 0;
}

.conflict-nav-button {
    height: 30px;
}


/* Notices (Zoom in to Edit)
------------------------------------------------------- */
.notice {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    text-align: center;
}

.notice .zoom-to {
    margin: auto;
    width: 300px;
    padding: 20px 5px;
    font-size: 150%;
    border-radius: 8px;
    font-weight: bold;
}

.notice .zoom-to:focus,
.notice .zoom-to:active {
    background: rgba(0,0,0,0.6);
}
@media (hover: hover) {
    .notice .zoom-to:hover {
        background: rgba(0,0,0,0.6);
    }
}

.notice .zoom-to .icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
}
.ideditor[dir='rtl'] .notice .zoom-to .icon {
    margin-left: 10px;
    margin-right: 0;
}


/* Tooltips
------------------------------------------------------- */
.popover {
    position: absolute;
    display: none;
}
.tooltip {
    color: var(--text-color);
    font-size: 12px;
    white-space: initial;
}
.tooltip:not(.curtain-tooltip) {
    pointer-events: none;
}
.popover.in {
    z-index: 5000;
    height: auto;
    display: block;
}
.tooltip.in {
    opacity: 0.95;
}
.popover.top {
    margin-top: -4px;
}
.popover.right {
    margin-left: 4px;
}
.popover.bottom {
    margin-top: 4px;
}
.popover.left {
    margin-left: -4px;
}
.popover.arrowed.top {
    margin-top: -10px;
}
.popover.arrowed.right {
    margin-left: 10px;
}
.popover.arrowed.bottom {
    margin-top: 10px;
}
.popover.arrowed.left {
    margin-left: -10px;
}
.bar-button .tooltip.arrowed.bottom {
    margin-top: 20px;
}
.tooltip.top {
    text-align: center;
}
.tooltip.right {
    text-align: left;
}
.tooltip.bottom {
    text-align: center;
}
.tooltip.left {
    text-align: right;
}

.popover-inner {
    border-radius: inherit;
}

.tooltip .popover-inner {
    border-radius: 4px;
    max-width: 200px;
    min-width: 80px;
    padding: 10px;
    font-weight: normal;
    background-color: var(--bg-color);
}

.popover-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}
.popover.top .popover-arrow {
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
    border-top-color: var(--bg-color);
    border-width: 5px 5px 0;
}
.popover.right .popover-arrow {
    top: 50%;
    left: -5px;
    margin-top: -5px;
    border-right-color: var(--bg-color);
    border-width: 5px 5px 5px 0;
}
.popover.left .popover-arrow {
    top: 50%;
    right: -5px;
    margin-top: -5px;
    border-left-color: var(--bg-color);
    border-width: 5px 0 5px 5px;
}
.popover.bottom .popover-arrow {
    top: -5px;
    left: 50%;
    margin-left: -5px;
    border-bottom-color: var(--bg-color);
    border-width: 0 5px 5px;
}
.popover:not(.arrowed) .popover-arrow {
    display: none;
}

.tooltip-heading {
    font-weight: bold;
    background: var(--bg-color-2);
    padding: 10px;
    margin: -10px -10px 10px -10px;
    border-radius: 3px 3px 0 0;
    font-size: 14px;
}

.keyhint-wrap {
    background: var(--bg-color-2);
    padding: 10px;
    margin: 10px -10px -10px -10px;
    border-radius: 0 0 3px 3px;
}
.popover-inner .shortcut {
    font-weight: bold;
    margin-left: 5px;
}

.ideditor[dir='rtl'] .popover-inner .shortcut {
    margin-left: 0;
    margin-right: 5px;
}

/* dark tooltips for sidebar / panels */
.tooltip.dark.top .popover-arrow,
.map-pane .tooltip.top .popover-arrow,
.sidebar .tooltip.top .popover-arrow,
.modal .tooltip.top .popover-arrow {
    border-top-color: var(--dark-tooltip-bg-color);
}
.tooltip.dark.bottom .popover-arrow,
.map-pane .tooltip.bottom .popover-arrow,
.sidebar .tooltip.bottom .popover-arrow,
.modal .tooltip.bottom .popover-arrow {
    border-bottom-color: var(--dark-tooltip-bg-color);
}
.tooltip.dark.left .popover-arrow,
.map-pane .tooltip.left .popover-arrow,
.sidebar .tooltip.left .popover-arrow,
.modal .tooltip.left .popover-arrow {
    border-left-color: var(--dark-tooltip-bg-color);
}
.tooltip.dark.right .popover-arrow,
.map-pane .tooltip.right .popover-arrow,
.sidebar .tooltip.right .popover-arrow,
.modal .tooltip.right .popover-arrow {
    border-right-color: var(--dark-tooltip-bg-color);
}
.tooltip.dark .popover-inner,
.tooltip.dark .tooltip-heading,
.tooltip.dark .keyhint-wrap,
.map-pane .popover-inner,
.map-pane .tooltip-heading,
.map-pane .keyhint-wrap,
.sidebar .popover-inner,
.sidebar .tooltip-heading,
.sidebar .keyhint-wrap,
.modal .popover-inner {
    background: var(--dark-tooltip-bg-color);
    color: var(--dark-tooltip-text-color);
}
.tooltip.dark kbd,
.map-pane .tooltip kbd,
.sidebar .tooltip kbd {
    background-color: #666;
    border: solid 1px #444;
    border-bottom-color: #333;
    box-shadow: inset 0 -1px 0 #333;
    color: #eee;
}

/* Exceptions for tooltip layouts */

/* commit warning tooltips need to be closer */
.warning-section .tooltip.top {
    margin-top: -5px;
}

li:first-of-type .badge .tooltip,
li.hide + li.version .badge .tooltip {
    left: auto !important;
    right: 5px !important;
}
.ideditor[dir='rtl'] li:first-of-type .badge .tooltip,
.ideditor[dir='rtl'] li.hide + li.version .badge .tooltip {
    left: 5px !important;
    right: auto !important;
}
li:first-of-type .badge .tooltip .popover-arrow,
li.hide + li.version .badge .tooltip .popover-arrow {
    right: 15px !important;
    left: auto !important;
}
.ideditor[dir='rtl'] li:first-of-type .badge .tooltip .popover-arrow,
.ideditor[dir='rtl'] li.hide + li.version .badge .tooltip .popover-arrow {
    left: 15px !important;
    right: auto !important;
}


/* Contextual Edit Menu
------------------------------------------------------- */
.edit-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 4px;
    /* padding is set in edit_menu.js */
}

.edit-menu .tooltip {
    width: 200px; /* see also edit_menu.js */
}

.edit-menu-item {
    display: flex;
    align-items: center;
    border-radius: 0;
    padding: 0 12px;
    /* height is set in edit_menu.js */
}
.edit-menu-item .label {
    max-width: 120px;
    text-align: initial;
    line-height: 1.1em;
    font-weight: bold;
}
.ideditor[dir='ltr'] .edit-menu-item .label {
    margin-left: 8px;
}
.ideditor[dir='rtl'] .edit-menu-item .label {
    margin-right: 8px;
}

.edit-menu-item use {
    pointer-events: none;
}

/* Lasso
------------------------------------------------------- */
.lasso-path {
    fill-opacity: 0.3;
    stroke: #fff;
    stroke-width: 1;
    stroke-opacity: 1;
    stroke-dasharray: 5, 5;
}


/* Scrollbars
 ----------------------------------------------------- */
::-webkit-scrollbar {
    height: 10px;
    overflow: visible;
    width: 10px;
    border-left: 1px solid var(--border-color-2);
}

::-webkit-scrollbar-track {
    background-clip: padding-box;
    border: solid transparent;
    border-width: 0;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.2);
    background-clip: padding-box;
    border: solid transparent;
    border-width: 3px 3px 3px 4px;
    border-radius: 6px;
    cursor: auto;
}
::-webkit-scrollbar-track:active {
    background-color: rgba(0,0,0,.05);
}
@media (hover: hover) {
    ::-webkit-scrollbar-track:hover {
        background-color: rgba(0,0,0,.05);
    }
}
/* Firefox */
@-moz-document url-prefix() {
	* {
	    scrollbar-width: thin;
	}
}

:dir(rtl)::-webkit-scrollbar {
    border-right: 1px solid var(--border-color-2);
    border-left: none;
}
:dir(rtl)::-webkit-scrollbar-thumb {
    border-width: 3px 4px 3px 3px;
    border-radius: 6px;
}

/* Resize handles of textareas */
textarea::-webkit-resizer {
	background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAgMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0gMiA5IGwgNyAtNyBNIDYgOSBsIDMgLTMiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlPSIjOTk5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIC8+Cjwvc3ZnPg==") var(--bg-color);
	background-size: 12px 12px;
	background-position: bottom right;
	background-repeat: no-repeat;
}
textarea:active::-webkit-resizer,
textarea:focus::-webkit-resizer {
	background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAgMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0gMiA5IGwgNyAtNyBNIDYgOSBsIDMgLTMiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlPSIjOTk5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIC8+Cjwvc3ZnPg==") var(--active-bg-color);
	background-size: 12px 12px;
	background-position: bottom right;
	background-repeat: no-repeat;
}
textarea:dir(rtl)::-webkit-resizer {
	background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAgMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0gOCA5IGwgLTcgLTcgTSA0IDkgbCAtMyAtMyIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiM5OTkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgLz4KPC9zdmc+") var(--bg-color);
	background-size: 12px 12px;
	background-position: bottom left;
	background-repeat: no-repeat;
}
textarea:active:dir(rtl)::-webkit-resizer,
textarea:focus:dir(rtl)::-webkit-resizer {
	background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAgMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0gOCA5IGwgLTcgLTcgTSA0IDkgbCAtMyAtMyIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2U9IiM5OTkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgLz4KPC9zdmc+") var(--active-bg-color);
	background-size: 12px 12px;
	background-position: bottom left;
	background-repeat: no-repeat;
}


/* Intro walkthrough
 ----------------------------------------------------- */
.curtain {
    z-index: 1000;
    pointer-events: none;
    position: absolute;
}

.curtain-darkness {
    pointer-events: all;
    fill-opacity: 0.7;
    fill: #222;
    fill-rule: evenodd;
}

.intro-nav-wrap {
    display: flex;
    flex-direction: row;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    padding: 10px;
    z-index: 1001;
}

.intro-nav-wrap .intro-nav-wrap-logo {
    flex: 0 0 auto;
    height: 40px;
    width: 40px;
    color: #fff;
    margin: 0px 20px;
    vertical-align: middle;
}

.intro-nav-wrap .joined {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
}

.intro-nav-wrap button.chapter {
    flex: 1 1 100%;
    padding: 0px 5px;
    font-weight: bold;
}

.intro-nav-wrap button.chapter.next {
    animation-duration: 1s;
    animation-name: pulse;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
@keyframes pulse {
    from  { background: var(--link-color); }
    to    { background: var(--suggestion-label-color); }
}

.intro-nav-wrap button.chapter.finished {
    background: #8cd05f;
}

.intro-nav-wrap button.chapter .status {
    display: none;
}

.intro-nav-wrap button.chapter.finished .status {
    display: inline-block;
}

.curtain-tooltip {
    z-index: 1002;
}

.curtain-tooltip.tooltip.in {
    opacity: 1;
}
.curtain-tooltip.tooltip {
    text-align: left;
}
.ideditor[dir='rtl'] .curtain-tooltip.tooltip {
    text-align: right;
}

.curtain-tooltip .popover-inner {
    font-size: 15px;
    position: relative;
    padding: 20px;
}

.curtain-tooltip .popover-inner .button-section,
.curtain-tooltip .popover-inner .instruction {
    font-weight: bold;
    display: block;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 10px 20px 0 20px;
}

.curtain-tooltip .popover-inner .button-section button {
    width: 66.6666%;
}

.curtain-tooltip .popover-inner .instruction:only-child {
    border: 0;
    padding: 0;
    margin: 0;
}

.curtain-tooltip .popover-inner .icon.pre-text {
    vertical-align: text-top;
    margin-right: 0;
    margin-left: 0;
    display: inline-block;
}

.curtain-tooltip.intro-points-describe ,
.curtain-tooltip.intro-lines-name_road {
    top: 133px !important;
}

.tooltip-illustration {
    height: 80px;
    width: 200px;
    margin-left: -20px;
    margin-top: -10px;
}
.ideditor[dir='rtl'] .tooltip-illustration {
    margin-left: auto;
    margin-right: -20px;
}

.curtain-tooltip.intro-mouse {
    user-select: none;
}

.curtain-tooltip.intro-mouse .counter {
    position: absolute;
    display: block;
    top: 50px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 1003;
}

.curtain-tooltip.intro-mouse .tooltip-illustration use {
    fill: rgba(112, 146, 255, 0);
    color: rgba(112, 146, 255, 0);
}
.curtain-tooltip.intro-mouse.leftclick .tooltip-illustration use {
    fill: rgba(112, 146, 255, 1);
}
.curtain-tooltip.intro-mouse.rightclick .tooltip-illustration use {
    color: rgba(112, 146, 255, 1);
}

.huge-modal-button {
    width: 100%;
    padding: 20px;
}

.huge-modal-button .illustration {
    height: 100px;
    width: 100px;
    color: var(--link-color);
}
