/**
 * SWILS Loyalty Styles
 * 
 * Frontend styles for loyalty program components
 * 
 * @package SWILS
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Variables - Design System
   ========================================================================== */

:root {
    --swils-primary: #2196F3;
    --swils-orange: #fcb07e;
    --swils-success: #4CAF50;
    --swils-danger: #dc3545;
    --swils-warning: #ffc107;
    --swils-bg-light: #f8f9fa;
    --swils-bg-white: #ffffff;
    --swils-border: #e0e0e0;
    --swils-border-dark: #ddd;
    --swils-text-dark: #333;
    --swils-text-muted: #666;
    --swils-radius: 8px;
    --swils-radius-sm: 6px;
    --swils-radius-lg: 12px;
    --swils-transition: 0.3s ease;
    --swils-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --swils-shadow-hover: 0 2px 8px rgba(33, 150, 243, 0.15);
}

/* ==========================================================================
   Loyalty Widget - Main Container
   ========================================================================== */

.swils-loyalty-widget {
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #2196F3;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.swils-loyalty-header h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
}

/* ==========================================================================
   Balance Display
   ========================================================================== */

.swils-loyalty-balance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.swils-balance-main,
.swils-balance-lifetime {
    text-align: center;
}

.swils-balance-label,
.swils-lifetime-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swils-balance-value,
.swils-lifetime-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2196F3;
}

