+/* Buttons inside fields */
+.form-field-button {
+ flex: 0 0 32px;
+ height: 30px;
+ width: 32px;
+ position: relative;
+ background-color: #fff;
+ border: 1px solid #ccc;
+ border-radius: 0;
+ border-top-width: 0;
+ border-left-width: 0;
+ vertical-align: top;
+}
+[dir='rtl'] .form-field-button {
+ border-left-width: 1px;
+ border-right-width: 0;
+}
+.form-field-button:hover {
+ background-color: #f1f1f1;
+}
+.form-field-button .icon {
+ fill: #333;
+ opacity: .5;
+}
+
+
+/* round corners of first/last child elements */
+.form-field-input-wrap > button:last-of-type {
+ border-bottom-right-radius: 4px;
+}
+[dir='rtl'] .form-field-input-wrap > button:last-of-type {
+ border-bottom-left-radius: 4px;
+}
+
+
+/* Field - Access, Cycleway
+------------------------------------------------------- */
+.form-field-input-access,
+.form-field-input-cycleway {
+ flex: 1 1 auto;
+ display: flex;
+ flex-flow: row wrap;
+}
+
+/* Field - lists with labeled input items
+------------------------------------------------------- */
+.form-field ul.labeled-inputs {
+ flex: 1 1 auto;
+ border: 1px solid #ccc;
+ border-top: 0;
+ border-radius: 0 0 4px 4px;
+ overflow: hidden;
+ width: 100%;
+}
+.form-field ul.labeled-inputs li {
+ border-top: 1px solid #ccc;
+ display: flex;
+ flex-flow: row nowrap;
+}
+.form-field ul.labeled-inputs li:first-child {
+ border-top: 0;
+}
+.form-field ul.labeled-inputs li > span,
+.form-field ul.labeled-inputs li > div {
+ flex: 1 1 auto;
+ width: 100%;
+ border-radius: 0;
+}
+.form-field ul.labeled-inputs li input {
+ border-radius: 0;
+ width: 100%;
+}
+.form-field ul.labeled-inputs li input,
+.form-field ul.labeled-inputs li button {
+ border-width: 0;
+ border-left-width: 1px;
+}
+[dir='rtl'] .form-field ul.labeled-inputs li input,
+[dir='rtl'] .form-field ul.labeled-inputs li button {
+ border-left-width: 0;
+ border-right-width: 1px;
+}
+
+
+/* Field - Structure
+------------------------------------------------------- */
+.structure-extras-wrap {
+ width: 100%;
+ padding: 10px 10px;
+ background: #fff;
+ border: 1px solid #ccc;
+ border-top: 0px;
+ border-radius: 0 0 4px 4px;
+}
+.structure-extras-wrap > ul.labeled-inputs {
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+
+
+/* Field - Combo / Multicombo
+------------------------------------------------------- */
+.form-field-input-combo > input:only-of-type {
+ border-radius: 0 0 4px 4px;
+}
+.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-multicombo ul.chiplist {
+ padding: 5px 7px 5px 7px;
+ background: #fff;
+ display: block;
+ border-radius: 0 0 4px 4px;
+}
+
+.form-field-input-multicombo li.chips {
+ background-color: #eff2f7;
+ border: 1px solid #ccd5e3;
+ line-height: 25px;
+ padding: 2px 0px 2px 5px;
+}
+.form-field-input-multicombo li {
+ display: inline-flex;
+ flex-flow: row nowrap;
+ align-items: center;
+ margin: 3px;
+ border-radius: 4px;
+}
+
+.form-field-input-multicombo a {
+ font-family: Arial, Helvetica, sans-serif !important;
+ font-size: 16px !important;
+ line-height: 22px;
+ float: right;
+ padding: 0px 5px 0px 5px;
+ margin: 0;
+ cursor: pointer;
+ color: #a6b4ce;
+}
+
+.form-field-input-multicombo .input-wrap {
+ border: 1px solid #ddd;
+ width: 100px;
+ height: 31px;
+}
+.form-field-input-multicombo input {
+ border: none;
+ width: 100%;
+ height: 100%;
+}
+
+.form-field-input-multicombo input:focus {
+ border-radius: 4px !important;
+}
+
+.form-field-input-multicombo .full-line-chips li {
+ display: block;
+}
+.form-field-input-multicombo .full-line-chips li:not(:last-child) {
+ margin-bottom: 6px;
+}
+.form-field-input-multicombo .full-line-chips .input-wrap {
+ width: auto;
+}
+
+
+/* Field - Text / Numeric
+------------------------------------------------------- */
+.form-field-input-text > input:only-of-type,
+.form-field-input-tel > input:only-of-type,
+.form-field-input-email > input:only-of-type,
+.form-field-input-url > input:only-of-type {
+ border-radius: 0 0 4px 4px;
+}
+.form-field-input-number > input:only-of-type {
+ border-radius: 0 0 0 4px;
+}
+[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;
+}
+[dir='rtl'] .form-field-input-number > button:last-of-type {
+ border-radius: 0 0 0 4px;
+}
+
+/* draw the up/down on the buttons */
+.form-field-input-number button.decrement::after,
+.form-field-input-number 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 {
+ border-top: 5px solid #ccc;
+ border-left: 5px solid transparent;
+ border-right: 5px solid transparent;
+}
+.form-field-input-number button.increment::after {
+ border-bottom: 5px solid #ccc;
+ border-left: 5px solid transparent;
+ border-right: 5px solid transparent;
+}
+
+
+/* Field - Checkbox
+------------------------------------------------------- */
+.form-field-input-check {
+ display: flex;
+ align-items: end;
+ background: #fff;
+ padding: 5px 10px;
+ color: #7092ff;
+ border: 1px solid #ccc;
+ border-top: 0;
+ cursor: pointer;
+}
+.form-field-input-check > input[type="checkbox"] {
+ flex: 0 1 auto;
+ min-height: 20px;
+ width: 20px;
+}
+.form-field-input-check > span {
+ flex: 1 1 auto;
+}
+.form-field-input-check > .reverser.button {
+ flex: 0 1 auto;
+ background-color: #eff2f7;
+ border: 1px solid #ccd5e3;
+ border-radius: 2px;
+ padding: 0px 8px;
+}
+.form-field-input-check > .reverser.button.hide {
+ display: none;
+}
+
+.form-field-input-check:hover {
+ background: #f1f1f1;
+}
+.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;
+ width: 100%;
+ padding: 5px 10px;
+ height: 30px;
+ background-color: #fff;
+ color: #7092ff;
+ cursor: pointer;
+}
+.form-field-input-radio > label:last-child {
+ border-radius: 0 0 4px 4px;
+}
+.form-field-input-radio > label:hover {
+ background-color: #ececec;
+}
+.form-field-input-radio > label.active {
+ background-color: #e8ebff;
+}
+.form-field-input-radio > label:not(:last-of-type) {
+ border-bottom: 1px solid #ccc;
+}
+.form-field-input-radio > label > input[type="radio"] {
+ flex: 0 1 auto;
+ width: 20px;
+}
+.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;
+ line-height: 0;
+ display: block;
+ overflow: hidden;
+}
+
+
+/* Field - Maxspeed
+------------------------------------------------------- */
+.form-field-input-maxspeed > input:first-of-type {
+ border-radius: 0 0 0 4px;
+}
+[dir='rtl'] .form-field-input-maxspeed > input:first-of-type {
+ border-radius: 0 0 4px 0;
+}
+.form-field-input-maxspeed > input:last-of-type { /* unit field */
+ flex: 0 1 80px;
+ width: 80px;
+ border-left: 0;
+ border-radius: 0 0 4px 0;
+}
+[dir='rtl'] .form-field-input-maxspeed > 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;
+}
+[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;
+}
+[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: #777;
+ background-color: #eee;
+ 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: #ccc;
+ 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 #ccc;
+ border-top: 0px;
+}
+
+.addr-row {
+ flex: 1 1 auto;
+ display: flex;
+ width: 100%;
+ min-height: 30px;
+}
+
+.addr-row > input {
+ flex: 1 1 auto;
+ border-radius: 0;
+ border-right: 0;
+ border-bottom: 0;
+}
+[dir='rtl'] .addr-row input {
+ border-right: 1px solid #ccc;
+ border-left: 0;
+}
+
+.addr-row:first-of-type input {
+ border-top: 0;
+}
+.addr-row input:first-of-type {
+ border-left: 0;
+}
+[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;
+}
+[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;
+}
+[dir='rtl'] .addr-row:last-of-type input:last-of-type {
+ border-radius: 0 0 0 4px;
+}
+
+
+/* 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;
+}
+[dir='rtl'] .wiki-title-container > input.wiki-title {
+ border-radius: 0 0 4px 0;
+}
+.wiki-title-container > button.wiki-link {
+ border-radius: 0 0 4px 0;
+}
+[dir='rtl'] .wiki-title-container > button.wiki-link {
+ border-radius: 0 0 0 4px;
+}
+
+
+/* Field - Restriction Editor
+------------------------------------------------------- */
+.form-field-input-restrictions {
+ display: block;
+ border: 1px solid #ccc;
+ border-top: 0;
+ border-radius: 0 0 4px 4px;
+}
+
+.form-field-input-restrictions .restriction-controls-container {
+ background-color: #fff;
+ width: 100%;
+ padding: 5px;
+ border-top: 1px solid #ccc;
+ border-radius: 0 0 4px 4px;
+}
+
+.restriction-controls-container .restriction-controls {
+ display: table;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ 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;
+ 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: rgba(255, 255, 255, .8);
+ color: #888;
+ text-align: center;
+ pointer-events: none;
+
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.restriction-help span {
+ margin: 2px;
+}
+
+.restriction-help .qualifier {
+ 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) #preset-input-comment {
+ border-color: rgb(230, 100, 100);
+}
+.form-field-comment:not(.present) .form-field-label {
+ border-color: rgb(230, 100, 100);
+ background: rgba(230, 100, 100, 0.2);
+}
+.form-field-comment:not(.present) button {
+ border-color: rgb(230, 100, 100);
+}
+
+
+/* Field - Combobox
+------------------------------------------------------- */
+div.combobox {
+ z-index: 9999;
+ display: none;
+ box-shadow: 0 4px 10px 1px rgba(0,0,0,.2);
+ margin-top: -1px;
+ background: #fff;
+ max-height: 245px;
+ overflow-y: auto;
+ overflow-x: hidden;
+ border: 1px solid #ccc;
+ border-radius: 0 0 4px 4px;
+}
+
+.combobox a {
+ display: block;
+ padding: 5px 10px;
+ border-top: 1px solid #ccc;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+}
+
+.combobox a.selected,
+.combobox a:hover {
+ background: #ececec;
+}
+
+.combobox a:first-child {
+ border-top: 0;
+ padding: 4px 10px;
+}
+
+.combobox-caret {
+ display: inline-block;
+ position: relative;
+ height: 30px;
+ width: 30px;
+ margin-left: -30px;
+ vertical-align: top;
+ cursor: pointer;
+}
+[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 #ccc;
+ border-left: 5px solid transparent;
+ border-right: 5px solid transparent;
+}
+
+/* Remove the field's bottom border radius when combobox is open */
+/* For some reason this stops the combobox from overlapping the bottom of the field */
+.combobox + * textarea:focus,
+.combobox + * input:focus {
+ border-bottom-left-radius: 0 !important;
+ border-bottom-right-radius: 0 !important;
+}
+
+
+/* Field Help
+------------------------------------------------------- */
+.field-help-body {
+ display: block;
+ position: absolute;
+ top: 0;
+ left: 20px;
+ right: 20px;
+ margin: 5px;
+ padding: 8px;
+ border: 1px solid #ccc;
+ border-top: 0;
+ border-radius: 0 0 4px 4px;
+ z-index: 20;
+ background: rgba(255,255,255,0.95);
+ 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: 55px;
+ border-radius: 0;