/* GENERAL */
.clearboth {clear:both;}

/* search page */
form.wpv-filter-form h4 {margin-top: 30px;}
input.js-wpv-filter-trigger-delayed {margin-bottom: 40px;}
ul.categorychecklist li {
	display: inline-block;
	float: left;
	margin-right: 1em;
	vertical-align: top;
}
.pb-search-banner-container {
  background: #eee none repeat scroll 0 0;
  padding: 5px 5px 10px;
  text-align: center;
}
.product-info-container {margin-bottom: 30px;}

/* VIDEO BLOCK */

.pbh-video-block {
	width: 100%;
	margin-bottom: 30px;
}

/* VIDEO PLAYER */

.pbh-video-player iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
	border: 0;
	border-radius: 6px;
}

/* THUMBNAILS */

.pbh-video-thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(220px, 1fr));
	justify-content: center;
	gap: 15px;
	margin-top: 10px;
}

.pbh-video-thumb {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.2s ease;
	width: 100%;
}

.pbh-video-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border: none;
	border-radius: 4px;
}

.pbh-video-thumb.is-active {
	opacity: 0.4;
	cursor: default;
}

.pbh-video-thumb:hover:not(.is-active) {
	opacity: 0.85;
}

/* thumbnail number overlay */

.pbh-video-thumb {
	position: relative;
}

.pbh-video-thumb-number {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 2.5rem;
	font-weight: 700;
	color: #ffffff;
	text-shadow:
		0 0 6px rgba(0,0,0,0.7),
		0 0 12px rgba(0,0,0,0.6);
	pointer-events: none;
}

@media all and (max-width: 767px) {
	.pbh-video-thumbs {
		grid-template-columns: repeat(2, minmax(180px, 1fr));
	}
}

@media all and (max-width: 479px) {
	.pbh-video-thumbs {
		grid-template-columns: 1fr;
	}
}

/* CLASS BUTTONS */

.pbh-class-buttons-block {
	margin: 0 0 30px 0;
}

.pbh-class-buttons-heading {
	margin: 0 0 15px;
	font-size: 1.4rem;
	line-height: 1.3;
}

.pbh-class-buttons-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.pbh-class-button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	background: #d61f1f;
	color: #ffffff !important;
	text-decoration: none;
	font-weight: 700;
	text-align: center;
	border-radius: 6px;
	transition: background 0.2s ease, opacity 0.2s ease;
	box-sizing: border-box;
}

.pbh-class-button:visited {
	color: #ffffff !important;
}

.pbh-class-button:hover {
	background: #b81818;
	color: #ffffff;
	text-decoration: none;
}

.pbh-class-button:focus {
	color: #ffffff;
	text-decoration: none;
	outline: 2px solid rgba(0, 0, 0, 0.2);
	outline-offset: 2px;
}

.pbh-class-equipment-list {
	margin: 30px 0;
}

.pbh-class-equipment-list-heading {
	margin: 0 0 15px;
}

.pbh-class-equipment-list-content p:last-child {
	margin-bottom: 0;
}

@media all and (max-width: 767px) {
	.pbh-class-buttons-grid {
		grid-template-columns: 1fr;
	}
}

/* COURSE CONTENT */

.pbh-course-content {
	width: 100%;
	margin: 0 0 30px;
}

.pbh-course-watching {
	margin: 0 0 15px;
}

.pbh-current-module-description {
	margin-bottom: 20px;
}

.pbh-current-module-description p:last-child {
	margin-bottom: 0;
}

.pbh-course-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
	border: 0;
	border-radius: 6px;
}

.pbh-course-handouts {
	margin-top: 25px;
}

.pbh-course-handouts-heading {
	margin: 0 0 15px;
}

.pbh-no-module-handouts {
	margin: 10px 0;
	font-style: italic;
	color: #666;
}

/* COURSE LOWER AREA */

.pbh-course-lower {
	margin-top: 30px;
}

.pbh-course-top-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 30px;
}

.pbh-course-panel {
	padding: 0;
	border: 1px solid #d6d6d6;
	background: #fff;
	overflow: hidden;
}

.pbh-course-panel-title {
	margin: 0;
	padding: 20px 28px;
	font-size: 1.9rem;
	line-height: 1.2;
	background: #f2f2f2;
	border-bottom: 1px solid #d6d6d6;
}

.pbh-course-panel-body {
	padding: 28px 28px 30px;
}


.pbh-course-modules-intro {
	margin: 0 0 18px;
}

/* HANDOUTS */

.pbh-course-handouts-buttons .pbh-class-buttons-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	width: 100%;
}

/* NAVIGATION */

.pbh-course-nav-buttons {
	display: flex;
	gap: 18px;
	margin-bottom: 24px;
	flex-wrap: wrap;
	align-items: center;
}

.pbh-course-nav-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	padding: 14px 22px;
	border: 0;
	background: #1146b8;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.2s ease;
	flex: 1;
}

.pbh-course-nav-button:hover {
	background: #0e3c9c;
}

.pbh-course-complete-wrap {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	cursor: default;
}

.pbh-module-complete-checkbox {
	width: 26px;
	height: 26px;
	margin: 0;
	accent-color: #1146b8;
}

/* COURSE MODULE LIST NAVIGATION */

.pbh-course-module-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pbh-course-module-list-item {
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	border-left: 4px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.pbh-course-module-list-box {
	width: 22px;
	height: 22px;
	border: 2px solid #1146b8;
	flex: 0 0 22px;
	background: #fff;
	position: relative;
}

.pbh-course-module-list-item.is-complete .pbh-course-module-list-box {
	background: #1146b8;
	border-color: #1146b8;
}

.pbh-course-module-list-item.is-complete .pbh-course-module-list-box::after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
}

