.byfa-consultation-button {
    align-items: center;
    background: linear-gradient(135deg, #16a34a 0%, #059669 52%, #047857 100%);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #fff;
    display: inline-flex;
    gap: 9px;
    justify-content: center;
    min-height: 54px;
    overflow: hidden;
    padding: 8px 13px;
    position: relative;
    transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.byfa-consultation-button:hover,
.byfa-consultation-button:focus-visible {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #059669 100%);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #fff;
    filter: saturate(1.08);
    transform: translateY(-1px);
}

.byfa-consultation-button:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.32);
    outline-offset: 3px;
}

.byfa-consultation-button__phone {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 15px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.byfa-consultation-button__label {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
    white-space: nowrap;
}

.byfa-consultation-button__supporters {
    align-items: center;
    direction: ltr;
    display: inline-flex;
    flex: 0 0 auto;
    margin-inline-start: 2px;
}

.byfa-consultation-button__avatar,
.byfa-consultation-button__more {
    align-items: center;
    background: #ecfdf5;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(6, 78, 59, 0.22);
    color: #065f46;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: 10px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    object-fit: cover;
    overflow: hidden;
    width: 30px;
}

.byfa-consultation-button__avatar + .byfa-consultation-button__avatar,
.byfa-consultation-button__more {
    margin-left: -8px;
}

.byfa-consultation-button__avatar--placeholder {
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
}

.byfa-consultation-button__more {
    background: #064e3b;
    color: #fff;
    letter-spacing: -0.02em;
}

.byfa-consultation-modal[hidden] {
    display: none;
}

.byfa-consultation-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 2147483600;
}

.byfa-consultation-modal__backdrop {
    background: rgba(17, 24, 39, 0.7);
    inset: 0;
    position: absolute;
}

.byfa-consultation-modal__dialog {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
    direction: rtl;
    max-height: min(760px, calc(80vh - 40px));
    max-width: 680px;
    outline: none;
    overflow: auto;
    position: relative;
    width: 100%;
}

.byfa-consultation-modal__header {
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 22px 24px 18px;
}

.byfa-consultation-modal__header h2 {
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
}

.byfa-consultation-modal__header p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
    margin: 4px 0 0;
}

.byfa-consultation-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 36px;
    font-family: Arial, sans-serif;
    font-size: 30px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 4px;
    width: 36px;
}

.byfa-consultation-modal__close:hover,
.byfa-consultation-modal__close:focus-visible {
    background: #ecfdf5;
    color: #047857;
    outline: 2px solid #10b981;
    outline-offset: 1px;
}

.byfa-consultation-modal__list {
    display: grid;
    gap: 12px;
    padding: 20px 24px 24px;
}

.byfa-consultation-card {
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
}

.byfa-consultation-card__identity {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.byfa-consultation-card__avatar {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    flex: 0 0 72px;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.byfa-consultation-card__avatar--placeholder {
    align-items: center;
    color: #047857;
    display: inline-flex;
    font-size: 25px;
    font-weight: 800;
    justify-content: center;
}

.byfa-consultation-card__details {
    min-width: 0;
}

.byfa-consultation-card__details h3 {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
}

.byfa-consultation-card__details strong {
    color: #047857;
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.byfa-consultation-card__details p {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.8;
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.byfa-consultation-card__actions {
    display: grid;
    gap: 9px;
    min-width: 200px;
}

.byfa-consultation-card__call {
    align-items: center;
    background: linear-gradient(135deg, #16a34a 0%, #059669 55%, #047857 100%);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.2);
    color: #fff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    text-decoration: none;
    letter-spacing: 2px;
}

.byfa-consultation-card__call:hover,
.byfa-consultation-card__call:focus-visible {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 55%, #059669 100%);
    color: #fff;
    outline: 3px solid rgba(16, 185, 129, 0.28);
    outline-offset: 2px;
}

.byfa-consultation-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
}

.byfa-consultation-card__socials a {
    align-items: center;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    transition: box-shadow 150ms ease, transform 150ms ease;
    width: 32px;
}

.byfa-consultation-card__socials a:hover,
.byfa-consultation-card__socials a:focus-visible {
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22);
    outline: 3px solid rgba(16, 185, 129, 0.24);
    outline-offset: 2px;
    transform: translateY(-3px) scale(1.04);
}

.byfa-consultation-card__social-icon {
    border-radius: 50%;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

body.byfa-consultation-modal-open {
    overflow: hidden;
}

body.byfa-consultation-modal-open .byfa-mobile-buy-bar,
body.byfa-consultation-modal-open .byfa-cart-toast {
    pointer-events: none !important;
    visibility: hidden !important;
}

@media (max-width: 640px) {
    .byfa-consultation-modal {
        align-items: flex-end;
        padding: 0;
    }

    .byfa-consultation-modal__dialog {
        border-bottom: 0;
        border-left: 0;
        border-radius: 8px 8px 0 0;
        border-right: 0;
        max-height: calc(80vh - 24px);
    }

    .byfa-consultation-modal__header {
        padding: 18px 16px 14px;
    }

    .byfa-consultation-modal__header h2 {
        font-size: 18px;
    }

    .byfa-consultation-modal__list {
        padding: 14px 16px 18px;
    }

    .byfa-consultation-card {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .byfa-consultation-card__avatar {
        flex-basis: 60px;
        height: 60px;
        width: 60px;
    }

    .byfa-consultation-card__actions {
        min-width: 0;
    }

    .byfa-consultation-button {
        gap: 7px;
        padding-inline: 10px;
        flex-direction: row-reverse;
    }

    .byfa-consultation-button__phone {
        flex-basis: 30px;
        height: 30px;
        width: 30px;
    }

    .byfa-consultation-button__avatar,
    .byfa-consultation-button__more {
        flex-basis: 27px;
        height: 27px;
        width: 27px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .byfa-consultation-modal__dialog {
        animation: byfa-consultation-enter 160ms ease-out;
    }

    @keyframes byfa-consultation-enter {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
