/* Details card */
.uc-course-details {
	border-radius: 12px;
	border: 1px solid #dde2ec;
	background-color: #f7f8fb;
	overflow: hidden;
	display: block;
}

/* Remove default marker from <summary> */
.uc-course-details__summary {
	list-style: none;
}

.uc-course-details__summary::-webkit-details-marker {
	display: none;
}

/* Header row */
.uc-course-details__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	cursor: pointer;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	color: #4b5563;
}

/* Title text */
.uc-course-details__title {
	font-weight: 600;
}

/* Chevron indicator */
.uc-course-details__chevron::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #6b7280;
	transform: rotate(0deg);
	transition: transform 0.2s ease;
}

/* Rotate chevron when open */
.uc-course-details[open] .uc-course-details__chevron::before {
	transform: rotate(180deg);
}

/* Body area – smooth accordion animation (1s) */
.uc-course-details__body {
	/* Start collapsed */
	max-height: 0;
	overflow: hidden;
	padding: 0 0;
	opacity: 0;
	transition:
		max-height 1s ease,
		opacity 1s ease,
		padding 1s ease;
}

/* Expanded state */
.uc-course-details[open] .uc-course-details__body {
	max-height: 500px; /* just needs to exceed content height */
	/* padding: 4px 0; */
	opacity: 1;
}

/* Rows */
.uc-course-details__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 16px;
	font-size: 13px;
	line-height: 1.4;
	border-top: 1px solid #e2e6f0;
}

/* Alternate row backgrounds using brand blue #6BB0DB (soft tint) */
.uc-course-details__row:nth-child(even) {
	background-color: rgba(107, 176, 219, 0.06); /* light blue tint */
}

.uc-course-details__row:nth-child(odd) {
	background-color: rgba(107, 176, 219, 0.14); /* slightly stronger tint */
}

/* Last row – a bit more bottom padding for visual balance */
.uc-course-details__row:last-child {
	padding-bottom: 12px;
}

/* Labels / values */
.uc-course-details__label {
	color: #6b7280;
	font-weight: bold;
	flex: 0 0 45%;
}

.uc-course-details__value {
	color: #111827;
	text-align: right;
	flex: 0 0 55%;
}

/* Labels with tooltip */
.uc-course-details__label--has-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* The text part of the label */
.uc-course-details__label-text {
	display: inline-block;
}

/* Question mark icon */
.uc-course-details__label-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	background-color: #e5e7eb;
	color: #4b5563;
	opacity: 0.9;
	cursor: help;
	line-height: 1;
}

/* Ensure LD sidebar widgets are white */
.bb-single-course-sidebar .widget {
	background-color: #ffffff !important;
}

/* Add horizontal separator above the registration details card */
.uc-ld-course-box-course-details-debug {
	margin-bottom: 30px;
	padding-top: 20px;
	border-top: 1px solid #e2e6f0;
}

/* Ensure the start button lays out text + icon nicely */
.btn-advance-start .btn-advance {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Add right arrow to the Start Course button */
.btn-advance-start .btn-advance::after {
	content: "→";
	display: inline-block;
	margin-left: 0.4em;
	font-size: 0.95em;
	line-height: 1;
}

/* ============================================================
 * Course-landing redesign — Registration Details panel reframe
 * Comp .reg-panel: flat white card, mist border, thin dividers,
 * no zebra striping. Scoped to body.cfe-course-redesign; the native
 * <details> collapse + max-height animation are kept as-is.
 * Comp tokens: --line #E8EAED, --line-2 #EEF0F3, --muted #5B6573,
 * --ink #1B2A3B, --faint #9199A6.
 * ============================================================ */
body.cfe-course-redesign .uc-course-details {
  border-color: var(--cfe-ds-color-mist, #E8EAED);
  background-color: var(--cfe-ds-color-paper, #fff);
  margin-top: 14px;
}
body.cfe-course-redesign .uc-course-details__summary {
  padding: 12px 15px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cfe-ds-color-graphite, #5B6573);
  background-color: var(--cfe-ds-color-paper, #fff);
}
/* Flat rows — drop the blue zebra tint, thin mist-light dividers */
body.cfe-course-redesign .uc-course-details__row,
body.cfe-course-redesign .uc-course-details__row:nth-child(even),
body.cfe-course-redesign .uc-course-details__row:nth-child(odd) {
  background-color: transparent;
  padding: 12px 15px;
  border-top: 1px solid #EEF0F3;
}
body.cfe-course-redesign .uc-course-details__label {
  color: var(--cfe-ds-color-graphite, #5B6573);
  font-weight: 600;
}
body.cfe-course-redesign .uc-course-details__value {
  color: var(--cfe-ds-color-ink, #1B2A3B);
  font-weight: 500;
}
/* Chevron + tooltip "?" icon → neutral to match the flat panel */
body.cfe-course-redesign .uc-course-details__chevron::before {
  border-top-color: #9199A6;
}
body.cfe-course-redesign .uc-course-details__label-icon {
  background-color: #F1F3F7;
  color: var(--cfe-ds-color-graphite, #5B6573);
}
