﻿:root {
    --accent-color: #178a3c;
}

html.wait, html.wait * {
    cursor: wait !important;
}

 .frd-form {
}

.frd-form-field-container {
    padding: 5px;
    border: none;
    outline: none;
}

.frd-form-field-label {
    font-weight: 600;
    padding-bottom: 10px;
}

.frd-form-field {
    display: block;
    position: relative;
    margin: 10px 0;
}

.frd-form-field-trailer-label{
    margin: 10px 0px;
    padding: 10px 5px;
    font-weight: 600;
}

.frd-form-field-wysiwyg {
    display: none;
}

.frd-error-class {
    color: red;
    display: normal;
}

.frd-noerror-class {
    display: none;
}

.frd-display-none {
    display: none;
}

.frd-form-field-required::after {
    color: red;
    font-weight: bold;
    content: " *";
}

    .frd-form-field label, .frd-form-field p {
        padding: 0;
        margin: 0;
        outline: none;
        font-family: Roboto, Arial, sans-serif;
        font-size: 14px;
        color: #666;
        line-height: 22px;
    }

.frd-form-field input, .frd-form-field select, .frd-form-field textarea {
    margin-bottom: 10px;
    margin-top: 6px;
    border: 1px solid var(--accent-color);
    border-radius: 3px;
}

.frd-form-field input {
    width: calc(100% - 10px);
    padding: 5px;
    height: 1.7em;
}

.frd-form-field select {
    padding: 5px;
    height: 2.7em;
}

.frd-form-field-container input[type="number"] {
    text-align: right;
}

.frd-form-field input[type="date"] {
    padding: 4px 5px;
    height: 1.7em;
}

.frd-form-field textarea {
    width: calc(100% - 12px);
    padding: 5px;
}

.frd-form-field:hover p, .frd-form-field:hover i, .question:hover p, .question label:hover, input:hover::placeholder {
    color: #006622;
}

.frd-form-field input:hover, .frd-form-field select:hover, .frd-form-field textarea:hover {
    border: 1px solid transparent;
    box-shadow: 0 0 3px 0 #006622;
    color: #006622;
}

.frd-link-button a {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 5px;
    border-radius: 3px;
    border: 2px solid #ffffff;
    text-decoration: none;
    font-family: 'Clarity City', sans-serif;
    font-size: 12px;
    font-weight: normal;
    display: inline-block;
}

    .frd-link-button a:hover {
        background-color: #ffffff;
        color: var(--accent-color);
        border: 1px solid var(--accent-color);
    }

input[type='file'] {
    font-size: 0;
} ::file-selector-button {
    font-size: initial;
}

.frd-taxonomy-list li::marker {
    display: none;
    content: '';
}

    .frd-taxonomy-list li input[type='checkbox'], .frd-taxonomy-list li input[type='radio'] {
        accent-color: var(--accent-color);
    }

.frd-annonce-image {
    height: 240px !important;
    width: 320px !important;
    object-fit: contain;
    object-position: top left;
}

/**
    Style par défaut des éléments générés par shortcode
*/

/** Tree View */
.frd-tree {
    --spacing: 1.5rem;
    --radius: 10px;
    font-family: "Clarity City", sans-serif;
    font-size: 16px;
    font-weight: 300;
}

    .frd-tree li {
        display: block;
        position: relative;
        padding-left: calc(2 * var(--spacing) - var(--radius) - 2px);
    }

    .frd-tree ul {
        margin-left: calc(var(--radius) - var(--spacing));
        padding-left: 0;
    }

        .frd-tree ul li {
            border-left: 2px solid #ddd;
        }

            .frd-tree ul li:last-child {
                border-color: transparent;
            }

            .frd-tree ul li::before {
                content: '';
                display: block;
                position: absolute;
                top: calc(var(--spacing) / -2);
                left: -2px;
                width: calc(var(--spacing) + 2px);
                height: calc(var(--spacing) + 1px);
                border: solid #ddd;
                border-width: 0 0 2px 2px;
            }

            .frd-tree ul li input[type=checkbox] {
                accent-color: var(--accent-color);
            }


    .frd-tree summary {
        display: block;
        cursor: pointer;
    }

        .frd-tree summary::marker {
            display: none;
        }

        .frd-tree summary:focus {
            outline: none;
        }

        .frd-tree summary:focus-visible {
            outline: 1px dotted #000;
        }

        .frd-tree summary::before {
            content: '';
            display: block;
            position: absolute;
            top: calc(var(--spacing) / 2 - var(--radius));
            left: calc(var(--spacing) - var(--radius) - 1px);
            width: calc(2 * var(--radius));
            height: calc(2 * var(--radius));
            border-radius: 50%;
            background: #ddd;
        }

    .frd-tree li::after {
    }

    .frd-tree summary::before {
        z-index: 1;
        background: #696 url('expand-collapse.svg') 0 0;
    }

    .frd-tree details[open] > summary::before {
        background-position: calc(-2 * var(--radius)) 0;
    }

.frd-location-search-field {
    display: grid;
    grid-template-columns: 1fr 35px;

    padding: 0.25rem 0.25rem;
    border: 1px solid var(--accent-color);
    border-radius: 3px;
}
    .frd-location-search-field input {
        border: 0px;
        padding: 0px 0px 0px 5px;
        outline: none;
    }

    .frd-location-search-field input:focus {
        outline: 1px solid var(--accent-color);
        border-radius: 3px;
    }

    .frd-location-search-field button {
        display: block;
        color: white;
        background: var(--accent-color);
        border: 1px solid var(--accent-color);
        border-radius: 3px;
        width: 80%;
        height: 100%;
        padding: 0px;
        margin-left: 7px;
    }

        .frd-location-search-field button:hover, .frd-location-search-field button:focus {
            color: var(--accent-color);
            background: white;
        }

.frd-location-city-list {
    margin: 8px 0 0 0;
    padding: 6px;
    list-style: none;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-height: 220px;
    overflow: auto;
    display: none;
}

    .frd-location-city-list.is-open {
        display: block;
    }

.frd-location-city-list-item {
    padding: 2px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    color: #111827;
    transition: background 0.15s ease;
}

    .frd-location-city-list-item:hover {
        background: rgba(17, 24, 39, 0.06);
    }

    .frd-location-city-list-item.is-active {
        background: rgba(30, 30, 81, 0.1);
        outline: 2px solid rgba(30, 30, 81, 0.2);
    }

.frd-location-empty {
    padding: 10px;
    font-size: 13px;
    color: rgba(17, 24, 39, 0.55);
}

.frd-location-published {
    font-weight: 600;
    padding-top: 20px;
    color: var(--accent-color);
}

/*  Actions */
.frd-action-ui {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 5px;
    border: 2px solid var(--accent-color);
    border-radius: 3px;
    color: var(--accent-color);
    background-color: #ffffff;
}

    .frd-action-ui a {
        color: var(--accent-color);
    }

    .frd-action-ui:hover {
        color: #ffffff;
        background-color: var(--accent-color);
    }

        .frd-action-ui:hover a {
            color: #ffffff;
        }
