

/* ==========================================
   КОНТЕЙНЕР ПОЛЯ
   ========================================== */

.field-content {
    position: relative;
}


/* ==========================================
   ВСПЛЫВАЮЩАЯ ПОДСКАЗКА EMAIL
   ========================================== */

.input-hint {
    position: absolute !important;

    /*
     Показываем подсказку НАД email-полем,
     чтобы она не залезала под телефон.
    */
    bottom: calc(100% + 8px) !important;
    top: auto !important;

    left: 0 !important;
    right: auto !important;

    width: max-content;
    max-width: 380px;
    min-width: 300px;

    box-sizing: border-box;

    padding: 14px 16px;

    background: #ffffff;

    border: 1px solid #d9d9d9;
    border-radius: 12px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

    z-index: 999999 !important;

    font-size: 14px;
    line-height: 1.4;

    color: #373A47;
}


/* ==========================================
   СТРЕЛОЧКА ПОДСКАЗКИ
   ========================================== */

.input-hint::before {
    content: "";

    position: absolute;

    bottom: -7px;
    top: auto;

    left: 24px;
    right: auto;

    width: 12px;
    height: 12px;

    background: #ffffff;

    border-right: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;

    transform: rotate(45deg);

    z-index: 1;
}


/* ==========================================
   ТЕКСТ
   "ВОЗМОЖНО, ВЫ ИМЕЛИ В ВИДУ"
   ========================================== */

.input-hint__title {
    position: relative;
    z-index: 2;

    margin: 0 0 5px 0;

    padding: 0;

    font-size: 13px;
    line-height: 1.4;

    font-weight: 400;

    color: #777777;
}


/* ==========================================
   ПРАВИЛЬНЫЙ EMAIL
   ========================================== */

.input-hint__email {
    position: relative;
    z-index: 2;

    margin: 0 0 12px 0;

    padding: 0;

    font-size: 15px;
    line-height: 1.4;

    font-weight: 500;

    color: #373A47;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* ==========================================
   КОНТЕЙНЕР КНОПОК
   ========================================== */

.input-hint__actions {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 8px;

    margin: 0;
    padding: 0;
}


/* ==========================================
   ОБЩИЕ НАСТРОЙКИ КНОПОК
   ========================================== */

.input-hint__yes,
.input-hint__no {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    margin: 0 !important;

    padding: 8px 12px !important;

    min-height: 34px;

    border: 0 !important;
    outline: none !important;

    border-radius: 8px !important;

    font-family: inherit;
    font-size: 13px !important;
    line-height: 1.2 !important;

    font-weight: 400;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}


/* ==========================================
   КНОПКА "ИСПРАВИТЬ"
   ========================================== */

.input-hint__yes {
    background: #363B48 !important;
    color: #ffffff !important;
}


/* ==========================================
   КНОПКА "НЕТ, ВСЁ ВЕРНО"
   ========================================== */

.input-hint__no {
    background: #f1f2f4 !important;
    color: #373A47 !important;
}


/* ==========================================
   HOVER
   ========================================== */

.input-hint__yes:hover,
.input-hint__no:hover {
    opacity: 0.88;
}


/* ==========================================
   НАЖАТИЕ
   ========================================== */

.input-hint__yes:active,
.input-hint__no:active {
    transform: scale(0.98);
}


/* ==========================================
   FOCUS
   УБИРАЕМ ЧЁРНУЮ РАМКУ
   ========================================== */

.input-hint__yes:focus,
.input-hint__no:focus,
.input-hint__yes:focus-visible,
.input-hint__no:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


/* ==========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================== */

@media (max-width: 768px) {

    .input-hint {
        bottom: calc(100% + 8px) !important;
        top: auto !important;

        left: 0 !important;
        right: auto !important;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 12px 14px;

        border-radius: 10px;

        font-size: 13px;
    }


    .input-hint::before {
        bottom: -7px;
        top: auto;

        left: 24px;
        right: auto;
    }


    .input-hint__title {
        margin-bottom: 4px;

        font-size: 12px;
    }


    .input-hint__email {
        margin-bottom: 10px;

        font-size: 14px;
    }


    .input-hint__actions {
        display: flex;

        width: 100%;

        gap: 6px;
    }


    .input-hint__yes,
    .input-hint__no {
        flex: 1;

        min-width: 0;

        padding: 9px 8px !important;

        font-size: 12px !important;

        white-space: nowrap;
    }

}
