/* Restaurant Course Manager - Layout (2-column card layout) */

.rcm-course-list {
	margin: 24px 0;
}

.rcm-course-item {
	display: flex;
	gap: 16px;
	padding: 16px;
	margin-bottom: 24px;
	align-items: flex-start !important; /* force top alignment with thumb */
}

.rcm-course-thumb {
	flex: 0 0 240px;
	overflow: hidden !important; /* ensure crop inside box */
	border-radius: 4px !important;
	position: relative;
}

.rcm-course-thumb img {
	width: 100% !important;
	height: 160px !important;    /* desktop fixed height */
	object-fit: cover !important; /* center crop */
	object-position: center center !important;
	display: block !important;
	max-width: none !important;   /* avoid theme img rules */
}

.rcm-course-content {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left !important; /* avoid theme centering */
}

/* Remove unexpected top gap from first element inside content (theme resets) */
.rcm-course-content > *:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.rcm-course-header {
	margin-bottom: 8px;
}

.rcm-course-meta {
	margin: 4px 0 8px;
}

.rcm-course-desc {
	margin: 0 !important;
}

.rcm-course-price-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 !important;
}
.rcm-course-price-row .rcm-course-submeta {
	margin: 0;
}

.rcm-course-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.rcm-course-price-area {
	display: flex;
	align-items: baseline;
	gap: 4px; /* tighter gap between before/current prices */
}

.rcm-course-buttons {
	display: flex;
	gap: 8px;
}

.rcm-course-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Ensure title-desc-price-actions block matches thumb height and centers vertically */
.rcm-course-headwrap {
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* 改行有無での縦センタ差を解消し上揃えに */
	min-height: 160px; /* sync with default thumb height */
}


