/* Всплывающая форма Битрикс №26 */
#popup_lp_block_1314067916 {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;
    width: 320px !important;
    max-width: calc(100vw - 20px);
}

#popup_lp_block_1314067916 .lp-form-3 {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

#popup_lp_block_1314067916 .lp-popup-body {
    box-sizing: border-box;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,.25);
}

#popup_lp_block_1314067916 .lp-form-3__title {
    font-size: 18px;
}

#popup_lp_block_1314067916 .lp-form-tpl form > table:first-of-type,
#popup_lp_block_1314067916 .lp-form-tpl form > br,
#popup_lp_block_1314067916 .lp-form-tpl form > p,
#popup_lp_block_1314067916 .form-table thead {
    display: none;
}

#popup_lp_block_1314067916 .form-table,
#popup_lp_block_1314067916 .form-table tbody,
#popup_lp_block_1314067916 .form-table tfoot,
#popup_lp_block_1314067916 .form-table tr,
#popup_lp_block_1314067916 .form-table td,
#popup_lp_block_1314067916 .form-table th {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    background: transparent;
}

#popup_lp_block_1314067916 .form-table tbody tr {
    margin-bottom: 10px;
}

#popup_lp_block_1314067916 .form-table td:first-child {
    margin-bottom: 4px;
    font-size: 13px;
}

#popup_lp_block_1314067916 input[type="text"],
#popup_lp_block_1314067916 input[type="email"],
#popup_lp_block_1314067916 textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

#popup_lp_block_1314067916 textarea {
    height: 70px;
    resize: vertical;
}

#popup_lp_block_1314067916 input[type="submit"] {
    width: 100%;
    padding: 10px;
    color: #fff;
    background: #20ba72;
    border: 0;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

#popup_lp_block_1314067916 input[type="reset"] {
    display: none;
}

/* Компактный вид всплывающей формы №26 */
#popup_lp_block_1314067916 .lp-popup-body {
    padding: 14px 16px;
    max-height: calc(100vh - 30px);
}

#popup_lp_block_1314067916 .lp-form-3__title-wrapper {
    margin-bottom: 10px;
}

#popup_lp_block_1314067916 .lp-form-3__subtitle {
    font-size: 12px;
    line-height: 1.35;
}

#popup_lp_block_1314067916 .form-table tbody tr {
    margin-bottom: 7px;
}

#popup_lp_block_1314067916 .form-table input[type="text"],
#popup_lp_block_1314067916 .form-table input[type="email"] {
    padding: 7px;
    height: 34px;
}

#popup_lp_block_1314067916 .form-table textarea {
    height: 55px;
    min-height: 55px;
}

#popup_lp_block_1314067916 .form-table tbody tr td:first-child {
    margin-bottom: 3px;
}

#popup_lp_block_1314067916 .form-table tbody tr:nth-child(3) td:last-child {
    font-size: 0;
}

#popup_lp_block_1314067916 .form-table tbody tr:nth-child(3) td:last-child input {
    font-size: 13px;
}

#popup_lp_block_1314067916 .form-table tfoot {
    margin-top: 8px;
}

/* Более компактное всплывающее окно */
#popup_lp_block_1314067916 .lp-popup-body {
    padding: 10px 14px;
    max-height: 70vh;
    overflow-y: auto;
}
#popup_lp_block_1314067916 .lp-form-3__title-wrapper {
    margin: 0 0 8px;
    padding: 0;
}
#popup_lp_block_1314067916 .lp-form-3__title {
    font-size: 16px;
    line-height: 1.2;
    margin: 0 0 4px;
}
#popup_lp_block_1314067916 .lp-form-3__subtitle {
    font-size: 12px;
    line-height: 1.25;
    margin: 0;
}
#popup_lp_block_1314067916 .form-table tbody tr {
    margin-bottom: 5px;
}
#popup_lp_block_1314067916 .form-table input[type="text"],
#popup_lp_block_1314067916 .form-table input[type="email"] {
    height: 30px;
    padding: 5px 7px;
}
#popup_lp_block_1314067916 .form-table textarea {
    height: 45px;
    min-height: 45px;
}
#popup_lp_block_1314067916 .form-table tfoot {
    margin-top: 5px;
}
/* Убираем дополнительную подпись ответа E-mail */
#popup_lp_block_1314067916 form[name="TRANSKAN_REQUEST_S3"] .form-table tbody tr:nth-child(2) td:nth-child(2) { font-size: 0; }
#popup_lp_block_1314067916 form[name="TRANSKAN_REQUEST_S3"] .form-table tbody tr:nth-child(2) td:nth-child(2) input { font-size: 13px; }

/* Компактное согласие и закреплённая кнопка */
#popup_lp_block_1314067916 .form-table tbody tr:last-child {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 7px;
}
#popup_lp_block_1314067916 .form-table tbody tr:last-child td:first-child {
    flex: 1;
    width: auto;
    font-size: 11px;
    line-height: 1.3;
}
#popup_lp_block_1314067916 .form-table tbody tr:last-child td:last-child {
    width: auto;
    flex: 0 0 auto;
}
#popup_lp_block_1314067916 .form-table tbody tr:last-child td:last-child label {
    display: none;
}
#popup_lp_block_1314067916 .form-table tfoot {
    position: sticky;
    bottom: -10px;
    z-index: 2;
    padding: 8px 0;
    background: #fff;
}
#popup_lp_block_1314067916 .form-table tfoot input[type="submit"] {
    display: block;
    width: 100%;
}
/* Убираем лишний отступ перед полем E-mail */
#popup_lp_block_1314067916 .form-table tbody tr:nth-child(2) td { margin: 0 !important; padding: 0 !important; }
#popup_lp_block_1314067916 .form-table tbody tr:nth-child(2) td:first-child { margin-bottom: 3px !important; }
#popup_lp_block_1314067916 .form-table tbody tr:nth-child(2) td:last-child { line-height: 0 !important; }
#popup_lp_block_1314067916 .form-table tbody tr:nth-child(2) input { display: block; margin: 0 !important; }

/* Кнопка консультанта */
.transkan-consultant-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99998;
    padding: 12px 24px;
    background: #18b96e;
    color: #fff;
    border: 0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
}
.transkan-consultant-button:hover {
    background: #12a45f;
}

/* Видимый крестик закрытия консультанта */
#popup_lp_block_1314067916 .lp-popup-body {
    position: relative !important;
}
#popup_lp_block_1314067916 .js-close-popup {
    display: flex !important;
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    left: auto !important;
    width: 28px !important;
    height: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    cursor: pointer !important;
    background: #f0f0f0 !important;
    border-radius: 50% !important;
}
#popup_lp_block_1314067916 .js-close-popup::after {
    content: "×";
    display: block;
    color: #333;
    font: 24px/1 Arial, sans-serif;
}
#popup_lp_block_1314067916 .js-close-popup ._close-line {
    display: none !important;
}
