/**
 * VTC Devis — Styles du bloc résultat, de l'autocomplétion et de la carte.
 * Volontairement sobre pour s'intégrer à la charte du thème / du formulaire.
 */

/* Bloc résultat ---------------------------------------------------------- */
.vtc-devis-resultat {
    margin-top: 1em;
}

.vtc-devis-resultat:empty {
    display: none;
}

.vtc-devis-resultat.is-loading p {
    opacity: 0.7;
    font-style: italic;
}

.vtc-devis-resultat.is-error p {
    color: #b32d2e;
}

.vtc-devis-resultat.is-ok {
    padding: 1em 1.25em;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fafafa;
}

.vtc-devis-distance {
    margin: 0 0 0.75em;
    font-size: 0.95em;
    color: #555;
}

.vtc-devis-trajet {
    margin: 0 0 0.35em;
    font-size: 0.95em;
}

.vtc-devis-trajet span {
    display: inline-block;
    min-width: 4.5em;
    font-weight: 600;
}

.vtc-devis-trajet em {
    color: #777;
    font-size: 0.85em;
}

.vtc-devis-supplements,
.vtc-devis-minimum {
    margin: 0 0 0.5em;
    font-size: 0.9em;
    color: #555;
}

.vtc-devis-total {
    margin: 0.25em 0;
    font-size: 1.35em;
}

.vtc-devis-total strong {
    font-weight: 700;
}

.vtc-devis-mention {
    margin: 0.75em 0 0;
    font-size: 0.8em;
    color: #888;
}

/* Autocomplétion --------------------------------------------------------- */
.vtc-devis-ac {
    position: absolute;
    z-index: 1000;
    left: 0;
    right: 0;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.vtc-devis-ac li {
    margin: 0;
    padding: 0.5em 0.75em;
    cursor: pointer;
    font-size: 0.9em;
}

.vtc-devis-ac li:hover {
    background: #f0f0f0;
}

/* Carte ------------------------------------------------------------------ */
#vtc-devis-carte {
    display: none;
    height: 300px;
    margin-top: 1em;
    border-radius: 8px;
    overflow: hidden;
}
