:root {
    --vc-rdb-avatar-size: 40px;
    --vc-rdb-spacing-size: 8px;
}

.vc-rdb-badge {
    vertical-align: middle;
    margin-left: 4px;
}

.vc-rdb-input {
    margin-top: 6px;
    margin-bottom: 12px;
    resize: none;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--profile-message-input-border-color);
}

.vc-rdb-modal-footer-wrapper {
    width: 100%;
    margin: 6px 16px;
}

.vc-rdb-placeholder {
    margin-bottom: 4px;
    font-weight: bold;
    font-style: italic;
    color: var(--text-muted);
}

.vc-rdb-input * {
    font-size: 14px;
}

.vc-rdb-modal-footer {
    padding: 0;
}

.vc-rdb-modal-footer .vc-rdb-input {
    margin-bottom: 0;
    background: var(--input-background);
}

.vc-rdb-modal-footer [class|="pageControlContainer"] {
    margin-top: 0;
}

.vc-rdb-modal-header {
    flex-grow: 1;
}

.vc-rdb-modal-reviews {
    margin-top: 16px;
}

.vc-rdb-review-container {
    padding-top: var(--vc-rdb-spacing-size) !important;
    padding-bottom: var(--vc-rdb-spacing-size) !important;
    padding-right: 32px !important;
}

.vc-rdb-review-container:hover {
    background: var(--background-message-hover) !important;
    border-radius: 8px;
}

.vc-rdb-review-comment [class*="avatar"] {
    vertical-align: text-top;
}

.vc-rdb-review-comment {
    overflow-y: hidden;
    margin-top: 1px;
    margin-bottom: var(--vc-rdb-spacing-size);
    color: var(--text-normal);
    font-size: 15px;
}

.vc-rdb-blocked-badge {
    cursor: pointer;
}

.vc-rdb-block-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vc-rdb-block-modal {
    padding: 1em;
    display: grid;
    gap: 0.75em;
}

.vc-rdb-button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* stylelint-disable-next-line media-feature-range-notation */
@media (max-width: 600px) {
    .vc-rdb-button-grid {
        grid-template-columns: 1fr;
    }
}

.vc-rdb-block-modal-row {
    display: flex;
    height: 2em;
    gap: 0.5em;
    align-items: center;
}

.vc-rdb-block-modal-avatar {
    border-radius: 50%;
    height: 2em;
    width: 2em;
}

.vc-rdb-block-modal-avatar::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--background-modifier-accent);
}

.vc-rdb-block-modal-username {
    flex-grow: 1;
}

.vc-rdb-block-modal-unblock {
    cursor: pointer;
}

.vc-rdb-avatar {
    z-index: 1 !important;
}

.vc-rdb-white-line {
    position: absolute;
    left: calc(var(--vc-rdb-avatar-size) / 2);
    top: calc(var(--vc-rdb-avatar-size) + 2 * var(--vc-rdb-spacing-size));
    width: 2px;
    height: calc(100% - var(--vc-rdb-avatar-size) - 4 * var(--vc-rdb-spacing-size) - 2px);
    ;
    border-left: 3px solid gray;
}

.vc-rdb-reply-line {
    position: relative;
    border: 3px solid gray;
    border-top: none;
    border-right: none;
    border-bottom-left-radius: 20px;
    height: calc(8px);
    width: calc(24px);
    top: calc(var(--vc-rdb-avatar-size) / 2 + 4px);
    left: calc(var(--vc-rdb-avatar-size) * -2 - 4px);
}

.vc-rdb-profile-photo-container {
    position: relative;
}

.vc-rdb-buttons {
    opacity: 0;
}

.vc-rdb-reply:hover>.vc-rdb-buttons {
    opacity: 1;
}

.vc-rdb-review:hover>.vc-rdb-buttons {
    opacity: 1;
}
