.hmbs-bookstore-grid-wrap,
.hmbs-my-library-wrap,
.hmbs-single-manual,
.hmbs-library-login,
.hmbs-widget-block,
.hmbs-elementor-button-wrap {
	box-sizing: border-box;
}

.hmbs-bookstore-filters {
	margin: 0 0 24px;
	padding: 18px;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.hmbs-bookstore-filters__row {
	display: grid;
	grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) auto auto;
	gap: 14px;
	align-items: end;
}

.hmbs-bookstore-filters__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hmbs-bookstore-filters__field label {
	font-size: 0.92rem;
	font-weight: 600;
	color: #334155;
}

.hmbs-bookstore-filters__field input[type="search"],
.hmbs-bookstore-filters__field select {
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #ffffff;
	color: #0f172a;
}

.hmbs-bookstore-filters__field--checkbox {
	justify-content: flex-end;
}

.hmbs-bookstore-filters__field--checkbox label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 600;
}

.hmbs-bookstore-filters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hmbs-bookstore-grid,
.hmbs-library-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
}

.hmbs-manual-card,
.hmbs-single-manual,
.hmbs-empty-state,
.hmbs-library-login {
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.hmbs-manual-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	position: relative;
}

.hmbs-manual-card__cover-wrap {
	position: relative;
}

.hmbs-manual-card__cover {
	display: block;
	aspect-ratio: 4 / 5;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	overflow: hidden;
}

.hmbs-manual-cover-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hmbs-manual-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 280px;
	padding: 24px;
	color: #64748b;
	font-size: 0.95rem;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	text-align: center;
}

.hmbs-manual-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
}

.hmbs-manual-badge--featured {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
}

.hmbs-manual-card__cover-wrap .hmbs-manual-badge--featured {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

.hmbs-manual-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	flex: 1;
}

.hmbs-manual-card__terms,
.hmbs-single-manual__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hmbs-term-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #334155;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1;
}

.hmbs-manual-card__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.35;
}

.hmbs-manual-card__title a {
	color: #0f172a;
	text-decoration: none;
}

.hmbs-manual-card__title a:hover {
	text-decoration: underline;
}

.hmbs-manual-card__price,
.hmbs-single-manual__price {
	font-weight: 700;
	font-size: 1.1rem;
	color: #0f172a;
}

.hmbs-manual-card__excerpt,
.hmbs-single-manual__description {
	margin: 0;
	color: #475569;
	line-height: 1.7;
	font-size: 0.98rem;
}

.hmbs-manual-card__actions,
.hmbs-single-manual__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}

.hmbs-details-button,
.hmbs-action-button,
.hmbs-bookstore-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 18px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
	transition: all 0.2s ease;
}

.hmbs-bookstore-button--image {
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	color: #0f172a;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
	border-radius: 20px;
	padding: 14px 16px;
	min-width: 110px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	transition: all 0.25s ease;
}

.hmbs-bookstore-button--image:hover {
	background: #ffffff;
	border-color: rgba(59, 130, 246, 0.25);
	box-shadow: 0 14px 36px rgba(59, 130, 246, 0.16);
	transform: translateY(-2px);
	color: #0f172a;
}

.hmbs-bookstore-button__icon-image-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
}

.hmbs-bookstore-button__icon-image {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.hmbs-bookstore-button__text {
	display: block;
	text-align: center;
	line-height: 1.15;
	font-weight: 700;
	font-size: 0.95rem;
	white-space: normal;
}

.hmbs-bookstore-button__text--glow {
	color: #2563eb;
	text-shadow:
		0 0 6px rgba(37, 99, 235, 0.22),
		0 0 14px rgba(59, 130, 246, 0.18),
		0 0 24px rgba(96, 165, 250, 0.12);
}

.hmbs-details-button {
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	color: #0f172a;
}

.hmbs-details-button:hover {
	background: #f8fafc;
	color: #0f172a;
}

.hmbs-action-button--buy,
.hmbs-bookstore-button {
	background: #0f172a;
	border: 1px solid #0f172a;
	color: #ffffff;
}

.hmbs-action-button--buy:hover,
.hmbs-bookstore-button:hover {
	background: #1e293b;
	border-color: #1e293b;
	color: #ffffff;
}

.hmbs-action-button--download {
	background: #14532d;
	border: 1px solid #14532d;
	color: #ffffff;
}

.hmbs-action-button--download:hover {
	background: #166534;
	border-color: #166534;
	color: #ffffff;
}

.hmbs-action-button--pending {
	background: #ffffff;
	border: 1px solid #f59e0b;
	color: #92400e;
}

.hmbs-action-button--pending:hover {
	background: #fff7ed;
	color: #92400e;
}

.hmbs-action-button--disabled,
.button.disabled.hmbs-action-button--disabled {
	background: #e2e8f0;
	border: 1px solid #cbd5e1;
	color: #64748b;
	cursor: not-allowed;
	pointer-events: none;
}

.hmbs-price-unavailable {
	color: #64748b;
	font-weight: 600;
}

.hmbs-empty-state,
.hmbs-library-login {
	padding: 28px;
	text-align: center;
	color: #475569;
}

.hmbs-empty-state p,
.hmbs-library-login p {
	margin: 0 0 12px;
}

.hmbs-single-manual {
	display: grid;
	grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
	gap: 32px;
	padding: 28px;
}

.hmbs-single-manual__media {
	min-width: 0;
}

.hmbs-single-manual__badge-wrap {
	margin-bottom: 12px;
}

.hmbs-single-manual__cover-link {
	display: block;
	overflow: hidden;
	border-radius: 18px;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.hmbs-single-manual__cover-link .hmbs-manual-cover-image,
.hmbs-single-manual__cover-link .hmbs-manual-cover-placeholder {
	border-radius: 18px;
}

.hmbs-single-manual__content {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.hmbs-single-manual__title {
	margin: 0;
	font-size: clamp(1.8rem, 2.3vw, 2.6rem);
	line-height: 1.15;
	color: #0f172a;
}

.hmbs-widget-block {
	display: block;
}

.hmbs-widget-title {
	margin: 0 0 20px;
	font-size: clamp(1.5rem, 2vw, 2rem);
	line-height: 1.2;
	color: #0f172a;
}

.hmbs-elementor-button-wrap {
	display: block;
}

.hmbs-elementor-button-wrap--left {
	text-align: left;
}

.hmbs-elementor-button-wrap--center {
	text-align: center;
}

.hmbs-elementor-button-wrap--right {
	text-align: right;
}

.hmbs-bookstore-button:focus,
.hmbs-details-button:focus,
.hmbs-action-button:focus,
.hmbs-manual-card__title a:focus,
.hmbs-bookstore-filters input:focus,
.hmbs-bookstore-filters select:focus {
	outline: 3px solid rgba(59, 130, 246, 0.25);
	outline-offset: 2px;
}

@media (max-width: 960px) {
	.hmbs-single-manual {
		grid-template-columns: 1fr;
	}

	.hmbs-bookstore-filters__row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.hmbs-bookstore-grid,
	.hmbs-library-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.hmbs-bookstore-filters__row {
		grid-template-columns: 1fr;
	}

	.hmbs-manual-card__body,
	.hmbs-single-manual {
		padding: 18px;
	}
}