/* ─────────────────────────────────────────────────────────────────────────
   Backflow — WooCommerce Session Product Page
   woo-session-product.css
   BEM prefix: wits-session-product__
   ───────────────────────────────────────────────────────────────────────── */

/* ── Additional tokens not in frontend-course-overview.css ────────────── */
:root {
	--wits-green:      #16A34A;
	--wits-green-lt:   #DCFCE7;
	--wits-surface:    #F7F9FC;
	--wits-white:      #ffffff;
	--wits-shadow-md:  0 4px 20px rgba(26, 62, 111, 0.12);
	--wits-navy-deep:  #0B1E38;
}

/* ── WooCommerce layout reset ─────────────────────────────────────────── */
.backflow-session-product .woocommerce-product-gallery {
	display: none !important;
}

.backflow-session-product .woocommerce div.product div.summary,
.backflow-session-product div.product div.summary {
	float: none;
	width: 100%;
	clear: both;
}

/* ── Page layout ──────────────────────────────────────────────────────── */
.wits-session-product__layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 28px;
	align-items: start;
	font-family: "Manrope", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wits-body);
}

/* ── Session header card ─────────────────────────────────────────────── */
.wits-session-product__header-card {
	background: var(--wits-white);
	border: 1.5px solid var(--wits-border);
	border-radius: var(--wits-r-card);
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: var(--wits-shadow);
}

.wits-session-product__header-top {
	padding: 24px 28px 20px;
	border-bottom: 1px solid var(--wits-border);
}

.wits-session-product__course-type {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: var(--wits-orange-dk);
	background: var(--wits-orange-lt);
	border-radius: 4px;
	padding: 3px 10px;
	margin-bottom: 10px;
	letter-spacing: 0.02em;
}

.wits-session-product__title {
	font-family: "Outfit", sans-serif;
	font-size: 26px;
	font-weight: 600;
	color: var(--wits-navy);
	line-height: 1.2;
	margin-bottom: 14px;
}

.wits-session-product__date-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--wits-blue-tint);
	border: 1.5px solid var(--wits-border);
	border-radius: var(--wits-r-card);
	padding: 10px 16px;
}

.wits-session-product__date-icon {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	background: var(--wits-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wits-session-product__date-icon::after {
	content: "";
	width: 16px;
	height: 16px;
	background: var(--wits-white);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wits-session-product__date-text {
	flex: 1;
}

.wits-session-product__date-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wits-lighter);
	display: block;
	line-height: 1;
	margin-bottom: 3px;
}

.wits-session-product__date-value {
	font-family: "Outfit", sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--wits-navy);
	display: block;
	line-height: 1.2;
}

/* ── Quick facts row ─────────────────────────────────────────────────── */
.wits-session-product__facts {
	display: flex;
	background: var(--wits-surface);
}

.wits-session-product__fact {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-right: 1px solid var(--wits-border);
	font-size: 13px;
}

.wits-session-product__fact:last-child {
	border-right: none;
}

.wits-session-product__fact-icon {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: var(--wits-blue-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wits-session-product__fact-icon::after {
	content: "";
	width: 13px;
	height: 13px;
	background: var(--wits-navy);
}

.wits-session-product__fact-icon--location::after {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wits-session-product__fact-icon--instructor::after {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wits-session-product__fact-icon--hours::after {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wits-session-product__fact-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--wits-lighter);
	line-height: 1;
	margin-bottom: 2px;
}

.wits-session-product__fact-value {
	font-size: 13px;
	font-weight: 600;
	color: var(--wits-body);
	line-height: 1.3;
}

/* ── Notice banner ───────────────────────────────────────────────────── */
.wits-session-product__notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--wits-blue-tint);
	border: 1.5px solid var(--wits-border);
	border-left: 3px solid var(--wits-navy);
	border-radius: var(--wits-r-card);
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--wits-muted);
	line-height: 1.6;
}

