/* Free Shipping Progress Bar */
.jjs-shipping-bar {
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 16px;
	position: relative;
	overflow: hidden;
}

.jjs-shipping-bar-inner {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: linear-gradient(90deg, #4caf50, #45a049);
	opacity: 0.2;
	transition: width 0.3s ease;
}

.jjs-shipping-bar-text {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 13px;
	color: #333;
	font-weight: 500;
}

/* My Subscription Page */
.jjs-my-subscription {
	max-width: 900px;
}

.jjs-membership-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.jjs-membership-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.jjs-membership-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.jjs-membership-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.jjs-membership-status.jjs-status-active {
	background: #d4edda;
	color: #155724;
}

.jjs-membership-status.jjs-status-cancelled {
	background: #f8d7da;
	color: #721c24;
}

.jjs-membership-status.jjs-status-pending {
	background: #fff3cd;
	color: #856404;
}

.jjs-membership-details {
	margin-bottom: 16px;
}

.jjs-membership-details p {
	margin: 8px 0;
	font-size: 14px;
}

.jjs-membership-note {
	background: #f0f0f0;
	padding: 12px;
	border-left: 3px solid #999;
	font-style: italic;
	color: #666;
	margin: 12px 0;
}

.jjs-membership-actions {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.jjs-cancel-membership {
	background: #dc3545;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s ease;
}

.jjs-cancel-membership:hover {
	background: #c82333;
}

/* Billing History */
.jjs-membership-billing-history {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

.jjs-membership-billing-history h4 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 16px;
	color: #333;
}

.jjs-billing-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.jjs-billing-table thead {
	background: #f9f9f9;
	border-bottom: 2px solid #ddd;
}

.jjs-billing-table th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #333;
}

.jjs-billing-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
}

.jjs-billing-table tbody tr:hover {
	background: #f9f9f9;
}

.jjs-charge-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.jjs-charge-status.jjs-status-success {
	background: #d4edda;
	color: #155724;
}

.jjs-charge-status.jjs-status-failed {
	background: #f8d7da;
	color: #721c24;
}

.jjs-billing-table a {
	color: #0073aa;
	text-decoration: none;
}

.jjs-billing-table a:hover {
	text-decoration: underline;
}

/* Cancel Modal */
.jjs-modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	display: none;
}

.jjs-modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 90%;
	max-width: 400px;
	border-radius: 6px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.jjs-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
}

.jjs-modal-close:hover,
.jjs-modal-close:focus {
	color: black;
}

.jjs-modal-content h2 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #333;
}

.jjs-modal-content p {
	margin: 12px 0;
	color: #666;
	font-size: 14px;
}

.jjs-modal-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.jjs-modal-actions button {
	flex: 1;
	padding: 10px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s ease;
}

.jjs-modal-actions .button {
	background: #f0f0f0;
	color: #333;
}

.jjs-modal-actions .button:hover {
	background: #e0e0e0;
}

.jjs-modal-actions .button-primary {
	background: #dc3545;
	color: white;
}

.jjs-modal-actions .button-primary:hover {
	background: #c82333;
}

/* Responsive */
@media (max-width: 600px) {
	.jjs-membership-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.jjs-membership-status {
		align-self: flex-start;
	}

	.jjs-billing-table {
		font-size: 12px;
	}

	.jjs-billing-table th,
	.jjs-billing-table td {
		padding: 8px;
	}

	.jjs-modal-content {
		width: 95%;
		margin: 50% auto;
	}
}
