/* WooCommerce Service Subscription - Frontend */

.wss-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.75em;
	font-weight: 600;
	background: #2271b1;
	color: #fff;
	margin-left: 4px;
	vertical-align: middle;
}

.wss-badge-trial {
	background: #00a32a;
}

.wss-recurring-suffix {
	color: #666;
	font-size: 0.9em;
	font-weight: normal;
}

.wss-subscription-details {
	background: #f7f7f7;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 12px 16px;
	margin: 12px 0 24px;
}

.wss-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wss-details-list li {
	padding: 6px 0;
	border-bottom: 1px solid #ececec;
	font-size: 0.92em;
}

.wss-details-list li:last-child {
	border-bottom: none;
}

.wss-details-list strong {
	min-width: 110px;
	display: inline-block;
	color: #333;
}

.wss-my-subscriptions h2 {
	margin-bottom: 16px;
}

.wss-subscriptions-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.wss-subscriptions-table th,
.wss-subscriptions-table td {
	padding: 10px 8px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.wss-subscriptions-table th {
	font-weight: 600;
	color: #333;
	background: #fafafa;
}

.wss-actions {
	white-space: nowrap;
}

.wss-actions .button {
	margin-right: 4px;
}

.wss-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: capitalize;
}

.wss-status-active,
.wss-status-trial {
	background: #d4f5dd;
	color: #155a28;
}

.wss-status-on-hold,
.wss-status-pending-cancel {
	background: #fef8e7;
	color: #8a6d3b;
}

.wss-status-payment-due {
	background: #fff4e5;
	color: #b26a00;
}

.wss-status-cancelled,
.wss-status-expired {
	background: #fde8e8;
	color: #842029;
}

.wss-status-pending {
	background: #e7eef7;
	color: #2a5a8a;
}

.wss-actions-bar {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.wss-actions-bar .button {
	margin-right: 8px;
}

.wss-cancel-btn {
	background: #b32d2e !important;
	color: #fff !important;
	border-color: #b32d2e !important;
}

.wss-cancel-btn:hover {
	background: #8b1f20 !important;
}

.wss-empty {
	text-align: center;
	padding: 40px 20px;
	background: #fafafa;
	border-radius: 6px;
}

.wss-view-subscription .wss-subscription-details-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.wss-view-subscription .wss-subscription-details-table th {
	width: 30%;
	text-align: left;
	padding: 12px 10px;
	background: #fafafa;
	border-bottom: 1px solid #eee;
}

.wss-view-subscription .wss-subscription-details-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
	.wss-subscriptions-table thead {
		display: none;
	}
	.wss-subscriptions-table tr {
		display: block;
		margin-bottom: 12px;
		border: 1px solid #eee;
		padding: 8px;
	}
	.wss-subscriptions-table td {
		display: block;
		text-align: right;
		border-bottom: 1px solid #f0f0f0;
	}
	.wss-subscriptions-table td::before {
		content: attr(data-title) ": ";
		float: left;
		font-weight: 600;
	}
}
