/* ============================================
   WC Loyalty Rewards - Frontend Styles
   Modern, Clean Design System
   ============================================ */

/* CSS Variables for Consistency */
:root {
    --wclr-primary: #2563EB;
    --wclr-primary-dark: #1d4ed8;
    --wclr-success: #10B981;
    --wclr-success-dark: #059669;
    --wclr-warning: #f59e0b;
    --wclr-danger: #ef4444;
    --wclr-gray-50: #f9fafb;
    --wclr-gray-100: #f3f4f6;
    --wclr-gray-200: #e5e7eb;
    --wclr-gray-300: #d1d5db;
    --wclr-gray-400: #9ca3af;
    --wclr-gray-500: #6b7280;
    --wclr-gray-600: #4b5563;
    --wclr-gray-700: #374151;
    --wclr-gray-800: #1f2937;
    --wclr-gray-900: #111827;
    --wclr-white: #ffffff;
    --wclr-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wclr-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --wclr-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --wclr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --wclr-radius-sm: 6px;
    --wclr-radius: 8px;
    --wclr-radius-md: 12px;
    --wclr-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Redemption Block (Cart/Checkout) - Redesigned
   ============================================ */


.wclr-redeem-block {
    border: 1px solid var(--wclr-gray-200);
    border-radius: var(--wclr-radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--wclr-shadow-sm);
    transition: var(--wclr-transition);
}

.wclr-redeem-block:hover {
    box-shadow: var(--wclr-shadow);
}

/* Header Section */
.wclr-redeem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.wclr-redeem-title-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.wclr-redeem-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.wclr-redeem-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--wclr-gray-800);
    line-height: 1.3;
}

.wclr-redeem-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--wclr-radius);
    font-size: 13px;
}

.wclr-balance-label {
    color: var(--wclr-gray-600);
    font-weight: 500;
}

.wclr-balance-amount {
    font-weight: 600;
    color: var(--wclr-primary);
}

/* Info Messages */
.wclr-earn-preview,
.wclr-auto-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--wclr-radius);
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

/* Auto Redeem Info Section */
.wclr-auto-redeem-info,
.wclr-manual-redeem-info {
    margin-bottom: 12px;
}

.wclr-auto-redeem-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--wclr-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--wclr-primary-dark);
}

.wclr-auto-redeem-text {
    flex: 1;
}

.wclr-edit-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--wclr-gray-600);
    text-decoration: underline;
    text-decoration-color: transparent;
    cursor: pointer;
    transition: var(--wclr-transition);
    line-height: 1;
}

.wclr-edit-link:hover {
    color: var(--wclr-primary);
    text-decoration-color: var(--wclr-primary);
}

.wclr-manual-input-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--wclr-gray-200);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wclr-earn-preview {
    background: rgba(16, 185, 129, 0.1);
    color: var(--wclr-success-dark);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wclr-earn-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.wclr-earn-text {
    font-weight: 500;
    color: inherit;
}

.wclr-auto-notice {
    background: rgba(37, 99, 235, 0.08);
    color: var(--wclr-primary-dark);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.wclr-auto-notice .wclr-notice-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.wclr-auto-notice .wclr-notice-text {
    font-weight: 500;
    color: inherit;
}

.wclr-warning-notice {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.wclr-warning-notice .wclr-notice-text {
    color: #92400e;
}

/* Form Section */
.wclr-redeem-form {
    margin-top: 4px;
}

.wclr-redeem-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wclr-redeem-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wclr-gray-700);
    margin-bottom: 0;
    display: block;
}

.wclr-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.wclr-redeem-input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid var(--wclr-gray-300);
    border-radius: var(--wclr-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--wclr-gray-800);
    background: var(--wclr-white);
    transition: var(--wclr-transition);
    min-width: 0;
}

.wclr-redeem-input:focus {
    outline: none;
    border-color: var(--wclr-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wclr-redeem-input:hover:not(:focus) {
    border-color: var(--wclr-gray-400);
}

.wclr-redeem-button {
    padding: 11px 24px;
    background: var(--wclr-primary);
    color: var(--wclr-white);
    border: none;
    border-radius: var(--wclr-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wclr-transition);
    white-space: nowrap;
    box-shadow: var(--wclr-shadow-sm);
    min-width: 80px;
}

.wclr-redeem-button:hover {
    background: var(--wclr-primary-dark);
    box-shadow: var(--wclr-shadow);
    transform: translateY(-1px);
}

.wclr-redeem-button:active {
    transform: translateY(0);
    box-shadow: var(--wclr-shadow-sm);
}

.wclr-redeem-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Checkbox */
.wclr-auto-checkbox-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--wclr-gray-600);
    cursor: pointer;
    padding: 0;
    font-weight: 500;
}

