.lk-payer-profiles-page {
    padding-bottom: 72px;
}

.lk-payer-profiles-page__breadcrumbs li:last-child span {
    color: var(--brown);
}

.lk-payer-profiles {
    width: 100%;
    margin-top: 28px;
}

.lk-payer-profiles__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.lk-payer-profiles__intro {
    max-width: 760px;
    margin: 0;
    color: var(--brown);
    font-size: 15px;
    line-height: 1.6;
}

.lk-payer-profiles__create,
.lk-payer-profiles__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    color: #fff;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.lk-payer-profiles__create {
    flex: 0 0 auto;
}

.lk-payer-profiles__create:hover,
.lk-payer-profiles__create:focus,
.lk-payer-profiles__save:hover,
.lk-payer-profiles__save:focus {
    color: #fff;
    background: var(--greenHover);
    border-color: var(--greenHover);
    text-decoration: none;
}

.lk-payer-profiles__message,
.lk-payer-profiles__no-fields {
    padding: 24px 28px;
    color: var(--brown);
    background: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

.lk-payer-profiles__message {
    margin-bottom: 24px;
}

.lk-payer-profiles__message p {
    margin: 0;
}

.lk-payer-profiles__message p + p {
    margin-top: 8px;
}

.lk-payer-profiles__message_success {
    color: var(--green);
    background: rgba(31, 133, 84, 0.10);
}

.lk-payer-profiles__message_error {
    color: #9e2b2b;
    background: #fff0f0;
}

.lk-payer-profiles__form-section {
    margin-bottom: 30px;
    padding: 30px;
    background: var(--gray);
    border: 1px solid var(--gray2);
}

.lk-payer-profiles__form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--gray2);
}

