/**
 * Agent Profile Widget Styles
 * 
 * @package TM_Catalog
 * @author Templines
 * @link https://templines.com
 */

/* Agent Card Container */
.tm-agent-card {
	background: #fff;
	padding: 30px;
	border-radius: 0;
	position: relative;
}


.tmr-slide-content .tm-agent-card {
    margin-bottom: 0;
    padding-bottom: 10px !important;
}


.tmr-slide-content .tm-agent-contacts{
    margin-bottom: 0;

}

.tm-users-list .tm-agent-card {
	padding: 0px;
}

/* Trusted Member Badge */
.tm-trusted-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
}

.tm-trusted-badge-content {
    display: inline-flex ;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid #E8E8E9;
    width: 50px;
    height: 50px;
}


.tm-user-avatar.avatar-fullwidth, .tm-agent-avatar.avatar-fullwidth {
    border-radius: 20px;
    overflow: hidden;
}



.tm-trusted-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.tm-trusted-badge-text {
	font-size: 12px;
	font-weight: 600;
	color: #1e8e3e;
	white-space: nowrap;
}


.tm-trusted-badge-text {
    padding: 0.1875rem 0.625rem;
    color: #1e8e3e;
    -webkit-transform: translate3d(-25px, -50%, 0);
    transform: translate3d(-25px, -50%, 0);
    position: absolute;
    right: 100%;
    top: 50%;
    white-space: nowrap;
    background: var(--white-color);
    font-size: 0.8125rem;
    -webkit-transition: 0.3s 
ease;
    -o-transition: 0.3s ease;
    transition: 0.3s 
ease;
    opacity: 0;
    visibility: hidden;
    font-weight: normal;
}

.tm-trusted-badge:hover .tm-trusted-badge-text{
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate3d(-10px, -50%, 0);
    transform: translate3d(-10px, -50%, 0);
}




/* Avatar Section */
.tm-agent-avatar {
	text-align: center;
	margin-bottom: 20px;
}

.tm-agent-avatar a {
	display: inline-block;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: 50%;
}

.tm-agent-avatar a:hover {
	transform: scale(1.05);
}

.tm-agent-avatar img {
    border-radius: 50%;
    border: 4px solid #f0f0f0;
    display: block;
    object-fit: cover;
}

/* Agent Info Section */
.tm-agent-info {
	text-align: center;
	margin-bottom: 25px;
}

.tm-agent-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1e1e1e;
    padding: 0;
    line-height: 1.7;
}

.tm-agent-since {
	color: #757575;
	font-size: 14px;
	margin: 0;
}

.tm-agent-bio {
	color: #555;
	font-size: 14px;
	line-height: 1.6;
	margin: 15px 0 0 0;
	text-align: center;
}

.tm-agent-bio p {
	margin: 0 0 10px 0;
}

.tm-agent-bio p:last-child {
	margin-bottom: 0;
}

/* Contact Section */
.tm-agent-contacts {
	margin-bottom: 25px;
}

.tm-contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
}

.tm-contact-item:last-child {
	border-bottom: none;
}

.tm-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	width: 24px;
	height: 24px;
}

.tm-contact-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.tm-contact-item a {
	color: #222;
	text-decoration: none;
	transition: color 0.3s;
}

.tm-contact-item a:hover {
	color: #135e96;
}

/* Contact Button (Phone Reveal) */
.tm-contact-button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
}

.tm-contact-button__inner {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.tm-contact-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	width: 24px;
	height: 24px;
}

.tm-contact-button__icon svg {
	width: 14px;
	height: 24px;
	display: block;
}

.tm-contact-button__icon--additional {
	cursor: pointer;
	transition: opacity 0.3s;
	opacity: 1;
}

.tm-contact-button__icon--additional:hover {
	opacity: 1;
}

.tm-contact-button__icon--additional svg {
	width: 30px;
	height: 24px;
}

.tm-phone-display {
	color: #222;
	font-size: 14px;
}

.tm-phone-masked {
	display: inline;
}

.tm-phone-full {
	color: #222;
	text-decoration: none;
	transition: color 0.3s;
}

.tm-phone-full:hover {
	color: #135e96;
}

