.sld-ajax-button-loading {
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* Modern Store Credit Container */
.sa-store-credit-container {
    margin: 20px 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sa-store-credit-notice {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sa-store-credit-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
    border-radius: 16px 16px 0 0;
}

.sa-store-credit-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.credit-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.credit-icon {
    flex-shrink: 0;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: icon-shine 3s infinite;
}

@keyframes icon-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.credit-info {
    flex: 1;
    min-width: 0;
}

.credit-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.credit-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.amount-value {
    font-size: 24px;
    font-weight: 800;
    color: #059669;
    text-shadow: 0 1px 2px rgba(5, 150, 105, 0.1);
}

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

.credit-action {
    display: flex;
    justify-content: center;
}

/* Modern Button Styling */
.sa-store-credit-notice button,
.sa-store-credit-notice .ajax-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
    text-transform: none !important;
    letter-spacing: 0.025em !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 160px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.sa-store-credit-notice button::before,
.sa-store-credit-notice .ajax-button::before {
    content: '💳';
    font-size: 18px;
}

.sa-store-credit-notice button:hover,
.sa-store-credit-notice .ajax-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5) !important;
}

.sa-store-credit-notice button:active,
.sa-store-credit-notice .ajax-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
}

.sa-store-credit-notice button:disabled,
.sa-store-credit-notice .ajax-button:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.3) !important;
}

/* Loading State */
.sa-store-credit-notice .ajax-button.loading {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    cursor: wait !important;
}

.sa-store-credit-notice .ajax-button.loading::before {
    content: '⏳';
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success State */
.sa-store-credit-notice .ajax-button.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.sa-store-credit-notice .ajax-button.success::before {
    content: '✅';
}

/* Responsive Design */
@media (max-width: 768px) {
    .sa-store-credit-notice {
        padding: 20px;
    }
    
    .credit-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .credit-amount {
        justify-content: center;
    }
    
    .amount-value {
        font-size: 22px;
    }
    
    .sa-store-credit-notice button,
    .sa-store-credit-notice .ajax-button {
        width: 100% !important;
        min-width: auto !important;
        padding: 16px 24px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .sa-store-credit-container {
        margin: 15px 0;
    }
    
    .sa-store-credit-notice {
        padding: 16px;
        border-radius: 12px;
    }
    
    .icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .credit-title {
        font-size: 16px;
    }
    
    .amount-value {
        font-size: 20px;
    }
}

/* Animation for store credit applied state */
.sa-store-credit-applied {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-color: #10b981 !important;
}

.sa-store-credit-applied::before {
    background: linear-gradient(90deg, #10b981, #059669, #047857) !important;
}

.sa-store-credit-applied .credit-title {
    color: #14532d !important;
}

.sa-store-credit-applied .amount-value {
    color: #047857 !important;
}