.wclr-auto-checkbox-label:hover {
    color: var(--wclr-gray-700);
}

.wclr-auto-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--wclr-primary);
    flex-shrink: 0;
    margin: 0;
}

.wclr-auto-checkbox-label span {
    user-select: none;
}

/* ============================================
   Points Notification
   ============================================ */

.wclr-reward-flash-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 380px;
    min-width: 320px;
    animation: wclr-slide-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

@keyframes wclr-slide-in {
    from {
        opacity: 0;
        transform: translateX(120%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes wclr-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.wclr-reward-flash {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 5px solid var(--wclr-primary);
    border-radius: var(--wclr-radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    animation: wclr-pulse 2s ease-in-out infinite;
}

.wclr-reward-flash::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563EB 0%, #10B981 100%);
}

.wclr-reward-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(37, 99, 235, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: var(--wclr-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wclr-transition);
    z-index: 10;
}

.wclr-reward-close:hover {
    background: var(--wclr-primary);
    color: var(--wclr-white);
    transform: rotate(90deg);
}

.wclr-reward-close:active {
    transform: rotate(90deg) scale(0.9);
}

.wclr-reward-content {
    padding: 20px 24px 20px 20px;
    position: relative;
}

.wclr-reward-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wclr-reward-title::before {
    content: '✨';
    font-size: 20px;
    animation: wclr-sparkle 1.5s ease-in-out infinite;
}

@keyframes wclr-sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.wclr-reward-title strong {
    color: var(--wclr-primary);
    font-weight: 700;
}

.wclr-reward-detail {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    padding-left: 28px;
    position: relative;
}

.wclr-reward-detail::before {
    content: '•';
    position: absolute;
    left: 12px;
    color: var(--wclr-success);
    font-size: 18px;
    font-weight: bold;
}

.wclr-reward-context {
    margin: 12px 0 0 0;
    font-size: 12px;
    color: var(--wclr-primary-dark);
    font-style: italic;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: var(--wclr-radius-sm);
    border-left: 3px solid var(--wclr-success);
}

.wclr-reward-flash-wrapper.fade-out {
    animation: wclr-fade-out 0.3s ease-in forwards;
}

@keyframes wclr-fade-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* ============================================
   Shortcode Styles
   ============================================ */

.wclr-shortcode {
    border: 1px solid var(--wclr-gray-200);
    border-radius: var(--wclr-radius);
    padding: 16px;
    margin: 16px 0;
    background: var(--wclr-white);
}

.wclr-shortcode p {
    margin: 8px 0;
}

.wclr-shortcode p:first-child {
    margin-top: 0;
}

.wclr-shortcode p:last-child {
    margin-bottom: 0;
}

.wclr-shortcode code {
    background: var(--wclr-gray-100);
    padding: 2px 6px;
    border-radius: var(--wclr-radius-sm);
    font-family: monospace;
    font-size: 13px;
}

/* ============================================
   Account Page Styles
   ============================================ */

.wclr-account {
    max-width: 100%;
}

.wclr-account-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wclr-gray-200);
}

.wclr-account-title,
.wclr-account .wclr-account-title,
.wclr-account h2.wclr-account-title,
.woocommerce-account .wclr-account-title,
.woocommerce-account h2.wclr-account-title {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--wclr-gray-800) !important;
}

.wclr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.wclr-stat-card {
    background: var(--wclr-white);
    border: 1px solid var(--wclr-gray-200);
    border-left: 4px solid var(--wclr-primary);
    border-radius: var(--wclr-radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--wclr-transition);
    box-shadow: var(--wclr-shadow-sm);
}

.wclr-stat-card:hover {
    box-shadow: var(--wclr-shadow);
    transform: translateY(-2px);
}

.wclr-stat-card:nth-child(2) {
    border-left-color: var(--wclr-success);
}

.wclr-stat-card:nth-child(3) {
    border-left-color: var(--wclr-warning);
}

.wclr-stat-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.wclr-stat-content {
    flex: 1;
}

.wclr-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--wclr-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wclr-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--wclr-gray-800);
    line-height: 1.2;
    margin-bottom: 4px;
}