.tm-contact-button.revealed .tm-phone-masked {
	display: none;
}

.tm-contact-button.revealed .tm-phone-full {
	display: inline !important;
}

/* Trusted Author Badge */
.trusted-author {
    position: absolute;
    right: 30px;
    top: 30px;
}

.trusted-author-content {
	display: inline-flex;
	background: #fff;
	border-radius: 100%;
	padding: 8px;
	border: 1px solid #E8E8E9;
	position: relative;
}

.trusted-author-content img {
	max-width: 25px;
	height: auto;
}

.trusted-author-text {
	padding: 3px 10px;
	color: #2A3946;
	transform: translate3d(-25px, -50%, 0);
	position: absolute;
	right: 100%;
	top: 50%;
	white-space: nowrap;
	background: #fff;
	font-size: 13px;
	transition: 0.3s ease;
	opacity: 0;
	visibility: hidden;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trusted-author-text:before {
	content: '';
	position: absolute;
	transform: translate3d(80%, -50%, 0);
	right: 0;
	top: 50%;
	width: 0;
	height: 0;
	border-style: solid;
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
	border-left: 6px solid #fff;
	border-right: 0;
}

.trusted-author-content:hover .trusted-author-text {
	opacity: 1;
	visibility: visible;
	transform: translate3d(-10px, -50%, 0);
}

/* Social Media & Messengers */
.tm-agent-social,
.tm-agent-messengers {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #E8E8E9;
}

.tm-social-title,
.tm-messenger-title {
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #1e1e1e;
    line-height: 1.7;
    font-size: 19px;
}

.tm-social-links,
.tm-messenger-links {
	display: flex;
	flex-wrap: wrap;
}

/* Social Links - Icon Only */
.tm-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	text-decoration: none;
	transition: all 0.3s;
	background: #f8f9fa;
	border-radius: 50%;
}

.tm-social-link:hover {
	transform: translateY(-2px);
	background: #e9ecef;
}

.tm-social-link svg {
	width: 28px;
	height: 28px;
	display: block;
}

/* Messenger Links - Icon + Text */
.tm-messenger-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.3s;
	flex: 1;
	min-width: 200px;
}

.tm-messenger-link:hover {
	background: #f9fafb;
	border-color: #d1d5db;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tm-messenger-link .tm-messenger-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.tm-messenger-link .tm-messenger-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tm-messenger-link .tm-messenger-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.tm-messenger-link .tm-messenger-text {
	color: #2a3946;
	font-size: 14px;
	font-weight: 500;
	display: block;
}

.tm-messenger-link .tm-messenger-icon-additional {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	opacity: 0.5;
	transition: opacity 0.3s;
    display: none !important;
}

.tm-messenger-link:hover .tm-messenger-icon-additional {
	opacity: 1;
}

.tm-messenger-link .tm-messenger-icon-additional svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Chat Button */
.tm-agent-chat-button-wrapper {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid #E8E8E9;
}

.tm-agent-start-chat {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tm-agent-start-chat:hover {
	transform: translateY(-2px);
}

.tm-agent-start-chat:active {
	transform: translateY(0);
}

.tm-chat-icon {
	font-size: 20px;
}

/* No Reviews Link */
.review-location-wrap--no-reviews {
	margin: 10px 0;
}

.no-reviews-link {
	color: #222;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.no-reviews-link:hover {
	color: #005a87;
	text-decoration: underline;
}

.review-location-wrap--no-reviews .review-icon {
	opacity: 0.5;
}

.review-location-wrap--no-reviews .review-icon svg {
	fill: #90a1b5;
}

/* No Order Message */
.review-location-wrap--no-order {
	margin: 10px 0;
	padding: 12px 16px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
}

.review-location-wrap--no-order .review-icon {
	opacity: 0.6;
}

.review-location-wrap--no-order .review-icon svg {
	fill: #856404;
}

.no-order-message {
	color: #856404;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

/* Comment Form Notice */
.tm-order-required-notice {
	padding: 15px 20px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	color: #856404;
	font-size: 15px;
	font-weight: 500;
	margin: 0 0 20px 0;
	line-height: 1.5;
}
