/*
 * Single product (woocommerce/content-single-product.php): the old theme's class page.
 * Values come from the old theme's Bootstrap build. Loaded on product pages only.
 */

.mylaw-product {
	--pr-navy: #002868;
	--pr-gold: #fcb514;
	--pr-sky: #8ed1dc;
	--pr-green: #28a745;
	--pr-green-dark: #218838;
	--pr-heading: #3c3b37;
	--pr-panel: #fbfbf8;
	--pr-line: #dee2e6;
	--pr-radius: 0.25rem;
	--pr-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.mylaw-product .text-orange {
	color: var(--pr-gold);
}

/* Top: navy band, class details left, registration card right */

.mylaw-product__top {
	padding: 1.5rem 0;
	background: var(--pr-navy);
	color: var(--white);
}

.mylaw-product__top-inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 1.5rem 30px;
	align-items: start;
}

.mylaw-product .woocommerce-breadcrumb {
	margin: 0 0 0.75rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
}

.mylaw-product .woocommerce-breadcrumb a {
	color: var(--pr-sky);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.mylaw-product .woocommerce-breadcrumb a:hover {
	text-decoration: underline;
}

.mylaw-product .woocommerce-breadcrumb .delimiter {
	color: var(--white);
}

.mylaw-product .product_title {
	margin: 0 0 0.8rem;
	color: var(--white);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02rem;
}

/* Speakers */

.mylaw-speakers {
	margin-bottom: 1rem;
}

.mylaw-speaker__photo {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--pr-line);
	border-radius: 0.2rem;
	box-shadow: var(--pr-shadow);
}

.mylaw-speaker__photo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
	font-size: 1.5rem;
	font-weight: 600;
}

.mylaw-speaker {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.mylaw-speaker__name {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
	line-height: 1.4;
}

.mylaw-speaker__firm {
	color: var(--pr-gold);
}

.mylaw-speaker__bio {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.3;
}

/* One speaker: "Name | Firm" on one line */
.mylaw-speakers--one .mylaw-speaker__firm::before {
	content: "| ";
	color: var(--white);
}

/* Two speakers: side by side, firm on its own line, bio clipped */
.mylaw-speakers--two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 30px;
}

.mylaw-speakers--two .mylaw-speaker {
	grid-template-columns: 90px minmax(0, 1fr);
}

.mylaw-speakers--two .mylaw-speaker__firm {
	display: block;
	font-size: 1rem;
}

.mylaw-speakers--two .mylaw-speaker__bio {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

/* Three or more: photo grid, names beside it */
.mylaw-speakers--multiple {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 1rem 30px;
}

.mylaw-speakers__photos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	align-content: start;
}

