@import url("/wp-content/themes/bigboom/css/rfj-red-swatches.css?v=1787855429");

.rfzj_advisor_card {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	width: 100%;
	max-width: 420px;
	padding: 16px;
	border: 1px solid var(--rfzj_color_border);
	border-radius: 18px;
	background: var(--rfzj_color_panel);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
}

.rfzj_advisor_card__avatar {
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 18px;
	background: #f5f5f7;
}

.rfzj_advisor_card__avatar img,
.rfzj_advisor_card__avatar_img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rfzj_advisor_card__body {
	min-width: 0;
}

.rfzj_advisor_card__head {
	display: flex;
	gap: 8px;
	align-items: center;
	min-width: 0;
}

.rfzj_advisor_card__name {
	overflow: hidden;
	color: var(--rfzj_color_text);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_advisor_card__name:hover,
.rfzj_advisor_card__name:focus {
	color: var(--rfzj_color_text);
	text-decoration: none;
}

.rfzj_advisor_card__badge {
	flex: 0 0 auto;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--rfzj_color_blue_soft);
	color: var(--rfzj_color_blue);
	font-size: 12px;
	font-weight: 800;
	line-height: 22px;
}

.rfzj_advisor_card__role,
.rfzj_advisor_card__meta {
	margin: 6px 0 0;
	color: var(--rfzj_color_subtle);
	font-size: 13px;
	line-height: 1.35;
}

