/* =========================================
   Проверка адреса
   ========================================= */

.address-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.address-field input {
    width: 100%;
}


/* -----------------------------------------
   Подсказки
   ----------------------------------------- */

.address-suggestions {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    display: none;

    max-height: 280px;
    overflow-y: auto;

    padding: 6px;

    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 14px;

    box-shadow: 0 15px 45px rgba(7, 26, 61, 0.14);
}

.address-suggestions.is-visible {
    display: block;
}


.address-suggestion {
    display: block;

    width: 100%;

    padding: 11px 13px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: var(--color-text);

    font: inherit;
    font-size: 15px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.address-suggestion:hover,
.address-suggestion:focus-visible {
    background: var(--color-blue-light);
    color: var(--color-primary);

    outline: none;
}


.address-suggestion-main {
    display: block;
}


.address-suggestion--empty {
    cursor: default;
    color: var(--color-text-light);
}

.address-suggestion--empty:hover {
    background: transparent;
    color: var(--color-text-light);
}


/* -----------------------------------------
   Поле дома
   ----------------------------------------- */

.address-field-house input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* -----------------------------------------
   Результат
   ----------------------------------------- */

.address-result {
    display: none;

    margin-top: 18px;
    padding: 16px 18px;

    border-radius: 14px;

    gap: 5px;
    flex-direction: column;
}

.address-result.is-visible {
    display: flex;
}

.address-result strong {
    font-size: 16px;
}

.address-result span {
    font-size: 14px;
    line-height: 1.5;
}


/* Успешная проверка */

.address-result--success {
    background: #edf9f3;
    color: #147a4a;
}


/* Ошибка / адрес не найден */

.address-result--error {
    background: #fff2f2;
    color: #b52f2f;
}


/* -----------------------------------------
   Кнопка
   ----------------------------------------- */

#garant-address-submit.is-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}