.wits-session-product__notice::before {
	content: "ℹ";
	font-size: 16px;
	color: var(--wits-navy);
	flex-shrink: 0;
	margin-top: 1px;
}

/* ── Content cards ───────────────────────────────────────────────────── */
.wits-session-product__card {
	background: var(--wits-white);
	border: 1.5px solid var(--wits-border);
	border-radius: var(--wits-r-card);
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: var(--wits-shadow);
}

.wits-session-product__card-header {
	background: var(--wits-navy);
	padding: 12px 20px;
	font-family: "Outfit", sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--wits-white);
	display: flex;
	align-items: center;
	gap: 8px;
}

.wits-session-product__card-header::before {
	content: "";
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.45);
	flex-shrink: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
}

.wits-session-product__card-body {
	padding: 18px 20px;
}

.wits-session-product__card-body p {
	font-size: 14px;
	color: var(--wits-muted);
	line-height: 1.7;
	margin: 0 0 0.75em;
}

.wits-session-product__card-body p:last-child {
	margin-bottom: 0;
}

.wits-session-product__card-body strong {
	color: var(--wits-body);
	font-weight: 600;
}

/* ── Schedule table ─────────────────────────────────────────────────── */
.wits-session-product__schedule-table {
	width: 100%;
	border-collapse: collapse;
}

.wits-session-product__schedule-table th {
	background: var(--wits-surface);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--wits-lighter);
	padding: 10px 20px;
	text-align: left;
	border-bottom: 1px solid var(--wits-border);
}

.wits-session-product__schedule-table td {
	padding: 12px 20px;
	font-size: 14px;
	color: var(--wits-body);
	border-bottom: 1px solid var(--wits-border);
	vertical-align: middle;
}

.wits-session-product__schedule-table tr:last-child td {
	border-bottom: none;
}

.wits-session-product__schedule-table tr:nth-child(even) td {
	background: #fafbfd;
}

.wits-session-product__schedule-table td:first-child {
	font-weight: 600;
	color: var(--wits-navy);
	width: 120px;
}

/* ── Back link ──────────────────────────────────────────────────────── */
.wits-session-product__back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--wits-muted);
	text-decoration: none;
	padding-top: 16px;
	margin-top: 8px;
	border-top: 1px solid var(--wits-border);
	width: 100%;
	transition: color 0.15s;
}

.wits-session-product__back-link:hover {
	color: var(--wits-navy);
}

/* ── Registration box ───────────────────────────────────────────────── */
.wits-session-product__sidebar {
	position: sticky;
	top: 24px;
}

.wits-session-product__register-box {
	background: var(--wits-white);
	border: 1.5px solid var(--wits-border);
	border-radius: var(--wits-r-card);
	overflow: hidden;
	box-shadow: var(--wits-shadow-md);
}

.wits-session-product__register-box-header {
	background: var(--wits-navy);
	padding: 16px 20px;
}

.wits-session-product__register-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: rgba(255, 255, 255, 0.5);
	display: block;
	margin-bottom: 4px;
}

.wits-session-product__register-course {
	font-family: "Outfit", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--wits-white);
	line-height: 1.3;
	display: block;
}

.wits-session-product__register-body {
	padding: 20px;
}

/* ── Sidebar date block ─────────────────────────────────────────────── */
.wits-session-product__date-block {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--wits-blue-tint);
	border-radius: var(--wits-r-card);
	padding: 12px 14px;
	margin-bottom: 16px;
}

.wits-session-product__date-cal {
	text-align: center;
	flex-shrink: 0;
}

.wits-session-product__date-cal-month {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wits-lighter);
	display: block;
	line-height: 1;
}

.wits-session-product__date-cal-day {
	font-family: "Outfit", sans-serif;
	font-size: 26px;
	font-weight: 600;
	color: var(--wits-orange);
	display: block;
	line-height: 1.1;
}

