/**
 * Sojat Bazaar Razorpay Subscriptions Stylesheet
 * Frontend membership dashboard components
 */

.sb-subscription-container {
	margin: 20px 0;
	width: 100%;
	max-width: 550px;
}

.sb-sub-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
	overflow: hidden;
	transition: all 0.3s ease;
}

.sb-sub-card:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.sb-sub-header {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 20px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sb-sub-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.sb-sub-badge {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 9999px;
	letter-spacing: 0.5px;
}

.sb-badge-active {
	background-color: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.sb-badge-warning {
	background-color: #fef9c3;
	color: #854d0e;
	border: 1px solid #fef08a;
}

.sb-badge-inactive {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.sb-sub-body {
	padding: 25px;
}

.sb-sub-info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
}

.sb-sub-info-row:last-of-type {
	border-bottom: none;
	margin-bottom: 15px;
}

.sb-label {
	color: #64748b;
	font-size: 14px;
	font-weight: 500;
}

.sb-value {
	color: #1e293b;
	font-size: 14px;
	font-weight: 700;
}

.sb-value.sb-date {
	color: #475569;
	font-weight: 600;
}

.sb-no-plan-msg {
	color: #64748b;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

.sb-sub-actions {
	margin-top: 20px;
}

/* Custom Buttons */
.sb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	text-decoration: none;
	line-height: 1.2;
}

.sb-btn-danger {
	background-color: #ef4444;
	color: #ffffff !important;
	box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

.sb-btn-danger:hover {
	background-color: #dc2626;
	box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
	transform: translateY(-1px);
}

.sb-btn-primary {
	background-color: #4f46e5;
	color: #ffffff !important;
	box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.sb-btn-primary:hover {
	background-color: #4338ca;
	box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
	transform: translateY(-1px);
}

.sb-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* Spinner helper for cancel action */
.sb-btn #sb-cancel-spinner {
	float: none;
	margin: 0 8px 0 0;
	display: none;
}

.sb-btn #sb-cancel-spinner.is-active {
	display: inline-block;
}