.lk-payer-profiles__form-title {
    margin: 0;
    color: var(--black);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.lk-payer-profiles__form-type {
    margin-top: 8px;
    color: var(--brown);
    font-size: 13px;
    line-height: 1.4;
}

.lk-payer-profiles__cancel,
.lk-payer-profiles__edit,
.lk-payer-profiles__delete {
    color: var(--green);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.lk-payer-profiles__cancel:hover,
.lk-payer-profiles__cancel:focus,
.lk-payer-profiles__edit:hover,
.lk-payer-profiles__edit:focus {
    color: var(--greenHover);
}

.lk-payer-profiles__person-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.lk-payer-profiles__person-type {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 16px;
    color: var(--brown);
    background: #fff;
    border: 1px solid var(--gray2);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.lk-payer-profiles__person-type:hover,
.lk-payer-profiles__person-type:focus {
    color: var(--green);
    border-color: var(--green);
    text-decoration: none;
}

.lk-payer-profiles__person-type.is-active {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.lk-payer-profiles__form {
    margin-top: 26px;
}

.lk-payer-profiles__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-top: 20px;
}

.lk-payer-profiles__control {
    min-width: 0;
}

.lk-payer-profiles__control_wide {
    grid-column: 1 / -1;
}

.lk-payer-profiles__control label {
    display: block;
    margin-bottom: 8px;
    color: var(--black);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.lk-payer-profiles__control label span {
    color: #c93434;
}

.lk-payer-profiles__control input,
.lk-payer-profiles__control textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    color: var(--black);
    background: #fff;
    border: 1px solid var(--gray2);
    border-radius: 0;
    outline: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.lk-payer-profiles__control textarea {
    min-height: 100px;
    resize: vertical;
}

.lk-payer-profiles__control input:hover,
.lk-payer-profiles__control textarea:hover {
    border-color: #bcbcbc;
}

.lk-payer-profiles__control input:focus,
.lk-payer-profiles__control textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(31, 133, 84, 0.12);
}

.lk-payer-profiles__form-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 26px;
}

.lk-payer-profiles__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.lk-payer-profiles__card {
    min-width: 0;
    padding: 28px 30px 30px;
    background: var(--gray);
    border: 1px solid transparent;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.lk-payer-profiles__card:hover {
    border-color: var(--gray2);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.lk-payer-profiles__card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--gray2);
}

.lk-payer-profiles__identity {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.lk-payer-profiles__avatar {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 16px;
    background: var(--green);
    border-radius: 50%;
}

.lk-payer-profiles__avatar::before {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 14px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    content: "";
}

.lk-payer-profiles__avatar::after {
    position: absolute;
    right: 10px;
    bottom: 9px;
    left: 10px;
    height: 11px;
    border: 2px solid #fff;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    content: "";
}

.lk-payer-profiles__heading {
    min-width: 0;
}

.lk-payer-profiles__card-title {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    color: var(--black);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.lk-payer-profiles__type {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    color: var(--green);
    background: rgba(31, 133, 84, 0.10);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.lk-payer-profiles__card-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    padding-top: 2px;
}

.lk-payer-profiles__delete-form {
    margin: 0;
}

.lk-payer-profiles__delete {
    padding: 0;
    color: #9e2b2b;
    background: none;
    border: 0;
}

.lk-payer-profiles__delete:hover,
.lk-payer-profiles__delete:focus {
    color: #c93434;
}

.lk-payer-profiles__fields {
    margin: 22px 0 0;
}

.lk-payer-profiles__field {
    display: grid;
    grid-template-columns: minmax(120px, 42%) minmax(0, 1fr);
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--gray2);
}

.lk-payer-profiles__field:first-child {
    padding-top: 0;
}

.lk-payer-profiles__field:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.lk-payer-profiles__field dt,
.lk-payer-profiles__field dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.45;
}

.lk-payer-profiles__field dt {
    color: var(--brown);
}

.lk-payer-profiles__field dd {
    color: var(--black);
    font-weight: 500;
}

.lk-payer-profiles__no-fields {
    margin-top: 22px;
    padding: 18px 20px;
    background: #fff;
}

@media (max-width: 1199px) {
    .lk-payer-profiles__card-header {
        display: block;
    }

    .lk-payer-profiles__card-actions {
        margin-top: 18px;
    }
}

@media (max-width: 991px) {
    .lk-payer-profiles__list {
        grid-template-columns: 1fr;
    }

    .lk-payer-profiles__card-header {
        display: flex;
    }

    .lk-payer-profiles__card-actions {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .lk-payer-profiles-page {
        padding-bottom: 48px;
    }

    .lk-payer-profiles {
        margin-top: 20px;
    }

    .lk-payer-profiles__header {
        display: block;
        margin-bottom: 22px;
    }

    .lk-payer-profiles__create {
        width: 100%;
        margin-top: 18px;
    }

    .lk-payer-profiles__form-section {
        padding: 22px 20px 24px;
    }

    .lk-payer-profiles__form-heading {
        display: block;
    }

    .lk-payer-profiles__form-title {
        font-size: 21px;
    }

    .lk-payer-profiles__form-heading > .lk-payer-profiles__cancel {
        display: inline-block;
        margin-top: 14px;
    }

    .lk-payer-profiles__form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lk-payer-profiles__form-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .lk-payer-profiles__form-actions .lk-payer-profiles__cancel {
        align-self: center;
    }

    .lk-payer-profiles__card {
        padding: 22px 20px 24px;
    }

    .lk-payer-profiles__card-header {
        display: block;
    }

    .lk-payer-profiles__card-actions {
        margin-top: 18px;
    }

    .lk-payer-profiles__field {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .lk-payer-profiles__control textarea {
        min-height: 128px;
        padding: 13px 14px;
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 479px) {
    .lk-payer-profiles__person-types {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lk-payer-profiles__person-type {
        justify-content: center;
    }

    .lk-payer-profiles__card-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

 

/*
 * Локальная фирменная палитра TAS.PRO.
 * Глобальные переменные шаблона не изменяются.
 */
.lk-payer-profiles__create,
.lk-payer-profiles__save {
    color: #fff;
    background: #1F8554;
    border-color: #1F8554;
    border-radius: 8px;
}

.lk-payer-profiles__create:hover,
.lk-payer-profiles__create:focus,
.lk-payer-profiles__save:hover,
.lk-payer-profiles__save:focus {
    color: #fff;
    background: #20563C;
    border-color: #20563C;
}

.lk-payer-profiles__cancel,
.lk-payer-profiles__edit {
    color: #1F8554;
}

.lk-payer-profiles__cancel:hover,
.lk-payer-profiles__cancel:focus,
.lk-payer-profiles__edit:hover,
.lk-payer-profiles__edit:focus {
    color: #20563C;
}

.lk-payer-profiles__person-type {
    border-radius: 8px;
}

.lk-payer-profiles__person-type:hover,
.lk-payer-profiles__person-type:focus {
    color: #1F8554;
    border-color: #1F8554;
}

.lk-payer-profiles__person-type.is-active {
    color: #fff;
    background: #1F8554;
    border-color: #1F8554;
}

.lk-payer-profiles__form-section,
.lk-payer-profiles__card {
    border-radius: 16px;
}

.lk-payer-profiles__message,
.lk-payer-profiles__no-fields {
    border-radius: 12px;
}

.lk-payer-profiles__control input,
.lk-payer-profiles__control textarea {
    border-radius: 8px;
}

.lk-payer-profiles__control input:focus,
.lk-payer-profiles__control textarea:focus {
    border-color: #1F8554;
    box-shadow: 0 0 0 2px rgba(0, 143, 120, 0.14);
}

.lk-payer-profiles__avatar {
    background: #1F8554;
}

.lk-payer-profiles__type {
    color: #1F8554;
    background: rgba(31, 133, 84, 0.10);
    border-radius: 999px;
}

 

/*
 * Усиленные локальные селекторы.
 * Они перекрывают поздний шаблонный CSS без использования !important.
 */
body .lk-payer-profiles__create,
body .lk-payer-profiles__save {
    color: #fff;
    background: #1F8554;
    border-color: #1F8554;
}

body .lk-payer-profiles__create:hover,
body .lk-payer-profiles__create:focus,
body .lk-payer-profiles__save:hover,
body .lk-payer-profiles__save:focus {
    color: #fff;
    background: #20563C;
    border-color: #20563C;
}

body .lk-payer-profiles__cancel,
body .lk-payer-profiles__edit {
    color: #1F8554;
}

body .lk-payer-profiles__cancel:hover,
body .lk-payer-profiles__cancel:focus,
body .lk-payer-profiles__edit:hover,
body .lk-payer-profiles__edit:focus {
    color: #20563C;
}

body .lk-payer-profiles__person-type:hover,
body .lk-payer-profiles__person-type:focus {
    color: #1F8554;
    border-color: #1F8554;
}

body .lk-payer-profiles__person-type.is-active {
    color: #fff;
    background: #1F8554;
    border-color: #1F8554;
}

body .lk-payer-profiles__control input:focus,
body .lk-payer-profiles__control textarea:focus {
    border-color: #1F8554;
    box-shadow: 0 0 0 2px rgba(0, 143, 120, 0.14);
}

body .lk-payer-profiles__avatar {
    background: #1F8554;
}

body .lk-payer-profiles__type {
    color: #1F8554;
    background: rgba(31, 133, 84, 0.10);
}

 
/* Палитра синхронизирована с --green и --greenHover шаблона TAS.PRO. */

 

/*
 * Фирменное скругление кнопок создания и сохранения.
 * Усиленная специфичность перекрывает поздний border-radius: 0
 * из общего шаблонного CSS.
 */
body .lk-payer-profiles__create,
body .lk-payer-profiles__save {
    border-radius: 8px;
}

 
.tas-payer-inn-status {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
}

.tas-payer-inn-status.is-info {
    color: #777;
}

.tas-payer-inn-status.is-success {
    color: #1f8554;
}

.tas-payer-inn-status.is-error {
    color: #c43b3b;
}
 


 

.lk-payer-profiles__message_legal {
    margin-top: 20px;
    margin-bottom: 24px;

    padding: 0 !important;

    background: transparent !important;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}