.wits-session-product__date-cal-year {
	font-size: 10px;
	color: var(--wits-lighter);
	display: block;
}

.wits-session-product__date-divider {
	width: 1px;
	height: 40px;
	background: var(--wits-border);
	flex-shrink: 0;
}

.wits-session-product__date-detail {
	flex: 1;
	font-size: 13px;
	color: var(--wits-muted);
	line-height: 1.5;
}

.wits-session-product__date-detail strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--wits-navy);
	margin-bottom: 2px;
}

/* ── Meta rows ──────────────────────────────────────────────────────── */
.wits-session-product__meta {
	margin-bottom: 16px;
}

.wits-session-product__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--wits-border);
	font-size: 13.5px;
}

.wits-session-product__meta-row:last-child {
	border-bottom: none;
}

.wits-session-product__meta-label {
	color: var(--wits-muted);
}

.wits-session-product__meta-value {
	font-weight: 600;
	color: var(--wits-body);
	text-align: right;
}

.wits-session-product__meta-value--seats {
	color: var(--wits-orange-dk);
}

.wits-session-product__status--open {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--wits-green);
	font-size: 12px;
	font-weight: 600;
	background: var(--wits-green-lt);
	border-radius: 4px;
	padding: 3px 8px;
}

.wits-session-product__status--open::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wits-green);
	flex-shrink: 0;
}

.wits-session-product__status--sold-out {
	font-size: 12px;
	font-weight: 600;
	color: #991b1b;
	background: #fee2e2;
	border-radius: 4px;
	padding: 3px 8px;
}

.wits-session-product__status--closed {
	font-size: 12px;
	font-weight: 600;
	color: var(--wits-muted);
	background: #f1f5f9;
	border-radius: 4px;
	padding: 3px 8px;
}

/* ── Price ──────────────────────────────────────────────────────────── */
.wits-session-product__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--wits-border);
}

.wits-session-product__price-amount {
	font-family: "Outfit", sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: var(--wits-navy);
	line-height: 1;
}

.wits-session-product__price-note {
	font-size: 12px;
	color: var(--wits-lighter);
}

/* ── Add to Cart wrap + button ──────────────────────────────────────── */
.wits-session-product__atc-wrap {
	margin-bottom: 10px;
}

.wits-session-product__atc-wrap .cart {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wits-session-product__atc-wrap .quantity {
	display: none;
}

.wits-register-box__cta,
.wits-session-product__atc-wrap .single_add_to_cart_button {
	display: block;
	width: 100%;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 700;
	background: var(--wits-orange);
	color: var(--wits-white) !important;
	border: none;
	border-radius: 6px;
	padding: 16px 24px;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s ease;
	letter-spacing: 0.01em;
	box-sizing: border-box;
}

.wits-register-box__cta:hover,
.wits-session-product__atc-wrap .single_add_to_cart_button:hover {
	background: var(--wits-orange-dk);
	color: var(--wits-white) !important;
}

/* ── Help block ─────────────────────────────────────────────────────── */
.wits-session-product__help {
	background: var(--wits-surface);
	border-radius: var(--wits-r-card);
	padding: 14px 16px;
	font-size: 13px;
	color: var(--wits-muted);
	line-height: 1.5;
}

.wits-session-product__help a {
	color: var(--wits-navy);
	font-weight: 600;
	text-decoration: none;
}

.wits-session-product__help a:hover {
	text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
	.wits-session-product__layout {
		grid-template-columns: 1fr;
	}

	.wits-session-product__sidebar {
		position: static;
	}

	.wits-session-product__facts {
		flex-wrap: wrap;
	}

	.wits-session-product__fact {
		flex: 1 1 calc(50% - 1px);
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.wits-session-product__header-top {
		padding: 18px 20px 16px;
	}

	.wits-session-product__title {
		font-size: 22px;
	}

	.wits-session-product__fact {
		flex: 1 1 100%;
	}
}
