/* Tutor WC Subscription - Frontend Styles */

/* Status badges */
.twcs-status-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	line-height: 1.4;
}

/* Plan cards */
.twcs-plan-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
	background: #fff;
	transition: box-shadow 0.2s;
}

.twcs-plan-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.twcs-plan-card__title {
	font-size: 20px;
	margin: 0 0 16px;
	color: #333;
}

.twcs-plan-card__price {
	margin-bottom: 8px;
}

.twcs-plan-card__amount {
	font-size: 32px;
	font-weight: 700;
	color: #0073aa;
}

.twcs-plan-card__label {
	display: block;
	font-size: 13px;
	color: #666;
}

.twcs-plan-card__recurring {
	font-size: 14px;
	color: #555;
	margin-bottom: 16px;
}

.twcs-plan-card__description {
	font-size: 14px;
	color: #666;
	margin-bottom: 16px;
	text-align: left;
}

.twcs-plan-card__trial {
	font-size: 13px;
	color: #5cb85c;
	font-weight: 600;
	margin-bottom: 16px;
}

.twcs-plan-card__action {
	margin-top: 16px;
}

.twcs-plan-card__action .button,
.twcs-plan-card__action .twcs-subscribe-btn {
	width: 100%;
	text-align: center;
	padding: 10px 20px;
	display: inline-block;
	box-sizing: border-box;
}

/* Subscribe button shortcode */
.twcs-subscribe-btn {
	display: inline-block;
	padding: 10px 24px;
	background-color: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.2s;
}

.twcs-subscribe-btn:hover {
	background-color: #005f8c;
	color: #fff;
}

/* ==============================
   Tutor Dashboard Subscription Styles
   ============================== */

.twcs-tutor-subscriptions,
.twcs-tutor-subscription-detail {
	padding: 10px 0;
}

.twcs-tutor-subscriptions h3,
.twcs-tutor-subscription-detail h3 {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 600;
	color: #212327;
}

.twcs-tutor-subscription-detail h4 {
	margin: 30px 0 15px;
	font-size: 16px;
	font-weight: 600;
	color: #212327;
}

/* Empty state */
.twcs-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #757c8e;
}

/* Generic table styles for dashboard */
.twcs-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e2e4e9;
	border-radius: 6px;
	overflow: hidden;
	font-size: 14px;
}

.twcs-table thead {
	background-color: #f4f6f9;
}

.twcs-table thead th {
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	color: #41454f;
	font-size: 13px;
	white-space: nowrap;
	border-bottom: 1px solid #e2e4e9;
}

.twcs-table tbody td {
	padding: 12px 16px;
	border-bottom: 1px solid #e2e4e9;
	vertical-align: middle;
	color: #41454f;
}

.twcs-table tbody tr:last-child td {
	border-bottom: none;
}

.twcs-table tbody tr:hover {
	background-color: #f9fafb;
}

/* Detail table */
.twcs-detail-table th {
	width: 180px;
	font-weight: 600;
	color: #41454f;
}

.twcs-detail-card {
	border: 1px solid #e2e4e9;
	border-radius: 6px;
	overflow: hidden;
}

/* Action buttons */
.twcs-detail-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Cancel button */
.twcs-cancel-btn,
.tutor-btn-outline-danger {
	border: 1px solid #d9534f !important;
	color: #d9534f !important;
	background: transparent !important;
}

.twcs-cancel-btn:hover,
.tutor-btn-outline-danger:hover {
	background: #d9534f !important;
	color: #fff !important;
}

/* My Subscriptions table (WooCommerce My Account fallback) */
.twcs-subscriptions-table {
	width: 100%;
}

.twcs-subscriptions-table .button.cancel {
	background: #d9534f;
	color: #fff;
	border-color: #d43f3a;
}

.twcs-subscriptions-table .button.cancel:hover {
	background: #c9302c;
}

/* Detail page (WooCommerce My Account fallback) */
.twcs-subscription-detail .twcs-detail-table th {
	width: 180px;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
	.twcs-plans-grid {
		grid-template-columns: 1fr !important;
	}

	.twcs-table thead {
		display: none;
	}

	.twcs-table tbody td {
		display: block;
		text-align: right;
		padding: 8px 16px;
	}

	.twcs-table tbody td::before {
		content: attr(data-label);
		float: left;
		font-weight: 600;
		color: #41454f;
	}

	.twcs-table tbody tr {
		border-bottom: 2px solid #e2e4e9;
		margin-bottom: 10px;
	}

	.twcs-detail-table td::before {
		display: none;
	}

	.twcs-detail-table td {
		text-align: left;
	}

	.twcs-detail-actions {
		flex-direction: column;
	}
}