.swils-balance-points,
.swils-lifetime-points {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/* Negative balance styling */
.swils-negative-balance {
    color: #d32f2f !important;
}

.swils-positive-balance {
    color: #388e3c;
}

/* ==========================================================================
   Expiring Points Alert
   ========================================================================== */

.swils-expiring-points {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.swils-expiring-header {
    margin-bottom: 10px;
    color: #856404;
}

.swils-expiring-item {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swils-expiring-item.swils-urgent {
    background: #f8d7da;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.swils-urgent-badge {
    background: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */

.swils-loyalty-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.swils-loyalty-actions .button {
    flex: 1;
    text-align: center;
    transition: var(--swils-transition);
}

.swils-loyalty-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--swils-shadow-hover);
}

.swils-button-danger {
    background-color: var(--swils-danger) !important;
    color: white !important;
    border-color: var(--swils-danger) !important;
}

.swils-button-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* ==========================================================================
   Enrollment Form
   ========================================================================== */

.swils-enrollment-container {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none !important;
}

.swils-enrollment-header h3 {
    color: #fff;
    margin-top: 0;
}

.swils-program-benefits {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.swils-benefits-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.swils-benefits-list li {
    padding: 8px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swils-checkmark {
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
}

.swils-enrollment-form-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.swils-enrollment-form .swils-form-row {
    margin-bottom: 15px;
}

.swils-enrollment-form label {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.swils-enrollment-form .required {
    color: #dc3545;
}

.swils-enrollment-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.swils-help-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.swils-terms label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.swils-enroll-button {
    width: 100%;
    padding: 12px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.swils-enroll-button:hover {
    background: #1976D2;
}

.swils-enroll-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.swils-enrollment-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
}

.swils-enrollment-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.swils-enrollment-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Rewards Grid
   ========================================================================== */

.swils-rewards-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.swils-sparkle,
.swils-target {
    font-size: 20px;
    margin-right: 8px;
}

.swils-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.swils-reward-card {
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.swils-reward-card.swils-affordable {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.swils-reward-card.swils-affordable:hover {
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.swils-reward-card.swils-unaffordable {
    border-color: #e0e0e0;
    background: #fafafa;
    opacity: 0.8;
}

.swils-reward-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.swils-reward-points {
    font-size: 24px;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 10px;
}

.swils-reward-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.swils-status-available {
    background: #4CAF50;
    color: #fff;
}

.swils-reward-needed {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.swils-reward-progress {
    margin-top: 10px;
}

/* ==========================================================================
   Transaction History
   ========================================================================== */

.swils-history-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.swils-history-empty {
    padding: 40px 20px;
    text-align: center;
    background: var(--swils-bg-light);
    border-radius: var(--swils-radius);
    color: var(--swils-text-muted);
}

.swils-history-table-wrapper {
    overflow-x: auto;
    border-radius: var(--swils-radius);
    box-shadow: var(--swils-shadow);
}

.swils-history-table {
    width: 100%;
    margin-top: 15px;
}

.swils-history-table th {
    text-align: left;
    padding: 12px;
    background: #f8f9fa;
    font-weight: 600;
}

.swils-history-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.swils-event-row:hover {
    background: #f8f9fa;
}

.swils-event-type {
    font-weight: 500;
}

.swils-points-positive {
    color: #4CAF50;
    font-weight: 600;
}

.swils-points-negative {
    color: #dc3545;
    font-weight: 600;
}

.swils-history-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.swils-progress-bar {
    position: relative;
}

.swils-progress-fill {
    background: linear-gradient(90deg, #4CAF50 0%, #81C784 100%);
}

.swils-progress-text {
    text-align: center;
}

/* ==========================================================================
   Tier Badge
   ========================================================================== */

.swils-tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .swils-loyalty-balance {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .swils-rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .swils-loyalty-actions {
        flex-direction: column;
    }
    
    .swils-history-table {
        font-size: 14px;
    }
    
    .swils-history-table th,
    .swils-history-table td {
        padding: 8px;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.swils-loading {
    opacity: 0.6;
    pointer-events: none;
}

.swils-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: swils-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes swils-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Checkout Rewards Selector
   ========================================================================== */

.swils-checkout-rewards {
    margin-top: 15px;
    margin-bottom: 20px;
    padding-top: 25px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #2196F3;
    clear: both;
}

.swils-rewards-header {
    margin: 0 0 5px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #ddd;
    transition: color 0.3s;
}

.swils-rewards-header:hover {
    color: #2196F3;
}

.swils-toggle-icon {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s ease;
    color: #2196F3;
    font-weight: bold;
}

.swils-toggle-icon .swils-icon {
    transition: transform 0.3s ease;
}

/* Icon color transitions - Blue idle, Orange on hover/active */
.swils-toggle-icon svg path {
    fill: #2196F3;
    transition: fill 0.3s ease;
}

.swils-rewards-header:hover .swils-toggle-icon svg path {
    fill: #fcb07e;
}

.swils-rewards-content:visible ~ .swils-rewards-header .swils-toggle-icon svg path {
    fill: #fcb07e;
}

.swils-reward-subtitle {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

.swils-rewards-content {
    padding-top: 15px;
}

.swils-checkout-balance {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}

.swils-checkout-balance p {
    margin: 0;
    font-size: 15px;
}

.swils-reward-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.swils-reward-option {
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
}

.swils-reward-option:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.swils-reward-option input[type="radio"] {
    margin-right: 10px;
}

.swils-reward-option label {
    cursor: pointer;
    font-size: 15px;
}

.swils-reward-name {
    font-weight: 600;
    color: #333;
}

.swils-reward-cost {
    color: #666;
    font-size: 14px;
}

.swils-reward-discount {
    color: #4CAF50;
    font-weight: 600;
}

.swils-remaining-balance {
    display: block;
    margin-top: 8px;
}

.swils-discount-preview {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.swils-discount-preview p {
    margin: 5px 0;
    font-size: 16px;
}

.swils-discount-preview strong,
.swils-preview-amount,
.swils-new-total-amount {
    font-weight: 700;
    font-size: 18px;
}

/* ==========================================================================
   Loyalty Dashboard (Dedicated Tab)
   ========================================================================== */

.swils-loyalty-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Stats Section */
.swils-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.swils-stat-card {
    background: var(--swils-bg-white);
    padding: 25px;
    border-radius: var(--swils-radius);
    border: 2px solid var(--swils-border);
    text-align: center;
    transition: var(--swils-transition);
}

.swils-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--swils-shadow-hover);
    border-color: var(--swils-primary);
}

.swils-stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--swils-primary);
    margin: 10px 0;
}

.swils-stat-value.swils-small {
    font-size: 20px;
}

.swils-stat-label {
    font-size: 14px;
    color: var(--swils-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swils-stat-meta {
    font-size: 13px;
    color: var(--swils-text-muted);
    margin-top: 8px;
}

/* Quick Actions Highlight */
.swils-quick-actions {
    margin-bottom: 30px;
}

.swils-action-highlight {
    background: linear-gradient(135deg, var(--swils-success) 0%, #81C784 100%);
    color: white;
    padding: 15px 25px;
    border-radius: var(--swils-radius);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--swils-shadow);
}

/* Dashboard Sections */
.swils-dashboard-section {
    background: var(--swils-bg-white);
    padding: 25px;
    border-radius: var(--swils-radius);
    border: 1px solid var(--swils-border);
    margin-bottom: 20px;
}

.swils-section-header {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--swils-border-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.swils-section-header.swils-clickable {
    cursor: pointer;
    user-select: none;
}

.swils-section-header.swils-clickable:hover {
    color: var(--swils-primary);
}

.swils-toggle {
    color: var(--swils-primary);
    font-weight: bold;
}

/* Rewards Showcase */
.swils-rewards-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.swils-reward-showcase-card {
    background: linear-gradient(135deg, var(--swils-primary) 0%, #1976D2 100%);
    color: white;
    padding: 20px;
    border-radius: var(--swils-radius);
    text-align: center;
    transition: var(--swils-transition);
}

.swils-reward-showcase-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(33, 150, 243, 0.3);
}

.swils-reward-badge {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.swils-reward-points-big {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.swils-reward-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Activity Feed */
.swils-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.swils-activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--swils-bg-light);
    border-radius: var(--swils-radius-sm);
    transition: var(--swils-transition);
}

.swils-activity-item:hover {
    background: #e3f2fd;
}

.swils-activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
}

.swils-activity-details {
    flex: 1;
}

.swils-activity-type {
    font-weight: 600;
    color: var(--swils-text-dark);
}

.swils-activity-time {
    font-size: 13px;
    color: var(--swils-text-muted);
}

.swils-activity-points {
    font-size: 18px;
    font-weight: 700;
}

.swils-activity-points.positive {
    color: var(--swils-success);
}

.swils-activity-points.negative {
    color: var(--swils-danger);
}

/* Section Footer */
.swils-section-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--swils-border);
    text-align: center;
}

.swils-link-primary {
    color: var(--swils-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--swils-transition);
}

.swils-link-primary:hover {
    color: var(--swils-orange);
}

/* ==========================================================================
   Floating Loyalty Widget
   ========================================================================== */

/* Widget Trigger Button */
.swils-floating-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.swils-widget-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fcb07e 0%, #ff9f5a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(252, 176, 126, 0.4);
    transition: all 0.3s ease;
}

.swils-widget-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(252, 176, 126, 0.5);
}

.swils-widget-trigger .swils-icon {
    flex-shrink: 0;
}

.swils-trigger-text {
    white-space: nowrap;
}

/* Widget Panel */
.swils-widget-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 320px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: swils-slide-up 0.3s ease;
}

@keyframes swils-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Header */
.swils-panel-header {
    background: linear-gradient(135deg, #fcb07e 0%, #ff9f5a 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swils-panel-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.swils-greeting {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

.swils-header-balance {
    font-size: 24px;
    font-weight: 700;
}

.swils-header-points {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-left: 4px;
}

.swils-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.swils-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Panel Tabs */
.swils-panel-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

/* Sliding indicator bar */
.swils-panel-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background: #fcb07e;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    transform: translateX(0);
}

/* Move indicator to second tab when Redeem is active */
.swils-panel-tabs:has(.swils-tab-button:last-child.active)::after {
    transform: translateX(100%);
}

.swils-tab-button {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.swils-tab-button:hover {
    background: rgba(252, 176, 126, 0.05);
    color: #fcb07e;
}

.swils-tab-button.active {
    color: #fcb07e;
    background: white;
    font-weight: 600;
}

.swils-tab-button svg {
    width: 20px;
    height: 20px;
}

/* Panel Content */
.swils-panel-content {
    height: 350px;
    overflow: hidden;
}

.swils-panel-body {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

/* Smooth scrolling */
.swils-panel-body::-webkit-scrollbar {
    width: 6px;
}

.swils-panel-body::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.swils-panel-body::-webkit-scrollbar-thumb {
    background: #fcb07e;
    border-radius: 3px;
}

.swils-panel-body::-webkit-scrollbar-thumb:hover {
    background: #ff9f5a;
}

.swils-tab-content {
    display: none;
    opacity: 0;
    animation: swils-fade-in 0.3s ease forwards;
}

.swils-tab-content.active {
    display: block;
}

/* Mobile: Let content flow naturally (no fixed height) */
@media (max-width: 768px) {
    .swils-panel-content {
        height: auto;
        overflow: visible;
    }
    
    .swils-panel-body {
        height: auto;
        overflow-y: visible;
    }
}

@keyframes swils-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Points Summary */
.swils-points-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.swils-summary-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.swils-summary-label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swils-summary-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fcb07e;
}

/* Earn Info */
.swils-earn-info h4 {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: #333;
}

.swils-earn-rule {
    font-size: 13px;
    color: #666;
    margin: 6px 0;
    padding-left: 16px;
    position: relative;
}

.swils-earn-rule::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fcb07e;
    font-weight: bold;
}

/* Rewards Mini List */
.swils-rewards-mini h4 {
    font-size: 13px;
    margin: 0 0 12px 0;
    color: #333;
}

.swils-reward-mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.swils-reward-mini-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.swils-reward-mini-points {
    font-size: 12px;
    color: #fcb07e;
    font-weight: 600;
}

.swils-no-rewards {
    text-align: center;
    padding: 20px 0;
}

.swils-no-rewards p {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
}

.swils-next-reward {
    background: #fff3e0;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #fcb07e;
}

/* Widget Buttons */
.swils-widget-button {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.swils-button-primary {
    background: linear-gradient(135deg, #fcb07e 0%, #ff9f5a 100%);
    color: white;
}

.swils-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(252, 176, 126, 0.3);
    color: white;
}

.swils-button-secondary {
    background: #f8f9fa;
    color: #fcb07e;
    border: 2px solid #fcb07e;
}

.swils-button-secondary:hover {
    background: #fcb07e;
    color: white;
}

/* Panel Footer */
.swils-panel-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    text-align: center;
}

.swils-full-dashboard-link {
    color: #fcb07e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.swils-full-dashboard-link:hover {
    color: #ff9f5a;
}

/* Enrollment in Widget */
.swils-enrollment-compact {
    padding: 20px;
}

.swils-enroll-pitch {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    text-align: center;
}

.swils-widget-field {
    margin-bottom: 12px;
}

.swils-widget-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.swils-widget-field input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.swils-checkbox-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
}

.swils-widget-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
}

.swils-widget-message.success {
    background: #d4edda;
    color: #155724;
}

.swils-widget-message.error {
    background: #f8d7da;
    color: #721c24;
}

.swils-or-login {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 12px;
}

.swils-or-login a {
    color: #fcb07e;
    text-decoration: none;
}

.swils-or-login a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .swils-widget-panel {
        width: calc(100vw - 40px);
        max-width: 320px;
    }
    
    .swils-widget-trigger {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Keep text visible on mobile */
    .swils-trigger-text {
        display: inline;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.swils-hidden {
    display: none !important;
}

.swils-text-center {
    text-align: center;
}

.swils-mt-20 {
    margin-top: 20px;
}

.swils-mb-20 {
    margin-bottom: 20px;
}
