/*
 * Dashboard payments card override for the Tutor child theme.
 * Scope intentionally limited to the custom "Pagos pendientes" card.
 */

.cfvp-dashboard-payments-card {
	text-decoration: none;
	border-radius: 6px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cfvp-dashboard-payments-card--neutral {
	border: 1px solid var(--tutor-border-color, #e0e2ea);
	background: #ffffff;
	color: inherit;
	box-shadow: none;
}

.cfvp-dashboard-payments-card--highlight {
	border: 1px solid rgba(249, 115, 22, 0.2) !important;
	background: linear-gradient(135deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 237, 213, 0.96) 100%);
	color: #9a3412;
	box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.cfvp-dashboard-payments-card__inner {
	position: relative;
}

.cfvp-dashboard-payments-card__cta {
	position: absolute;
	top: 18px;
	right: 18px;
	color: #fff7ed;
	background: #ea580c;
	border: 1px solid rgba(249, 115, 22, 0.2);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	padding: 4px 10px;
	box-shadow: 0 8px 18px rgba(249, 115, 22, 0.18);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	overflow: hidden;
	white-space: nowrap;
	transition: box-shadow 0.3s ease;
	isolation: isolate;
	z-index: 0;
}

.cfvp-dashboard-payments-card__cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	animation: cfvp-metallic-shine 3s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

.cfvp-dashboard-payments-card__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 50%, rgba(0, 0, 0, 0.08) 100%);
	border-radius: inherit;
	pointer-events: none;
	z-index: 0;
}

@keyframes cfvp-metallic-shine {
	0% {
		left: -100%;
	}

	20%,
	100% {
		left: 100%;
	}
}

.cfvp-dashboard-payments-card__icon {
	background: rgba(var(--tutor-color-primary-rgb), .1);
	color: var(--tutor-color-primary, #3e64de);
	box-shadow: none;
}

.cfvp-dashboard-payments-card--highlight .cfvp-dashboard-payments-card__icon {
	background: #ffffff;
	color: #f97316;
	box-shadow: 0 10px 20px rgba(249, 115, 22, 0.14);
}

.cfvp-dashboard-payments-card__count,
.cfvp-dashboard-payments-card__count-mobile {
	color: #111827;
}

.cfvp-dashboard-payments-card--highlight .cfvp-dashboard-payments-card__count,
.cfvp-dashboard-payments-card--highlight .cfvp-dashboard-payments-card__count-mobile {
	color: #9a3412;
}

.cfvp-dashboard-payments-card__label {
	color: var(--tutor-color-secondary, #41454f);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cfvp-dashboard-payments-card--highlight .cfvp-dashboard-payments-card__label {
	color: #9a3412;
}

.cfvp-dashboard-payments-card--highlight:hover {
	transform: translateY(-1px);
	background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
	border-color: rgba(249, 115, 22, 0.35);
	box-shadow: 0 16px 32px rgba(249, 115, 22, 0.18);
	color: #ffffff;
}

.cfvp-dashboard-payments-card__cta:hover {
	box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
	transform: translateY(-3px);
}

.cfvp-dashboard-payments-card__cta:active {
	transform: translateY(-1px);
}

.cfvp-dashboard-payments-card--highlight:hover .cfvp-dashboard-payments-card__icon {
	background: #ffffff;
	color: #f97316;
	box-shadow: 0 10px 20px rgba(255, 255, 255, 0.22);
}

.cfvp-dashboard-payments-card--highlight:hover .cfvp-dashboard-payments-card__count,
.cfvp-dashboard-payments-card--highlight:hover .cfvp-dashboard-payments-card__count-mobile,
.cfvp-dashboard-payments-card--highlight:hover .cfvp-dashboard-payments-card__label {
	color: #ffffff;
}

@media (min-width: 992px) {
	.cfvp-dashboard-payments-card--highlight:hover .cfvp-dashboard-payments-card__cta {
		background: #ffffff;
		color: #9a3412;
		border-color: rgba(255, 255, 255, 0.95);
		box-shadow: 0 10px 22px rgba(255, 255, 255, 0.28);
	}

	.cfvp-dashboard-payments-card--highlight:hover .cfvp-dashboard-payments-card__cta::before {
		background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.22), transparent);
	}

	.cfvp-dashboard-payments-card--highlight:hover .cfvp-dashboard-payments-card__cta::after {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 50%, rgba(154, 52, 18, 0.08) 100%);
	}
}

@media (max-width: 991px) {
	.cfvp-dashboard-payments-card__label {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 20px;
	}

	.cfvp-dashboard-payments-card__cta {
		position: relative;
		top: auto;
		right: auto;
		margin-top: 0;
	}
}

.tutor-dashboard #tutor-dashboard-footer-mobile {
	padding: 0px !important;
}