.mylaw-speakers__names {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mylaw-speakers__names li {
	padding-bottom: 0.5rem;
	font-size: 1rem;
	line-height: 1.4;
}

/* Broadcast date and times */

.mylaw-product__when p {
	margin: 0;
	font-weight: 700;
}

.mylaw-product__broadcast {
	margin-bottom: 0.25rem;
}

.mylaw-product__times span {
	display: inline-block;
	padding: 0 0.25rem;
	border-right: 2px solid var(--pr-gold);
}

.mylaw-product__times span:first-child {
	padding-left: 0;
}

.mylaw-product__times span:last-child {
	border-right: 0;
}

/* Registration card */

.mylaw-product-card {
	padding: 1rem;
	border-radius: var(--pr-radius);
	background: var(--white);
	box-shadow: var(--pr-shadow);
	color: var(--pr-navy);
}

.mylaw-product-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.mylaw-product-card__hours {
	display: inline-block;
	padding: 0.3em 0.6em;
	border-radius: var(--pr-radius);
	background: var(--pr-navy);
	color: var(--white);
	font-size: 1.05rem;
	line-height: 1.2;
}

.mylaw-product-card .mylaw-product-card__tuition {
	margin: 0;
	font-weight: 600;
}

.mylaw-product-card__tuition span {
	font-weight: 400;
}

.mylaw-product-card__tuition del {
	opacity: 0.6;
}

.mylaw-product-card__tuition ins {
	text-decoration: none;
}

.mylaw-product-card .mylaw-product-card__pass {
	margin: 0 0 1rem;
	line-height: 1.3;
}

.mylaw-product-card__pass small {
	display: block;
	font-size: 0.85rem;
}

.mylaw-product-card__pass a {
	font-weight: 700;
}

.mylaw-product-card .mylaw-product-card__alert {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid #b8c3d5;
	border-radius: var(--pr-radius);
	background: #ccd4e1;
	color: #001536;
}

.mylaw-product-card .mylaw-product-card__alert--success {
	border-color: #c3e6cb;
	background: #d4edda;
	color: #155724;
}

/* Buttons */

.mylaw-btn {
	display: block;
	width: 100%;
	padding: 0.375rem 0.75rem;
	border: 1px solid transparent;
	border-radius: var(--pr-radius);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.mylaw-btn--green {
	border-color: var(--pr-green);
	background: var(--pr-green);
	color: var(--white);
}

.mylaw-btn--green:hover {
	border-color: var(--pr-green-dark);
	background: var(--pr-green-dark);
	color: var(--white);
}

.mylaw-btn--outline {
	border-color: var(--pr-navy);
	color: var(--pr-navy);
}

.mylaw-btn--outline:hover {
	background: var(--pr-navy);
	color: var(--white);
}

.mylaw-btn del {
	opacity: 0.7;
}

.mylaw-btn ins {
	text-decoration: none;
}

/* Tabs */

.mylaw-product__bottom {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.mylaw-tabs__list {
	display: flex;
	flex-wrap: wrap;
}

.mylaw-tabs__tab {
	display: block;
	margin-bottom: -1px;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--pr-radius) var(--pr-radius) 0 0;
	color: var(--pr-navy);
	text-decoration: none;
}

.mylaw-tabs__tab:hover {
	border-color: #e9ecef #e9ecef var(--pr-line);
}

.mylaw-tabs__tab[aria-selected="true"] {
	border-color: var(--pr-line) var(--pr-line) var(--pr-panel);
	background: var(--pr-panel);
	font-weight: 700;
}

.mylaw-tabs__panel {
	padding: 1rem;
	border: 1px solid var(--pr-line);
	border-radius: 0 var(--pr-radius) var(--pr-radius) var(--pr-radius);
	background: var(--pr-panel);
}

/* Without JavaScript all panels show, stacked */
.mylaw-tabs__panel + .mylaw-tabs__panel {
	margin-top: 1rem;
}

.mylaw-tabs__panel[hidden] {
	display: none;
}

.mylaw-tabs__heading {
	margin: 0 0 0.75rem;
	color: var(--pr-heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02rem;
}

.mylaw-tabs__panel .entry-content img {
	height: auto;
}

.mylaw-tabs__panel .alignleft {
	float: left;
	margin: 0 1rem 0.5rem 0;
}

.mylaw-tabs__panel .alignright {
	float: right;
	margin: 0 0 0.5rem 1rem;
}

.mylaw-tabs__panel .entry-content::after {
	display: block;
	clear: both;
	content: "";
}

.mylaw-credits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem 30px;
}

.mylaw-credits__state {
	padding: 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.125);
	border-radius: var(--pr-radius);
	background: var(--white);
}

.mylaw-credits__state h3 {
	margin: 0 0 0.75rem;
	color: var(--pr-heading);
	font-size: 1.25rem;
	font-weight: 500;
}

.mylaw-credits__state p {
	margin: 0;
}

.mylaw-credits__state small {
	display: block;
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: 80%;
}

/* Course Details tab ("New Template" fields) */

.mylaw-details__hero {
	margin-bottom: 1.5rem;
}

.mylaw-details__images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	max-width: 760px;
	margin-bottom: 1rem;
}

.mylaw-details__images img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--pr-radius);
}

.mylaw-details__tagline {
	margin: 0;
	color: var(--pr-navy);
	font-size: 1.1rem;
}

