// WooCommerce Appointments: Appointment Form Block (Editor)
.wc-appointments-appointment-form-block-editor {
	.components-placeholder {
		padding: 24px;
	}

	.components-search-control input {
		width: 100%;
	}
}

.wc-appointments-appointment-form-block-results {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 12px;

	.components-button {
		justify-content: flex-start;
		width: 100%;
		text-align: left;
		padding: 12px;
		min-height: 40px;
	}
}

.wc-appointments-appointment-form-selected {
	.wc-appointments-appointment-form-selected-card {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	// Removed image from editor UI; details now span full width
	.wc-appointments-appointment-form-selected-details {
		display: grid;
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

.wc-appointments-appointment-form-skeleton {
	margin-top: 16px;

	.skeleton-group {
		margin-bottom: 12px;
	}
}

.wc-appointments-skeleton {
	position: relative;
	background-color: color-mix( in sRGB, currentColor 5%, transparent );
	border-radius: 4px;
	overflow: hidden;
}

.wc-appointments-skeleton-line {
	height: 12px;
	margin: 8px 0;
}

.wc-appointments-skeleton-short {
	width: 50%;
}

.wc-appointments-skeleton-title {
	height: 20px;
	width: 60%;
}

.wc-appointments-skeleton-rating {
	height: 14px;
	width: 120px;
}

.wc-appointments-skeleton-price {
	height: 16px;
	width: 160px;
}

.wc-appointments-skeleton-meta {
	height: 12px;
	width: 70%;
}

.wc-appointments-skeleton-block {
	height: 200px;
	margin-top: 16px;
}

.wc-appointments-skeleton-calendar {
	width: 100%;
}

.wc-appointments-appointment-form-block-preview {
	opacity: 0.8;
	font-style: italic;
}

// Calendar-like skeleton grid
.wc-appointments-calendar-skeleton {
	margin-top: 16px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 12px;
}

.wc-appointments-cal-header {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 8px;
	margin-bottom: 8px;
}

.wc-appointments-cal-header-day {
	height: 12px;
	border-radius: 3px;
}

.wc-appointments-cal-grid {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 8px;
}

.wc-appointments-cal-cell {
	height: 30px;
	border-radius: 4px;
	background-color: color-mix( in sRGB, currentColor 5%, transparent );
}

// Inline display preview styles
.wc-appointments-preview-title {
	margin-bottom: 6px;
}

.wc-appointments-preview-rating {
	margin-bottom: 4px;
	letter-spacing: 1px;
}

.wc-appointments-preview-price {
	font-size: 18px;
}

.wc-appointments-preview-excerpt {
	color: #50575e;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 8px;
}

.wc-appointments-preview-meta {
	color: #72777c;
	font-size: 14px;
	margin-bottom: 8px;
}

.wc-appointments-preview-sharing {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #72777c;
}

.wc-appointments-sharing-label {
	font-size: 14px;
}

.wc-appointments-sharing-dot {
	width: 16px;
	height: 16px;
	background: #e5e5e5;
	border-radius: 50%;
}

// Add-to-cart preview (below calendar)
.wc-appointments-add-to-cart-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	margin-bottom: 16px;
}

.wc-appointments-quantity {
	display: flex;
	align-items: center;
}

.wc-appointments-quantity label {
	color: #1d2327;
	font-weight: 500;
}

.wc-appointments-quantity-input {
	width: 60px;
	height: 36px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 0 8px;
	background: #fff;
	color: #1d2327;
}
