#ex1 {
	position: relative;
	scroll-behavior: unset;
	top: 0;
	left: 0;
	z-index: 1055;
	display: none;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: hidden !important;
	outline: 0;
}

/* Popup Modal Grid Item Restoration */
.ld_goal_setting_weekly_goal-grid-item {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	width: 100%;
	max-width: 550px;
	margin: 0 auto;
}

.ld_goal_setting_weekly_goal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	background: var(--ld-primary-color, #0563cd);
	/* Blue Header */
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ld_goal_setting_weekly_goal-header h4 {
	color: #ffffff !important;
	font-size: 18px;
	margin: 0;
	font-weight: 600;
}

.ld_goal_setting_weekly_goal-content {
	padding: 30px;
	background: #ffffff;
	text-align: center;
}

.ld-goal-overview-container {
	display: flex;
	justify-content: center;
	margin: 20px 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ld-goal-overview-card {
	width: 95%;
	max-width: 485px;
	/* Reduced width */
	background: #FDF9F0;
	/* Cream background */
	border: 1px solid #e0dfce;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	margin: 0 auto;
	overflow: hidden;
}

.ld-goal-overview-header {
	background: var(--ld-primary-color, #0563cd);
	/* Dynamic Primary Color */
	padding: 12px 20px;
}

.ld-goal-overview-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ld-goal-overview-title h4 {
	color: #ffffff;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.ld-edit-goal-btn {
	background: #ffffff;
	color: var(--ld-primary-color, #0563cd);
	padding: 5px 15px;
	border-radius: 4px;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s;
}

.ld-edit-goal-btn:hover {
	background: #f0f0f0;
	color: var(--ld-primary-color, #0563cd);
}

.ld-goal-overview-content {
	display: flex;
	padding: 30px;
	min-height: 250px;
}

.ld-goal-overview-left {
	flex: 0 0 45%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-right: 20px;
	border-right: 1px solid var(--ld-primary-color, #0563cd);
}

.ld-goal-overview-right {
	flex: 1;
	padding-left: 13px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
}

/* Circle Progress Styling */
.ld-goal-overview-left .one {
	width: 160px;
	height: 160px;
	position: relative;
}

.ld-goal-overview-left .time-clock {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.ld-goal-overview-left .time-remaining {
	text-align: center;
}

.ld-progress-main {
	font-size: 32px;
	font-weight: 800;
	color: var(--ld-primary-color, #0563cd);
	line-height: 1;
}

.time-unit {
	font-size: 24px;
	font-weight: 700;
	color: var(--ld-primary-color, #0563cd);
	line-height: 1.2;
}

.ld-progress-percent {
	margin-top: 15px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

/* Right Details Panel */
.ld-info-row {
	padding: 10px 0;
	border-bottom: 1px solid var(--ld-primary-color, #0563cd);
	margin-bottom: 15px;
	width: 100%;
}

.ld-label {
	font-weight: 700;
	font-size: 16px;
	color: #545a60;
	margin-right: 5px;
}

.ld-value {
	font-size: 16px;
	color: #545a60;
}

.ld-goal-message {
	font-size: 15px;
	line-height: 1.5;
	color: #333;
	margin-top: 10px;
}

/* Pop-Up Modal to edit weekly goal */
.blocker {
	z-index: 9999 !important;
	padding: 80px 15px !important;
	/* Increased top padding to avoid top bar */
	overflow-y: auto !important;
}

.modal {
	vertical-align: middle;
	display: inline-block;
	max-width: none;
	padding: 0;
	background: transparent;
	box-shadow: none;
}


/* Popup Restoration & Theme Parity */
.modal .ld_goal_setting_weekly_goal-grid-item {
	background: #ffffff !important;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	/* Reduced width to match user's image */
	width: 95%;
	margin: 20px auto;
	/* Added margin to center vertically a bit better */
	border: none;
	position: relative;
	z-index: 10000;
}

.modal .ld_goal_setting_weekly_goal-header {
	background: var(--ld-primary-color, #0563cd);
	padding: 15px 25px;
	border-bottom: none;
	display: flex;
	/* justify-content: center; */
	/* align-items: center; */
	position: relative;
}

.modal .ld_goal_setting_weekly_goal-header h4 {
	color: #ffffff !important;
	font-size: 20px !important;
	font-weight: 600;
	margin: 0;
}

.modal .ld_goal_setting_weekly_goal-content {
	background: #ffffff;
	padding: 40px 30px;
	text-align: center;
}

/* Popup Structure Cleaning */
.modal .ld-goal-overview-card {
	display: none !important;
	/* Prevent overview styles from leaking into modal */
}

.modal .ld-goal-overview-header {
	display: none !important;
}

.modal .ld-goal-overview-content {
	display: none !important;
}

.modal .ld_goal_overview-header {
	padding: 10px 20px;
	background: #006D5B;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.modal .ld-goal-overview-title h4 {
	font-size: 20px;
	color: #fff;
	font-weight: 600;
}

.weekly_goal-grid-close a {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	width: 40px;
	height: 40px;
}

.weekly_goal-grid-close a::after {
	content: '';
	width: 15px;
	height: 3px;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 10px;
}

/* 
.modal .ld_goal_setting_weekly_goal-content {
	padding: 20px 130px 54px 129px;
} */

.pop-up-illustration img {
	display: block;
	margin: 0 auto;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin-bottom: 5px;
}

.ld_goal_setting_weekly_goal-grid-item .ld_goal_setting_weekly_goal-content .time-duration {
	font-size: 18px;
	line-height: 21px;
	color: #C4C4C4;
	text-align: left;
	font-weight: 400;
	margin-bottom: 11px;
}

/* Linear progress bar fix */
.ld_goal_steps {
	display: flex;
	width: 100%;
	margin: 80px 0 60px 0;
	padding: 0;
	list-style: none;
	position: relative;
	justify-content: space-between;
}

.ld_goal_steps::before {
	display: block;
	position: absolute;
	height: 4px;
	content: "";
	width: calc(100% - 20px);
	top: 7px;
	left: 10px;
	background: #f3f4f6;
	border-radius: 2px;
	z-index: 0;
}

.ld_goal_step {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	position: relative;
	flex: 1;
	z-index: 1;
}

.step--active,
.step--complete {
	cursor: pointer;
	pointer-events: all;
}

.ld_goal_step:not(:last-child):before,
.ld_goal_step:not(:last-child):after {
	display: none;
	/* Removed as per new design */
}

.ld_goal_step:before {
	width: 100%;
	background: transparent;
}

.ld_goal_step:after {
	width: 0;
	background-color: transparent;
}

.step--complete:after {
	width: 100% !important;
	opacity: 1;
	transition: width 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.step_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 18px;
	height: 18px;
	background-color: #fff;
	border-radius: 50%;
	border: 3px solid #e5e7eb;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	transition: all 0.3s ease;
}

.step--incomplete.step--active .step_icon {
	border-color: var(--ld-primary-color, #0563cd);
}

.step--active .step_icon {
	border-color: var(--ld-primary-color, #0563cd);
	transform: scale(1.1);
}

.step--complete .step_icon {
	-webkit-animation: bounce 0.5s ease-in-out;
	animation: bounce 0.5s ease-in-out;
	background-color: var(--ld-primary-color, #0563cd);
	border-color: var(--ld-primary-color, #0563cd);
	box-shadow: 0px 5px 10px rgba(5, 99, 205, 0.2);
}

.step_label {
	position: absolute;
	top: -60px;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	/* Slightly smaller to prevent overlap */
	color: #333;
	white-space: nowrap;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.step--incomplete.step--inactive .step_label {
	color: #262626;
}

.step--inactive .step_label {
	opacity: 0.3;
}

.step--incomplete.step--active .step_label {
	color: #262626;
}

.step--active .step_label {
	color: var(--ld-primary-color, #0563cd);
	transform: translateY(-5px);
	transition: all 0.3s ease;
}

.step-min {
	display: block;
	font-weight: 500;
	font-size: 13px;
	color: #6B7280;
	text-transform: uppercase;
	margin-top: 2px;
}

.ld_goal_step.step--complete.step--inactive .step-min {
	color: rgba(5, 99, 205, 0.5);
}

.step--active .step-min {
	color: var(--ld-primary-color, #0563cd);
}

@-webkit-keyframes bounce {
	0% {
		transform: scale(1);
	}

	33% {
		transform: scale(0.9);
	}

	66% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes bounce {
	0% {
		transform: scale(1);
	}

	33% {
		transform: scale(0.9);
	}

	66% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1);
	}
}

.ld_goal_setting_weekly_goal-grid-item .ld_goal_setting_weekly_goal-content .time-duration {
	font-size: 14px;
	color: #6B7280;
	text-align: center;
	font-weight: 600;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.weekly_goal-button button {
	background: var(--ld-primary-color, #0563cd);
	border: none;
	border-radius: 6px;
	color: #fff;
	padding: 12px 40px;
	width: 100%;
	max-width: 250px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(5, 99, 205, 0.2);
	transition: all 0.2s ease;
}

.weekly_goal-button button:hover {
	background: var(--ld-primary-color, #0563cd);
	filter: brightness(0.9);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(5, 99, 205, 0.3);
}

.weekly_goal-button-remove {
	margin-top: 18px;
}

.weekly_goal-button-remove button {
	background: transparent;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	color: #9CA3AF;
	padding: 12px 40px;
	width: 100%;
	max-width: 250px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 12px;
	transition: all 0.2s ease;
}

.weekly_goal-button-remove button:hover {
	border-color: #ef4444;
	color: #ef4444;
	background: #fef2f2;
}

.weekly_goal-button button:focus {
	outline: none;
}

.modal .ld-goal-overview-card {
	display: none !important;
}

.modal .weekly_goal-header {
	padding: 5px 31px 5px;
}

/* Styles for LearnDash Goals Widget Block */
.ld_goal_setting_weekly_goal-grid-item.ld_goal_widget {
	-webkit-box-flex: 0 1 294px;
	-moz-box-flex: 0 1 294px;
	-webkit-flex: 0 1 294px;
	-ms-flex: 0 1 294px;
	flex: 0 1 294px;
	max-width: 294px;
	margin: 0 10px;
}

.ld_goal_widget .ld_goal_setting_weekly_goal-content {
	padding: 35px 40px 55px 40px;
}

/**/

/* BuddyBoss styles for LearnDash Goals Shortcode Block */
.ld_goal_setting_weekly_goal-grid-item.bb_goal_grid_item {
	-webkit-box-flex: 0 1 385px;
	-moz-box-flex: 0 1 385px;
	-webkit-flex: 0 1 385px;
	-ms-flex: 0 1 385px;
	flex: 0 1 385px;
	max-width: 385px;
	margin: 0 10px;
	border: 1px solid #EBE9E6;
	border-radius: 2px;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-header {
	background: #fff;
	padding: 0px 31px;
	height: 38px;
	border-bottom: 1px solid #EBE9E6;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content {
	padding: 19px 115px 36px 115px;
	background: #fff;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-header .ld_goal_setting_weekly_goal-grid-title h4 {
	font-family: Arial;
	color: #272727;
	font-size: 9px;
	line-height: 10px;
	font-weight: bold;
	margin: 0;
	text-transform: uppercase;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-grid-title a {
	font-family: Arial;
	font-weight: normal;
	font-size: 9px;
	line-height: 10px;
	color: #C8CBCF;
	text-decoration: none;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content #bb_circle,
.bb_goal_grid_item .ld_goal_setting_weekly_goal-content #bb_circle_widget {
	width: 81px;
	height: 81px;
	position: relative;
	margin: 0 auto;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content #bb_circle svg,
.bb_goal_grid_item .ld_goal_setting_weekly_goal-content #bb_circle_widget svg {
	position: relative;
	z-index: 1;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content #bb_circle svg path:first-child,
.bb_goal_grid_item .ld_goal_setting_weekly_goal-content #bb_circle_widget svg path:first-child {
	-webkit-filter: drop-shadow(0px 5px 10px #E5E5E5);
	filter: drop-shadow(0px 5px 10px #E5E5E5);
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content .time-clock {
	position: absolute;
	background: #fff;
	box-shadow: 0px 5px 10px #e5e5e5;
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border-radius: 50%;
	padding: 0;
	right: 0px;
	top: 8px;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content .time-clock .time-remaining {
	font-family: Arial;
	font-weight: bold;
	font-size: 16px;
	line-height: 18px;
	color: #FE6F4B;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content .time-clock .time-unit {
	font-family: Arial;
	font-weight: normal;
	font-size: 11px;
	line-height: 11px;
	color: #262626;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content .week-range {
	font-family: Arial;
	font-weight: normal;
	font-size: 9px;
	line-height: 10px;
	color: #C4C4C4;
	margin: 14px 0 6px 0;
}

.bb_goal_grid_item .ld_goal_setting_weekly_goal-content .caption {
	font-size: 11px;
	font-family: Arial;
	line-height: 13px;
	margin-bottom: 15px;
	color: #262626;
}

.bb_goal_grid_item .weekly_goal-grid-edit-options a {
	background: transparent;
	border: 0.8px solid #FE6F4B;
	border-radius: 27px;
	color: #FE6F4B;
	margin: 0 auto;
	padding: 4.5px 0;
	width: 150px;
	font-family: Arial;
	text-decoration: none;
	font-size: 11px;
	font-weight: bold;
	line-height: 15px;
	cursor: pointer;
	display: block;
}

.bb_goal_grid_item .weekly_goal-grid-edit-options a:hover {
	background-color: #FE6F4B;
	color: #fff;
}

/* BuddyBoss styles for LearnDash Goals Widget Block */
.ld_goal_setting_weekly_goal-grid-item.bb_goal_grid_item.bb_goal_widget {
	-webkit-box-flex: 0 1 212px;
	-moz-box-flex: 0 1 212px;
	-webkit-flex: 0 1 212px;
	-ms-flex: 0 1 212px;
	flex: 0 1 212px;
	max-width: 212px;
	margin: 0 10px;
	border: 1px solid #EBE9E6;
	border-radius: 2px;
}

.bb_goal_widget .ld_goal_setting_weekly_goal-header {
	background: #fff;
	padding: 0px 15px;
	height: 38px;
	border-bottom: 1px solid #EBE9E6;
}

.bb_goal_widget .ld_goal_setting_weekly_goal-content {
	padding: 19px 30px 30px 30px;
	background: #fff;
}

/**/

/* Pop-Up Modal to edit weekly goal in the ByddyBoss theme*/
.modal .ld_goal_setting_weekly_goal-grid-item.bb_goal_popup {
	border: 1px solid #EBE9E6;
	border-radius: 2px;
}

.bb_goal_popup .ld_goal_setting_weekly_goal-header {
	background: #fff;
	border-bottom: 1px solid #EBE9E6;
}

.bb_goal_popup .ld_goal_setting_weekly_goal-header .ld_goal_setting_weekly_goal-grid-title h4 {
	font-family: Arial;
	color: #272727;
	text-transform: uppercase;
}

.bb_goal_popup .weekly_goal-grid-close a::after {
	content: '';
	width: 15px;
	height: 3px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
}

/* Linear progress bar */
.bb_goal_popup .ld_goal_steps::before {
	display: block;
	position: absolute;
	height: 3px;
	content: "";
	width: 100%;
	margin-top: 6px;
	max-width: 215px;
	background: linear-gradient(209.83deg, #FE6F4B 0%, #D79005 35.73%, #16D082 100%);
}

.bb_goal_popup .step--incomplete.step--active .step_icon {
	border-color: #FE6F4B;
}

.bb_goal_popup .step--complete .step_icon {
	-webkit-animation: bounce 0.5s ease-in-out;
	animation: bounce 0.5s ease-in-out;
	background-color: #FE6F4B;
	box-shadow: 0px 5px 10px rgb(0 0 0 / 15%);
}

.bb_goal_popup .step_label {
	position: absolute;
	top: -4rem;
	font-family: Roboto;
	font-weight: bold;
	font-size: 24px;
	line-height: 28px;
	color: #FE6F4B;
}

.bb_goal_popup .ld_goal_step.step--complete.step--inactive .step-min {
	color: rgba(254, 111, 75, 0.5);
}

.bb_goal_popup .weekly_goal-button button {
	border: 1px solid #FE6F4B;
	border-radius: 27px;
	background: transparent;
	color: #FE6F4B;
	padding: 9.5px;
	width: 214px;
	font-size: 18px;
	font-weight: 700;
	line-height: 21px;
	cursor: pointer;
}

.bb_goal_popup .weekly_goal-button button:hover {
	background: #FE6F4B;
	color: #fff;
}

.bb_goal_popup .weekly_goal-button-remove button {
	background: transparent;
	border: 1px solid #c4c4c4;
	border-radius: 27px;
	color: #c4c4c4;
	letter-spacing: 0;
	padding: 8.5px;
	width: 214px;
	font-size: 18px;
	font-weight: 700;
	line-height: 21px;
	cursor: pointer;
}

.bb_goal_popup .weekly_goal-button-remove button:hover {
	background-color: #c4c4c4;
	color: #fff;
}

.bb_goal_popup .weekly_goal-button button:focus {
	outline: none;
}

/* Adaptive styles */
@media only screen and (max-width: 680px) {
	.ld-goal-overview-card {
		max-width: 100%;
		margin: 10px;
	}

	.ld-goal-overview-content {
		flex-direction: column;
		padding: 20px;
	}

	.ld-goal-overview-left {
		padding-right: 0;
		border-right: none;
		border-bottom: 1.5px solid var(--ld-primary-color, #0563cd);
		padding-bottom: 25px;
		margin-bottom: 25px;
		flex: 0 0 100%;
	}

	.ld-goal-overview-right {
		padding-left: 0;
		flex: 0 0 100%;
	}

	.modal .ld-goal-overview-header {
		padding: 15px 20px;
	}
}