/* Собственные компоненты сайта. Переопределения шаблона Crafto лежат в update.css. */

/* Поле-ловушка для ботов */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Плашка подтверждения города */
.city-prompt {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 340px;
    max-width: calc(100vw - 40px);
    padding: 20px;
    border-radius: 10px;
    background: #1d1d1d;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.city-prompt[hidden] {
    display: none;
}
.city-prompt-question {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}
.city-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}
.city-prompt-other summary {
    padding: 6px 0;
    color: #bbb;
    cursor: pointer;
    font-size: 15px;
}
.city-prompt-other ul {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}
.city-prompt-other a {
    display: block;
    padding: 3px 0;
    color: #fff;
    font-size: 15px;
}
.city-prompt-other a:hover {
    color: var(--base-color);
}
@media (max-width: 575px) {
    .city-prompt {
        left: 10px;
        right: 10px;
        bottom: 90px; /* выше кнопки виджета звонков */
        width: auto;
        max-width: none;
    }
}

/* Сообщение об ошибке отправки формы */
.form-alert {
    position: fixed;
    top: 100px;
    left: 50%;
    z-index: 1045;
    width: 480px;
    max-width: calc(100vw - 40px);
    padding: 18px 40px 18px 20px;
    border-radius: 10px;
    background: #fff;
    color: var(--dark-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
}
.form-alert p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}
.form-alert-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: none;
    color: var(--medium-gray);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
