/* Restaurant Course Manager - Design (calm izakaya style) */

/* Card */
.rcm-course-item {
	border: 1px solid #e6e6e6;
	background-color: #ffffff;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Thumb image rounding aligns with card feel */
.rcm-course-thumb img {
	border-radius: 4px;
	/* fixed short height with auto crop */
	width: 100%;
	height: 140px;
	object-fit: cover; /* center crop */
}

/* Title and meta */
.rcm-course-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin-top: 4px;
	margin-bottom: 8px;
	color: #1f2937;
}
.rcm-course-submeta {
	color: #6b7280;
	font-size: 13px;
}
.rcm-course-note {
	color: #6b7280;
	font-size: 13px;
}

/* Badges */
.rcm-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.8;
	font-weight: 600;
	background-color: #b45309; /* warm brownish orange */
	color: #ffffff;
	border: 1px solid #a84c08;
}
.rcm-course-rank .rcm-badge,
.rcm-course-rank .rcm-rank-label {
	background-color: #92400e;
	border-color: #7a3410;
	color: #ffffff;
	font-weight: 700;
}

/* Bottom line separation */
.rcm-course-bottom {
	border-top: 1px solid #efefef;
	padding-top: 12px;
}

/* Price area */
.rcm-course-price-area {
	color: #111827;
}
.rcm-course-price-before {
	color: #9ca3af;
	text-decoration: line-through;
}
.rcm-course-price-label {
	color: #b45309;
	font-weight: 700;
	font-size: 16px;
}
.rcm-course-price-current {
	color: #1f2937;
	font-weight: 800;
	font-size: 20px;
}

/* Buttons */
.rcm-btn,
.rcm-course-buttons .rcm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.rcm-btn-reserve {
	background-color: #c2410c; /* warm main */
	border: 1px solid #9a3412;
	color: #ffffff;
}
.rcm-btn-reserve:hover {
	background-color: #a73a0d;
	border-color: #7a2a0e;
}
.rcm-btn-detail {
	background-color: transparent;
	border: 1px solid #cbd5e1;
	color: #334155;
}
.rcm-btn-detail:hover {
	border-color: #94a3b8;
	color: #0f172a;
}

/* Toggle: text-like with caret */
.rcm-course-toggle {
	background: transparent !important;
	border: 1px solid #cbd5e1 !important;
	padding: 6px 10px !important; /* fixed vertical size */
	color: #334155 !important;
	font-size: 14px !important;
	line-height: 1.35 !important; /* prevent tall buttons by theme line-height */
	height: 34px !important;      /* lock vertical size */
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 6px !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	appearance: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rcm-course-toggle:hover,
.rcm-course-toggle:focus {
	border-color: #94a3b8 !important;
	color: #0f172a !important;
	background: #f8fafc !important;
	outline: none !important;
}
.rcm-course-toggle[aria-expanded="true"] {
	background: #eef2ff;
	border-color: #c7d2fe;
}
.rcm-course-toggle::after {
	content: "▼";
	font-size: 11px;
	transform: translateY(-1px) rotate(0deg);
	transition: transform 0.15s ease;
}
.rcm-course-toggle[aria-expanded="true"]::after {
	transform: translateY(-1px) rotate(180deg);
}

.rcm-course-actions {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 8px !important;
	margin-top: 8px !important;
	flex-wrap: wrap !important;
	text-align: left !important;
}

/* Match reserve link to toggle look within actions */
.rcm-course-actions a.rcm-course-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px !important; /* fixed vertical size */
	border-radius: 6px !important;
	border: 1px solid #cbd5e1 !important;
	background: transparent !important;
	color: #334155 !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	line-height: 1.35 !important; /* prevent tall buttons by theme line-height */
	height: 34px !important;      /* lock vertical size */
	letter-spacing: normal !important;
	text-transform: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rcm-course-actions a.rcm-course-button:hover,
.rcm-course-actions a.rcm-course-button:focus {
	border-color: #94a3b8 !important;
	color: #0f172a !important;
	background: #f8fafc !important;
	outline: none !important;
}
.rcm-course-actions a.rcm-course-button--reserve {
	background: transparent;
	border-color: #cbd5e1;
	color: #334155;
}

/* Ensure same typography/height as toggle */
.rcm-course-actions .rcm-course-button,
.rcm-course-actions a.rcm-course-button,
.rcm-course-actions .rcm-course-button--reserve {
	padding: 6px 10px !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	margin: 0 !important; /* avoid theme auto-centering via margins */
}
.rcm-course-actions a.rcm-course-button:visited {
	color: #334155;
	text-decoration: none;
}

/* Detail area separation */
.rcm-course-detail {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #efefef;
	font-size: 16px;
}

/* Restaurant Course Manager - Design (colors, typography, decorations) */

.rcm-course-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rcm-course-title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.rcm-course-submeta,
.rcm-course-meta {
	color: #6b7280;
	font-size: 0.875rem;
	line-height: 1.6;
}

.rcm-course-desc {
	color: #374151;
	font-size: 14px;
	line-height: 1.7;
}

.rcm-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
	background: #f59e0b;
	border-radius: 9999px;
}

