/**
 * SquareWooSync Pro - Loyalty Shortcodes Styles
 * Super basic styling - easily modifiable
 */

/* Points Display */
.sws-loyalty-points {
	color: #2563eb;
	font-weight: 600;
}

.sws-loyalty-badge {
	background: #2563eb;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	display: inline-block;
}

.sws-loyalty-detailed {
	border: 1px solid #e5e7eb;
	padding: 16px;
	text-align: center;
}

.sws-loyalty-points-label {
	color: #6b7280;
	margin-bottom: 8px;
}

.sws-loyalty-points-value {
	font-size: 32px;
	font-weight: bold;
	color: #2563eb;
}

.sws-loyalty-points-unit {
	color: #6b7280;
	margin-top: 8px;
}

/* Tier Display */
.sws-loyalty-tier {
	border-left: 3px solid #2563eb;
	padding-left: 12px;
	margin: 16px 0;
}

.sws-current-tier {
	margin-bottom: 8px;
}

.sws-next-tier {
	color: #6b7280;
}

/* Progress Bar */
.sws-loyalty-progress-container {
	margin: 16px 0;
}

.sws-progress-text {
	margin-bottom: 8px;
}

.sws-progress-bar {
	background: #e5e7eb;
	height: 24px;
	position: relative;
	overflow: hidden;
}

.sws-progress-fill {
	background: #2563eb;
	height: 100%;
	transition: width 0.3s;
}

.sws-loyalty-progress-complete {
	background: #2563eb;
	color: white;
	padding: 8px;
	text-align: center;
}

/* Rewards */
.sws-loyalty-rewards {
	margin: 16px 0;
}

.sws-rewards-qualified h3,
.sws-rewards-unqualified h3 {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 8px;
	margin-bottom: 16px;
}

.sws-rewards-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sws-rewards-list li {
	padding: 8px 0;
	border-bottom: 1px solid #e5e7eb;
}

.sws-rewards-list li:last-child {
	border-bottom: none;
}

.sws-reward-qualified {
	color: #2563eb;
}

.sws-reward-locked {
	color: #9ca3af;
}

.sws-reward-name {
	font-weight: 600;
}

.sws-reward-points {
	color: #6b7280;
}

.sws-reward-discount {
	background: #f3f4f6;
	padding: 2px 6px;
	margin-left: 8px;
}

/* Cards Layout */
.sws-rewards-cards .sws-rewards-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
}

.sws-reward-card {
	border: 1px solid #e5e7eb;
	padding: 16px;
	background: white;
}

.sws-reward-card.sws-reward-available {
	border-color: #2563eb;
}

.sws-reward-card.sws-reward-locked {
	opacity: 0.6;
}

.sws-reward-header h4 {
	margin: 0 0 8px 0;
}

.sws-badge-available {
	background: #2563eb;
	color: white;
	padding: 2px 6px;
	font-size: 12px;
}

.sws-reward-points-required {
	color: #6b7280;
	margin-bottom: 4px;
}

.sws-reward-value {
	font-weight: bold;
	color: #2563eb;
}

/* Earn Rate */
.sws-earn-rate {
	color: #111827;
}

.sws-earn-detailed {
	border: 1px solid #e5e7eb;
	padding: 16px;
}

.sws-earn-icon {
	font-size: 24px;
	margin-bottom: 8px;
}

.sws-earn-title {
	color: #6b7280;
	margin-bottom: 4px;
}

.sws-earn-value {
	font-weight: bold;
	color: #2563eb;
}

/* Widget */
.sws-loyalty-widget {
	border: 1px solid #e5e7eb;
	padding: 16px;
	background: white;
}

.sws-widget-title {
	margin: 0 0 16px 0;
	padding-bottom: 8px;
	border-bottom: 1px solid #e5e7eb;
}

.sws-widget-section {
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.sws-widget-section:last-child {
	border-bottom: none;
}

/* Product Points */
.sws-product-points {
	color: #2563eb;
	font-weight: 600;
}

.sws-product-points-badge {
	background: #2563eb;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	display: inline-block;
}

.sws-product-points-message {
	border-left: 3px solid #2563eb;
	padding: 8px 12px;
	background: #f9fafb;
	margin: 8px 0;
}

/* Login Prompt */
.sws-loyalty-login-prompt {
	border: 1px dashed #e5e7eb;
	padding: 16px;
	text-align: center;
	background: #f9fafb;
}

.sws-loyalty-login-prompt p {
	margin-bottom: 12px;
	color: #6b7280;
}

.sws-login-button {
	background: #2563eb;
	color: white;
	padding: 8px 16px;
	text-decoration: none;
	display: inline-block;
}

.sws-login-button:hover {
	background: #1d4ed8;
	color: white;
	text-decoration: none;
}

/* Notice */
.sws-loyalty-notice {
	border: 1px solid #e5e7eb;
	padding: 12px;
	background: #f9fafb;
	margin: 8px 0;
}

/* Mobile */
@media (max-width: 768px) {
	.sws-rewards-cards .sws-rewards-container {
		grid-template-columns: 1fr;
	}
}