.pbh-course-module-list-text {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.pbh-course-module-list-number {
	font-weight: 400;
}

.pbh-course-module-list-title {
	font-weight: 400;
}

.pbh-course-module-list-item.is-active {
	background: #f5f8ff;
	border-left-color: #1146b8;
}

.pbh-course-module-list-item.is-active .pbh-course-module-list-title,
.pbh-course-module-list-item.is-active .pbh-course-module-list-number {
	font-weight: 700;
}
.pbh-course-module-list-item.is-saving {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.pbh-module-complete-checkbox:disabled {
	opacity: 0.5;
	cursor: wait;
}

/* RESPONSIVE */

@media all and (max-width: 980px) {
	.pbh-course-top-panels {
		grid-template-columns: 1fr;
	}
}

@media all and (max-width: 767px) {
	.pbh-course-panel-body {
		padding: 22px;
	}

	.pbh-course-handouts-buttons .pbh-class-buttons-grid {
		grid-template-columns: 1fr;
	}

	.pbh-course-nav-buttons {
		flex-direction: column;
	}

	.pbh-course-nav-button {
		width: 100%;
	}
}

.pbh-course-module-list-item {
	display: flex;
	align-items: center;
	gap: 18px;
	width: 100%;
	padding: 10px 12px;
	background: transparent;
	border-left: 4px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.pbh-course-module-list-check-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	cursor: pointer;
}

.pbh-course-module-list-checkbox {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.pbh-course-module-list-button {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.pbh-course-module-list-item:hover {
	background: #e6f4ea;
}

.pbh-course-module-list-item.is-active {
	background: #f5f8ff;
	border-left-color: #1146b8;
}

.pbh-course-module-list-item.is-active .pbh-course-module-list-title,
.pbh-course-module-list-item.is-active .pbh-course-module-list-number {
	font-weight: 700;
}

/* COURSE PROGRESS */

.pbh-course-progress-wrap {
	margin: 0 0 22px;
}

.pbh-course-progress-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.pbh-course-progress-text {
	font-weight: 700;
}

.pbh-course-progress-stats {
	color: #555;
}

/* bar + percent layout */

.pbh-course-progress-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* thicker bar */

.pbh-course-progress-bar {
	flex: 1;
	height: 28px;
	background: #e6e6e6;
	border-radius: 999px;
	overflow: hidden;
}

/* progress fill */

.pbh-course-progress-fill {
	height: 100%;
	background: #1146b8;
	border-radius: 999px;
	transition: width 0.4s ease-in-out;
}

.pbh-course-progress-percent {
	font-weight: 700;
	color: #1146b8;
	min-width: 42px;
	text-align: right;
}

/* MY PURCHASES ACCORDION */

.pbh-purchases-accordion {
	margin: 30px 0;
}

.pbh-purchases-section {
	margin-bottom: 18px;
	border: 1px solid #d6d6d6;
	background: #fff;
	overflow: hidden;
}

.pbh-purchases-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 20px 24px;
	border: 0;
	background: #f2f2f2;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.pbh-purchases-toggle-title {
	font-size: 1.4rem;
	font-weight: 700;
}

.pbh-purchases-toggle-icon {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.pbh-purchases-panel {
	padding: 24px;
}

.pbh-purchases-subheading {
	margin: 0 0 12px;
	font-size: 1.2rem;
}

.pbh-purchases-subheading:not(:first-child) {
	margin-top: 24px;
}

.pbh-purchases-list {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.pbh-purchases-list-item + .pbh-purchases-list-item {
	margin-top: 8px;
}

.pbh-purchases-link {
	text-decoration: none;
}

.pbh-purchases-link:hover {
	text-decoration: underline;
}

/* PRODUCT GRID */

.pbh-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	align-items: start;
}

.pbh-product-card {
	width: 100%;
}

.pb-search-banner-container {
	background: #eee;
	padding: 5px 5px 10px;
	text-align: center;
}

.pb-search-banner-inner {
	margin-bottom: 10px;
}

.pb-search-banner-inner img {
	display: block;
	width: 100%;
	height: auto;
}

.pb-searc-title {
	margin: 0 0 10px;
}

.pb-search-atc {
	display: flex;
	justify-content: center;
	align-items: center;
}

.pbh-no-products-found {
	width: 100%;
	text-align: center;
	padding: 40px 20px;
	font-size: 1.2rem;
	color: #555;
}

.pb-atcbutton:disabled {
	cursor: wait;
}

.pb-search-atc .added_to_cart.wc-forward {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1px 20px;
	background: #dff3df;
	border: 1px solid #5d8a5d;
	color: #2f5e2f !important;
	text-decoration: none;
	font-weight: 700;
	text-align: center;
	box-sizing: border-box;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pb-search-atc .added_to_cart.wc-forward:hover {
	background: #cfe9cf;
	border-color: #4f774f;
	color: #244a24 !important;
	text-decoration: none;
}

.pb-search-atc .added_to_cart.wc-forward:visited {
	color: #2f5e2f !important;
}

.pb-search-atc .added_to_cart.wc-forward, .pb-atcbutton {
	min-width: 190px;
}

.pbh-empty-cart-button {
	margin-left: 10px;
	background: #f5f5f5;
	border: 1px solid #ccc;
	color: #fff !important;
	border-radius: 6px;
	padding: 10px 16px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.pbh-empty-cart-button:hover {
	background: #e2e2e2;
	border-color: #999;
	color: #fff !important;
}

@media all and (max-width: 1200px) {

	.pbh-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media all and (max-width: 767px) {

	.pbh-product-grid {
		grid-template-columns: 1fr;
	}

}