/* Tutor Installments – frontend styles */

.tutor-installments-locked {
	text-align: center;
	padding: 48px 24px;
	border: 1px dashed #d0d5dd;
	border-radius: 10px;
	background: #fafafa;
	margin: 24px 0;
}

.tutor-installments-locked .ti-locked-icon {
	font-size: 48px;
	line-height: 1;
	margin-bottom: 12px;
}

.tutor-installments-locked .ti-locked-title {
	margin: 0 0 8px;
	font-size: 22px;
}

.tutor-installments-locked .ti-locked-text,
.tutor-installments-locked .ti-locked-amount {
	margin: 4px 0;
	color: #475467;
}

.ti-pay-button {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 24px;
	background: #1f7aec;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.15s ease;
}

.ti-pay-button:hover {
	background: #155fc0;
}

/* Curriculum lock badge */
.tutor-installments-lock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #b54708;
	background: #fff4e5;
	padding: 2px 8px;
	border-radius: 12px;
}

/* Dashboard */
.tutor-installments-dashboard .ti-dash-title {
	margin-bottom: 16px;
}

.tutor-installments-dashboard .ti-course-card {
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
	background: #fff;
}

.tutor-installments-dashboard .ti-course-title {
	margin: 0 0 8px;
	font-size: 18px;
}

.tutor-installments-dashboard .ti-course-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 14px;
	color: #475467;
	font-size: 14px;
}

.tutor-installments-dashboard .ti-installments-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
}

.tutor-installments-dashboard .ti-installments-table th,
.tutor-installments-dashboard .ti-installments-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eef0f2;
}

.ti-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.ti-badge-paid {
	background: #e5f5e8;
	color: #1a7f37;
}

.ti-badge-due {
	background: #fff3cd;
	color: #8a6d3b;
}

.ti-badge-locked {
	background: #f2f4f7;
	color: #667085;
}

.tutor-installments-dashboard .ti-all-paid {
	color: #1a7f37;
	font-weight: 600;
	margin: 0;
}

.ti-full-price {
	color: #667085;
}

.ti-first-price strong {
	color: #1a7f37;
}

/* ------------------------------------------------------------------ */
/* Purchase options (Full vs Installments comparison cards)            */
/* ------------------------------------------------------------------ */
.ti-purchase-options {
	margin: 20px 0;
}

.ti-options-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.ti-option-card {
	position: relative;
	border: 2px solid #e4e7ec;
	border-radius: 12px;
	padding: 24px 20px;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.ti-option-card.ti-is-best {
	border-color: #1f7aec;
	box-shadow: 0 6px 20px rgba(31, 122, 236, 0.12);
}

.ti-best-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: #1f7aec;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

.ti-option-title {
	margin: 4px 0 6px;
	font-size: 20px;
}

.ti-option-sub {
	color: #667085;
	margin: 0 0 14px;
	font-size: 14px;
}

.ti-installments-list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.ti-installments-list li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px dashed #eef0f2;
	font-size: 14px;
}

.ti-installments-list .ti-inst-no {
	width: 24px;
	color: #98a2b3;
	flex: 0 0 auto;
}

.ti-installments-list .ti-inst-label {
	flex: 1 1 auto;
}

.ti-installments-list .ti-inst-amt {
	font-weight: 600;
}

.ti-option-price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 8px 0;
	padding-top: 10px;
	border-top: 1px solid #eef0f2;
}

.ti-option-price .ti-price-value {
	font-size: 24px;
	font-weight: 800;
	color: #1d2327;
}

.ti-option-save {
	color: #1a7f37;
	font-weight: 600;
	margin: 4px 0 0;
}

.ti-option-note {
	color: #667085;
	font-size: 13px;
	margin: 6px 0 0;
}

.ti-buy-button {
	display: block !important;
	text-align: center !important;
	margin-top: auto !important;
	padding: 12px 18px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	cursor: pointer !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin-top: 16px !important;
}

.ti-buy-full {
	background: #1d2327 !important;
	color: #fff !important;
	border: 2px solid #1d2327 !important;
}

.ti-buy-full:hover {
	background: #3c434a !important;
	color: #fff !important;
}

.ti-buy-installment {
	background: #fff !important;
	color: #1d2327 !important;
	border: 2px solid #1d2327 !important;
}

.ti-buy-installment:hover {
	background: #1d2327 !important;
	color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* Dashboard progress section                                          */
/* ------------------------------------------------------------------ */
.ti-progress-section {
	margin: 14px 0 18px;
}

.ti-progress-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.ti-progress-title {
	font-weight: 600;
	color: #344054;
}

.ti-progress-percent {
	font-weight: 700;
	color: #1f7aec;
}

.ti-progress-bar {
	width: 100%;
	height: 12px;
	background: #eef0f2;
	border-radius: 999px;
	overflow: hidden;
}

.ti-progress-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #1f7aec, #1a7f37);
	border-radius: 999px;
	transition: width 0.4s ease;
}

.ti-progress-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
	font-size: 13px;
	color: #475467;
}

.ti-badge-fullpaid {
	background: #d1fadf;
	color: #027a48;
	margin-left: 8px;
	vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 600px) {
	.ti-options-grid {
		grid-template-columns: 1fr;
	}

	.ti-progress-stats {
		flex-direction: column;
		gap: 4px;
	}
}

/* ------------------------------------------------------------------ */
/* Tutor LMS course page wrapper                                       */
/* ------------------------------------------------------------------ */
.ti-tutor-course-cards {
	margin: 0 0 24px;
}

.ti-tutor-course-cards .ti-purchase-options {
	margin: 0;
}