.rfzj_advisor_card__company {
	display: block;
	overflow: hidden;
	margin-top: 7px;
	color: var(--rfzj_color_muted);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_advisor_card__company:hover,
.rfzj_advisor_card__company:focus {
	color: var(--rfzj_color_blue);
	text-decoration: none;
}

.rfzj_advisor_card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rfzj_advisor_card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.rfzj_advisor_card__action {
	min-width: 0;
	height: 30px;
	padding: 0 13px;
	font-size: 14px;
	line-height: 30px;
}

.rfzj_button--pill.rfzj_advisor_card__action--secondary {
	background: #fff;
	box-shadow: inset 0 0 0 1px #dce1e8;
}

.rfzj_button--pill.rfzj_advisor_card__action--secondary:hover,
.rfzj_button--pill.rfzj_advisor_card__action--secondary:focus {
	background: #f5f6f8;
}

@media (max-width: 640px) {
	.rfzj_advisor_card {
		max-width: none;
		grid-template-columns: 64px minmax(0, 1fr);
		border-radius: 16px;
	}

	.rfzj_advisor_card__avatar {
		width: 64px;
		height: 64px;
		border-radius: 16px;
	}
}

/* Featured advisor card: the system variant used by the homepage carousel. */
.rfzj_advisor_card--featured {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 320px;
	min-height: 310px;
	padding: 22px 16px 18px;
	border: 1px solid var(--rfzj_color_border, #e1e5ec);
	border-radius: 12px;
	background: var(--rfzj_color_panel, #fff);
	box-shadow: 0 2px 10px rgba(20, 32, 51, .06);
	text-align: center;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rfzj_advisor_card--featured:hover {
	border-color: var(--rfj-red-f0b8b8);
	box-shadow: 0 10px 26px rgba(20, 32, 51, .1);
	transform: translateY(-2px);
}

.rfzj_advisor_card__featured_avatar {
	display: block;
	width: 96px;
	height: 96px;
	margin-bottom: 12px;
	overflow: hidden;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #f5f5f7;
	box-shadow: 0 8px 18px rgba(20, 32, 51, .12);
}

.rfzj_advisor_card__featured_avatar img,
.rfzj_advisor_card__featured_avatar .rfzj_advisor_card__avatar_img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rfzj_advisor_card__featured_content {
	width: 100%;
	min-width: 0;
}

.rfzj_advisor_card__featured_name {
	display: block;
	overflow: hidden;
	margin-bottom: 4px;
	color: var(--rfzj_color_text, #1f2937);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_advisor_card__featured_name:hover,
.rfzj_advisor_card__featured_name:focus,
.rfzj_advisor_card__featured_company a:hover,
.rfzj_advisor_card__featured_company a:focus {
	color: var(--rfzj_color_blue, #1677ff);
	text-decoration: none;
}

.rfzj_advisor_card__featured_role,
.rfzj_advisor_card__featured_company {
	overflow: hidden;
	min-height: 22px;
	margin: 0;
	color: var(--rfzj_color_muted, #7a8495);
	font-size: 13px;
	line-height: 22px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_advisor_card__featured_company a {
	color: inherit;
	text-decoration: none;
}

.rfzj_advisor_card__featured_role.is-empty,
.rfzj_advisor_card__featured_company.is-empty,
.rfzj_advisor_card__featured_service.is-empty {
	visibility: hidden;
}

.rfzj_advisor_card__featured_service {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 26px;
	margin: 9px auto 0;
	padding: 4px 11px;
	border-radius: 999px;
	background: #eef8f2;
	color: #0f7a3a;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
}

.rfzj_advisor_card__featured_actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	margin-top: 14px;
}

.rfzj_advisor_card__featured_action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.rfzj_advisor_card__featured_action:hover,
.rfzj_advisor_card__featured_action:focus {
	color: #fff;
	text-decoration: none;
}

.rfzj_advisor_card__featured_action--enquiry {
	color: #1677ff;
}

.rfzj_advisor_card__featured_action--enquiry:hover,
.rfzj_advisor_card__featured_action--enquiry:focus {
	border-color: #1677ff;
	background: #1677ff;
}

.rfzj_advisor_card__featured_action--chat {
	color: #08a66c;
}

.rfzj_advisor_card__featured_action--chat:hover,
.rfzj_advisor_card__featured_action--chat:focus {
	border-color: #08a66c;
	background: #08a66c;
}

.rfzj_advisor_card__featured_action--phone {
	color: var(--rfj-red-legacy-brand);
}

.rfzj_advisor_card__featured_action--phone:hover,
.rfzj_advisor_card__featured_action--phone:focus {
	border-color: var(--rfj-red-legacy-brand);
	background: var(--rfj-red-legacy-brand);
}

@media (max-width: 640px) {
	.rfzj_advisor_card--featured {
		max-width: 320px;
		min-height: 296px;
		padding: 18px 14px 16px;
		border-radius: 12px;
	}

	.rfzj_advisor_card__featured_avatar {
		width: 88px;
		height: 88px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rfzj_advisor_card--featured,
	.rfzj_advisor_card__featured_action {
		transition: none;
	}
}

/* Advisor finder variants are portable outside page-advisors.css. */
.rfzj_advisor_card--finder {
	display: flex;
	gap: 12px;
	min-width: 0;
	padding: 14px;
	border: 1px solid #eef2f7;
	border-radius: 8px;
	background: #fbfdff;
}

.rfzj_advisor_card--activity {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	min-height: 238px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.rfzj_advisor_card--activity .guwen-finder-activity-advisor__top {
	display: flex;
	gap: 12px;
	min-width: 0;
}

.rfzj_advisor_card--activity .guwen-finder-activity-advisor__main,
.rfzj_advisor_card--finder .guwen-finder-advisor__body {
	flex: 1;
	min-width: 0;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__avatar,
.rfzj_advisor_card--activity .guwen-finder-advisor__avatar {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__img,
.rfzj_advisor_card--activity .guwen-finder-advisor__img {
	display: block;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__name,
.rfzj_advisor_card--activity .guwen-finder-advisor__name {
	display: block;
	overflow: hidden;
	color: var(--rfj-text-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__job,
.rfzj_advisor_card--activity .guwen-finder-advisor__job {
	overflow: hidden;
	margin: 3px 0 9px;
	color: var(--rfj-text-tertiary);
	font-size: 14px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_advisor_card--activity .guwen-finder-activity-advisor__company {
	display: block;
	overflow: hidden;
	max-width: 100%;
	margin-top: 1px;
	color: #165eb8;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_advisor_card--activity .guwen-finder-activity-advisor__activity {
	min-height: 72px;
	padding: 10px 11px;
	border: 1px solid #edf2f7;
	border-radius: 8px;
	background: #f8fafc;
}

.rfzj_advisor_card--activity .guwen-finder-activity-advisor__activity-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	color: var(--rfj-text-tertiary);
	font-size: 12px;
	line-height: 1.35;
}

.rfzj_advisor_card--activity .guwen-finder-activity-advisor__activity-meta span {
	overflow: hidden;
	min-width: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_advisor_card--activity .guwen-finder-activity-advisor__activity-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--rfj-text-primary);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__service,
.rfzj_advisor_card--activity .guwen-finder-advisor__service {
	display: inline-flex;
	align-items: center;
	margin: 0 0 9px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef8f2;
	color: #0f7a3a;
	font-size: 13px;
	line-height: 1.35;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__actions,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions,
.rfzj_advisor_card--finder .guwen-finder-advisor__actions .btn-group,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions .btn-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__actions .btn,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 28px;
	margin: 0;
	padding: 4px 8px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.rfzj_advisor_card--finder .btn-outline-info,
.rfzj_advisor_card--activity .btn-outline-info {
	color: #1677ff;
}

.rfzj_advisor_card--finder .btn-outline-success,
.rfzj_advisor_card--activity .btn-outline-success {
	color: #08a66c;
}

.rfzj_advisor_card--finder .btn-outline-danger,
.rfzj_advisor_card--activity .btn-outline-danger {
	color: var(--rfj-red-legacy-brand);
}

.rfzj_advisor_card--finder .guwen-finder-advisor__actions .btn-outline-info:hover,
.rfzj_advisor_card--finder .guwen-finder-advisor__actions .btn-outline-info:focus,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions .btn-outline-info:hover,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions .btn-outline-info:focus {
	border-color: #1677ff;
	background: #1677ff;
	color: #fff;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__actions .btn-outline-success:hover,
.rfzj_advisor_card--finder .guwen-finder-advisor__actions .btn-outline-success:focus,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions .btn-outline-success:hover,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions .btn-outline-success:focus {
	border-color: #08a66c;
	background: #08a66c;
	color: #fff;
}

.rfzj_advisor_card--finder .guwen-finder-advisor__actions .btn-outline-danger:hover,
.rfzj_advisor_card--finder .guwen-finder-advisor__actions .btn-outline-danger:focus,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions .btn-outline-danger:hover,
.rfzj_advisor_card--activity .guwen-finder-advisor__actions .btn-outline-danger:focus {
	border-color: var(--rfj-red-legacy-brand);
	background: var(--rfj-red-legacy-brand);
	color: #fff;
}

@media (min-width: 641px) {
	.rfzj_advisor_card--finder,
	.rfzj_advisor_card--activity {
		transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
	}

	.rfzj_advisor_card--finder:hover,
	.rfzj_advisor_card--activity:hover {
		border-color: var(--rfj-color-primary-border, var(--rfj-red-f4c4c5));
		background: #fff;
		box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
		transform: translateY(-4px);
	}
}
