/* =========================================================
   YCM Ebook Details widget — structural layout only.
   ========================================================= */

.ycm-ebook-details {
	background-color: #fff;
	padding: 60px 0;
}

.ycm-ebook-details__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.ycm-ebook-details__grid {
	display: grid;
	grid-template-columns: minmax(300px, 400px) 1fr;
	gap: 56px;
	align-items: start;
}

/* --- Cover --- */
.ycm-ebook-details__cover {
	background-color: #fff;
	border: 1px solid #e7e9f0;
	border-radius: 20px;
	padding: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 40px;
}

.ycm-ebook-details__cover img {
	display: block;
	width: 100%;
	max-width: 360px;
	height: auto;
}

/* --- Specs (rounded, spaced rows: lavender label + white value) --- */
.ycm-ebook-details__specs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
}

.ycm-ebook-details__spec {
	display: flex;
	align-items: stretch;
	border: 1px solid #e7e9f0;
	border-radius: 10px;
	overflow: hidden;
}

.ycm-ebook-details__spec-label {
	flex: 0 0 42%;
	display: flex;
	align-items: center;
	background-color: #eff3ff;
	color: #111827;
	font-weight: 700;
	padding: 14px 18px;
}

.ycm-ebook-details__spec-value {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	background-color: #fff;
	color: #374151;
	padding: 14px 18px;
}

/* --- Right column --- */
.ycm-ebook-details__breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 14px;
}

.ycm-ebook-details__breadcrumb a {
	color: #6b7280;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.ycm-ebook-details__breadcrumb a:hover {
	color: #0f67fe;
}

.ycm-ebook-details__crumb-current {
	color: #111827;
}

.ycm-ebook-details__title {
	font-size: 36px;
	line-height: 1.15;
	font-weight: 800;
	color: #0a0e17;
	margin: 0 0 14px;
}

.ycm-ebook-details__author {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 14px;
}

.ycm-ebook-details__rating {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.ycm-ebook-details__stars {
	display: inline-flex;
	gap: 2px;
	line-height: 0;
}

.ycm-ebook-details__stars .is-filled {
	color: #f5b400;
}

.ycm-ebook-details__stars .is-empty {
	color: #d7dbe3;
}

.ycm-ebook-details__stars svg {
	display: block;
	fill: currentColor;
}

.ycm-ebook-details__reviews {
	font-size: 15px;
	color: #374151;
}

.ycm-ebook-details__price {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.ycm-ebook-details__price-now {
	font-size: 28px;
	font-weight: 800;
	color: #0f67fe;
}

.ycm-ebook-details__price-old {
	font-size: 18px;
	color: #9ca3af;
	text-decoration: line-through;
}

.ycm-ebook-details__discount {
	background-color: #fcd34d;
	color: #3a2e0a;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 6px;
}

.ycm-ebook-details__desc {
	font-size: 16px;
	line-height: 1.6;
	color: #374151;
	margin: 0 0 24px;
	max-width: 560px;
}

/* --- Form --- */
.ycm-ebook-details__form {
	margin-bottom: 44px;
	max-width: 620px;
}

.ycm-ebook-details__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.ycm-ebook-details__input {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 15px 16px;
	font-size: 15px;
	color: #111827;
	background: #fff;
	box-sizing: border-box;
	outline: none;
}

.ycm-ebook-details__input:focus {
	border-color: #0f67fe;
}

.ycm-ebook-details__input::placeholder {
	color: #9ca3af;
}

.ycm-ebook-details__buy {
	display: block;
	width: 100%;
	border: 0;
	background-color: #0f67fe;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	padding: 16px 26px;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ycm-ebook-details__buy:hover {
	background-color: #0b53d1;
}

/* --- Book lessons --- */
.ycm-ebook-details__lessons-title {
	font-size: 32px;
	font-weight: 700;
	color: #111;
	margin: 0 0 20px;
}

.ycm-ebook-details__lessons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ycm-ebook-details__lesson {
	display: flex;
	align-items: stretch;
	border: 1px solid #eceff8;
	border-radius: 10px;
	overflow: hidden;
	background-color: #fff;
}

.ycm-ebook-details__lesson-num {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	background-color: #eff3ff;
	color: #111;
	font-size: 15px;
	font-weight: 700;
	padding: 16px 10px;
}

.ycm-ebook-details__lesson-text {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	background-color: #fff;
	color: #374151;
	font-size: 15px;
	line-height: 1.4;
	padding: 16px 20px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.ycm-ebook-details__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.ycm-ebook-details__cover {
		max-width: 420px;
	}
	.ycm-ebook-details__title {
		font-size: 30px;
	}
}

@media (max-width: 560px) {
	.ycm-ebook-details__fields {
		grid-template-columns: 1fr;
	}
	.ycm-ebook-details__title {
		font-size: 26px;
	}
	.ycm-ebook-details__lessons-title {
		font-size: 26px;
	}
}

/* ---- Typography: title + content use Roboto ---- */
.ycm-ebook-details__title,
.ycm-ebook-details__author,
.ycm-ebook-details__reviews,
.ycm-ebook-details__price,
.ycm-ebook-details__desc,
.ycm-ebook-details__input,
.ycm-ebook-details__buy,
.ycm-ebook-details__lessons-title,
.ycm-ebook-details__lesson-num,
.ycm-ebook-details__lesson-text,
.ycm-ebook-details__specs {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}