/* Правая карточка подбора экспертом */
.rel-blocks-wrapper .expert-card {
    background-color: #f6f7f9;
    flex: 1;
    border-radius: 20px;
    padding: 30px;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.rel-blocks-wrapper .expert-card *,
.rel-blocks-wrapper .expert-card *::before,
.rel-blocks-wrapper .expert-card *::after {
    box-sizing: border-box;
}

.rel-blocks-wrapper .expert-card .selection-title {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
}

.rel-blocks-wrapper .expert-card .selection-subtitle {
    font-size: 14px;
    color: #7a7a7a;
    margin: 0;
}

.rel-blocks-wrapper .expert-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rel-blocks-wrapper .expert-btn-wrapper {
    margin-top: auto;
    width: 100%;
    z-index: 2;
}

/* Декорация окна чата */
.rel-blocks-wrapper .chat-decor-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 210px;
    z-index: 1;
}

.rel-blocks-wrapper .chat-decor-window {
    background: #ffffff;
    border-radius: 16px 0 0 0;
    border-left: 1px solid #eef0f2;
    border-top: 1px solid #eef0f2;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.03);
}

.rel-blocks-wrapper .chat-message {
    font-size: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.2;
}

.rel-blocks-wrapper .chat-message-group {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.rel-blocks-wrapper .chat-avatar {
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f2;
    border-radius: 50%;
}

.rel-blocks-wrapper .incoming {
    background-color: #f0f2f5;
    color: #000000;
}

.rel-blocks-wrapper .outgoing {
    background-color: #000000;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.rel-blocks-wrapper .chat-input-mock {
    border-top: 1px solid #f0f2f5;
    padding-top: 6px;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rel-blocks-wrapper .mock-text {
    font-size: 9px;
    color: #bcbcbc;
}

.rel-blocks-wrapper .mock-arrow {
    color: #bcbcbc;
    font-size: 12px;
}

/* Адаптивность для мобильных */
@media (max-width: 868px) {
    .rel-blocks-wrapper .expert-card {
        min-height: auto;
        padding-right: 20px;
    }
    .rel-blocks-wrapper .expert-btn-wrapper {
        margin-top: 24px;
    }
    .rel-blocks-wrapper .expert-card .expert-action-btn {
        width: 100%;
        white-space: normal;
        text-align: center;
        padding: 10px;
        height: auto;
        min-height: 48px;
    }
    .rel-blocks-wrapper .chat-decor-wrapper {
        position: relative;
        align-self: center;
        width: 100%;
        max-width: 260px;
        margin-top: 20px;
    }
    .rel-blocks-wrapper .chat-decor-window {
        border-radius: 16px 16px 0 0;
        border-right: 1px solid #eef0f2;
    }
}

@media (max-width: 480px) {
    .rel-blocks-wrapper .expert-card {
        padding: 20px;
    }
    .rel-blocks-wrapper .expert-card .selection-title {
        font-size: 18px;
    }
}