.rcm-course-rank {
	color: #d97706;
	font-weight: 700;
}

.rcm-course-price {
	font-size: 1.125rem;
	font-weight: 700;
	color: #111827;
}

.rcm-course-price-old {
	font-size: 0.875rem;
	color: #9ca3af;
	text-decoration: line-through;
}

/* Detail area font size override */
.rcm-course-detail,
.rcm-course-detail .rcm-course-dishes {
	font-size: 14px;
}
/* Ensure course info text size */
.rcm-course-info {
	font-size: 14px;
}
/* Dishes list text size */
.rcm-course-detail .rcm-course-dishes {
	font-size: 14px;
}
/* Remove default list bullets for dishes */
.rcm-course-dishes {
	list-style: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
	/* remove unexpected theming */
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}
.rcm-course-dishes > li {
	list-style: none !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

.rcm-course-reserve-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
	background: #ef4444;
	border: 1px solid #ef4444;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.rcm-course-reserve-button:hover,
.rcm-course-reserve-button:focus {
	background: #dc2626;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}


/* --- Theme-friendly horizontal emphasis (desktop) --- */
@media (min-width: 768px) {
	/* 内部の見た目のみを横長寄りに調整（テーマのコンテンツ幅は維持） */
	.rcm-course-item {
		padding: 12px 20px;
	}
	.rcm-course-thumb {
		flex: 0 0 200px;
	}
	.rcm-course-thumb img {
		/* keep shorter height on desktop as well */
		width: 100%;
		height: 140px;
	}
}


/* Final enforce: keep title design fixed (font only inherits from theme) */
.rcm-course-title {
	font-size: 18px !important; /* use px to avoid root rem changes */
	font-weight: 700 !important;
	line-height: 1.4 !important;
	margin: 0 0 8px 0 !important;
	padding-top: 0 !important;
	color: #1f2937 !important;
	/* neutralize common theme h3 decorations */
	border: none !important;
	border-left: 0 !important;
	background: transparent !important;
	padding: 0 !important;
}

/* If badges row exists, ensure it doesn't push the title down */
.rcm-course-topline {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
}

/* Ensure course info lines do not break into vertical stacks */
.rcm-course-info-line {
	display: flex !important;
	align-items: baseline !important;
	gap: 8px !important;
	flex-wrap: nowrap !important;
}
.rcm-course-info-label,
.rcm-course-info-value {
	display: inline !important;
	white-space: nowrap;
}


/* Override: switch to underlined list style for course items */
.rcm-course-item {
	border: none;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

/* list container bottom spacing and underline */
.rcm-course-list {
	border-bottom: none;
}

