/**
 * Subscription Details Styles
 */

/* Main Container */
.labgenz-subscription-details {
	font-family: var(--wp--preset--font-family--system-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
	max-width: 100%;
	margin: 2rem auto;
	padding: 1.5rem;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Title and Subtitle */
.labgenz-subscription-details__title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #f0f0f0;
}

.labgenz-subscription-details__subtitle {
	font-size: 1.2rem;
	font-weight: 600;
	color: #444;
	margin: 1.5rem 0 1rem;
}

/* Notice Boxes */
.labgenz-subscription-notice {
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.labgenz-subscription-notice--warning {
	background-color: #fff8e1;
	border: 1px solid #ffd54f;
	color: #856404;
}

.labgenz-subscription-notice--error {
	background-color: #fef1f2;
	border: 1px solid #f8d7da;
	color: #721c24;
}

.labgenz-subscription-notice--success {
	background-color: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #155724;
}

/* Table Styles */
.labgenz-subscription-table-container {
	overflow-x: auto;
	margin-bottom: 1.5rem;
}

.labgenz-subscription-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #eee;
}

.labgenz-subscription-table th,
.labgenz-subscription-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.labgenz-subscription-table th {
	background-color: #f9f9f9;
	font-weight: 600;
	width: 40%;
}

/* Status Badge */
.labgenz-subscription-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 0.875rem;
	font-weight: 500;
}

.labgenz-subscription-status--active {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.labgenz-subscription-status--pending {
	background-color: #fff8e1;
	color: #f57c00;
}

.labgenz-subscription-status--inactive {
	background-color: #f5f5f5;
	color: #757575;
}

.labgenz-subscription-status--expired {
	background-color: #fef1f2;
	color: #d32f2f;
}

/* Benefits List */
.labgenz-subscription-benefits-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
}

.labgenz-subscription-benefit {
	display: flex;
	align-items: center;
	padding: 10px;
	border-radius: 6px;
	background-color: #f9f9f9;
}

.labgenz-subscription-benefit.is-enabled {
	background-color: #f1f8e9;
}

.labgenz-subscription-benefit.is-disabled {
	background-color: #f5f5f5;
	color: #757575;
}

.labgenz-subscription-benefit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	margin-right: 10px;
	font-size: 14px;
	font-weight: bold;
}

.is-enabled .labgenz-subscription-benefit-icon {
	background-color: #4caf50;
	color: white;
}

.is-disabled .labgenz-subscription-benefit-icon {
	background-color: #e0e0e0;
	color: #9e9e9e;
}

/* Buttons */
.labgenz-subscription-actions {
	margin-top: 1.5rem;
	display: flex;
	justify-content: flex-end;
}

.labgenz-btn {
	display: inline-block;
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.labgenz-btn--primary {
	background-color: #1976d2;
	color: white;
	border-color: #1976d2;
}

.labgenz-btn--primary:hover {
	background-color: #1565c0;
	border-color: #1565c0;
}

.labgenz-subscription-renewal-btn {
	padding: 6px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.2s ease;
}



/* Responsive adjustments */
@media (max-width: 768px) {
	.labgenz-subscription-benefits-list {
		grid-template-columns: 1fr;
	}

	.labgenz-subscription-table th {
		width: 50%;
	}
}
