/*
 * extract-dialog.css - styles for the popups in web/extract-dialog/<lang>/*.html,
 *                      except about.html, which has its own styles
 *
 * .dialog-popup  shared layout for all popups
 * .format-popup  extra rules for the format overview (format.html)
 */

.dialog-popup {
    --dp-green: #4a7a3d;
    --dp-dark: #24391f;
    --dp-tint: #eef3ea;
    --dp-grey: #555;
    --dp-box: #f4f5f2;
    font: 15px/1.45 Arial, Helvetica, sans-serif;
    color: #222;
}

/* title bar with the close icon, also for right-to-left */
.dialog-popup .dialog-title {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dp-tint);
    margin: 0;
    padding: 10px 16px;
    border: 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--dp-dark);
}

.dialog-popup .dp-title {
    flex: 1;
}

.dialog-popup .dialog-close {
    cursor: pointer;
    align-self: flex-start;
    flex: none;
    position: static !important;
    float: none !important;
    margin: 2px 0 0 !important;
}

.dialog-popup .dialog-msg {
    padding: 8px 16px 12px;
}

.dialog-popup p {
    margin: 0 0 10px;
}

.dialog-popup a {
    color: var(--dp-green);
}

/* a hint or warning in a grey box */
.dialog-popup .dp-note {
    background: var(--dp-box);
    border-radius: 8px;
    padding: 8px 12px;
}

/* example screenshots */
.dialog-popup img.dp-example {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* "more help" and other links at the bottom */
.dialog-popup .dp-links {
    text-align: center;
    font-size: 17px;
    margin: 14px 0 0;
}

.dialog-popup .dp-links a {
    margin: 0 6px;
}

.dialog-popup .dp-links span {
    color: var(--dp-grey);
}

/* search form */
.dialog-popup #search-form form {
    display: flex;
    gap: 8px;
}

.dialog-popup #address-query {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    padding: 6px 8px;
}

.dialog-popup #address-submit {
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    padding: 6px 14px;
    background: #eee;
    color: #222;
    border: 1px solid #999;
    border-radius: 4px;
    cursor: pointer;
}

/*
 * format.html
 */
.format-popup h3 {
    font-size: 15px;
    color: var(--dp-dark);
    margin: 14px 0 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--dp-tint);
}

.format-popup ul {
    margin: 0;
    padding: 0 0 0 20px;
    color: var(--dp-grey);
}

.format-popup[dir="rtl"] ul {
    padding: 0 20px 0 0;
}

.format-popup li {
    padding: 2px 0;
}

.format-popup li .dp-note {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}