.mylaw-details__section + .mylaw-details__section {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--pr-line);
}

.mylaw-details__section h3 {
	margin: 0 0 0.5rem;
	color: var(--pr-heading);
	font-size: 1.25rem;
}

.mylaw-details__title {
	color: var(--pr-navy);
	font-weight: 600;
}

.mylaw-details__boxes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mylaw-details__section--topics .mylaw-details__boxes {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mylaw-details__boxes li {
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.125);
	border-left: 3px solid var(--pr-gold);
	border-radius: var(--pr-radius);
	background: var(--white);
	font-size: 0.95rem;
	line-height: 1.45;
}

.mylaw-details__boxes strong {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--pr-navy);
}

/* Why Attend boxes lead with a figure (79%, 40+…) */
.mylaw-details__section--why .mylaw-details__boxes strong {
	color: var(--pr-gold);
	font-size: 1.75rem;
	line-height: 1.1;
}

/* Speakers tab: attorney profiles */

.mylaw-bios {
	display: grid;
	gap: 1.5rem;
}

.mylaw-bio {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.mylaw-bio + .mylaw-bio {
	padding-top: 1.5rem;
	border-top: 1px solid var(--pr-line);
}

.mylaw-bio .mylaw-speaker__photo--initials {
	background: var(--pr-navy);
}

.mylaw-bio__name {
	margin: 0 0 0.5rem;
	color: var(--pr-navy);
	font-size: 1.15rem;
}

.mylaw-bio__part {
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Parts holding editor HTML (<p>…</p>) */
.mylaw-bio__part p {
	margin: 0;
}

.mylaw-bio__part p + p {
	margin-top: 0.5rem;
}

/* Agenda tab: sessions */

.mylaw-sessions {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mylaw-session {
	padding: 1rem 0 1rem 1rem;
	border-left: 3px solid var(--pr-gold);
}

.mylaw-session + .mylaw-session {
	margin-top: 1rem;
}

.mylaw-session p {
	margin: 0 0 0.5rem;
}

.mylaw-session .mylaw-session__meta {
	margin-bottom: 0.25rem;
	color: var(--pr-gold);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
}

.mylaw-session__title {
	margin: 0 0 0.5rem;
	color: var(--pr-navy);
	font-size: 1.15rem;
}

.mylaw-session .mylaw-session__speakers {
	margin: 0;
	font-size: 0.9rem;
}

/* Class format dialog */

.mylaw-formats {
	width: min(500px, calc(100% - 2rem));
	max-height: calc(100% - 3.5rem);
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0.3rem;
	color: var(--pr-navy);
}

.mylaw-formats::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.mylaw-formats__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	border-bottom: 1px solid var(--pr-line);
}

.mylaw-formats__head h2 {
	margin: 0;
	color: var(--text);
	font-size: 1.25rem;
	font-weight: 500;
}

.mylaw-formats__close {
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: #000;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	opacity: 0.5;
}

.mylaw-formats__close:hover {
	opacity: 0.75;
}

/* Padding, not margin: a click on the dialog itself (outside these) closes it */
.mylaw-formats__option {
	padding: 1rem;
}

.mylaw-formats__option + .mylaw-formats__option {
	border-top: 1px solid var(--pr-line);
}

.mylaw-formats__option h3 {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 500;
}

.mylaw-formats__option p {
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

@media (max-width: 991px) {
	.mylaw-speakers--multiple,
	.mylaw-speakers--two {
		grid-template-columns: 1fr;
	}

	.mylaw-credits,
	.mylaw-details__section--topics .mylaw-details__boxes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.mylaw-product__top-inner {
		grid-template-columns: 1fr;
	}

	.mylaw-speaker,
	.mylaw-speakers--two .mylaw-speaker {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.mylaw-credits,
	.mylaw-details__boxes,
	.mylaw-details__section--topics .mylaw-details__boxes {
		grid-template-columns: 1fr;
	}

	.mylaw-bio {
		grid-template-columns: 72px minmax(0, 1fr);
	}
}