.wclr-stat-unit {
    font-size: 13px;
    color: var(--wclr-gray-600);
    font-weight: 500;
}

.wclr-section-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wclr-gray-200);
}

.wclr-section-title,
.wclr-account .wclr-section-title,
.wclr-account h3.wclr-section-title,
.woocommerce-account .wclr-section-title,
.woocommerce-account h3.wclr-section-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--wclr-gray-800) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.wclr-section-icon,
.wclr-account .wclr-section-icon,
.woocommerce-account .wclr-section-icon {
    font-size: 18px !important;
    line-height: 1 !important;
}

.wclr-subsection-title {
    margin: 24px 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--wclr-gray-700);
}

.wclr-referrals {
    background: var(--wclr-white);
    border: 1px solid var(--wclr-gray-200);
    border-left: 4px solid var(--wclr-primary);
    border-radius: var(--wclr-radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--wclr-shadow-sm);
}

.wclr-referral-section {
    margin-bottom: 24px;
}

.wclr-referral-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--wclr-gray-700);
    margin-bottom: 10px;
    display: block;
}

.wclr-referral-link-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
}

.wclr-referral-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--wclr-gray-300);
    border-radius: var(--wclr-radius);
    font-family: monospace;
    font-size: 14px;
    background: var(--wclr-white);
    cursor: text;
    min-width: 0;
    transition: var(--wclr-transition);
}

.wclr-referral-link-input:focus {
    outline: none;
    border-color: var(--wclr-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wclr-copy-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--wclr-primary);
    color: var(--wclr-white);
    border: none;
    border-radius: var(--wclr-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--wclr-transition);
    box-shadow: var(--wclr-shadow-sm);
}

.wclr-copy-link-btn:hover {
    background: var(--wclr-primary-dark);
    box-shadow: var(--wclr-shadow);
}

.wclr-copy-link-btn:active {
    transform: scale(0.98);
}

.wclr-copy-link-btn.copied {
    background: var(--wclr-success);
}

.wclr-copy-link-btn.copied .wclr-copy-text::after {
    content: ' ✓';
    margin-left: 4px;
}

.wclr-copy-icon {
    font-size: 16px;
    line-height: 1;
}

.wclr-referrals-list-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--wclr-gray-200);
}

.wclr-referrals-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wclr-referral-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--wclr-gray-50);
    border: 1px solid var(--wclr-gray-200);
    border-radius: var(--wclr-radius);
    transition: var(--wclr-transition);
}

.wclr-referral-item:hover {
    background: var(--wclr-gray-100);
    border-color: var(--wclr-gray-300);
}

.wclr-referral-code {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--wclr-gray-800);
}

.wclr-referral-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wclr-status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--wclr-success-dark);
}

.wclr-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.wclr-recent-ledger {
    background: var(--wclr-white);
    border: 1px solid var(--wclr-gray-200);
    border-left: 4px solid var(--wclr-primary);
    border-radius: var(--wclr-radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--wclr-shadow-sm);
}

.wclr-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.wclr-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.wclr-empty-text {
    font-size: 15px;
    color: var(--wclr-gray-600);
    margin: 0;
}

.wclr-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: var(--wclr-radius);
    border: 1px solid var(--wclr-gray-200);
}

.wclr-ledger-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--wclr-white);
    font-size: 14px;
}

.wclr-ledger-table thead {
    background: var(--wclr-gray-50);
}

.wclr-ledger-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wclr-gray-700);
    border-bottom: 2px solid var(--wclr-gray-200);
}

.wclr-ledger-table tbody tr {
    border-bottom: 1px solid var(--wclr-gray-200);
    transition: background 0.15s ease;
}

.wclr-ledger-table tbody tr:hover {
    background: var(--wclr-gray-50);
}

.wclr-ledger-table tbody tr:last-child {
    border-bottom: none;
}

.wclr-ledger-table td {
    padding: 12px 16px;
    color: var(--wclr-gray-700);
}

.wclr-ledger-table td:first-child {
    font-weight: 500;
    color: var(--wclr-gray-600);
}

.wclr-ledger-table td:nth-child(3),
.wclr-ledger-table td:nth-child(4) {
    font-weight: 600;
    font-family: monospace;
}

.wclr-ledger-table td:nth-child(3).wclr-amount-positive {
    color: var(--wclr-success);
}

.wclr-ledger-table td:nth-child(3).wclr-amount-negative {
    color: var(--wclr-danger);
}

.wclr-ledger-table td:nth-child(2) {
    text-transform: capitalize;
}

