/*
 * Local Architects. Flat selectors only (no native CSS nesting: old Safari drops such rules).
 */

.la-block {
    --la-line: #E0E7EA;
    --la-accent: #34ABBD;
    --la-danger: #D93C23;
}

/* The white area under the grey header */
.la-block .la-body {
    padding: 30px;
    background: #fff;
}

/* State and City stand one under the other, each over the full width */
.la-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.la-filters__item {
    flex: none;
    min-width: 0;
}

.la-filters__item .form-group {
    margin: 0;
}

.la-filters__item .select2-container .select2-selection--single,
.la-filters__item .select2-container--krajee-bs3 .select2-selection--single {
    height: 35px;
    border: 1px solid var(--la-line);
    border-radius: 4px;
}

.la-filters__item .select2-container .select2-selection__rendered {
    line-height: 33px;
}

.la-filters__item .select2-container--krajee-bs3 .select2-selection--single .select2-selection__arrow {
    height: 33px;
}

.la-select-all {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--la-accent);
    font-size: 14px;
    cursor: pointer;
}

.la-select-all[hidden] {
    display: none;
}

/* Five cards are visible, the rest is scrolled inside the list */
.la-list {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid var(--la-line);
    border-radius: 4px;
    overscroll-behavior: contain;
}

.la-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 90px;
    box-sizing: border-box;
    padding: 0 20px;
    border-bottom: 1px solid var(--la-line);
    background: #fff;
    cursor: pointer;
}

.la-card:last-child {
    border-bottom: 0;
}

.la-card:hover {
    background: #FAFAFA;
}

.la-card.is-hidden {
    display: none;
}

.la-card__avatar {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #E8EEEE;
}

.la-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.la-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-right: 24px;
}

.la-block .la-card__name {
    overflow: hidden;
    color: #003333;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.la-block .la-card__name:hover {
    color: var(--la-accent);
    text-decoration: underline;
}

.la-card__city {
    overflow: hidden;
    color: #5B7676;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.la-card__price {
    color: #003333;
    font-size: 15px;
    font-weight: 600;
}

/* The mark of the choice: top right corner of the card. It is a grey ring like the border of the card; the chosen card
   fills it with turquoise and shows the tick */
.la-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1px solid var(--la-line);
    border-radius: 50%;
    background: #fff;
    color: #fff;
}

.la-card__check svg {
    visibility: hidden;
}

.la-card.is-selected .la-card__check {
    border-color: var(--la-accent);
    background: var(--la-accent);
}

.la-card.is-selected .la-card__check svg {
    visibility: visible;
}

.la-card.is-selected {
    box-shadow: inset 0 0 0 1px var(--la-accent);
}

/* Send Request: grey until an author is chosen, then the red button of the site */
.la-send {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 12px 20px;
    border: 1px solid #D5DCDE;
    border-radius: 4px;
    background: #E8EBEC;
    color: #9AA6A8;
    font-size: 16px;
    cursor: not-allowed;
}

.la-send.is-active {
    border-color: var(--la-danger);
    background: var(--la-danger);
    color: #fff;
    cursor: pointer;
}

.la-send.is-active:hover {
    background: #c2351e;
}

/* The message pop-up */
.la-form__row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.la-form__name,
.la-form__country {
    flex: 1 1 0;
    min-width: 0;
}

.la-form__name .form-control {
    height: 40px;
}

.la-form__country .form-group {
    margin: 0;
}

.la-modal textarea.modal-form__textarea {
    min-height: 160px;
}

@media (max-width: 539px) {
    .la-block .la-body {
        padding: 20px 15px;
    }

    .la-filters,
    .la-form__row {
        flex-direction: column;
        gap: 10px;
    }

    /* In a column the basis 0 would make the height 0 */
    .la-filters__item,
    .la-form__name,
    .la-form__country {
        flex: none;
    }
}