/* Портфолио: всплывающая подпись при наведении.
   Оригинал (Flexbe) навешивает на .item класс .hover и задаёт .overlay
   высоту по содержимому — здесь то же самое, без правки сгенерированных стилей. */

[data-id="31262"] .item_list .item .overlay {
    will-change: height;
}

[data-id="31262"] .item_list .item.hover .overlay {
    z-index: 4;
}

[data-id="31262"] .item_list .item.hover .overlay .img_text {
    opacity: 1;
}

/* Яндекс.Карта недоступна (нет сети, блокировка, нет ключа API):
   вместо пустого места показываем адрес и ссылку на карту. */

[data-id="10010"] .map .map-js-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
    background: #f7f7f7;
    color: #2b2b2b;
}

[data-id="10010"] .map .map-js-fallback__title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
}

[data-id="10010"] .map .map-js-fallback__text {
    font-size: 15px;
    line-height: 1.4;
    color: #444;
    max-width: 320px;
    margin-bottom: 18px;
}

[data-id="10010"] .map .map-js-fallback__link {
    font-size: 15px;
    color: #005580;
    text-decoration: underline;
}

/* Формы в модальных окнах: ошибки полей и статус отправки. */

.modal-list .component-form .form-field.is_error .form-field-text__input,
.modal-list .component-form .form-field.is_error .form-field-select__input {
    border-color: #ff6b61;
}

.modal-list .component-form .form-status {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.modal-list .component-form .form-status--error {
    color: #d50505;
}

.modal-list .component-form .form-status--ok {
    color: #3e9802;
}

.modal-list .component-form .form-field-submit[disabled] {
    opacity: .6;
    pointer-events: none;
}