/* ============================================
   Pagination
   ============================================ */

.wclr-pagination {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--wclr-gray-200);
}

.wclr-pagination .button {
    padding: 10px 16px;
    background: var(--wclr-white);
    color: var(--wclr-gray-700);
    border: 1px solid var(--wclr-gray-300);
    border-radius: var(--wclr-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--wclr-transition);
    min-width: 44px;
    text-align: center;
}

.wclr-pagination .button:hover {
    background: var(--wclr-gray-50);
    border-color: var(--wclr-primary);
    color: var(--wclr-primary);
}

.wclr-pagination .button.active {
    background: var(--wclr-primary);
    color: var(--wclr-white);
    border-color: var(--wclr-primary);
    cursor: default;
}

.wclr-pagination .button.active:hover {
    background: var(--wclr-primary);
    color: var(--wclr-white);
}

.wclr-pagination span {
    padding: 10px 16px;
    color: var(--wclr-gray-600);
    font-size: 14px;
    display: inline-block;
}

.wclr-pagination-info {
    width: 100%;
    margin-top: 12px;
    font-size: 13px;
    color: var(--wclr-gray-600);
    text-align: center;
}

/* ============================================
   Legacy Form Styles (for backward compatibility)
   ============================================ */

.wclr-redeem-block {
    margin-bottom: 20px;
}

.wclr-redeem-block form {
    margin-top: 10px;
}

.wclr-redeem-block label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wclr-redeem-block input[type="number"] {
    width: 150px;
    margin-right: 10px;
    padding: 8px 12px;
    border: 1px solid var(--wclr-gray-300);
    border-radius: var(--wclr-radius);
    font-size: 14px;
}

.wclr-redeem-block .button {
    vertical-align: middle;
}

.wclr-redeem-block label[for="wclr_use_auto"] {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: normal;
}

.wclr-redeem-block label[for="wclr_use_auto"] input[type="checkbox"] {
    margin-right: 5px;
}

/* ============================================
   WooCommerce Cart/Checkout Fee Display
   ============================================ */

.woocommerce .cart_totals tr.fee th,
.woocommerce .woocommerce-checkout-review-order-table tr.fee th,
.woocommerce table.shop_table tr.fee th,
.cart_totals tr.fee th,
.woocommerce-checkout-review-order-table tr.fee th,
table.shop_table tr.fee th {
    font-weight: 600;
    color: var(--wclr-gray-800);
    line-height: 1.5;
    font-size: 15px;
}

.woocommerce .cart_totals tr.fee td,
.woocommerce .woocommerce-checkout-review-order-table tr.fee td,
.woocommerce table.shop_table tr.fee td,
.cart_totals tr.fee td,
.woocommerce-checkout-review-order-table tr.fee td,
table.shop_table tr.fee td {
    color: var(--wclr-success);
    font-weight: 600;
    font-size: 15px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .wclr-reward-flash-wrapper {
        right: 16px;
        left: 16px;
        max-width: none;
        min-width: auto;
    }

    .wclr-redeem-block {
        padding: 20px;
    }

    .wclr-redeem-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wclr-redeem-icon {
        font-size: 24px;
    }

    .wclr-redeem-title {
        font-size: 16px;
    }

    .wclr-balance-amount {
        font-size: 14px;
        padding: 3px 10px;
    }

    .wclr-input-wrapper {
        flex-direction: column;
    }

    .wclr-redeem-input {
        width: 100%;
    }

    .wclr-redeem-button {
        width: 100%;
        justify-content: center;
    }

    .wclr-account-title {
        font-size: 24px;
    }

    .wclr-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wclr-stat-card {
        padding: 20px;
    }

    .wclr-stat-icon {
        font-size: 28px;
    }

    .wclr-stat-value {
        font-size: 24px;
    }

    .wclr-section-title {
        font-size: 18px;
    }

    .wclr-referrals,
    .wclr-recent-ledger {
        padding: 20px;
    }

    .wclr-referral-link-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .wclr-referral-link-input {
        width: 100%;
        margin-bottom: 8px;
    }

    .wclr-copy-link-btn {
        width: 100%;
        justify-content: center;
    }

    .wclr-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wclr-ledger-table {
        font-size: 13px;
        min-width: 600px;
    }

    .wclr-ledger-table th,
    .wclr-ledger-table td {
        padding: 10px 12px;
    }

    .wclr-pagination {
        gap: 6px;
    }

    .wclr-pagination .button {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
    }
}
