/**
 * Author Widget Styles
 *
 * @package TDI_Elementor_Author_Widget
 */

.tdi-author-widget {
	background-color: #F0F0F0;
	padding: 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.tdi-author-widget__image {
	flex-shrink: 0;
}

.tdi-author-widget__image img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.tdi-author-widget__placeholder-image {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background-color: #ddd;
	display: block;
}

.tdi-author-widget__content {
	flex: 1;
	min-width: 200px;
}

.tdi-author-widget__name {
	margin: 0 0 8px 0;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.4;
	color: #3d434c;
}

.tdi-author-widget__function {
	margin: 0 0 12px 0;
	font-size: 14px;
	line-height: 1.4;
	color: #666;
}

.tdi-author-widget__button {
	display: inline-block;
	padding: 10px 20px;
	background-color: var( --e-global-color-accent );
	color: white !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.3s ease;
}

.tdi-author-widget__button:hover {
	background-color: white;
	text-decoration: none;
	color: var( --e-global-color-accent ) !important;
}

.tdi-author-widget__button:focus {
	outline: 2px solid #333;
	outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
	.tdi-author-widget {
		flex-direction: column;
		text-align: center;
	}

	.tdi-author-widget__content {
		text-align: center;
	}
}

/* Elementor editor styles */
.elementor-editor-active .tdi-author-widget {
	min-height: 120px;
}

