/**
 * WP ULike Block Editor Styles
 */

.wp-block-wp-ulike-button {
	padding: 1em 0;
}

.wp-block-wp-ulike-button .components-placeholder {
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Improve loading state visibility */
.wp-block-wp-ulike-button .wp-block-wp-ulike-button > div > div {
	transition: opacity 0.2s ease-in-out;
}

/* Fade in animation for loaded content */
.wp-block-wp-ulike-button[data-loading="false"] > div > div {
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Template selector styles */
.wp-ulike-template-selector .wp-ulike-template-option {
	position: relative;
}

.wp-ulike-template-selector .wp-ulike-template-option.is-selected::after {
	content: '';
	position: absolute;
	top: 4px;
	right: 4px;
	width: 12px;
	height: 12px;
	background: #0073aa;
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5L6 12L2.5 8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 7px;
	background-position: center;
	background-repeat: no-repeat;
}

.wp-ulike-template-selector .wp-ulike-template-option:focus {
	outline: none;
	box-shadow: 0 0 0 1px #0073aa;
}
