/* Kuharska knjiga – urejanje v Moj račun → Moja knjiga (receptarna-core RP_Cookbook). */

/* Settings: dedication, options, cover photo. */
.rp-cookbook .rp-cookbook-dedication input[type="text"] { min-width: 18rem; }
.rp-cookbook-options { margin-top: -0.25rem; }
.rp-cookbook-options label { display: inline-flex; align-items: center; gap: 0.35rem; }
.rp-cookbook-cover select { max-width: 18rem; margin-left: 0.35rem; }

/* Count "N/60" and the drag hint (the hint only with JavaScript). */
.rp-cookbook-count { margin: 1rem 0 0.25rem; color: var(--rp-brown); }
.rp-cookbook-draghint { display: none; margin-left: 0.5rem; font-size: 0.85em; color: #7A6455; }
.rp-cookbook-js .rp-cookbook-draghint { display: inline; }

/* Rows: handle, thumbnail, title with course, servings, tools. */
.rp-cookbook .rp-cookbook-list { counter-reset: rp-cb; list-style: none; padding-left: 0; }
.rp-cookbook .rp-cookbook-list li {
	counter-increment: rp-cb;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.25rem;
	background: var(--rp-white);
}
.rp-cookbook .rp-cookbook-list li::before {
	content: counter(rp-cb) ".";
	min-width: 1.6rem;
	text-align: right;
	font-weight: 600;
	color: #7A6455;
	font-variant-numeric: tabular-nums;
}
.rp-cookbook-handle { display: none; cursor: grab; color: var(--rp-caramel); font-size: 1.15rem; line-height: 1; padding: 0.2rem; user-select: none; }
.rp-cookbook-sortable .rp-cookbook-handle { display: inline-block; }
.rp-cookbook-sortable li.is-dragging { opacity: 0.55; outline: 2px dashed var(--rp-orange); outline-offset: -2px; }
.rp-cookbook-sortable li.is-dragging .rp-cookbook-handle { cursor: grabbing; }
.rp-cookbook-list.is-saving { opacity: 0.6; pointer-events: none; }
.rp-cookbook .rp-cookbook-thumb {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--rp-radius-sm);
	background: var(--rp-cream);
}
.rp-cookbook-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rp-cookbook-info a { overflow-wrap: anywhere; }
.rp-cookbook-course { font-size: 0.8em; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rp-orange-dark); }
.rp-cookbook-servings { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85em; color: #7A6455; }
.rp-cookbook-servings input[type="number"] { width: 4.2rem; padding: 0.2rem 0.35rem; }
.rp-cookbook .rp-cookbook-list .rp-cookbook-tools { float: none; flex: 0 0 auto; }

/* "Making the book …" */
.rp-cookbook-pdf.is-busy,
.rp-cookbook-pdf:disabled { opacity: 0.75; cursor: progress; }

@media (max-width: 640px) {
	.rp-cookbook .rp-cookbook-head { display: block; }
	.rp-cookbook .rp-cookbook-head label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; max-width: 100%; margin: 0 0 0.5rem; }
	.rp-cookbook .rp-cookbook-options label { flex-wrap: nowrap; align-items: flex-start; }
	.rp-cookbook .rp-cookbook-head input[type="text"],
	.rp-cookbook .rp-cookbook-dedication input[type="text"],
	.rp-cookbook .rp-cookbook-cover select { min-width: 0; width: 100%; max-width: 100%; margin-left: 0; }
	.rp-cookbook .rp-cookbook-list li { flex-wrap: wrap; }
	.rp-cookbook-info { flex: 1 1 0; min-width: 8rem; }
	.rp-cookbook-servings { margin-left: 2.2rem; }
	.rp-cookbook .rp-cookbook-list .rp-cookbook-tools { margin-left: auto; }
}
